/* ==========================================================================
   SMMCloudX.Shop — Design System
   Premium cloud-tech marketplace · dark (default) + light themes
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --primary: #2F80FF;
  --primary-rgb: 47, 128, 255;
  --accent: #22D3EE;
  --accent-rgb: 34, 211, 238;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --grad-soft: linear-gradient(135deg, rgba(var(--primary-rgb), .18), rgba(var(--accent-rgb), .12));

  --bg: #040A18;
  --bg-2: #071229;
  --surface: rgba(12, 25, 54, .72);
  --surface-solid: #0A1730;
  --surface-2: #0E1E40;
  --surface-3: #13274F;
  --border: rgba(125, 165, 255, .13);
  --border-strong: rgba(125, 175, 255, .26);
  --text: #EAF1FF;
  --text-2: #B3C3E0;
  --muted: #7C90B4;
  --heading: #FFFFFF;

  --success: #34D399; --success-bg: rgba(52, 211, 153, .12);
  --warning: #FBBF24; --warning-bg: rgba(251, 191, 36, .12);
  --danger:  #F87171; --danger-bg:  rgba(248, 113, 113, .12);
  --info:    #60A5FA; --info-bg:    rgba(96, 165, 250, .12);
  --purple:  #A78BFA; --purple-bg:  rgba(167, 139, 250, .14);
  --muted-bg: rgba(148, 163, 184, .12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 80px -24px rgba(0, 8, 30, .8);
  --glow: 0 0 0 1px rgba(var(--primary-rgb), .35), 0 8px 32px -8px rgba(var(--primary-rgb), .55);
  --focus: 0 0 0 3px rgba(var(--primary-rgb), .35);
  --blur: saturate(160%) blur(16px);

  --sidebar-w: 264px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F3F6FC;
  --bg-2: #EAF0FA;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #FFFFFF;
  --surface-2: #F5F8FE;
  --surface-3: #EBF1FB;
  --border: rgba(16, 42, 94, .10);
  --border-strong: rgba(16, 42, 94, .18);
  --text: #0C1A36;
  --text-2: #3E4F72;
  --muted: #687896;
  --heading: #071331;
  --success: #059669; --success-bg: rgba(5, 150, 105, .10);
  --warning: #B45309; --warning-bg: rgba(217, 119, 6, .12);
  --danger:  #DC2626; --danger-bg:  rgba(220, 38, 38, .09);
  --info:    #1D4ED8; --info-bg:    rgba(29, 78, 216, .09);
  --purple:  #7C3AED; --purple-bg:  rgba(124, 58, 237, .10);
  --muted-bg: rgba(100, 116, 139, .12);
  --shadow: 0 1px 2px rgba(16, 42, 94, .05), 0 8px 24px -12px rgba(16, 42, 94, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 42, 94, .28);
  --glow: 0 0 0 1px rgba(var(--primary-rgb), .25), 0 8px 24px -10px rgba(var(--primary-rgb), .45);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-3); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--border); word-break: break-all; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; font-size: .85rem; }
pre code { background: none; border: 0; padding: 0; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: rgba(var(--primary-rgb), .35); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.icon-img { width: 1.4em; height: 1.4em; object-fit: contain; }

/* ---------- Background atmosphere ---------- */
.bg-atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-atmosphere::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(var(--primary-rgb), .22), transparent 70%),
    radial-gradient(35% 30% at 85% 5%, rgba(var(--accent-rgb), .14), transparent 70%),
    radial-gradient(45% 40% at 60% 100%, rgba(var(--primary-rgb), .12), transparent 70%);
}
.bg-atmosphere::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
}
[data-theme="light"] .bg-atmosphere::before {
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(var(--primary-rgb), .14), transparent 70%),
    radial-gradient(35% 30% at 85% 5%, rgba(var(--accent-rgb), .12), transparent 70%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container-sm { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; } .mb-4 { margin-bottom: 32px; }
.ms-auto { margin-inline-start: auto; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.text-muted { color: var(--muted) !important; }
.text-2 { color: var(--text-2); }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .78rem; }
.text-lg { font-size: 1.1rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.mono { font-family: var(--mono); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack > * + * { margin-top: 16px; }
.hide-sm { }
.show-sm { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-color: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px;
  border-radius: var(--radius); border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-color);
  font: 600 .92rem/1.2 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; user-select: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:hover { color: var(--btn-color); border-color: rgba(var(--primary-rgb), .45); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; pointer-events: none; }
.btn-primary { --btn-bg: var(--grad); --btn-color: #fff; --btn-border: transparent; box-shadow: 0 8px 24px -10px rgba(var(--primary-rgb), .75); }
.btn-primary:hover { box-shadow: var(--glow); color: #fff; }
.btn-secondary { --btn-bg: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-success { --btn-bg: var(--success); --btn-color: #04151d; --btn-border: transparent; }
.btn-danger { --btn-bg: var(--danger-bg); --btn-color: var(--danger); --btn-border: rgba(248, 113, 113, .3); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-color: #fff; border-color: transparent; }
.btn-whatsapp { --btn-bg: #1FAF5A; --btn-color: #fff; --btn-border: transparent; }
.btn-whatsapp:hover { --btn-bg: #1a9a4f; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .84rem; border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 4px 9px; font-size: .78rem; border-radius: 8px; gap: 5px; }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .spinner { display: inline-block; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0;
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.card-header .icon { color: var(--accent); }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.card-flush .card-body { padding: 0; }
.card-hover { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(var(--primary-rgb), .35); box-shadow: var(--shadow-lg); }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* ---------- Stat cards ---------- */
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.stat {
  position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 0;
}
.stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--primary-rgb), .14), transparent); pointer-events: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); border: 1px solid var(--border); }
.stat-icon .icon { width: 19px; height: 19px; }
.stat-value { font-size: 1.55rem; font-weight: 800; color: var(--heading); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.stat-sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.stat-primary { background: var(--grad); border-color: transparent; }
.stat-primary .stat-label, .stat-primary .stat-sub { color: rgba(255,255,255,.82); }
.stat-primary .stat-value { color: #fff; }
.stat-primary .stat-icon { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.22); }
.reveal { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger { color: var(--danger); background: var(--danger-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-purple { color: var(--purple); background: var(--purple-bg); }
.badge-muted { color: var(--muted); background: var(--muted-bg); }
.badge-plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }
.chip .icon { color: var(--accent); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; min-width: 0; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label, .label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.label-hint { font-weight: 500; color: var(--muted); font-size: .8rem; }
.help { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font: 500 .95rem/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(var(--primary-rgb), .7); box-shadow: var(--focus); background: var(--surface-solid); }
.input[readonly] { opacity: .85; }
.textarea { min-height: 110px; resize: vertical; }
.select {
  padding-inline-end: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C90B4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
[dir="rtl"] .select { background-position: left 13px center; }
.select option, .select optgroup { background: var(--surface-solid); color: var(--text); }
.has-error .input, .has-error .select, .has-error .textarea, .input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 6px; font-weight: 500; }
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .input-addon { display: flex; align-items: center; padding: 0 13px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; font-size: .9rem; }
.input-group .input-addon:first-child { border-radius: var(--radius) 0 0 var(--radius); border-inline-end: 0; }
.input-group .input-addon:first-child + .input { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group .input:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group > .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
[dir="rtl"] .input-group .input-addon:first-child { border-radius: 0 var(--radius) var(--radius) 0; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-inline-start: 40px; }
.input-icon .toggle-pass { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.input-icon .toggle-pass:hover { color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 500; margin: 0; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex-shrink: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--primary); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + .track::after { transform: translateX(-18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; color: var(--text-2); }
.file-drop:hover, .file-drop.is-drag { border-color: var(--primary); background: rgba(var(--primary-rgb), .06); }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop .icon { width: 26px; height: 26px; color: var(--accent); }
.file-drop .file-name { font-weight: 600; color: var(--text); word-break: break-all; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Alerts & toasts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); border: 1px solid; font-size: .92rem; margin-bottom: 16px; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin: 0; }
.alert-success { color: var(--success); background: var(--success-bg); border-color: rgba(52, 211, 153, .3); }
.alert-danger, .alert-error { color: var(--danger); background: var(--danger-bg); border-color: rgba(248, 113, 113, .3); }
.alert-warning { color: var(--warning); background: var(--warning-bg); border-color: rgba(251, 191, 36, .3); }
.alert-info { color: var(--info); background: var(--info-bg); border-color: rgba(96, 165, 250, .3); }
.alert > div { color: var(--text); }
.alert strong { color: inherit; }
.toasts { position: fixed; z-index: 400; inset-inline-end: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); color: var(--text); font-size: .9rem; animation: toastIn .35s var(--ease); }
.toast .icon { margin-top: 2px; }
.toast-success .icon { color: var(--success); } .toast-error .icon { color: var(--danger); } .toast-info .icon { color: var(--info); } .toast-warning .icon { color: var(--warning); }
.toast-close { margin-inline-start: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(var(--primary-rgb), .04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-check { width: 40px; }
.table .col-actions { text-align: end; white-space: nowrap; }
.table a.sort { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.table a.sort.is-active { color: var(--text); }
.table .cell-title { font-weight: 600; color: var(--heading); }
.table .cell-sub { color: var(--muted); font-size: .8rem; }
.table-compact td, .table-compact th { padding: 9px 12px; }
.id-chip { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .input, .toolbar .select { min-height: 38px; padding-block: 7px; font-size: .88rem; width: auto; }
.toolbar .input-icon { flex: 1 1 220px; min-width: 180px; }
.toolbar .input-icon .input { width: 100%; }
.status-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs a { padding: 7px 13px; border-radius: 999px; font-size: .83rem; font-weight: 600; color: var(--text-2); white-space: nowrap; border: 1px solid transparent; }
.status-tabs a:hover { background: var(--surface-2); color: var(--text); }
.status-tabs a.active { background: rgba(var(--primary-rgb), .14); color: var(--text); border-color: rgba(var(--primary-rgb), .35); }
.status-tabs .count { font-size: .72rem; opacity: .7; margin-inline-start: 4px; }
.bulk-bar { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: rgba(var(--primary-rgb), .1); border-bottom: 1px solid var(--border); font-size: .88rem; }
.bulk-bar.is-visible { display: flex; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.pagination ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--primary); color: var(--text); }
.pagination .active { background: var(--grad); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: .4; }
.pagination .gap { border: 0; }
.pagination-meta { color: var(--muted); font-size: .84rem; padding: 14px 16px; }
.pagination .pagination-meta { padding: 0; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { color: var(--heading); font-size: 1.05rem; margin-bottom: 6px; }
.empty p { max-width: 360px; margin: 0 auto 16px; font-size: .9rem; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 210px; max-width: min(340px, calc(100vw - 24px));
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 120; opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right;
  transition: opacity .16s, transform .16s var(--ease), visibility .16s;
}
.dropdown-menu.align-start { inset-inline-end: auto; inset-inline-start: 0; }
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; color: var(--text); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-align: start; }
.dropdown-item:hover, .dropdown-item.active { background: var(--surface-3); color: var(--text); }
.dropdown-item .icon { color: var(--muted); }
.dropdown-item.danger, .dropdown-item.danger .icon { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-label { padding: 8px 11px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 18, .66); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: modalIn .25s var(--ease); }
.modal-lg .modal-dialog { max-width: 760px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface-solid); z-index: 1; }
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
body.modal-open { overflow: hidden; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 15px; font-weight: 600; font-size: .9rem; color: var(--text-2); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; font-family: var(--font); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--heading); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s; }

/* ---------- Avatar ---------- */
.avatar { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.3rem; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { color: var(--heading); }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 6px 16px rgba(var(--primary-rgb), .45)); }
.brand-logo { max-height: 38px; width: auto; max-width: 180px; object-fit: contain; }
.brand-name span { color: var(--accent); }

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .25s, border-color .25s, box-shadow .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 20px; }
.nav-links a { white-space: nowrap; padding: 8px 13px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--heading); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-toggle, .icon-btn.nav-toggle { display: none; }
.mobile-nav { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 88vw); background: var(--surface-solid); border-inline-start: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; animation: slideIn .28s var(--ease); }
.mobile-nav .panel a.link { padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.mobile-nav .panel a.link:hover { background: var(--surface-3); }
.mobile-nav .backdrop { position: absolute; inset: 0; background: rgba(2, 6, 18, .6); backdrop-filter: blur(3px); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
[dir="rtl"] .mobile-nav .panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-30px); opacity: 0; } }

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-badge { text-align: start; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: .84rem; font-weight: 600; color: var(--text-2); margin-bottom: 22px; backdrop-filter: var(--blur); }
.hero-badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .74rem; letter-spacing: .04em; }
.hero h1 { margin-bottom: 18px; }
.hero-brand { display: block; font-size: clamp(.95rem, 1.6vw, 1.1rem); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--success); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

.feature { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; height: 100%; }
.feature-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); color: var(--accent); margin-bottom: 18px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: .93rem; margin: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); margin-bottom: 16px; box-shadow: 0 10px 24px -8px rgba(var(--primary-rgb), .7); }
.step h3 { font-size: 1.04rem; }
.step p { color: var(--text-2); font-size: .92rem; margin: 0; }



.feedback { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; gap: 14px; }
.stars { display: flex; gap: 2px; color: #FBBF24; }
.stars .icon { width: 16px; height: 16px; fill: currentColor; }
.stars .off { color: var(--surface-3); }
.feedback blockquote { margin: 0; color: var(--text-2); font-size: .95rem; white-space: pre-line; }
.feedback .who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.feedback .who b { display: block; color: var(--heading); font-size: .92rem; }
.feedback .who small { color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 20px; font-weight: 600; color: var(--heading); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .25s var(--ease); color: var(--muted); }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent); }
.faq-item[open] { border-color: rgba(var(--primary-rgb), .35); }
.faq-answer { padding: 0 20px 18px; color: var(--text-2); font-size: .94rem; white-space: pre-line; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px); text-align: center; background: radial-gradient(60% 90% at 50% 0%, rgba(var(--accent-rgb), .25), transparent 70%), linear-gradient(135deg, #0B2A6B, #0A1838); border: 1px solid rgba(var(--accent-rgb), .25); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(220, 235, 255, .85); max-width: 560px; margin: 0 auto 26px; }
[data-theme="light"] .cta-band { background: radial-gradient(60% 90% at 50% 0%, rgba(var(--accent-rgb), .3), transparent 70%), linear-gradient(135deg, #1546C9, #0E2C80); }

.page-hero { padding-block: clamp(40px, 6vw, 72px) 28px; text-align: center; }
.page-hero p { color: var(--text-2); max-width: 640px; margin-inline: auto; font-size: 1.05rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs .icon { width: 14px; height: 14px; }
[dir="rtl"] .breadcrumbs .icon, [dir="rtl"] .icon-flip { transform: scaleX(-1); }

.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--heading); }
.prose h3 { font-size: 1.12rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px 10px; }

.site-footer { border-top: 1px solid var(--border); padding-top: 56px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), .04)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--text-2); font-size: .92rem; }
.footer-links a:hover { color: var(--heading); }
.footer-about { color: var(--text-2); font-size: .92rem; max-width: 340px; margin-top: 14px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.socials a:hover { color: #fff; background: var(--grad); border-color: transparent; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay-logo { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: .76rem; font-weight: 700; color: var(--text-2); }
.pay-logo img { max-height: 20px; width: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 22px; margin-top: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }

.wa-float { position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1FAF5A; color: #fff; box-shadow: 0 12px 30px -8px rgba(31, 175, 90, .7); transition: transform .2s var(--ease); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }


/* ==========================================================================
   AUTH
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(70% 60% at 20% 10%, rgba(var(--accent-rgb), .22), transparent 70%), linear-gradient(160deg, #0A2463 0%, #06132F 70%); color: #fff; border-inline-end: 1px solid var(--border); }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 440px; }
.auth-side p { color: rgba(220, 234, 255, .8); max-width: 420px; }
.auth-side .brand { color: #fff; }
.auth-side .checks { display: grid; gap: 12px; margin-top: 24px; }
.auth-side .checks span { display: flex; gap: 10px; align-items: center; color: rgba(230, 240, 255, .9); font-weight: 500; }
.auth-side .checks .icon { color: var(--accent); }
.auth-side .cloud-art { position: absolute; inset-inline-end: -120px; bottom: -120px; width: 520px; opacity: .14; color: #7FE7FF; pointer-events: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; gap: 10px; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ==========================================================================
   APP SHELL (client + admin)
   ========================================================================== */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 150; width: var(--sidebar-w);
  display: flex; flex-direction: column; background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  border-inline-end: 1px solid var(--border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: transform .3s var(--ease);
}
.sidebar-head { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px 20px; scrollbar-width: thin; }
.nav-section { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: .9rem; margin-bottom: 2px; position: relative; }
.nav-item .icon { width: 19px; height: 19px; color: var(--muted); transition: color .15s; }
.nav-item:hover { background: var(--surface-2); color: var(--heading); }
.nav-item:hover .icon { color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, rgba(var(--primary-rgb), .2), rgba(var(--primary-rgb), .05)); color: var(--heading); }
.nav-item.active .icon { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; inset-inline-start: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-item .pill { margin-inline-start: auto; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--danger); color: #fff; }
.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 140; background: rgba(2, 6, 18, .6); backdrop-filter: blur(2px); }

.main { flex: 1; min-width: 0; margin-inline-start: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 100; height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); }
.topbar-title { font-weight: 700; color: var(--heading); font-size: 1.02rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.topbar .btn-icon { width: 40px; height: 40px; min-height: 40px; border-radius: 12px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { color: var(--heading); border-color: var(--border-strong); }
.icon-btn .dot { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.user-btn { display: inline-flex; align-items: center; gap: 9px; padding: 3px 10px 3px 3px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: 600 .88rem var(--font); }
.user-btn .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: .75rem; }
.content { padding: 26px 24px 48px; width: 100%; max-width: 1440px; margin-inline: auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: .92rem; }
.app-footer { padding: 18px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .92rem; transition: border-color .2s, transform .2s var(--ease); }
.quick-action:hover { border-color: rgba(var(--primary-rgb), .45); transform: translateY(-2px); color: var(--heading); }
.quick-action .qa-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); border: 1px solid var(--border); flex-shrink: 0; }
.quick-action.primary { background: var(--grad); color: #fff; border-color: transparent; }
.quick-action.primary .qa-icon { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.22); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; color: var(--heading); font-size: .9rem; }
.list-item .sub { color: var(--muted); font-size: .8rem; }
.list-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); flex-shrink: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 0; }
.kv > div { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--muted); font-weight: 600; padding-inline-end: 12px; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.amount-pos { color: var(--success); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }

