/* ============================================================
   چاقوی برّان زنجان — Inner pages styles
   ============================================================ */

/* ---- per-product packaging modal (product.html) ---- */
.pk-ov { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(5,6,10,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.pk-ov.on { opacity: 1; }
.pk-modal { width: min(620px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg-1, #12131a), var(--bg-2, #0d0e14)); border: 1px solid rgba(232,200,116,.28); border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.6); transform: translateY(14px) scale(.98); transition: transform .2s; overflow: hidden; }
.pk-ov.on .pk-modal { transform: none; }
.pk-m-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pk-m-head b { font-size: 1.05rem; }
.pk-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; font-size: 1rem; }
.pk-x:hover { color: var(--text-1); border-color: rgba(232,200,116,.4); }
.pk-m-sub { padding: 12px 20px 0; color: var(--text-3); font-size: .82rem; line-height: 1.7; }
.pk-m-body { padding: 16px 20px; overflow-y: auto; }
.pk-secttl { font-weight: 700; font-size: .86rem; color: var(--text-2); margin: 18px 0 8px; }
.pk-boxes2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pk-box2 { position: relative; text-align: right; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1.5px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .15s, background .15s; color: inherit; font: inherit; }
.pk-box2:hover { border-color: rgba(232,200,116,.45); }
.pk-box2.on { border-color: var(--gold-2, #e8c874); background: linear-gradient(180deg, rgba(232,200,116,.1), transparent); }
.pk-art2 { height: 84px; border-radius: 10px; background: rgba(0,0,0,.25); display: grid; place-items: center; overflow: hidden; font-size: 32px; }
.pk-art2 img { width: 100%; height: 100%; object-fit: cover; }
.pk-art2.none { font-size: 22px; color: var(--text-3); }
.pk-b2 { display: flex; flex-direction: column; gap: 2px; }
.pk-b2 b { font-size: .9rem; }
.pk-b2 span { font-size: .74rem; color: var(--text-3); }
.pk-b2 .gold-text { font-size: .9rem; }
.pk-vip2 { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; font-size: .62rem; font-weight: 800; padding: 3px 7px; border-radius: 20px; background: linear-gradient(120deg,#e8c874,#b7902f); color: #1a1206; }
.pk-opts2 { display: flex; flex-direction: column; gap: 8px; }
.pk-opt2 { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.pk-opt2:hover { border-color: rgba(232,200,116,.4); }
.pk-opt2.on { border-color: rgba(232,200,116,.55); background: rgba(232,200,116,.06); }
.pk-opt2-h { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.pk-opt2-h input { width: 17px; height: 17px; accent-color: #c9a227; }
.pk-opt2-h i { margin-inline-start: auto; font-style: normal; font-size: .82rem; }
.pk-opt2-x { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pk-note { font-size: .82rem; }
.pk-note::placeholder { color: var(--gold-3, #a98a3d); opacity: .8; }
/* selected-box detail panel (photo + full description) */
.pk-detail { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 12px; border: 1px solid rgba(232,200,116,.28); background: linear-gradient(180deg, rgba(232,200,116,.05), transparent); border-radius: 14px; }
.pk-detail-img { width: 104px; height: 104px; border-radius: 12px; background: rgba(0,0,0,.28); display: grid; place-items: center; overflow: hidden; font-size: 40px; flex: none; }
.pk-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.pk-detail-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pk-detail-b b { font-size: 1rem; }
.pk-detail-mat { font-size: .78rem; color: var(--text-3); }
.pk-detail-b p { font-size: .82rem; color: var(--text-2); line-height: 1.8; margin: 2px 0; }
@media (max-width: 480px){ .pk-detail { flex-direction: column; } .pk-detail-img { width: 100%; height: 150px; } }

/* ---- admin packaging studio: box gallery + option cards + reorder ---- */
.pkg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pkg-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.02); transition: border-color .15s, transform .15s; }
.pkg-card:hover { border-color: rgba(232,200,116,.4); transform: translateY(-2px); }
.pkg-card-img { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(135deg, rgba(232,200,116,.12), rgba(120,80,40,.16)); overflow: hidden; }
.pkg-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pkg-badge-vip { position: absolute; top: 10px; inset-inline-start: 10px; font-size: .62rem; font-weight: 800; padding: 4px 9px; border-radius: 20px; background: linear-gradient(120deg,#e8c874,#b7902f); color: #1a1206; }
.pkg-card-body { padding: 12px 14px 6px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pkg-card-t { font-weight: 800; font-size: .96rem; }
.pkg-card-mat { font-size: .74rem; color: var(--gold-3, #a98a3d); }
.pkg-card-desc { font-size: .76rem; color: var(--text-3); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pkg-chip { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.pkg-chip.retail { background: linear-gradient(120deg, rgba(232,200,116,.2), rgba(232,200,116,.08)); border-color: rgba(232,200,116,.4); color: var(--gold-1, #e8c874); }
.pkg-chip.tier { color: #8fd6a0; border-color: rgba(143,214,160,.35); background: rgba(143,214,160,.08); }
.pkg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); }
.pkg-mv-group { display: flex; gap: 4px; }
.pkg-mv { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); background: transparent; color: var(--text-2); cursor: pointer; transition: all .15s; }
.pkg-mv:hover:not(:disabled) { color: var(--gold-1, #e8c874); border-color: rgba(232,200,116,.5); }
.pkg-mv:disabled { opacity: .3; cursor: default; }
.pkg-card-acts { display: flex; gap: 4px; }
.pkg-add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; border: 2px dashed var(--border); border-radius: 16px; background: transparent; color: var(--text-3); cursor: pointer; font: inherit; font-size: .9rem; transition: all .15s; }
.pkg-add-card:hover { border-color: rgba(232,200,116,.5); color: var(--gold-1, #e8c874); }
.pkg-add-plus { font-size: 2rem; line-height: 1; font-weight: 300; }
.pkg-opt-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.02); transition: border-color .15s; }
.pkg-opt-card:hover { border-color: rgba(232,200,116,.35); }
.pkg-opt-ic { font-size: 1.35rem; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(232,200,116,.1); }
.pkg-opt-b { flex: 1; min-width: 0; }
.pkg-opt-t { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pkg-opt-choices { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pkg-opt-price { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.pk-in2 { width: 100%; height: 38px; border-radius: 10px; background: var(--bg-2, #0d0e14); border: 1px solid var(--border); color: var(--text-1); padding: 0 12px; font: inherit; }
.pk-logo2 { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px dashed rgba(232,200,116,.4); border-radius: 12px; }
.pk-logo-prev { width: 64px; height: 64px; border-radius: 10px; background: rgba(0,0,0,.3); display: grid; place-items: center; overflow: hidden; font-size: .7rem; color: var(--text-3); flex: none; }
.pk-logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.pk-m-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pk-sum { display: flex; flex-direction: column; gap: 2px; }
.pk-sum span { font-size: .8rem; color: var(--text-2); }
.pk-sum b { font-size: 1.05rem; }
.pk-m-btns { display: flex; gap: 8px; }
@media (max-width: 540px){ .pk-m-foot { flex-direction: column; align-items: stretch; } .pk-m-btns { justify-content: stretch; } .pk-m-btns .btn { flex: 1; } }

/* ============================================================
   Checkout
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 90px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; margin: 26px 0 36px; }
.step { display: flex; align-items: center; gap: 12px; flex: 1; }
.step .dot {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 2px solid var(--border-strong); color: var(--text-3); font-weight: 800; transition: all .4s var(--ease);
  background: var(--bg-2);
}
.step .dot svg { width: 20px; height: 20px; }
.step .lbl b { font-size: .95rem; display: block; color: var(--text-3); transition: color .3s; }
.step .lbl span { font-size: .76rem; color: var(--text-muted); }
.step .line { flex: 1; height: 2px; background: var(--border); margin: 0 14px; border-radius: 2px; transition: background .4s; }
.step.active .dot { border-color: var(--gold-3); background: var(--gold-grad); color: #20180a; box-shadow: var(--shadow-gold); }
.step.active .lbl b { color: var(--text-1); }
.step.done .dot { border-color: var(--gold-3); background: var(--gold-grad-soft); color: var(--gold-1); }
.step.done .line, .step.active .line { background: var(--gold-3); }

.checkout-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; margin-bottom: 18px; }
.checkout-panel h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.checkout-panel > p { color: var(--text-3); font-size: .88rem; margin-bottom: 20px; }
.checkout-step { display: none; }
.checkout-step.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Cart lines */
.co-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.co-line:last-child { border-bottom: none; }
.co-line .thumb { width: 84px; height: 84px; border-radius: 14px; background: radial-gradient(circle, #14141b, #070709); flex: none; overflow: hidden; }
.co-line .thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.co-line .info { flex: 1; min-width: 0; }
.co-line .info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.co-line .info .ven { font-size: .76rem; color: var(--gold-3); }
.co-line .price { font-weight: 800; white-space: nowrap; }
.co-line .rm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); border: 1px solid var(--border); transition: all .3s; flex: none; }
.co-line .rm:hover { color: #ff8b96; border-color: #ff8b96; }
/* per-line packaging summary in the cart */
.ci-pkg { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(232,200,116,.3); background: linear-gradient(180deg, rgba(232,200,116,.06), transparent); border-radius: 10px; }
.ci-pkg-i { font-size: 1rem; flex: none; }
.ci-pkg-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ci-pkg-b b { font-size: .8rem; font-weight: 700; }
.ci-pkg-b span { font-size: .72rem; color: var(--text-3); }
.ci-pkg-p { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ci-pkg-x { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; color: var(--text-3); border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: .8rem; }
.ci-pkg-x:hover { color: #ff8b96; border-color: #ff8b96; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; color: var(--text-2); font-weight: 600; }
.field label .req { color: var(--gold-3); }
.field input, .field select, .field textarea {
  height: 50px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-1); padding: 0 16px; font-size: .95rem; transition: border-color .3s, box-shadow .3s; width: 100%;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 90px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.field input.invalid, .field select.invalid { border-color: #e23744; box-shadow: 0 0 0 3px rgba(226,55,68,.14); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8983' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; }

/* Option cards (shipping / payment) */
.opt-cards { display: flex; flex-direction: column; gap: 12px; }
.opt-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); transition: all .3s; position: relative;
}
.opt-card:hover { border-color: var(--border-strong); }
.opt-card.active { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.opt-card .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; transition: all .3s; }
.opt-card.active .radio { border-color: var(--gold-3); }
.opt-card.active .radio::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-grad); }
.opt-card .oc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--gold-2); flex: none; }
.opt-card .oc-ic svg { width: 22px; height: 22px; }
.opt-card .oc-body { flex: 1; }
.opt-card .oc-body b { font-size: .95rem; display: block; }
.opt-card .oc-body span { font-size: .8rem; color: var(--text-3); }
.opt-card .oc-price { font-weight: 800; white-space: nowrap; }
.opt-card .oc-price.free { color: #8fd6a0; }

.checkout-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }

/* Order summary */
.summary {
  position: sticky; top: 100px; border: 1px solid rgba(201,162,39,.25); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 24px; overflow: hidden;
}
.summary h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 18px; }
.summary-items { max-height: 220px; overflow-y: auto; margin: 0 -8px 14px; padding: 0 8px; }
.summary-mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.summary-mini .t { width: 50px; height: 50px; border-radius: 10px; background: radial-gradient(circle, #14141b, #070709); overflow: hidden; flex: none; position: relative; }
.summary-mini .t img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; }
.summary-mini .t .q { position: absolute; top: -6px; left: -6px; background: var(--gold-grad); color: #20180a; font-size: .68rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bg-1); }
.summary-mini .nm { flex: 1; font-size: .82rem; min-width: 0; }
.summary-mini .pr { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.summary .srow { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-2); font-size: .9rem; }
.summary .srow.total { font-size: 1.25rem; font-weight: 800; color: var(--text-1); border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; }
.summary .srow.total b { color: var(--gold-1); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; height: 46px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 0 14px; font-size: .88rem; }
.summary .trust-mini { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .78rem; color: var(--text-3); margin-top: 16px; }
.summary .trust-mini svg { width: 15px; height: 15px; color: var(--gold-3); }

/* Empty */
.co-empty { text-align: center; padding: 70px 20px; }
.co-empty svg { width: 72px; height: 72px; color: var(--text-muted); margin-bottom: 18px; }
.co-empty h2 { justify-content: center; }

/* ============================================================
   Payment gateway (simulated)
   ============================================================ */
.gw-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px;
  background: radial-gradient(60vw 60vw at 50% -10%, rgba(201,162,39,.08), transparent 60%), var(--bg-0); }
.gw-card { width: min(460px, 100%); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); overflow: hidden; box-shadow: var(--shadow-soft); }
.gw-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.gw-head .bank { display: flex; align-items: center; gap: 12px; }
.gw-head .bank .logo-mark { width: 40px; height: 40px; }
.gw-head .bank b { font-size: 1rem; }
.gw-head .bank span { font-size: .72rem; color: var(--text-3); display: block; }
.gw-timer { font-size: .82rem; color: var(--text-2); display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; }
.gw-timer b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.gw-content { padding: 24px; }
.gw-amount { text-align: center; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 22px; }
.gw-amount span { font-size: .82rem; color: var(--text-3); }
.gw-amount b { font-size: 1.7rem; font-weight: 900; display: block; margin-top: 4px; }
.card-input { position: relative; }
.card-input .brand { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; }
.card-input .brand i { width: 22px; height: 14px; border-radius: 3px; display: block; }
.gw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gw-pin { display: flex; gap: 10px; align-items: center; }
.gw-pin .otp-img { height: 50px; border-radius: 10px; border: 1px solid var(--border); background: repeating-linear-gradient(45deg, #1a1a23, #1a1a23 6px, #14141b 6px, #14141b 12px); display: grid; place-items: center; padding: 0 14px; font-family: monospace; font-size: 1.1rem; letter-spacing: 4px; color: var(--gold-1); font-weight: 700; text-decoration: line-through; }
.gw-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.gw-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .76rem; color: var(--text-3); margin-top: 14px; }
.gw-secure svg { width: 15px; height: 15px; color: #8fd6a0; }

/* Success */
.success-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px;
  background: radial-gradient(60vw 50vw at 50% 0%, rgba(143,214,160,.1), transparent 60%), var(--bg-0); }
.success-card { width: min(560px, 100%); text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 50px 40px; box-shadow: var(--shadow-soft); }
.success-check { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center;
  background: rgba(143,214,160,.12); border: 2px solid rgba(143,214,160,.4); position: relative; }
.success-check svg { width: 48px; height: 48px; color: #8fd6a0; }
.success-check::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(143,214,160,.2); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(1.25); opacity: 0; } }
.success-card h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.success-card p { color: var(--text-2); margin-bottom: 26px; }
.success-receipt { text-align: right; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 26px; background: var(--surface); }
.success-receipt .rr { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; color: var(--text-2); }
.success-receipt .rr b { color: var(--text-1); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .3; } }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; z-index: 5; animation: confetti-fall linear forwards; }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .stepper .lbl { display: none; }
  .gw-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Shop / catalog
   ============================================================ */
.shop-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 90px; }
.filters { position: sticky; top: 100px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.filters-head b { font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.filters-head a { font-size: .8rem; color: var(--gold-3); cursor: pointer; }
.fgroup { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: none; }
.fgroup h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; color: var(--text-2); font-size: .9rem; transition: color .2s; }
.fcheck:hover { color: var(--text-1); }
.fcheck input { appearance: none; width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid var(--border-strong); flex: none; transition: all .2s; position: relative; }
.fcheck input:checked { background: var(--gold-grad); border-color: var(--gold-3); }
.fcheck input:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #20180a; font-size: .8rem; font-weight: 900; }
.fcheck .cnt { margin-inline-start: auto; font-size: .76rem; color: var(--text-muted); }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-inputs input { width: 100%; height: 42px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 0 12px; font-size: .85rem; text-align: center; }
.price-inputs span { color: var(--text-muted); }
.price-range { width: 100%; accent-color: var(--gold-3); }
.ftoggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; color: var(--text-2); font-size: .9rem; cursor: pointer; }
.switch { width: 42px; height: 24px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--border-strong); position: relative; transition: all .3s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); transition: all .3s; }
.ftoggle.on .switch { background: var(--gold-grad); border-color: transparent; }
.ftoggle.on .switch::after { right: calc(100% - 20px); background: #20180a; }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.shop-bar .count { color: var(--text-3); font-size: .9rem; }
.shop-bar .count b { color: var(--text-1); }
.shop-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-search { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 9px 13px; width: 230px; max-width: 50vw; }
.shop-search input { background: none; border: none; color: var(--text-1); outline: none; flex: 1; font-size: .88rem; }
.shop-sort { height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); padding: 0 38px 0 14px; font-size: .88rem; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8983' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; }
.filters-toggle { display: none; }
.shop-empty { text-align: center; padding: 70px 20px; color: var(--text-3); grid-column: 1 / -1; }
.shop-empty svg { width: 64px; height: 64px; color: var(--text-muted); margin-bottom: 16px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px; background: var(--gold-grad-soft); border: 1px solid rgba(201,162,39,.3); color: var(--gold-1); font-size: .8rem; cursor: pointer; }
.active-chip svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 0 0 auto; width: min(320px,86vw); z-index: 800; border-radius: 0; transform: translateX(100%); transition: transform .4s var(--ease); top: 0; height: 100vh; overflow-y: auto; }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
}

/* ============================================================
   Order tracking
   ============================================================ */
.track-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; padding-bottom: 90px; }
.track-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; }
.track-id { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.track-id h2 { font-size: 1.25rem; font-weight: 800; }
.track-id .code { font-family: monospace; font-size: 1rem; color: var(--gold-1); background: var(--gold-grad-soft); border: 1px solid rgba(201,162,39,.3); padding: 6px 14px; border-radius: 10px; }

.timeline { margin-top: 28px; position: relative; padding-inline-start: 8px; }
.tl-step { display: flex; gap: 18px; padding-bottom: 30px; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ''; position: absolute; top: 34px; bottom: -4px; right: 16px; width: 2px; background: var(--border); }
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--gold-grad); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--bg-2); color: var(--text-3); z-index: 1; transition: all .4s; }
.tl-dot svg { width: 17px; height: 17px; }
.tl-step.done .tl-dot { border-color: var(--gold-3); background: var(--gold-grad); color: #20180a; }
.tl-step.active .tl-dot { border-color: var(--gold-3); color: var(--gold-1); box-shadow: 0 0 0 5px rgba(201,162,39,.14); animation: tlpulse 2s ease-out infinite; }
@keyframes tlpulse { 0%,100% { box-shadow: 0 0 0 5px rgba(201,162,39,.14); } 50% { box-shadow: 0 0 0 9px rgba(201,162,39,.05); } }
.tl-body { padding-top: 4px; }
.tl-body b { font-size: 1rem; display: block; }
.tl-body span { font-size: .82rem; color: var(--text-3); }
.tl-step:not(.done):not(.active) .tl-body b { color: var(--text-3); }

/* compact horizontal lifecycle stepper (custom-order cards in the account page) */
.cstep { margin: 10px 0 14px; }
.cstep-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.cstep-bar i { display: block; height: 100%; background: var(--gold-grad); transition: width .5s ease; }
.cstep-row { display: flex; gap: 4px; margin-top: 9px; overflow-x: auto; padding-bottom: 2px; }
.cstep-item { flex: 1 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.cstep-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; border: 2px solid var(--border-strong); background: var(--bg-2); color: var(--text-3); transition: all .35s; }
.cstep-item b { font-size: .67rem; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.cstep-item.done .cstep-dot { border-color: var(--gold-3); background: var(--gold-grad); color: #20180a; }
.cstep-item.done b { color: var(--text-2); }
.cstep-item.now .cstep-dot { border-color: var(--gold-3); color: var(--gold-1); box-shadow: 0 0 0 4px rgba(201,162,39,.14); }
.cstep-item.now b { color: var(--gold-1); font-weight: 800; }

.track-map { height: 200px; border-radius: 14px; overflow: hidden; position: relative; margin-top: 20px; border: 1px solid var(--border);
  background:
    linear-gradient(rgba(201,162,39,.06), transparent),
    repeating-linear-gradient(0deg, var(--bg-2), var(--bg-2) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, var(--bg-2), var(--bg-2) 1px, transparent 1px, transparent 28px), var(--bg-1); }
.track-map .route { position: absolute; inset: 0; }
.track-map .pin { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 0 5px rgba(201,162,39,.18); }
.track-map .truck { position: absolute; top: 50%; left: 40%; color: var(--gold-1); animation: drive 4s ease-in-out infinite; }
@keyframes drive { 50% { transform: translateX(-30px); } }

@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Auth (login / register / vendor)
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual {
  position: relative; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
  background-size: cover; background-position: center; overflow: hidden; isolation: isolate;
}
.auth-visual::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(7,7,10,.92), rgba(7,7,10,.55) 60%, rgba(7,7,10,.3)); }
.auth-visual .logo b { font-size: 1.3rem; }
.auth-visual .av-mid { max-width: 440px; }
.auth-visual .av-mid h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 900; line-height: 1.25; margin-bottom: 16px; }
.auth-visual .av-mid p { color: var(--text-2); font-size: 1.02rem; line-height: 1.9; }
.av-benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.av-benefit { display: flex; align-items: center; gap: 13px; color: var(--text-1); font-size: .96rem; }
.av-benefit .bi { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-grad-soft); border: 1px solid rgba(201,162,39,.3); display: grid; place-items: center; color: var(--gold-2); flex: none; }
.av-benefit .bi svg { width: 20px; height: 20px; }
.av-foot { display: flex; gap: 26px; color: var(--text-3); font-size: .82rem; }
.av-foot b { color: var(--gold-1); font-size: 1.2rem; display: block; }

.auth-panel { display: grid; place-items: center; padding: 40px 28px; background: var(--bg-0); position: relative; }
.auth-card { width: min(440px, 100%); }
.auth-card .back { position: absolute; top: 26px; left: 28px; color: var(--text-3); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.auth-card .back:hover { color: var(--gold-1); }
.auth-card > h1 { font-size: 1.7rem; font-weight: 900; margin-bottom: 6px; }
.auth-card > .sub { color: var(--text-3); font-size: .92rem; margin-bottom: 26px; }
.auth-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.auth-tab { flex: 1; padding: 11px; border-radius: 10px; font-size: .9rem; font-weight: 700; color: var(--text-3); transition: all .3s; text-align: center; }
.auth-tab.active { background: var(--gold-grad); color: #20180a; }
.auth-form { display: none; animation: fadeUp .5s var(--ease); }
.auth-form.active { display: block; }
.pwd { position: relative; }
.pwd .toggle { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.pwd .toggle:hover { color: var(--gold-1); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 20px; flex-wrap: wrap; gap: 8px; }
.auth-row a { color: var(--gold-3); font-size: .85rem; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .8rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.otp-boxes { display: flex; gap: 10px; direction: ltr; justify-content: center; margin: 8px 0 4px; }
.otp-boxes input { width: 52px; height: 58px; text-align: center; font-size: 1.4rem; font-weight: 800; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); }
.otp-boxes input:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.auth-switch { text-align: center; color: var(--text-3); font-size: .9rem; margin-top: 22px; }
.auth-switch a { color: var(--gold-1); font-weight: 700; cursor: pointer; }
.vendor-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 20px; }
.vendor-perk { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.vendor-perk svg { width: 16px; height: 16px; color: var(--gold-2); flex: none; }

@media (max-width: 880px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .vendor-perks { grid-template-columns: 1fr; }
}

/* Custom-order mode tabs (2D / 3D) */
.mode-tabs { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 5px; max-width: 440px; margin-bottom: 28px; }
.mode-tab { flex: 1; padding: 12px; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--text-3); transition: all .3s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.mode-tab.active { background: var(--gold-grad); color: #20180a; }
.mode-tab.active span { color: #20180a !important; }

/* Breadcrumb / page hero */
.page-hero { padding: 50px 0 30px; position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-3); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-1); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.01em; }
.page-hero p { color: var(--text-3); max-width: 600px; margin-top: 12px; }

/* ============================================================
   Custom builder
   ============================================================ */
.builder { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; padding-bottom: 90px; }
.builder-preview {
  position: sticky; top: 100px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(201,162,39,.1), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 30px; overflow: hidden;
}
.bp-stage { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; }
.bp-stage::before { content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.18), transparent 65%); filter: blur(20px); }
#builderKnife { width: 86%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); animation: float 6s ease-in-out infinite; position: relative; z-index: 2; }
.bp-360 { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-3); border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; background: var(--surface); }
.bp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.bp-spec .item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.bp-spec .item span { font-size: .76rem; color: var(--text-3); display: block; }
.bp-spec .item b { font-size: .95rem; }

.builder-config { display: flex; flex-direction: column; gap: 26px; }
.cfg-block { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.cfg-block > h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.cfg-block > h3 i { width: 26px; height: 26px; border-radius: 8px; background: var(--gold-grad); color: #20180a; display: grid; place-items: center; font-style: normal; font-size: .82rem; font-weight: 800; }
.cfg-block > p { font-size: .84rem; color: var(--text-3); margin-bottom: 16px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); transition: all .3s; position: relative;
}
.opt:hover { border-color: var(--border-strong); }
.opt.active { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.opt.active::after { content: '✓'; position: absolute; top: 8px; left: 10px; color: var(--gold-2); font-size: .8rem; font-weight: 800; }
.opt .sw { width: 34px; height: 34px; border-radius: 9px; flex: none; border: 1px solid rgba(255,255,255,.15); }
.opt .lbl b { font-size: .9rem; display: block; }
.opt .lbl span { font-size: .76rem; color: var(--text-3); }
.opt .plus { margin-inline-start: auto; font-size: .76rem; color: var(--gold-3); font-weight: 700; }
.opt.opt-up { border-style: dashed; background: transparent; }
.opt.opt-up:hover { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.opt.opt-up .sw.up { display: grid; place-items: center; font-size: 1.1rem; color: var(--gold-2); background: var(--gold-grad-soft); border-color: rgba(232,200,116,.35); }

.engrave-field { display: flex; gap: 10px; }
.engrave-field input {
  flex: 1; height: 50px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-1); padding: 0 16px; font-size: .95rem;
}
.engrave-field input:focus { outline: none; border-color: var(--gold-3); }
.engrave-fonts { display: flex; gap: 8px; margin-top: 12px; }
.engrave-fonts button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: .9rem; color: var(--text-2); transition: all .3s; }
.engrave-fonts button.active { border-color: var(--gold-3); color: var(--gold-1); background: var(--gold-grad-soft); }

/* ===== pro multi-step configurator ===== */
.preset-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.preset-row .preset-lbl { font-size: .8rem; color: var(--text-3); }
.preset-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .25s; }
.preset-chip:hover { border-color: var(--gold-3); color: var(--gold-1); }
.step-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 16px; scrollbar-width: thin; }
.step-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-3); font-family: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .25s; }
.step-chip i { width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); display: grid; place-items: center; font-style: normal; font-size: .74rem; font-weight: 800; }
.step-chip.done { color: var(--text-2); } .step-chip.done i { background: rgba(143,214,160,.18); color: #8fd6a0; }
.step-chip.on { border-color: var(--gold-3); color: var(--gold-1); background: var(--gold-grad-soft); }
.step-chip.on i { background: var(--gold-grad); color: #20180a; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.cfg-hint { font-size: .8rem; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.opt.addon .chk { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--text-3); }
.opt.addon.active .chk { background: var(--gold-grad); color: #20180a; }
.opt.addon.active::after { display: none; }
/* dimension slider */
.num-field { display: flex; align-items: center; gap: 16px; }
.num-field input[type=range] { flex: 1; accent-color: var(--gold-3); height: 6px; }
.num-read { font-size: .95rem; color: var(--text-2); white-space: nowrap; }
.num-read b { font-size: 1.4rem; color: var(--gold-1); font-weight: 800; }
/* engraving step */
.eng-field input[type=text] { width: 100%; height: 50px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 0 16px; font-size: 1rem; }
.eng-field input[type=text]:focus { outline: none; border-color: var(--gold-3); }
.eng-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.eng-row > span { font-size: .82rem; color: var(--text-3); }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font-family: inherit; font-size: .85rem; cursor: pointer; transition: all .25s; }
.pill.on { border-color: var(--gold-3); color: var(--gold-1); background: var(--gold-grad-soft); }

/* ===== sectioned 3D builder: large central viewer + blade/handle accordion sections ===== */
/* two-column builder: accordion options (left) + floating/sticky preview (right, RTL: first track = right) */
#mode3d .builder { display: grid; grid-template-columns: clamp(300px, 33%, 420px) minmax(0, 1fr); gap: 22px 26px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 0 4px 90px; }
.viewer3d { position: sticky; top: 80px; align-self: start; width: 100%; height: min(52vh, 430px); background: radial-gradient(circle at 50% 38%, rgba(201,162,39,.10), transparent 60%), var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.viewer3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.viewer3d canvas:active { cursor: grabbing; }
.viewer3d .v-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-3); border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; background: rgba(20,20,26,.6); backdrop-filter: blur(6px); }
.viewer3d .v-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: .9rem; }
.builder-config { min-width: 0; max-width: none; margin: 0; }
/* two-column part body: selections on one side, transform controls on the other */
.pb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; align-items: start; }
@media (max-width: 1150px) { .pb-cols { grid-template-columns: 1fr; } }
.pb-col .pb-lbl:first-child { margin-top: 4px; }

/* stacked accordion sections */
.part-sec { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 14px; overflow: hidden; }
.part-sec.open { border-color: var(--gold-3); }
.part-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; user-select: none; }
.part-head .ph-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--gold-grad); color: #20180a; display: grid; place-items: center; font-weight: 800; font-style: normal; font-size: .9rem; flex: none; }
.part-head h3 { font-size: 1.02rem; font-weight: 700; margin: 0; flex: 1; }
.part-head .ph-cur { font-size: .82rem; color: var(--text-3); }
.part-head .ph-tog { transition: transform .25s; color: var(--text-3); }
.part-sec.open .ph-tog { transform: rotate(180deg); }
.part-body { padding: 0 18px 18px; display: none; }
.part-sec.open .part-body { display: block; }
.part-body .pb-lbl { font-size: .82rem; color: var(--text-3); font-weight: 700; margin: 14px 0 9px; }
.part-body .pb-col > .pb-lbl:first-child { margin-top: 2px; }
@media (max-width: 900px) { #mode3d .builder { grid-template-columns: 1fr; } .viewer3d { position: static; height: min(44vh, 400px); } }

/* transform controls — a tidy card of labelled sliders, each with a live value */
.xf-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.xf-head { font-size: .76rem; color: var(--gold-2); font-weight: 800; margin: 12px 0 6px; letter-spacing: .2px; }
.xf-head:first-child { margin-top: 0; }
.xf-sub { display: grid; gap: 8px; }
.xf-row { display: grid; grid-template-columns: 60px 1fr 66px; align-items: center; gap: 12px; margin: 0; }
.xf-row > span { font-size: .82rem; color: var(--text-2); }
.xf-row input[type=range] { accent-color: var(--gold-3); height: 6px; width: 100%; }
.xf-val { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.xf-num { width: 46px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; color: var(--gold-1); font: 700 .82rem/1 inherit; text-align: center; padding: 5px 3px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; transition: border-color .15s, box-shadow .15s; }
.xf-num:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 2px rgba(201,162,39,.20); }
.xf-val i { font-size: .72rem; color: var(--gold-2); font-style: normal; min-width: 7px; text-align: left; }
.xf-reset { margin-top: 14px; width: 100%; background: none; border: 1px solid var(--border); color: var(--text-3); border-radius: 9px; padding: 8px 10px; font-family: inherit; font-size: .8rem; cursor: pointer; transition: all .2s; }
.xf-reset:hover { border-color: var(--gold-3); color: var(--gold-1); }

/* texture swatch chips */
.tex-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.tex-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); cursor: pointer; font-size: .84rem; transition: all .2s; }
.tex-chip:hover { border-color: var(--border-strong); }
.tex-chip.on { border-color: var(--gold-3); background: var(--gold-grad-soft); color: var(--gold-1); }
.tex-chip .tsw { width: 22px; height: 22px; border-radius: 7px; border: 1px solid rgba(255,255,255,.18); flex: none; }
.tex-chip .tsw.native { background: repeating-linear-gradient(45deg, #555 0 4px, #888 4px 8px); }
.tex-chip .tsw.img { background-size: cover !important; background-position: center !important; border-color: rgba(201,162,39,.55); }
.tex-chip .tprice { font-size: .72rem; color: var(--gold-3); font-weight: 700; }

/* review step */
.review { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 14px; }
.rev-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.rev-row span { color: var(--text-3); min-width: 110px; }
.rev-row b { flex: 1; font-weight: 600; }
.rev-row i { font-style: normal; color: var(--gold-2); font-size: .82rem; white-space: nowrap; }
/* maker picker (phase D) */
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.maker-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); padding: 12px; cursor: pointer; transition: all .25s; }
.maker-card:hover { border-color: var(--border-strong); }
.maker-card.on { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.maker-card b { font-size: .9rem; display: block; }
.maker-card span { font-size: .76rem; color: var(--text-3); }
.maker-card .mc-skill { display: inline-block; margin-top: 5px; font-size: .68rem; color: var(--gold-2); }

/* build-mode chooser: workshop tender ↔ direct chosen workshop */
.bmode-block { margin-top: 14px; }
.bmode-block > b { display: block; margin-bottom: 8px; }
.bmode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bmode-card { text-align: right; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); padding: 12px 14px; cursor: pointer; transition: all .25s; font-family: inherit; }
.bmode-card:hover { border-color: var(--border-strong); }
.bmode-card.on { border-color: var(--gold-3); background: var(--gold-grad-soft); box-shadow: 0 0 0 1px var(--gold-3) inset; }
.bmode-card b { display: block; font-size: .9rem; color: var(--text-1); margin-bottom: 3px; }
.bmode-card span { display: block; font-size: .76rem; color: var(--text-3); line-height: 1.6; }
.maker-need .maker-grid { outline: 1px dashed rgba(255,139,150,.5); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 560px) { .bmode-row { grid-template-columns: 1fr; } }

/* GLB 3D-file upload + preview */
.glb-stage { position: relative; width: 100%; height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(120% 120% at 50% 0%, rgba(201,162,39,.08), transparent 60%), var(--bg-2); }
.glb-stage canvas { width: 100%; height: 100%; display: block; }
.glb-hint { position: absolute; inset-inline-start: 12px; bottom: 10px; font-size: .72rem; color: var(--text-3); background: rgba(0,0,0,.35); padding: 3px 9px; border-radius: 20px; pointer-events: none; }
.glb-file { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--gold-3); border-radius: 12px; background: var(--gold-grad-soft); font-size: .85rem; }
.glb-file svg { color: var(--gold-1); flex-shrink: 0; }
.glb-file span { flex: 1; color: var(--text-2); }
.glb-file b { color: var(--text-1); }
.glb-file button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: #ff8b96; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.glb-up { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--gold-1); }

/* quantity stepper (batch custom orders) */
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); margin-top: 4px; font-size: .9rem; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.qty-step button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--gold-1); font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.qty-step button:hover { background: var(--gold-grad-soft); }
.qty-step input { width: 52px; height: 36px; border: 0; border-inline: 1px solid var(--border); background: transparent; color: var(--text-1); text-align: center; font-family: inherit; font-size: .95rem; font-weight: 700; }