/* notifications dropdown */
.notif-menu { width: 360px; padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--heading); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: .86rem; }
.notif:hover { background: var(--surface-3); color: var(--text); }
.notif.unread { background: rgba(var(--primary-rgb), .06); }
.notif.unread .n-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-inline-start: 7px; vertical-align: middle; }
.notif .n-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); flex-shrink: 0; }
.notif .n-title { font-weight: 600; color: var(--heading); }
.notif .n-body { color: var(--muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif .n-time { color: var(--muted); font-size: .74rem; margin-top: 2px; }
.notif-foot { padding: 10px; text-align: center; }

/* order form */
.order-summary { position: sticky; top: calc(var(--topbar-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .92rem; border-bottom: 1px dashed var(--border); }
.summary-row:last-child { border-bottom: 0; }
.summary-row span:first-child { color: var(--muted); }
.summary-row strong { color: var(--heading); text-align: end; }
.summary-total { font-size: 1.5rem; font-weight: 800; color: var(--heading); }
.disclaimer { font-size: .8rem; color: var(--muted); padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }

/* ticket thread */
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; max-width: 86%; }
.msg.mine { margin-inline-start: auto; flex-direction: row-reverse; }
.msg-bubble { padding: 13px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.msg.staff .msg-bubble { background: rgba(var(--primary-rgb), .1); border-color: rgba(var(--primary-rgb), .28); }
.msg-meta { font-size: .76rem; color: var(--muted); margin-bottom: 5px; display: flex; gap: 8px; flex-wrap: wrap; }
.msg-meta b { color: var(--heading); }
.msg-text { white-space: pre-wrap; word-break: break-word; font-size: .92rem; }
.attachment { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 11px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); font-size: .82rem; color: var(--text); }

/* payment methods */
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.method { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: center; font-weight: 600; font-size: .88rem; transition: border-color .2s, box-shadow .2s; margin: 0; min-height: 104px; }
.method input { position: absolute; opacity: 0; }
.method:hover { border-color: var(--border-strong); }
.method:has(input:checked), .method.is-selected { border-color: var(--primary); box-shadow: var(--glow); background: rgba(var(--primary-rgb), .07); }
.method img { max-height: 34px; max-width: 110px; object-fit: contain; }
.method .m-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.method small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.pay-box { padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface-2); }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border); font-family: var(--mono); font-size: .9rem; word-break: break-all; }
.copy-field span { flex: 1; min-width: 0; }
.qr { max-width: 220px; border-radius: 14px; background: #fff; padding: 10px; border: 1px solid var(--border); }

/* charts */
.chart { position: relative; width: 100%; height: 280px; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .tooltip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: .8rem; white-space: nowrap; opacity: 0; transition: opacity .12s; z-index: 5; }
.chart .tooltip b { color: var(--heading); display: block; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.range-select { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* misc */
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .88rem; }
.settings-nav a:hover, .settings-nav a.active { background: var(--surface-2); color: var(--heading); }
.settings-nav a.active .icon { color: var(--accent); }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-img { max-height: 64px; max-width: 200px; border-radius: 10px; padding: 6px; background: var(--surface-3); border: 1px solid var(--border); object-fit: contain; }
.icon-preview { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--border); color: var(--accent); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; padding: 4px; }
.icon-grid button { height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.icon-grid button:hover, .icon-grid button.active { border-color: var(--primary); color: var(--accent); }
.drag-handle { cursor: grab; color: var(--muted); }
tr.is-dragging { opacity: .45; }
tr.drag-over td { box-shadow: inset 0 2px 0 var(--primary); }
.notice-bar { padding: 10px 16px; text-align: center; font-size: .86rem; font-weight: 600; background: var(--warning-bg); color: var(--warning); border-bottom: 1px solid rgba(251,191,36,.3); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* error / maintenance pages */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.error-page p { color: var(--text-2); max-width: 460px; margin: 0 auto 26px; }
.debug-box { margin-top: 24px; text-align: start; font-family: var(--mono); font-size: .8rem; padding: 14px; background: var(--danger-bg); border: 1px solid rgba(248,113,113,.3); border-radius: var(--radius); color: var(--danger); max-width: 760px; word-break: break-all; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); background: var(--surface-solid); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.is-open { transform: none; }
  .sidebar.is-open + .sidebar-backdrop { display: block; }
  .main { margin-inline-start: 0; }
  .nav-toggle, .icon-btn.nav-toggle { display: inline-grid; }
  .nav-links, .nav-actions .hide-md { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; border: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .hide-md { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3, .split-even { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 1.22rem; }
  .stat-icon { width: 32px; height: 32px; }
  .content { padding: 18px 14px 36px; }
  .topbar { padding: 0 12px; gap: 6px; }
  .hide-sm { display: none !important; }
  .show-sm { display: initial !important; }
  .card-header, .card-body { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .page-head { align-items: flex-start; }
  .page-head .btn-group, .page-head > .btn { width: 100%; }
  .page-head > .btn { justify-content: center; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-dialog { border-radius: 22px 22px 0 0; max-height: 92vh; }
  .msg { max-width: 100%; }
  .notif-menu { position: fixed; top: calc(var(--topbar-h) + 4px); inset-inline: 8px; width: auto; max-width: none; }
  .dropdown-menu { max-width: calc(100vw - 16px); }
  .toolbar .input, .toolbar .select { flex: 1 1 140px; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-action { flex-direction: column; text-align: center; padding: 14px 8px; gap: 8px; font-size: .84rem; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }

  /* Responsive tables → stacked cards */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--border); position: relative; }
  .table-stack tbody tr:hover { background: none; }
  .table-stack td { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; padding: 6px 0; border: 0; text-align: end; min-width: 0; }
  .table-stack td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: start; flex-shrink: 0; max-width: 45%; margin-inline-end: auto; }
  .table-stack td[data-label] > div { flex-basis: 100%; text-align: end; }
  .table-stack td.col-check + td { padding-inline-end: 34px; }
  .table-stack td[data-label=""]::before, .table-stack td:not([data-label])::before { display: none; }
  .table-stack td > * { min-width: 0; }
  .table-stack td.col-title { display: block; text-align: start; padding-top: 2px; }
  .table-stack td.col-title::before { display: none; }
  .table-stack td.col-check { position: absolute; top: 12px; inset-inline-end: 12px; width: auto; padding: 0; }
  .table-stack td.col-check::before { display: none; }
  .table-stack td.col-actions { justify-content: flex-end; padding-top: 10px; flex-wrap: wrap; }
  .table-stack td.col-actions::before { display: none; }
  .table-stack td .truncate { max-width: 60vw; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding-inline: 18px; }
  .hero-cta .btn { width: 100%; }
  .nav-actions .btn-signin { display: none; }
}

@media print {
  .sidebar, .topbar, .site-header, .site-footer, .wa-float, .toasts { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   MARKETPLACE — header, product cards, listing, product page, cart, checkout
   ========================================================================== */
.show-xs-only { display: none; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 500; padding: 8px 14px; border-radius: 10px; background: var(--surface-solid); color: var(--heading); }
.skip-link:focus { left: 12px; }
.min-w-0 { min-width: 0; }
[data-theme="dark"] .theme-moon, [data-theme="light"] .theme-sun { display: none; }
.icon.half { color: var(--surface-3); background: none; }
.stars .icon.half { color: #FBBF24; opacity: .5; }
.avatar-xs { width: 28px; height: 28px; border-radius: 9px; font-size: .68rem; }
.pill { font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--danger); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--border); }
.hdr-main { display: flex; align-items: center; gap: 18px; height: 70px; }
.hdr-main .brand { flex-shrink: 0; }
.hdr-search { position: relative; flex: 1; max-width: 640px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 4px 4px 4px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-strong); transition: border-color .2s, box-shadow .2s; }
.hdr-search:focus-within { border-color: rgba(var(--primary-rgb), .7); box-shadow: var(--focus); }
.hdr-search > .icon { color: var(--muted); }
.hdr-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 .94rem var(--font); }
.hdr-search input::placeholder { color: var(--muted); }
.hdr-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.hdr-search .btn { min-height: 36px; border-radius: 10px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.hdr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; min-width: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 .88rem var(--font); cursor: pointer; transition: border-color .2s, color .2s, background .2s; white-space: nowrap; }
.hdr-btn:hover { color: var(--heading); border-color: var(--border-strong); }
.hdr-btn .icon { width: 19px; height: 19px; }
.hdr-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.hdr-account { padding-inline: 5px 10px; }
.hdr-account .hdr-count { background: var(--danger); }
.hdr-menu, .hdr-search-toggle { display: none; }
.hdr-currency .cur-sym { color: var(--accent); font-weight: 800; }
.hdr-currency .cur-code { font-weight: 700; color: var(--heading); }
.hdr-currency .icon { width: 14px; height: 14px; }
.currency-menu { min-width: 300px; }
.currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.currency-grid .dropdown-item { gap: 9px; padding: 8px 9px; }
.currency-grid .dropdown-item b { display: block; font-size: .86rem; color: var(--heading); }
.currency-grid .dropdown-item small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.2; }
.cur-badge { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); font-weight: 800; font-size: .74rem; }
.dropdown-item.active .cur-badge { background: var(--grad); color: #fff; }
.dropdown-note { padding: 8px 11px 6px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 6px; }
.account-menu { min-width: 250px; }
.account-menu-head { padding: 10px 11px 6px; }
.account-menu .pill { margin-inline-start: auto; }

.hdr-nav { border-top: 1px solid var(--border); }
.hdr-nav-inner { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav-inner::-webkit-scrollbar { display: none; }
.hdr-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font: 600 .88rem var(--font); white-space: nowrap; border: 0; background: none; cursor: pointer; }
.hdr-nav-link .icon { width: 16px; height: 16px; color: var(--muted); }
.hdr-nav-link:hover, .hdr-nav-link.active, .mega.open .mega-toggle { color: var(--heading); background: var(--surface-2); }
.hdr-nav-link:hover .icon, .hdr-nav-link.active .icon { color: var(--accent); }
.mega-toggle { background: rgba(var(--primary-rgb), .12); color: var(--heading); }
.mega-toggle .icon:first-child { color: var(--accent); }
.hdr-nav-sep { flex: 1; }
.hdr-wa .icon { color: #22c55e !important; }
.mega { position: static; }
.hdr-nav-inner .mega { position: relative; }
.mega-menu { width: min(760px, calc(100vw - 32px)); padding: 10px; inset-inline-start: 0; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); }
.mega-item:hover { background: var(--surface-3); color: var(--heading); }
.mega-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent); }
.mega-icon .icon { width: 20px; height: 20px; }
.mega-icon.sm { width: 30px; height: 30px; border-radius: 9px; }
.mega-icon.sm .icon { width: 16px; height: 16px; }
.mega-text { flex: 1; min-width: 0; }
.mega-text b { display: block; font-size: .92rem; color: var(--heading); }
.mega-text small { display: block; font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-count { font-size: .74rem; font-weight: 700; color: var(--muted); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--border); }
.hdr-mobile-search { padding-block: 10px; border-top: 1px solid var(--border); }
.hdr-search-mobile { max-width: none; }

/* search suggestions */
.search-pop { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 130; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto; }
.search-pop .sp-label { padding: 8px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-pop a.sp-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 11px; color: var(--text); }
.search-pop a.sp-item:hover, .search-pop a.sp-item.is-active { background: var(--surface-3); }
.search-pop img { width: 54px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface-3); }
.search-pop .sp-name { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pop .sp-name small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; }
.search-pop .sp-price { font-weight: 800; color: var(--heading); font-size: .86rem; }
.search-pop .sp-all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-weight: 600; font-size: .86rem; }
.search-pop .sp-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .88rem; }

.mobile-nav .panel a.link-sub { padding-block: 8px; font-weight: 500; }
.mobile-nav-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 14px 4px; }
.mobile-prefs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mobile-prefs .dropdown-menu { inset-inline-end: auto; inset-inline-start: 0; }

/* ---------- Store hero ---------- */
.store-hero { position: relative; padding-block: clamp(36px, 6vw, 76px) clamp(36px, 6vw, 64px); overflow: hidden; }
.store-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.store-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 16px; }
.store-hero .lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--text-2); max-width: 580px; margin-bottom: 26px; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 580px; padding: 6px 6px 6px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); backdrop-filter: var(--blur); position: relative; }
.hero-search:focus-within { border-color: rgba(var(--primary-rgb), .7); box-shadow: var(--focus), var(--shadow-lg); }
.hero-search > .icon { color: var(--muted); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 1rem var(--font); height: 46px; }
.hero-search .btn { min-height: 46px; border-radius: 13px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.hero-tags span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hero-tags a { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--text-2); }
.hero-tags a:hover { color: var(--heading); border-color: rgba(var(--primary-rgb), .45); }
.hero-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 600px; }
.hero-trust div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.hero-trust b { font-size: 1.05rem; color: var(--heading); display: flex; gap: 6px; align-items: center; }
.hero-trust b .icon { color: var(--accent); width: 17px; height: 17px; }
.hero-trust small { color: var(--muted); font-size: .76rem; font-weight: 600; }