.summary-card {
  border: 1px solid rgba(201,162,39,.3); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 15px 18px; margin-top: 18px;
}
.summary-row { display: flex; justify-content: space-between; padding: 3.5px 0; font-size: .84rem; color: var(--text-2); }
.summary-row.total { font-size: 1.08rem; font-weight: 800; color: var(--text-1); border-top: 1px solid var(--border); margin-top: 6px; padding-top: 9px; }
.summary-card .btn { width: 100%; margin-top: 11px; }
.summary-card .btn-lg { padding: 12px 20px; font-size: .92rem; }
.summary-note { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--text-3); margin-top: 8px; justify-content: center; }

/* ============================================================
   Vendor booth
   ============================================================ */
.vbanner { height: 280px; border-radius: var(--radius-lg); background-size: cover; background-position: center; position: relative; overflow: hidden; margin-top: 20px; border: 1px solid var(--border); }
.vbanner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-0) 5%, transparent 60%); }
.vhead { display: flex; align-items: flex-end; gap: 24px; margin-top: -60px; position: relative; z-index: 2; padding: 0 24px; flex-wrap: wrap; }
.vhead-logo { width: 130px; height: 130px; border-radius: 28px; border: 4px solid var(--bg-0); object-fit: cover; background: var(--bg-3); box-shadow: var(--shadow-soft); flex: none; }
.vhead-info { flex: 1; min-width: 240px; padding-bottom: 8px; }
.vhead-info h1 { font-size: 1.9rem; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.vhead-info .vverify { color: var(--gold-2); }
.vhead-info .vverify svg { width: 24px; height: 24px; }
.vhead-stats { display: flex; gap: 28px; margin-top: 12px; flex-wrap: wrap; }
.vhead-stats .st b { font-size: 1.2rem; font-weight: 800; }
.vhead-stats .st span { font-size: .8rem; color: var(--text-3); }
.vhead-actions { display: flex; gap: 10px; padding-bottom: 12px; }
.vtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: 36px 0 30px; overflow-x: auto; }
.vtab { padding: 14px 20px; font-weight: 600; color: var(--text-3); border-bottom: 2px solid transparent; white-space: nowrap; transition: all .3s; }
.vtab.active, .vtab:hover { color: var(--gold-1); border-bottom-color: var(--gold-3); }
.vtab .count { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 6px; margin-inline-start: 6px; border-radius: 20px; background: var(--gold-grad); color: #15110a; font-size: .7rem; font-weight: 800; line-height: 1; vertical-align: middle; }
.vstory-row { display: flex; gap: 18px; padding: 4px 0 26px; overflow-x: auto; }
.vstory-row::-webkit-scrollbar { display: none; }

/* ============================================================
   Product detail
   ============================================================ */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 24px 0 60px; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main {
  aspect-ratio: 1; border-radius: var(--radius-lg); border: 1px solid var(--border); display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 42%, #0f0f15, #050507); position: relative; overflow: hidden;
}
.pd-main img { width: 96%; mix-blend-mode: screen; filter: contrast(1.06) saturate(1.04); transition: transform .6s var(--ease); }
.pd-main:hover img { transform: scale(1.08) rotate(-3deg); }
.pd-zoom { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-2); }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pd-thumb { width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--border); display: grid; place-items: center; background: radial-gradient(circle, #0f0f15, #050507); cursor: pointer; transition: all .3s; overflow: hidden; }
.pd-thumb img { width: 96%; mix-blend-mode: screen; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--gold-3); }
.pd-vendor-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 18px; }
.pd-vendor-chip img { width: 34px; height: 34px; border-radius: 50%; }
.pd-vendor-chip b { font-size: .9rem; }
.pd-vendor-chip span { font-size: .76rem; color: var(--gold-3); }
.pd-info h1 { font-size: 2rem; font-weight: 900; line-height: 1.3; }
.pd-meta { display: flex; align-items: center; gap: 16px; margin: 16px 0; color: var(--text-3); font-size: .88rem; flex-wrap: wrap; }
.pd-meta .stars { color: var(--gold-2); letter-spacing: 2px; }
.pd-price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pd-price-row .now { font-size: 2rem; font-weight: 900; }
.pd-price-row del { color: var(--text-muted); }
.pd-price-row .save { background: rgba(226,55,68,.15); color: #ff8b96; padding: 5px 12px; border-radius: 8px; font-size: .82rem; font-weight: 700; margin-inline-start: auto; }
.pd-options { display: flex; flex-direction: column; gap: 18px; margin: 24px 0; }
.pd-opt-label { font-size: .85rem; color: var(--text-2); margin-bottom: 10px; font-weight: 600; }
.pd-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-chip { padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); font-size: .88rem; cursor: pointer; transition: all .3s; }
.pd-chip.active { border-color: var(--gold-3); background: var(--gold-grad-soft); color: var(--gold-1); }
.pd-buy { display: flex; gap: 12px; align-items: center; margin: 26px 0; }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pd-feature { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); }
.pd-feature svg { width: 24px; height: 24px; color: var(--gold-3); flex: none; }
.pd-feature b { font-size: .88rem; display: block; }
.pd-feature span { font-size: .76rem; color: var(--text-3); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; }
.spec-table td:first-child { color: var(--text-3); width: 40%; }
.spec-table td:last-child { font-weight: 600; }

/* ============================================================
   Admin panel
   ============================================================ */
.admin { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-1); border-inline-end: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-logo { display: flex; align-items: center; gap: 12px; padding: 6px 10px 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav .sec-label { font-size: .72rem; color: var(--text-muted); letter-spacing: .12em; padding: 18px 14px 8px; }
.admin-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px; color: var(--text-2); font-size: .92rem; font-weight: 500; transition: all .25s; cursor: pointer; }
.admin-link svg { width: 20px; height: 20px; flex: none; }
.admin-link:hover { background: var(--surface); color: var(--text-1); }
.admin-link.active { background: var(--gold-grad-soft); color: var(--gold-1); border: 1px solid rgba(201,162,39,.25); }
.admin-link .count { margin-inline-start: auto; background: var(--surface-2); font-size: .72rem; padding: 2px 8px; border-radius: 20px; color: var(--text-3); }
.admin-side .upgrade { margin-top: auto; border-radius: 16px; padding: 18px; background: var(--gold-grad-soft); border: 1px solid rgba(201,162,39,.25); }
.admin-side .upgrade b { font-size: .92rem; }
.admin-side .upgrade p { font-size: .78rem; color: var(--text-3); margin: 6px 0 12px; }

.admin-main { padding: 0; min-width: 0; background: var(--bg-0); }
.admin-top { height: 72px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 18px; padding: 0 30px; position: sticky; top: 0; background: rgba(8,8,12,.8); backdrop-filter: blur(16px); z-index: 20; }
.admin-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; width: 320px; max-width: 40vw; }
.admin-search input { background: none; border: none; color: var(--text-1); outline: none; flex: 1; font-size: .9rem; }
.admin-top .spacer { flex: 1; }
.admin-content { padding: 30px; }
.admin-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-h h1 { font-size: 1.7rem; font-weight: 800; }
.admin-h p { color: var(--text-3); font-size: .9rem; margin-top: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 22px; position: relative; overflow: hidden; }
.stat-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-grad-soft); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 16px; }
.stat-card .ic svg { width: 22px; height: 22px; }
.stat-card .val { font-size: 1.8rem; font-weight: 800; }
.stat-card .lbl { font-size: .84rem; color: var(--text-3); margin-top: 2px; }
.stat-card .trend { position: absolute; top: 22px; left: 22px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.trend.up { background: rgba(143,214,160,.14); color: #8fd6a0; }
.trend.down { background: rgba(226,55,68,.14); color: #ff8b96; }
.stat-spark { display: flex; align-items: flex-end; gap: 3px; height: 36px; margin-top: 14px; }
.stat-spark i { flex: 1; background: var(--gold-grad); border-radius: 3px 3px 0 0; opacity: .5; }

.panel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-head h3 { font-size: 1.05rem; font-weight: 700; }
.panel-head a { font-size: .82rem; color: var(--gold-3); }
.panel-body { padding: 8px 22px 22px; }

.chart { height: 220px; display: flex; align-items: flex-end; gap: 10px; padding: 20px 0; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart .bar .fill { width: 100%; background: var(--gold-grad); border-radius: 8px 8px 0 0; min-height: 4px; transition: height 1s var(--ease); position: relative; }
.chart .bar .fill::after { content: attr(data-v); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--text-3); white-space: nowrap; }
.chart .bar span { font-size: .74rem; color: var(--text-3); }

table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: right; font-size: .76rem; color: var(--text-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .88rem; }
/* highlight the row, not each cell: a .gold-text cell paints its gradient THROUGH the glyphs
   via background-clip:text, so overriding its td background turns the text into the flat
   surface color = invisible. Put the hover bg on the row (shows behind the still-golden text)
   and on non-gold cells as a fallback for browsers that ignore <tr> backgrounds. */
.admin-table tbody tr:hover { background: var(--surface); }
.admin-table tr:hover td:not(.gold-text) { background: var(--surface); }
.admin-table .prod { display: flex; align-items: center; gap: 12px; }
.admin-table .prod img { width: 44px; height: 44px; border-radius: 10px; background: #08080b; object-fit: cover; }
.tag { padding: 4px 11px; border-radius: 20px; font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.tag.green { background: rgba(143,214,160,.14); color: #8fd6a0; }
.tag.gold { background: var(--gold-grad-soft); color: var(--gold-2); }
.tag.red { background: rgba(226,55,68,.14); color: #ff8b96; }
.tag.blue { background: rgba(127,182,214,.14); color: #7fb6d6; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.act-list { display: flex; flex-direction: column; }
.act-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.act-item:last-child { border-bottom: none; }
.act-item .av { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.act-item .tx b { font-size: .88rem; }
.act-item .tx span { font-size: .78rem; color: var(--text-3); display: block; }
.act-item .time { margin-inline-start: auto; font-size: .74rem; color: var(--text-muted); white-space: nowrap; }

.admin-burger { display: none; }

/* Admin modal */
.amodal-overlay { position: fixed; inset: 0; background: rgba(4,4,7,.65); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all .3s; z-index: 200; }
.amodal-overlay.open { opacity: 1; visibility: visible; }
.amodal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: all .3s; pointer-events: none; }
.amodal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.amodal-card { width: min(580px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.amodal.open .amodal-card { transform: none; }
.amodal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-2); z-index: 1; }
.amodal-head h3 { font-size: 1.15rem; font-weight: 800; }
.amodal-body { padding: 22px 24px; }
.amodal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 4px 24px 22px; }
.img-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.img-pick label { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; background: radial-gradient(circle,#14141b,#070709); display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: all .2s; }
.img-pick label.sel { border-color: var(--gold-3); box-shadow: 0 0 0 2px rgba(201,162,39,.3); }
.img-pick img { width: 92%; mix-blend-mode: screen; }
.img-pick input { display: none; }
.img-pick .img-up { gap: 4px; border-style: dashed; border-color: rgba(201,162,39,.45); background: var(--surface); color: var(--gold-2); font-size: .72rem; font-weight: 700; }
.img-pick .img-up:hover { border-color: var(--gold-3); color: var(--gold-1); }
.img-pick .img-up.uploading { color: var(--text-3); border-color: var(--border-strong); pointer-events: none; }
.img-pick .img-up.uploading svg { display: none; }
.img-pick .img-up.uploading::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--gold-3); border-radius: 50%; animation: wkspin .7s linear infinite; }
@keyframes wkspin { to { transform: rotate(360deg); } }

/* ---- Admin: product gallery manager ---- */
.gallery-mgr { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.g-tile { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(circle,#14141b,#070709); cursor: pointer; transition: all .2s; }
.g-tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.g-tile:hover { border-color: var(--gold-3); }
.g-tile.cover { border-color: var(--gold-3); box-shadow: 0 0 0 2px rgba(201,162,39,.35); }
.g-badge { position: absolute; bottom: 4px; left: 4px; background: var(--gold-grad); color: #1a1408; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; pointer-events: none; }
.g-del { position: absolute; top: 3px; right: 3px; width: 21px; height: 21px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; border: none; cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: all .2s; }
.g-tile:hover .g-del { opacity: 1; }
.g-del:hover { background: #e0566a; }
.g-empty { color: var(--text-3); font-size: .84rem; padding: 20px; border: 1px dashed var(--border); border-radius: 12px; width: 100%; text-align: center; }
.gallery-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g-up { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px dashed rgba(201,162,39,.5); border-radius: 11px; color: var(--gold-2); font-size: .84rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.g-up:hover { border-color: var(--gold-3); color: var(--gold-1); }
.g-up svg { width: 17px; }
.g-up.loading { opacity: .6; pointer-events: none; }
.g-presets-toggle { padding: 9px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-2); font-size: .84rem; cursor: pointer; transition: all .2s; }
.g-presets-toggle:hover { border-color: var(--gold-3); color: var(--gold-1); }
.g-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 12px; }
.g-preset { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: radial-gradient(circle,#14141b,#070709); cursor: pointer; padding: 0; transition: all .2s; }
.g-preset img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.g-preset:hover { border-color: var(--gold-3); }
@media (max-width: 560px) { .g-presets { grid-template-columns: repeat(4, 1fr); } }

/* ---- Admin: professional products manager ---- */
.prod-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 16px; }
.pstat { flex: 1; min-width: 128px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.pstat span { font-size: .73rem; color: var(--text-3); }
.pstat b { font-size: 1.25rem; font-weight: 800; }
.pstat.ok b { color: #8fd6a0; }
.pstat.warn b { color: #e8c874; }
.pstat.danger b { color: #ff8b96; }
.pstat.val b { color: var(--gold-1); font-size: 1.04rem; }
.prod-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ptb-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 0 12px; height: 42px; flex: 1; min-width: 190px; }
.ptb-search svg { width: 17px; color: var(--text-3); flex: none; }
.ptb-search input { background: none; border: none; color: var(--text-1); outline: none; flex: 1; font-size: .9rem; font-family: inherit; }
.ptb-sel { height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); padding: 0 30px 0 12px; font-size: .84rem; font-family: inherit; cursor: pointer; }
.ptb-sel:focus { outline: none; border-color: var(--gold-3); }
.prod-table th, .prod-table td { vertical-align: middle; }
.prod-table tr.rowsel { background: var(--gold-grad-soft); }
.acheck { width: 17px; height: 17px; accent-color: #c9a227; cursor: pointer; }
.pbadge { font-size: .62rem; font-weight: 800; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.pbadge.new { background: rgba(80,170,255,.16); color: #7cc1ff; }
.pbadge.off { background: rgba(143,214,160,.16); color: #8fd6a0; }
.pbadge.hand { background: var(--gold-grad-soft); color: var(--gold-2); }
.stock-adj { display: inline-flex; align-items: center; gap: 6px; }
.stock-adj button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 1.1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.stock-adj button:hover { border-color: var(--gold-3); color: var(--gold-1); }
.stock-adj span { min-width: 30px; text-align: center; font-weight: 700; }
.stock-adj .st-warn { color: #e8c874; }
.stock-adj .st-danger { color: #ff8b96; }
.status-pill { font-size: .74rem; font-weight: 700; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); cursor: pointer; transition: all .2s; }
.status-pill.on { background: rgba(143,214,160,.13); color: #8fd6a0; border-color: rgba(143,214,160,.35); }
.status-pill:hover { border-color: var(--gold-3); }
.row-actions { display: flex; gap: 4px; }
.row-actions .icon-btn { width: 32px; height: 32px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; background: var(--gold-grad-soft); border: 1px solid rgba(201,162,39,.3); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 12px; font-size: .85rem; }
.bulk-bar .icon-btn { width: 32px; height: 32px; }

/* ---- Admin: custom-build orders + craft skills ---- */
.pbadge.custom { background: var(--gold-grad-soft); color: var(--gold-1); border: 1px solid rgba(201,162,39,.35); }
.pbadge.c2d { background: rgba(80,170,255,.14); color: #7cc1ff; }
.pbadge.c3d { background: rgba(186,120,255,.14); color: #cf9bff; }
.skill-chip { display: inline-block; font-style: normal; font-size: .68rem; font-weight: 700; padding: 2px 9px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.skill-chip.hit { background: var(--gold-grad-soft); border-color: rgba(201,162,39,.45); color: var(--gold-1); }
.vassign { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; transition: all .2s; }
.vassign img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.vassign .vi { flex: 1; min-width: 0; }
.vassign .vi b { font-size: .92rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vassign .vi > span { display: block; font-size: .74rem; color: var(--text-3); margin: 3px 0 6px; }
.vassign .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.vassign.match { border-color: rgba(201,162,39,.5); background: linear-gradient(135deg, rgba(201,162,39,.06), transparent); }

/* ---- Admin: order modal status stepper ---- */
.om-steps { display: flex; gap: 4px; margin: 4px 0 6px; }
.om-step { flex: 1; text-align: center; position: relative; }
.om-step .d { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); margin: 0 auto 6px; position: relative; z-index: 1; }
.om-step b { font-size: .68rem; color: var(--text-3); font-weight: 600; }
.om-step::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.om-step:last-child::before { display: none; }
.om-step.done .d { background: var(--gold-3); border-color: var(--gold-3); }
.om-step.done b { color: var(--text-2); }
.om-step.done::before { background: var(--gold-3); }
.om-step.active .d { background: var(--gold-1); border-color: var(--gold-1); box-shadow: 0 0 0 4px rgba(201,162,39,.2); }
.om-step.active b { color: var(--gold-1); font-weight: 800; }
.om-cancelled { background: rgba(255,80,90,.12); border: 1px solid rgba(255,80,90,.35); color: #ff8b96; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; font-size: .9rem; }

/* ---- Track: order switcher + status hero ---- */
.ord-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ord-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: .82rem; cursor: pointer; transition: all .2s; }
.ord-chip b { color: var(--text-1); font-size: .82rem; }
.ord-chip:hover { border-color: var(--gold-3); }
.ord-chip.on { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.track-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, var(--surface), transparent); border: 1px solid var(--border); margin-bottom: 12px; }
.track-hero .th-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--c, var(--gold-2)); background: color-mix(in srgb, var(--c, #c9a227) 14%, transparent); }
.track-hero .th-ic svg { width: 26px; }
.track-hero .th-tx { flex: 1; min-width: 0; }
.track-hero .th-tx b { font-size: 1.05rem; display: block; }
.track-hero .th-tx span { font-size: .82rem; color: var(--text-3); }
.track-hero .th-pct { font-size: 1.6rem; font-weight: 800; color: var(--gold-1); }
.track-hero .th-pct small { font-size: .8rem; }
.th-bar { height: 7px; border-radius: 100px; background: var(--surface-2); overflow: hidden; margin-bottom: 26px; }
.th-bar i { display: block; height: 100%; border-radius: 100px; transition: width .6s var(--ease); }
.track-cancelled { text-align: center; padding: 36px 20px; color: #ff8b96; }
.track-cancelled svg { margin-bottom: 12px; }
.track-cancelled h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--text-1); }
.track-cancelled p { color: var(--text-3); font-size: .88rem; line-height: 1.9; max-width: 420px; margin: 0 auto; }

/* ---- Admin: product options builder ---- */
.opt-group { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--surface); }
.opt-group-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.opt-gname { flex: 1; height: 40px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 0 12px; font-family: inherit; font-size: .9rem; font-weight: 700; }
.opt-val { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.opt-vlabel { flex: 1; height: 38px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 0 12px; font-family: inherit; font-size: .86rem; }
.opt-vprice { display: flex; align-items: center; gap: 5px; }
.opt-vprice input { width: 110px; height: 38px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--gold-1); padding: 0 10px; font-family: inherit; font-size: .82rem; text-align: left; direction: ltr; }
.opt-vprice span { font-size: .72rem; color: var(--text-3); white-space: nowrap; }
.opt-gname:focus, .opt-vlabel:focus, .opt-vprice input:focus { outline: none; border-color: var(--gold-3); }
.opt-addval { font-size: .8rem; color: var(--gold-2); background: none; border: 1px dashed var(--border); border-radius: 9px; padding: 6px 12px; cursor: pointer; font-family: inherit; margin-top: 2px; }
.opt-addval:hover { border-color: var(--gold-3); }

/* ---- Product page: live option chips with price ---- */
.pd-chip { position: relative; }
.pd-chip .chip-plus { font-size: .72rem; color: var(--gold-3); margin-inline-start: 5px; }
.pd-chip.active .chip-plus { color: #1a1408; }

/* ---- Shop: category pills + skeleton + mobile apply ---- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.cat-pill { padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .85rem; font-family: inherit; cursor: pointer; transition: all .2s; white-space: nowrap; }
.cat-pill:hover { border-color: var(--gold-3); color: var(--gold-1); }
.cat-pill.on { background: var(--gold-grad); color: #1a1408; border-color: transparent; font-weight: 700; }
.sk-card { aspect-ratio: 3/4.2; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: skshine 1.3s ease-in-out infinite; }
@keyframes skshine { to { background-position: -200% 0; } }
.filters-apply { display: none; }
@media (max-width: 900px) { .filters-apply { display: block; } }

/* ---- Vendors directory (booth listing) ---- */
.vendors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.vendor-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; color: var(--text-1); }
.vendor-card:hover { transform: translateY(-6px); border-color: rgba(201,162,39,.45); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.vc-cover { height: 120px; background-size: cover; background-position: center; position: relative; }
.vc-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg-2)); }
.vc-verify { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.55); color: var(--gold-1); font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(4px); }
.vc-body { padding: 0 18px 18px; text-align: center; margin-top: -34px; position: relative; }
.vc-logo { width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--gold-3); object-fit: cover; background: var(--bg-3); }
.vc-body h3 { font-size: 1.05rem; font-weight: 800; margin: 10px 0 6px; }
.vc-meta { display: flex; justify-content: center; gap: 14px; font-size: .78rem; color: var(--text-3); margin-bottom: 10px; }
.vc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; min-height: 24px; margin-bottom: 12px; }
.vc-stats { display: flex; justify-content: center; gap: 18px; font-size: .76rem; color: var(--text-3); border-top: 1px dashed var(--border); padding-top: 12px; margin-bottom: 14px; }
.vc-stats b { color: var(--gold-1); font-size: .92rem; display: block; }
.vc-cta { width: 100%; }

/* ---- Vendor page: story highlights lightbox ---- */
.vsl-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 980; display: none; place-items: center; }
.vsl-overlay.open { display: grid; }
.vsl { width: min(380px, 92vw); aspect-ratio: 9/16; max-height: 86vh; border-radius: 22px; overflow: hidden; position: relative; background: #000; }
.vsl img, .vsl video { width: 100%; height: 100%; object-fit: cover; }
.vsl .vsl-cap { position: absolute; bottom: 64px; left: 14px; right: 14px; color: #fff; font-size: .95rem; line-height: 1.8; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.vsl .vsl-link { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--gold-grad); color: #1a1408; font-weight: 800; font-size: .84rem; padding: 9px 22px; border-radius: 100px; white-space: nowrap; }
.vsl .vsl-close { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none; cursor: pointer; font-size: 19px; z-index: 2; }

/* ---- Admin: support chat inbox ---- */
.chat-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; } }
.chat-list { max-height: 64vh; overflow-y: auto; padding: 6px; }
.chat-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 13px; cursor: pointer; transition: background .2s; }
.chat-item:hover { background: var(--surface); }
.chat-item.sel { background: var(--gold-grad-soft); }
.chat-item.closed { opacity: .55; }
.chat-item .ci-av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad-soft); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.chat-item .ci-tx { flex: 1; min-width: 0; }
.chat-item .ci-tx b { font-size: .86rem; display: flex; align-items: center; gap: 6px; }
.chat-item .ci-tx span { display: block; font-size: .74rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .ci-unread { background: var(--gold-grad); color: #1a1408; font-size: .68rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; flex: none; }
.chat-item .ci-time { font-size: .68rem; color: var(--text-muted); flex: none; }
.ci-closed { font-style: normal; font-size: .62rem; background: rgba(255,80,90,.15); color: #ff8b96; padding: 1px 7px; border-radius: 6px; }
.chat-thread { height: 50vh; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 76%; }
.msg.mine { align-self: flex-start; align-items: flex-start; } /* staff messages */
.msg:not(.mine) { align-self: flex-end; align-items: flex-end; } /* customer messages (RTL) */
.msg-bubble { background: var(--surface); border: 1px solid var(--border); padding: 10px 15px; border-radius: 15px; font-size: .9rem; line-height: 1.8; color: var(--text-1); white-space: pre-wrap; word-break: break-word; }
.msg.mine .msg-bubble { background: var(--gold-grad-soft); border-color: rgba(201,162,39,.35); }
.msg-meta { font-size: .68rem; color: var(--text-muted); margin-top: 4px; padding: 0 6px; }
.chat-replybar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-replybar input { flex: 1; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); padding: 0 14px; font-family: inherit; font-size: .9rem; }
.chat-replybar input:focus { outline: none; border-color: var(--gold-3); }

/* Notifications dropdown */
.notif-pop { position: absolute; top: 62px; left: 86px; width: 340px; max-height: 64vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-soft); z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .25s; }
.notif-pop.open { opacity: 1; visibility: visible; transform: none; }
.notif-pop .nh { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: .95rem; }
.notif-item { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); align-items: center; }
.notif-item:last-child { border-bottom: none; }
.notif-item .ni { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notif-item b { font-size: .86rem; display: block; }
.notif-item span { font-size: .76rem; color: var(--text-3); }
.story-card { aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card .sc-del { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #ff8b96; display: grid; place-items: center; z-index: 2; }
.story-card .sc-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: .78rem; color: #fff; }

@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .builder-preview { position: relative; top: 0; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { position: relative; top: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; right: 0; top: 0; z-index: 100; transform: translateX(100%); transition: transform .4s var(--ease); width: 264px; }
  .admin-side.open { transform: none; }
  .admin-burger { display: grid; }
  .opt-grid { grid-template-columns: 1fr; }
  .pd-features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .vhead-logo { width: 96px; height: 96px; }
}

/* ===== corporate email (Gmail-style) ===== */
.mail-app { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.mail-side { display: flex; flex-direction: column; gap: 6px; }
.mail-compose { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: none; border-radius: 14px; background: var(--gold-grad); color: #20180a; font-weight: 800; font-family: inherit; font-size: .95rem; cursor: pointer; margin-bottom: 8px; box-shadow: 0 8px 22px -8px rgba(201,162,39,.5); transition: transform .2s; }
.mail-compose:hover { transform: translateY(-2px); }
.mail-folders { display: flex; flex-direction: column; gap: 2px; }
.mail-folder { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: none; background: transparent; color: var(--text-2); font-family: inherit; font-size: .9rem; border-radius: 11px; cursor: pointer; text-align: start; transition: background .15s, color .15s; }
.mail-folder svg { flex: none; opacity: .8; }
.mail-folder span { flex: 1; }
.mail-folder:hover { background: var(--surface); color: var(--text-1); }
.mail-folder.active { background: var(--gold-grad-soft); color: var(--gold-1); font-weight: 700; }
.mf-count { font-size: .72rem; font-weight: 700; color: var(--text-3); background: var(--surface); padding: 1px 8px; border-radius: 20px; }
.mf-count.unread { background: var(--gold-grad); color: #20180a; }
.mail-main { display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.mail-toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mail-list { display: flex; flex-direction: column; }
.mail-row { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; position: relative; }
.mail-row:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mail-row.unread { background: rgba(232,200,116,.045); }
.mail-row.unread .mail-who, .mail-row.unread .mail-subj b { color: var(--text-1); font-weight: 800; }
.mail-row.unread::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-grad); }
.mail-star { background: none; border: none; cursor: pointer; color: var(--text-muted); flex: none; padding: 2px; line-height: 0; }
.mail-star:hover { color: var(--gold-2); }
.mail-star.on { color: var(--gold-2); }
.mail-star.on svg { fill: var(--gold-2); }
.mail-av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: #20180a; display: grid; place-items: center; font-weight: 800; flex: none; font-size: .9rem; }
.mail-av.lg { width: 44px; height: 44px; font-size: 1.05rem; }
.mail-who { width: 150px; flex: none; color: var(--text-2); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; color: var(--text-2); }
.mail-subj b { color: var(--text-1); font-weight: 600; }
.mail-snip { color: var(--text-muted); }
.mail-date { flex: none; font-size: .76rem; color: var(--text-muted); width: 70px; text-align: end; }
.mail-rowact { display: none; gap: 4px; flex: none; }
.mail-row:hover .mail-rowact { display: flex; }
.mail-row:hover .mail-date { display: none; }
.icon-btn.sm { width: 30px; height: 30px; }
.mail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--text-muted); text-align: center; }
.mail-read { padding: 18px 24px 26px; }
.mr-bar { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.mr-subj { font-size: 1.3rem; font-weight: 800; color: var(--text-1); margin-bottom: 16px; line-height: 1.6; }
.mr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mr-meta { flex: 1; min-width: 0; font-size: .9rem; }
.mr-body { color: var(--text-1); font-size: .96rem; line-height: 2.1; white-space: pre-wrap; word-break: break-word; padding: 6px 2px 20px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.mr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mail-compose-form { display: flex; flex-direction: column; gap: 0; padding: 4px 2px; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.cmp-row > span { color: var(--text-3); font-size: .85rem; width: 34px; flex: none; }
.cmp-row input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-family: inherit; font-size: .92rem; }
.cmp-subject { background: none; border: none; border-bottom: 1px solid var(--border); outline: none; color: var(--text-1); font-family: inherit; font-size: 1rem; font-weight: 700; padding: 13px 4px; }
.cmp-body { min-height: 230px; max-height: 50vh; resize: vertical; background: none; border: none; outline: none; color: var(--text-1); font-family: inherit; font-size: .95rem; line-height: 2; padding: 16px 4px; }
.cmp-actions { display: flex; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 820px) {
  .mail-app { grid-template-columns: 1fr; }
  .mail-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .mail-compose { margin-bottom: 0; }
  .mail-folders { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .mail-folder { padding: 8px 12px; }
  .mail-folder span { display: none; }
  .mail-folder.active span { display: inline; }
  .mail-who { width: 100px; }
  .mail-snip { display: none; }
}

/* ===== build-diary photo + lightbox (track.html) ===== */
.diary-photo { position: relative; width: 74px; height: 74px; flex: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding: 0; cursor: zoom-in; background: var(--bg-3); }
.diary-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.diary-photo:hover img { transform: scale(1.06); }
.diary-photo .dp-zoom { position: absolute; inset-inline-end: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.diary-photo:hover .dp-zoom { opacity: 1; }
.diary-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,12,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 30px; }
.diary-lb.open { display: flex; animation: lbfade .2s ease; }
@keyframes lbfade { from { opacity: 0 } to { opacity: 1 } }
.diary-lb img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); border: 1px solid rgba(232,200,116,.3); }
.diary-lb-close { position: absolute; top: 20px; inset-inline-start: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.diary-lb-close:hover { background: rgba(255,255,255,.2); }

/* ===== custom-build option manager (admin) — professional ===== */
[data-catsave].dirty { animation: catpulse 1.7s ease-in-out infinite; }
[data-catsave].dirty::after { content: '•'; margin-inline-start: 5px; color: #fff; }
@keyframes catpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,200,116,.45); } 50% { box-shadow: 0 0 0 5px rgba(232,200,116,0); } }
/* base price card */
.ccfg-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--gold-grad-soft), transparent 70%), var(--surface); border: 1px solid rgba(232,200,116,.25); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; }
.ccfg-base-l { display: flex; align-items: center; gap: 14px; }
.ccfg-base-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--gold-grad); color: #20180a; display: grid; place-items: center; flex: none; }
.ccfg-base-l b { font-size: 1rem; display: block; }
.ccfg-base-l span { font-size: .8rem; color: var(--text-3); }
.ccfg-base-inp { display: flex; align-items: center; gap: 8px; }
.ccfg-base-inp input { width: 210px; height: 48px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); color: var(--gold-1); font-family: inherit; font-size: 1.15rem; font-weight: 800; text-align: center; outline: none; }
.ccfg-base-inp input:focus { border-color: var(--gold-3); }
.ccfg-base-inp span { color: var(--text-3); font-size: .85rem; }
.ccfg-feature { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, background .2s; }
.ccfg-feature.on { border-color: rgba(143,214,160,.38); background: linear-gradient(120deg, rgba(143,214,160,.09), transparent 65%), var(--surface); }
.ccfg-feature.off { border-color: rgba(255,139,150,.35); background: linear-gradient(120deg, rgba(226,55,68,.08), transparent 65%), var(--surface); }
.ccfg-feature-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; color: var(--gold-2); background: var(--gold-grad-soft); }
.ccfg-feature-copy { flex: 1; min-width: 180px; }
.ccfg-feature-copy b { display: block; font-size: 1rem; margin-bottom: 3px; }
.ccfg-feature-copy p { margin: 0; color: var(--text-3); font-size: .8rem; line-height: 1.8; }
.ccfg-feature-toggle { min-width: 112px; height: 44px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: space-between; gap: 11px; border: 1px solid var(--border-strong); border-radius: 24px; background: var(--bg-2); color: var(--text-2); font-family: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.ccfg-feature-toggle i { width: 27px; height: 16px; border-radius: 20px; background: var(--text-muted); position: relative; flex: none; transition: background .2s; }
.ccfg-feature-toggle i::after { content: ''; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ccfg-feature.on .ccfg-feature-toggle { color: #8fd6a0; border-color: rgba(143,214,160,.42); }
.ccfg-feature.on .ccfg-feature-toggle i { background: #4fba6c; }
.ccfg-feature.on .ccfg-feature-toggle i::after { transform: translateX(-11px); }
.ccfg-feature.off .ccfg-feature-toggle { color: #ff8b96; border-color: rgba(226,55,68,.38); }
.ccfg-feature-toggle:disabled { opacity: .55; cursor: wait; }
@media (max-width: 620px) { .ccfg-feature { align-items: flex-start; flex-wrap: wrap; } .ccfg-feature-toggle { width: 100%; } }
/* legend */
.ccfg-legend { display: flex; gap: 22px; flex-wrap: wrap; padding: 0 4px 14px; font-size: .8rem; color: var(--text-3); }
.ccfg-legend .ccfg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; vertical-align: middle; }
.ccfg-dot.shape { background: var(--gold-2); }
.ccfg-dot.mat { background: #7fb6d6; }
/* group card */
/* part-oriented panels — mirror the configurator (تیغه / دسته / افزودنی) */
.ccfg-part { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 6px 16px 16px; margin-bottom: 20px; }
.ccfg-part-head { display: flex; align-items: center; gap: 11px; padding: 14px 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; flex-wrap: wrap; }
.ccfg-part-head svg { color: var(--gold-2); flex: none; }
.ccfg-part-head h2 { margin: 0; font-size: 1.12rem; color: var(--gold-1); font-weight: 800; }
.ccfg-part-note { font-size: .78rem; color: var(--text-3); margin-inline-start: auto; }
.ccfg-part-other { border-style: dashed; }
.ccfg-sub { margin-top: 12px; }
.ccfg-sub-lbl { font-size: .86rem; font-weight: 800; color: var(--gold-2); margin: 4px 2px 8px; }
.ccfg-sub-lbl i { font-style: normal; font-weight: 500; color: var(--text-3); font-size: .76rem; }
.ccfg-sub .ccfg-group { margin-bottom: 0; }
.ccfg-nomodel { font-size: .76rem; color: #ff8b96; font-weight: 700; }
.ccfg-shape.nomodel { background: rgba(226,55,68,.12); color: #ff8b96; border-color: rgba(226,55,68,.45); }
.ccfg-addmodel { border-style: solid; border-color: rgba(232,200,116,.4); color: var(--gold-1); background: var(--gold-grad-soft); }
.ccfg-addmodel:hover { border-color: var(--gold-3); }
.ccfg-group { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1); margin-bottom: 16px; overflow: hidden; }
.ccfg-ghead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.ccfg-gicon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ccfg-gicon.shape { background: var(--gold-grad-soft); color: var(--gold-2); }
.ccfg-gicon.mat { background: rgba(127,182,214,.14); color: #7fb6d6; }
.ccfg-gname { height: 40px; min-width: 150px; flex: 1; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-1); font-family: inherit; font-size: 1.02rem; font-weight: 800; padding: 0 10px; outline: none; transition: border-color .15s, background .15s; }
.ccfg-gname:hover { background: var(--bg-2); }
.ccfg-gname:focus { background: var(--bg-2); border-color: var(--gold-3); }
.ccfg-kind { height: 38px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); font-family: inherit; font-size: .82rem; padding: 0 10px; outline: none; cursor: pointer; }
.ccfg-gcount { font-size: .76rem; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.ccfg-gkey { font-size: .72rem; color: var(--text-muted); font-family: monospace; opacity: .8; }
.ccfg-gdel { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer; margin-inline-start: auto; transition: all .15s; flex: none; }
.ccfg-gdel:hover { color: #ff8b96; border-color: rgba(226,55,68,.4); background: rgba(226,55,68,.08); }
/* value rows */
.ccfg-kindcfg { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.ccfg-kindcfg textarea { border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); padding: 7px 10px; font-family: inherit; font-size: .84rem; outline: none; width: 100%; }
.ccfg-kindcfg textarea:focus { border-color: var(--gold-3); }
.ccfg-greq { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--text-3); white-space: nowrap; cursor: pointer; }
.ccfg-vals { padding: 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.ccfg-val { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; transition: border-color .15s; }
.ccfg-val:hover { border-color: rgba(232,200,116,.3); }
.ccfg-sw { width: 40px; height: 40px; border-radius: 10px; flex: none; border: 2px solid rgba(255,255,255,.15); box-shadow: inset 0 0 12px rgba(0,0,0,.4); }
.ccfg-sw.native { background: repeating-linear-gradient(45deg, #4a4a52 0 5px, #7d7d86 5px 10px); }
.ccfg-sw.img { background-size: cover !important; background-position: center !important; border-color: rgba(201,162,39,.5); }
.ccfg-f-chk { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--text-2); cursor: pointer; height: 38px; white-space: nowrap; }
.ccfg-f-chk input { width: 16px; height: 16px; accent-color: var(--gold-2); flex: none; }
.ccfg-kindhint { font-size: .75rem; color: var(--text-muted); align-self: center; }
.ccfg-shape { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--gold-grad-soft); color: var(--gold-2); border: 1px solid rgba(232,200,116,.3); }
.ccfg-shape.glb { background: rgba(143,214,160,.14); color: #8fd6a0; border-color: rgba(143,214,160,.35); font-size: .7rem; }
.ccfg-fields { flex: 1; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; min-width: 0; }
.ccfg-f { display: flex; flex-direction: column; gap: 4px; }
.ccfg-f > span { font-size: .68rem; color: var(--text-muted); padding-inline-start: 2px; }
.ccfg-f input, .ccfg-f select { height: 38px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); padding: 0 10px; font-family: inherit; font-size: .86rem; outline: none; width: 100%; }
.ccfg-f input:focus, .ccfg-f select:focus { border-color: var(--gold-3); }
.ccfg-f-color input[type=color] { width: 56px; padding: 3px; cursor: pointer; }
.ccfg-f-up { min-width: 150px; }
.model-scope { flex: 1 1 100%; min-width: 100%; padding: 11px 12px 12px; border: 1px dashed rgba(232,200,116,.24); border-radius: 12px; background: rgba(232,200,116,.045); }
.model-scope > span { display: block; font-size: .78rem; color: var(--gold-2); font-weight: 800; margin-bottom: 3px; }
.model-scope p { margin: 0 0 9px; color: var(--text-3); font-size: .72rem; line-height: 1.8; }
.model-scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.model-scope-card { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 62px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.035); color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; overflow: hidden; }
.model-scope-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.model-scope-card:hover { border-color: rgba(232,200,116,.38); background: rgba(255,255,255,.055); }
.model-scope-card:has(input:checked) { border-color: var(--gold-3); background: var(--gold-grad-soft); color: var(--gold-1); }
.model-scope-card:has(input:checked)::after { content: '✓'; position: absolute; top: 7px; left: 8px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: var(--gold-grad); color: #221805; font-size: .78rem; font-weight: 900; }
.model-scope-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-1); border: 1px solid var(--border); color: var(--gold-2); font-weight: 900; font-size: .82rem; }
.model-scope-card.all .model-scope-ic { background: var(--gold-grad-soft); }
.model-scope-tx { min-width: 0; display: block; }
.model-scope-tx b { display: block; color: inherit; font-size: .84rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-scope-tx small { display: block; color: var(--text-muted); font-size: .68rem; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-scope-card:has(input:checked) .model-scope-tx small { color: rgba(246,231,180,.72); }
.ccfg-model { font-size: .74rem; color: #8fd6a0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccfg-vdel { width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-muted); display: grid; place-items: center; cursor: pointer; flex: none; transition: all .15s; }
.ccfg-vdel:hover { color: #ff8b96; background: rgba(226,55,68,.1); }
.ccfg-empty { color: var(--text-muted); font-size: .85rem; text-align: center; padding: 16px; }
/* add buttons */
.ccfg-addval { display: inline-flex; align-items: center; gap: 6px; margin: 2px 16px 14px; padding: 8px 16px; border: 1px dashed var(--border); border-radius: 10px; background: transparent; color: var(--text-2); font-family: inherit; font-size: .85rem; cursor: pointer; transition: all .15s; }
.ccfg-addval:hover { border-color: var(--gold-3); color: var(--gold-1); background: var(--gold-grad-soft); }
.ccfg-addgroup { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border: 1.5px dashed var(--border); border-radius: var(--radius); background: transparent; color: var(--text-2); font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .18s; }
.ccfg-addgroup:hover { border-color: var(--gold-3); color: var(--gold-1); background: var(--gold-grad-soft); }
@media (max-width: 720px) { .ccfg-fields { gap: 8px; } .ccfg-f { width: calc(50% - 4px); } .ccfg-f[style*="flex:1"] { width: 100%; } }
/* per-model 3D transform + tint panel */
.ccfg-val.has-model { flex-wrap: wrap; }
.ccfg-mcfg { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 10px 12px; margin-top: 2px; background: rgba(232,200,116,.05); border: 1px dashed rgba(232,200,116,.3); border-radius: 10px; }
.ccfg-mcfg-t { width: 100%; font-size: .74rem; color: var(--gold-2); font-weight: 700; }
.ccfg-mf { display: flex; flex-direction: column; gap: 3px; }
.ccfg-mf > span { font-size: .66rem; color: var(--text-muted); }
.ccfg-mf input { width: 80px; height: 34px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-1); padding: 0 8px; font-family: inherit; font-size: .82rem; outline: none; }
.ccfg-mf input:focus { border-color: var(--gold-3); }
.ccfg-mf-chk { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-2); margin-inline-start: auto; cursor: pointer; }
.ccfg-mf-chk input { width: 16px; height: 16px; accent-color: var(--gold-2); flex: none; }
.ccfg-mcfg-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* live 3D model preview modal */
#amodalCard:has(.mpv-wrap) { max-width: 880px; width: 94vw; }
.mpv-wrap { display: flex; flex-direction: column; gap: 14px; }
.mpv-stage { position: relative; width: 100%; aspect-ratio: 16/10; background: radial-gradient(circle at 50% 40%, #1a1a22, #0c0c12); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mpv-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.mpv-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: .9rem; }
.mpv-hint { position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: .72rem; color: var(--text-muted); background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 20px; }
.mpv-auto { position: absolute; top: 10px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.16); color: var(--text-2); font-family: inherit; font-size: .74rem; cursor: pointer; transition: all .15s; }
.mpv-auto:hover { color: #fff; border-color: rgba(232,200,116,.45); }
.mpv-auto.on { background: var(--gold-grad); color: #20180a; border-color: transparent; font-weight: 700; }
/* admin-only live model tuner on the configurator page */
.admtuner { position: fixed; top: 84px; right: 16px; z-index: 900; width: 252px; background: rgba(15,15,21,.96); border: 1px solid rgba(232,200,116,.32); border-radius: 14px; box-shadow: 0 22px 54px -16px rgba(0,0,0,.72); color: #f2ecdf; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.at-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.at-head b { font-size: .82rem; color: #e8c874; }
.at-mini { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #f2ecdf; border-radius: 8px; padding: 3px 9px; font-family: inherit; font-size: .7rem; cursor: pointer; }
.at-mini:hover { background: rgba(255,255,255,.16); }
.admtuner.collapsed .at-body { display: none; }
.at-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; max-height: 72vh; overflow: auto; }
.at-row { display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; gap: 8px; }
.at-row span { font-size: .72rem; color: #c9c4b8; }
.at-row input[type=range] { accent-color: #e8c874; width: 100%; }
.at-row b { font-size: .74rem; color: #e8c874; text-align: left; font-variant-numeric: tabular-nums; }
.at-chk { display: flex; align-items: center; gap: 7px; font-size: .78rem; margin-top: 2px; }
.at-chk input { accent-color: #e8c874; width: 15px; height: 15px; }
.at-none { color: #8d8a80; font-size: .78rem; line-height: 1.9; }
.at-msg { font-size: .74rem; text-align: center; min-height: 14px; }
@media (max-width: 600px) { .admtuner { right: 8px; left: 8px; width: auto; top: 70px; } }

/* ===== reviews moderation (admin) ===== */
.rev-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.rev-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-family: inherit; font-size: .85rem; cursor: pointer; transition: all .15s; }
.rev-tab b { font-size: .72rem; background: var(--bg-2); color: var(--text-3); border-radius: 20px; padding: 1px 7px; }
.rev-tab:hover { color: var(--text-1); border-color: var(--gold-3); }
.rev-tab.on { background: var(--gold-grad-soft); border-color: var(--gold-3); color: var(--gold-1); font-weight: 700; }
.rev-tab.on b { background: var(--gold-grad); color: #20180a; }
.rev-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1); padding: 16px 18px; margin-bottom: 12px; }
.rev-card.pend { border-color: rgba(232,200,116,.4); background: linear-gradient(120deg, rgba(232,200,116,.05), transparent 60%), var(--bg-1); }
.rev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.rev-prod { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: radial-gradient(circle, #14141b, #070709); mix-blend-mode: screen; flex: none; }
.rev-meta { flex: 1; min-width: 0; }
.rev-meta b { font-size: .92rem; color: var(--text-1); }
.rev-sub { font-size: .76rem; color: var(--text-3); margin-top: 3px; }
.rev-stars { color: #e8c874; letter-spacing: 1px; }
.rev-verified { color: #8fd6a0; font-size: .7rem; background: rgba(143,214,160,.12); padding: 1px 7px; border-radius: 20px; }
.rev-text { color: var(--text-1); font-size: .92rem; margin: 0 0 12px; line-height: 2; white-space: pre-wrap; word-break: break-word; }
.rev-reply { border-inline-start: 3px solid var(--gold-3); background: var(--gold-grad-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.rev-reply b { font-size: .8rem; color: var(--gold-1); }
.rev-reply p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.9; }
.rev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }

/* ===== product-page review summary + items ===== */
.rv-summary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 18px 22px; margin-bottom: 16px; }
.rv-avg { text-align: center; flex: none; }
.rv-avg b { font-size: 2.4rem; font-weight: 800; color: var(--gold-1); line-height: 1; display: block; }
.rv-avg span { font-size: .76rem; color: var(--text-3); display: block; margin-top: 4px; }
.rv-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.rv-bar { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 8px; font-size: .76rem; color: var(--text-3); }
.rv-bar > span { color: #e8c874; }
.rv-bar-track { height: 7px; background: var(--surface); border-radius: 20px; overflow: hidden; }
.rv-bar-fill { height: 100%; background: var(--gold-grad); border-radius: 20px; }
.rv-bar > b { text-align: left; color: var(--text-2); }
.rv-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1); padding: 15px 18px; margin-bottom: 12px; }
.rv-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rv-av { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad-soft); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.rv-who { flex: 1; min-width: 0; }
.rv-who b { color: var(--text-1); }
.rv-time { color: var(--text-muted); font-size: .78rem; flex: none; }
.rv-body { color: var(--text-2); font-size: .92rem; margin: 0; line-height: 2; white-space: pre-wrap; word-break: break-word; }
.rv-reply { margin-top: 10px; border-inline-start: 3px solid var(--gold-3); background: var(--gold-grad-soft); border-radius: 10px; padding: 10px 14px; }
.rv-reply b { font-size: .8rem; color: var(--gold-1); }
.rv-reply p { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; line-height: 1.8; }

/* ===== custom-build: mode tabs + photo request ===== */
.cm-tabs { display: flex; gap: 10px; margin: 8px 0 22px; flex-wrap: wrap; }
.cm-3d-off { display: flex; align-items: center; gap: 9px 16px; flex-wrap: wrap; margin: -8px 0 22px; padding: 13px 16px; border: 1px solid rgba(232,200,116,.28); border-radius: 12px; background: var(--gold-grad-soft); }
.cm-3d-off[hidden] { display: none; }
.cm-3d-off b { color: var(--gold-1); font-size: .88rem; }
.cm-3d-off span { color: var(--text-3); font-size: .8rem; }
.cm-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .18s; }
.cm-tab:hover { color: var(--text-1); border-color: var(--gold-3); }
.cm-tab.active { background: var(--gold-grad); color: #20180a; border-color: transparent; box-shadow: 0 8px 22px -8px rgba(201,162,39,.5); }
.ci-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: start; }
.ci-form { padding: 26px; }
.ci-head h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.ci-head p { color: var(--text-3); font-size: .88rem; line-height: 1.9; margin-bottom: 20px; }
.ci-label { display: block; font-size: .85rem; font-weight: 700; color: var(--text-1); margin: 16px 0 8px; }
.ci-label .req { color: #ff8b96; }
.ci-hint { font-weight: 400; color: var(--text-3); font-size: .76rem; }
.ci-drop { border: 1.5px dashed var(--border); border-radius: 14px; background: var(--bg-2); cursor: pointer; transition: all .18s; }
.ci-drop:hover, .ci-drop.over { border-color: var(--gold-3); background: var(--gold-grad-soft); }
.ci-drop-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px; color: var(--text-3); text-align: center; }
.ci-drop-inner b { color: var(--text-1); font-size: .95rem; margin-top: 4px; }
.ci-drop-inner span { font-size: .78rem; }
.ci-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ci-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-3); flex: none; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-thumb.loading { display: grid; place-items: center; }
.ci-spin { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--gold-2); border-radius: 50%; animation: wkspin .7s linear infinite; }
@keyframes wkspin { to { transform: rotate(360deg); } }
.ci-thumb-x { position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(0,0,0,.6); color: #fff; border: none; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.ci-input { width: 100%; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-1); padding: 12px 14px; font-family: inherit; font-size: .92rem; line-height: 1.9; outline: none; }
.ci-input:focus { border-color: var(--gold-3); }
.ci-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ci-note { color: var(--text-3); font-size: .78rem; margin-top: 12px; line-height: 1.8; }
.ci-side { padding: 22px; }
.ci-side h3 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.ci-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ci-steps li { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold-3); }
.ci-steps b { font-size: .88rem; color: var(--gold-1); }
.ci-steps span { font-size: .8rem; color: var(--text-3); }
.ci-from { display: flex; align-items: center; gap: 12px; background: var(--gold-grad-soft); border: 1px solid rgba(232,200,116,.3); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: .85rem; color: var(--text-2); line-height: 1.8; }
.ci-from img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--border); }
@media (max-width: 820px) { .ci-wrap { grid-template-columns: 1fr; } }
/* quote box (customer approves/rejects admin's price) */
.quote-box { background: var(--gold-grad-soft); border: 1px solid rgba(232,200,116,.32); border-radius: 12px; padding: 14px 16px; margin: 12px 0 4px; }
.quote-box.wait { background: var(--bg-2); border: 1px dashed var(--border); color: var(--text-3); font-size: .85rem; line-height: 1.95; }
.quote-box.declined { background: rgba(226,55,68,.07); border-color: rgba(226,55,68,.3); color: var(--text-2); font-size: .85rem; line-height: 1.95; }
.qb-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: .92rem; }
.qb-row span { color: var(--text-2); }
.qb-row b { font-size: 1rem; }
.qb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(232,200,116,.3); }

/* ===== accounting dashboard ===== */
.acct-pickers { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.acct-per { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-family: inherit; font-size: .82rem; cursor: pointer; transition: all .15s; }
.acct-per:hover { color: var(--text-1); }
.acct-per.on { background: var(--gold-grad); color: #20180a; border-color: transparent; font-weight: 700; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-top: 2px; }
.acct-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; padding: 10px 4px 0; }
.acct-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.acct-bar-track { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 150px; }
.acct-bar-fill { width: 15px; border-radius: 5px 5px 0 0; height: 0; transition: height .9s var(--ease); min-height: 2px; }
.acct-bar-fill.gmv { background: var(--gold-grad); }
.acct-bar-fill.comm { background: rgba(127,182,214,.65); }
.acct-bar span { font-size: .74rem; color: var(--text-3); }
.acct-leg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.acct-leg.gmv { background: var(--gold-grad); }
.acct-leg.comm { background: rgba(127,182,214,.65); }
.acct-pl-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.acct-pl-row b { font-variant-numeric: tabular-nums; color: var(--text-1); }
.acct-pl-row.pos b { color: #8fd6a0; }
.acct-pl-row.neg b { color: #ff8b96; }
.acct-pl-total { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--gold-3); font-weight: 800; font-size: 1.05rem; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.mpv-ctrls { display: flex; flex-direction: column; gap: 11px; }
.mpv-row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-2); }
.mpv-row input[type=range] { accent-color: var(--gold-2); width: 100%; }
.mpv-row b { font-size: .82rem; color: var(--gold-1); text-align: left; font-variant-numeric: tabular-nums; }
.mpv-chk { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-2); cursor: pointer; margin-top: 4px; }
.mpv-chk input { width: 16px; height: 16px; accent-color: var(--gold-2); }
.mpv-actions { display: flex; gap: 10px; margin-top: 8px; }
@media (min-width: 760px) {
  .mpv-wrap { flex-direction: row; align-items: stretch; }
  .mpv-stage { flex: 1; aspect-ratio: auto; min-height: 360px; }
  .mpv-ctrls { width: 320px; flex: none; }
}