.hero-showcase { position: relative; height: 470px; }
.showcase-card { position: absolute; width: 74%; border-radius: 22px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); transition: transform .4s var(--ease); }
.showcase-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface-3); }
.showcase-card .sc-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.showcase-card .sc-body b { color: var(--heading); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-card .sc-body span { font-weight: 800; color: var(--heading); white-space: nowrap; }
.showcase-card.c1 { top: 0; inset-inline-end: 0; z-index: 3; width: 72%; }
.showcase-card.c2 { bottom: 0; inset-inline-start: 0; z-index: 2; width: 60%; transform: rotate(-3deg); }
.hero-showcase:hover .showcase-card.c2 { transform: rotate(-4deg) translateX(-6px); }
.showcase-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); backdrop-filter: var(--blur); box-shadow: var(--shadow-lg); font-size: .8rem; }
.showcase-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.showcase-chip b { display: block; color: var(--heading); font-size: .84rem; }
.showcase-chip small { color: var(--muted); }
.showcase-chip.ch1 { bottom: 24px; inset-inline-end: 2%; }
.showcase-chip.ch2 { top: 40px; inset-inline-start: 0; }
.hero-art { position: relative; height: 420px; display: grid; place-items: center; }
.hero-art .art-core { width: 58%; aspect-ratio: 1; border-radius: 34%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.2), transparent 60%), var(--grad); display: grid; place-items: center; box-shadow: 0 30px 80px -10px rgba(var(--primary-rgb), .6); animation: float 6s ease-in-out infinite; }
.hero-art .art-core .icon { width: 42%; height: 42%; color: #fff; }

/* hero banner slider */
.banner-slider { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); background: var(--surface-solid); aspect-ratio: 3 / 2; }
.banner-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide .bs-text { position: absolute; inset: auto 0 0 0; padding: 26px 24px 22px; background: linear-gradient(180deg, transparent, rgba(3, 8, 22, .88)); color: #fff; }
.banner-slide .bs-text h3 { color: #fff; font-size: 1.35rem; margin: 6px 0; }
.banner-slide .bs-text p { color: rgba(225, 236, 255, .86); margin: 0 0 12px; font-size: .92rem; }
.banner-dots { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; gap: 6px; z-index: 2; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.banner-dots button.is-active { background: #fff; width: 22px; border-radius: 9px; }
.badge-glass { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .74rem; font-weight: 700; }

/* ---------- Section heads ---------- */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.shead h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.shead p { margin: 6px 0 0; color: var(--text-2); }
.shead .eyebrow { margin-bottom: 8px; }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; min-height: 160px; }
.cat-tile::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent); }
.cat-tile:hover { transform: translateY(-3px); border-color: rgba(var(--primary-rgb), .45); box-shadow: var(--shadow-lg); color: var(--text); }
.cat-tile h3 { margin: 0; font-size: 1.02rem; }
.cat-tile p { margin: 0; font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile .cat-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--text-2); }
.cat-tile .cat-foot .icon { color: var(--accent); transition: transform .2s; }
.cat-tile:hover .cat-foot .icon { transform: translateX(4px); }
.cat-tile .cat-img { position: absolute; inset: 0; opacity: .14; }
.cat-tile .cat-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); border-color: rgba(var(--primary-rgb), .4); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--surface-3); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 60px); }
.pbadge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: #fff; backdrop-filter: blur(6px); }
.pbadge .icon { width: 12px; height: 12px; }
.pbadge-sale { background: #E11D48; }
.pbadge-new { background: var(--grad); }
.pbadge-hot { background: rgba(245, 158, 11, .92); color: #1b1203; }
.pbadge-out { background: rgba(15, 23, 42, .82); }
.pbadge-free { background: #059669; }
.pcard-wish { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(5, 12, 31, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: transform .15s, background .2s; z-index: 2; }
.pcard-wish:hover { transform: scale(1.08); }
.pcard-wish.is-on { background: #E11D48; border-color: transparent; }
.pcard-wish.is-on .icon { fill: currentColor; }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.pcard-cat { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pcard-title { margin: 0; font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-title a { color: var(--heading); }
.pcard-title a:hover { color: var(--accent); }
.pcard-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.pcard-meta .stars .icon { width: 14px; height: 14px; }
.pcard-sales { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; }
.pcard-sales .icon { width: 13px; height: 13px; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.price-now { font-size: 1.18rem; font-weight: 800; color: var(--heading); letter-spacing: -.02em; }
.price-old { font-size: .84rem; color: var(--muted); text-decoration: line-through; }
.pcard-cart { width: 40px; min-height: 40px; height: 40px; border-radius: 12px; }

/* ---------- Offer banners ---------- */
.offer-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
.offer-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 26px; border-radius: var(--radius-xl); overflow: hidden; color: #fff; background: linear-gradient(135deg, #0B2A6B, #0A1838); border: 1px solid rgba(var(--accent-rgb), .25); }
.offer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.offer-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 9, 26, .92), rgba(3, 9, 26, .35)); }
.offer-card > * { position: relative; }
.offer-card h3 { color: #fff; font-size: 1.4rem; margin: 10px 0 6px; max-width: 420px; }
.offer-card p { color: rgba(225, 236, 255, .86); margin: 0 0 16px; max-width: 420px; font-size: .92rem; }

/* ---------- Why / features ---------- */
.why-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Reviews ---------- */
.review-card { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; height: 100%; }
.review-card blockquote { margin: 0; color: var(--text-2); font-size: .94rem; white-space: pre-line; }
.review-card .who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.review-card .who b { color: var(--heading); display: block; }
.review-card .who a { font-size: .78rem; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--success); }
.verified .icon { width: 13px; height: 13px; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(26px, 5vw, 46px); border-radius: var(--radius-xl); background: radial-gradient(60% 90% at 100% 0%, rgba(var(--accent-rgb), .22), transparent 70%), linear-gradient(135deg, #0B2A6B, #0A1838); border: 1px solid rgba(var(--accent-rgb), .25); color: #fff; }
[data-theme="light"] .newsletter { background: radial-gradient(60% 90% at 100% 0%, rgba(var(--accent-rgb), .3), transparent 70%), linear-gradient(135deg, #1546C9, #0E2C80); }
.newsletter h2 { color: #fff; margin-bottom: 8px; }
.newsletter p { color: rgba(220, 235, 255, .86); margin: 0; }
.newsletter form { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.newsletter input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 12px; font: 500 .95rem var(--font); height: 46px; }
.newsletter input::placeholder { color: rgba(220, 235, 255, .7); }
.newsletter .btn { min-height: 46px; --btn-bg: #fff; --btn-color: #0B2A6B; --btn-border: transparent; }
.newsletter small { display: block; margin-top: 8px; color: rgba(220, 235, 255, .7); }

/* ---------- Page header & breadcrumbs ---------- */
.page-top { padding-block: 26px 10px; }
.page-top h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.page-top p { color: var(--text-2); margin: 8px 0 0; max-width: 720px; }

/* ---------- Listing ---------- */
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 60px; }
.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.filters-head h2 { font-size: 1rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.filter-block { padding-block: 14px; border-top: 1px solid var(--border); }
.filter-block:first-of-type { border-top: 0; }
.filter-title { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.filter-list a:hover, .filter-list a.active { background: var(--surface-3); color: var(--heading); }
.filter-list a.active .icon { color: var(--accent); }
.filter-list a .count { margin-inline-start: auto; font-size: .74rem; color: var(--muted); }
.filter-checks { display: flex; flex-direction: column; gap: 9px; }
.filter-checks .check { font-size: .88rem; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.price-range .input { min-height: 38px; padding: 7px 10px; font-size: .88rem; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-bar .count { color: var(--text-2); font-size: .92rem; }
.shop-bar .count b { color: var(--heading); }
.shop-bar .select { width: auto; min-height: 40px; padding-block: 8px; font-size: .88rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(var(--primary-rgb), .12); border: 1px solid rgba(var(--primary-rgb), .3); color: var(--text); font-size: .8rem; font-weight: 600; }
.active-filters a .icon { width: 13px; height: 13px; }
.filters-toggle { display: none; }
.filters-backdrop { display: none; }
.filters-close { display: none; }
.cat-banner { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); margin-bottom: 20px; }
.cat-banner .mega-icon { width: 56px; height: 56px; border-radius: 16px; }
.cat-banner .mega-icon .icon { width: 26px; height: 26px; }
.cat-banner h1 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin: 0 0 4px; }
.cat-banner p { margin: 0; color: var(--text-2); font-size: .92rem; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; padding-bottom: 20px; }
.gallery-main { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 96px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-3); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 140px; padding: 24px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.buybox h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 8px 0 10px; }
.buybox .lead { color: var(--text-2); font-size: .95rem; margin-bottom: 16px; }
.buybox-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--text-2); margin-bottom: 14px; }
.price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.price-box .price-now { font-size: 2rem; }
.price-box .price-old { font-size: 1rem; }
.price-box .save { font-size: .8rem; font-weight: 800; color: #fff; background: #E11D48; padding: 3px 9px; border-radius: 999px; }
.price-box .sale-ends { flex-basis: 100%; font-size: .8rem; color: var(--warning); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.price-box .base-note { flex-basis: 100%; font-size: .76rem; color: var(--muted); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.buy-actions .btn { min-height: 50px; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.qty button { width: 40px; border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 54px; text-align: center; border: 0; background: transparent; color: var(--heading); font: 700 .95rem var(--font); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.meta-list div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.meta-list small { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meta-list b { display: flex; align-items: center; gap: 6px; color: var(--heading); font-size: .88rem; overflow-wrap: anywhere; }
.meta-list b .icon { color: var(--accent); width: 15px; height: 15px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.trust-row span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: .74rem; font-weight: 600; color: var(--text-2); }
.trust-row .icon { color: var(--accent); width: 20px; height: 20px; }
.pdp-tabs { margin-top: 30px; }
.pdp-tabs .tabs { margin-bottom: 0; }
.pdp-panel { padding: 24px 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .92rem; }
.check-list li .icon { color: var(--success); margin-top: 2px; }
.check-list.req li .icon { color: var(--info); }
.changelog { white-space: pre-line; color: var(--text-2); padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: .92rem; }
.rating-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.rating-big { text-align: center; }
.rating-big b { display: block; font-size: 2.8rem; font-weight: 800; color: var(--heading); line-height: 1; }
.rating-bars { display: grid; gap: 6px; }
.rating-bars div { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: .8rem; color: var(--text-2); }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.review-item .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-item .head b { color: var(--heading); }
.review-item p { margin: 6px 0 0; white-space: pre-line; color: var(--text-2); }
.store-reply { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .22); font-size: .88rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; margin: 0; color: var(--surface-3); }
.star-input label .icon { width: 28px; height: 28px; fill: currentColor; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #FBBF24; }
.star-input input:focus-visible + label { box-shadow: var(--focus); border-radius: 6px; }
.mobile-buybar { display: none; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 60px; }
.cart-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--surface-3); }
.cart-item h3 { font-size: .98rem; margin: 0 0 4px; }
.cart-item h3 a { color: var(--heading); }
.cart-item .sub { font-size: .8rem; color: var(--muted); }
.cart-item .ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .line { font-weight: 800; color: var(--heading); font-size: 1.05rem; }
.cart-item .ci-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.summary { position: sticky; top: 140px; }
.summary .summary-row strong { font-weight: 700; }
.summary-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); }
.summary-total-row span { font-weight: 700; color: var(--heading); }
.summary-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { min-height: 42px; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--success-bg); border: 1px solid rgba(52, 211, 153, .3); color: var(--success); font-weight: 700; font-size: .88rem; }
.checkout-steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.checkout-steps span { display: inline-flex; align-items: center; gap: 6px; }
.checkout-steps .on { color: var(--heading); }
.checkout-steps .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .74rem; }
.checkout-steps .on .num { background: var(--grad); color: #fff; }
.pm-list { display: grid; gap: 10px; }
.pm { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); cursor: pointer; margin: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.pm:hover { border-color: var(--border-strong); }
.pm input { position: absolute; opacity: 0; }
.pm:has(input:checked) { border-color: var(--primary); box-shadow: var(--glow); background: rgba(var(--primary-rgb), .07); }
.pm .pm-logo { width: 48px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; overflow: hidden; color: var(--accent); }
.pm .pm-logo img { max-width: 44px; max-height: 30px; object-fit: contain; }
.pm b { display: block; color: var(--heading); font-size: .94rem; }
.pm small { color: var(--muted); font-size: .78rem; }
.pm .pm-radio { margin-inline-start: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; }
.pm:has(input:checked) .pm-radio { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.pm-details { margin-top: 12px; }
.pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: rgba(var(--primary-rgb), .08); border: 1px solid rgba(var(--primary-rgb), .25); margin-bottom: 14px; }
.pay-amount b { font-size: 1.4rem; color: var(--heading); }
.place-order { min-height: 54px; font-size: 1.02rem; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.secure-note .icon { color: var(--success); width: 15px; height: 15px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.mini-item img { width: 64px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; background: var(--surface-3); flex-shrink: 0; }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item b { display: block; font-size: .88rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item small { color: var(--muted); }
.mini-item .amt { font-weight: 700; color: var(--heading); font-size: .9rem; white-space: nowrap; }

/* ---------- Order page ---------- */
.order-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 22px; }
.order-status .st { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--muted); }
.order-status .st .icon { width: 20px; height: 20px; }
.order-status .st.done { color: var(--heading); border-color: rgba(52, 211, 153, .35); }
.order-status .st.done .icon { color: var(--success); }
.order-status .st.now { color: var(--heading); border-color: rgba(var(--primary-rgb), .5); box-shadow: var(--glow); }
.order-status .st.now .icon { color: var(--accent); }
.deliver-item { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.deliver-item:last-child { border-bottom: 0; }
.deliver-head { display: flex; gap: 14px; align-items: center; }
.deliver-head img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: var(--surface-3); flex-shrink: 0; }
.deliver-head .grow { flex: 1; min-width: 0; }
.deliver-head h3 { margin: 0 0 3px; font-size: .98rem; }
.deliver-body { margin-top: 12px; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.file-row .icon-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); flex-shrink: 0; }
.file-row .grow { flex: 1; min-width: 160px; }
.file-row b { display: block; color: var(--heading); font-size: .9rem; overflow-wrap: anywhere; }
.file-row small { color: var(--muted); font-size: .78rem; }
.key-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); border: 1px dashed var(--border-strong); font-family: var(--mono); font-size: .92rem; color: var(--heading); word-break: break-all; }
.key-box span { flex: 1; min-width: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
.notice .icon { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.notice b { color: var(--heading); }

/* ---------- Account ---------- */
.account-main { padding-top: 26px; }
.account-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 60px; }
.account-side { position: sticky; top: 140px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.account-user { display: flex; gap: 12px; align-items: center; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.account-user .avatar-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 1rem; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a, .account-logout { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; color: var(--text-2); font: 600 .9rem var(--font); background: none; border: 0; cursor: pointer; width: 100%; text-align: start; }
.account-nav a .icon, .account-logout .icon { color: var(--muted); width: 18px; height: 18px; }
.account-nav a:hover, .account-logout:hover { background: var(--surface-2); color: var(--heading); }
.account-nav a.active { background: linear-gradient(90deg, rgba(var(--primary-rgb), .2), rgba(var(--primary-rgb), .05)); color: var(--heading); }
.account-nav a.active .icon { color: var(--accent); }
.account-nav .pill { margin-inline-start: auto; }
.account-logout { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 11px 11px; padding-top: 12px; }
.account-content { min-width: 0; }
.account-content .page-head { margin-bottom: 18px; }
.order-card { padding: 16px 20px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; }
.order-card:last-child { border-bottom: 0; }
.order-card .num { font-weight: 800; color: var(--heading); font-family: var(--mono); font-size: .92rem; }
.order-card .items { color: var(--text-2); font-size: .88rem; margin-top: 2px; }
.order-card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-card .total { font-weight: 800; color: var(--heading); }

/* ---------- Admin product editor ---------- */
.editor-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-top: 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); backdrop-filter: var(--blur); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.thumb .thumb-actions { display: flex; gap: 6px; padding: 8px; justify-content: space-between; background: var(--surface-2); }
.thumb .main-flag { position: absolute; top: 8px; inset-inline-start: 8px; }
.admin-pthumb { width: 64px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; background: var(--surface-3); flex-shrink: 0; }
.cell-product { display: flex; gap: 12px; align-items: center; min-width: 0; }
.flag-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Invoice ---------- */
.invoice { max-width: 860px; margin: 30px auto 60px; padding: clamp(20px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface-solid); border: 1px solid var(--border); }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: start; font-size: .9rem; }
.invoice td.r, .invoice th.r { text-align: end; }

/* ---------- Responsive (marketplace) ---------- */
@media (max-width: 1200px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hide-lg { display: none !important; }
}
@media (max-width: 1100px) {
  .store-hero-grid { grid-template-columns: 1fr; }
  .hero-showcase, .hero-art { display: none; }
  .banner-slider { max-width: 680px; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .buybox { position: static; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hdr-search:not(.hdr-search-mobile) { display: none; }
  .hdr-search-toggle { display: inline-flex; }
  .hdr-menu { display: inline-flex; }
  .hide-md { display: none !important; }
  .hdr-main { gap: 10px; }
  .hdr-nav { display: none; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(340px, 88vw); max-height: none; border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); background: var(--surface-solid); }
  .filters.is-open { transform: none; }
  .filters-backdrop { display: none; position: fixed; inset: 0; z-index: 205; background: rgba(2, 6, 18, .6); backdrop-filter: blur(2px); }
  .filters.is-open + .filters-backdrop { display: block; }
  .filters-toggle { display: inline-flex; }
  .filters-close { display: inline-grid; }
  .account-wrap { grid-template-columns: minmax(0, 1fr); }
  .account-side { position: static; padding: 10px; }
  .account-user { display: none; }
  .account-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav a { white-space: nowrap; border: 1px solid var(--border); width: auto; }
  .account-nav form { display: none; }
}
@media (max-width: 900px) {
  .pgrid, .pgrid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: minmax(0, 1fr); }
  .rating-summary { grid-template-columns: 1fr; }
  .order-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .meta-list { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr); padding: 14px; }
  .cart-item img { width: 84px; }
  .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .order-card { grid-template-columns: 1fr; }
  .order-card .right { flex-direction: row; justify-content: space-between; align-items: center; }
  .mobile-buybar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 95; gap: 10px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface-solid) 94%, transparent); border-top: 1px solid var(--border-strong); backdrop-filter: var(--blur); }
  .mobile-buybar .price-now { font-size: 1.15rem; }
  .mobile-buybar .btn { flex: 1; }
  .has-buybar .wa-float { bottom: 84px; }
  .has-buybar .site-footer { padding-bottom: 70px; }
  .shead { align-items: flex-start; }
  .pdp-tabs .tabs { position: sticky; top: 70px; z-index: 5; background: var(--bg); }
}
@media (max-width: 520px) {
  .pgrid, .pgrid-3 { gap: 10px; }
  .pcard-body { padding: 10px 11px 12px; gap: 6px; }
  .pcard-title { font-size: .86rem; }
  .price-now { font-size: 1rem; }
  .pcard-cart { width: 36px; height: 36px; min-height: 36px; }
  .pcard-sales { display: none !important; }
  .pcard-wish { width: 32px; height: 32px; top: 8px; inset-inline-end: 8px; }
  .pbadge { font-size: .64rem; padding: 2px 7px; }
  .hdr-btn { height: 38px; min-width: 38px; padding: 0 8px; }
  .hdr-actions { gap: 4px; }
  .hide-xs { display: none !important; }
  .show-xs-only { display: inline-block !important; }
  .buy-actions { grid-template-columns: 1fr; }
  .hero-search .btn span { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tile { padding: 14px; min-height: 140px; }
  .cat-tile p { display: none; }
  .currency-menu { position: fixed; top: 70px; inset-inline: 8px; min-width: 0; }
}
@media (max-width: 420px) {
  .hdr-main .brand-name { display: none; }
  .hdr-main { height: 62px; }
  .hdr-currency .cur-sym { display: none; }
  .meta-list { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .pgrid, .pgrid-3 { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .wa-float, .account-side, .mobile-buybar, .no-print { display: none !important; }
  .invoice { border: 0; margin: 0; }
}
