/* ═══════════════════════════════════════════════════════════════════
   wLicenseSystem Design System v5
   Mobile-first · Dark/Light · Corporate SaaS
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --brand:      #5865f2;
  --brand-d:    #4752c4;
  --brand-l:    rgba(88,101,242,0.12);
  --brand-b:    rgba(88,101,242,0.25);
  --accent:     #00d4aa;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;
  --info:       #3b82f6;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, monospace;
  --r-xs: 3px; --r-sm: 6px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 20px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --fast: 150ms; --base: 220ms;
}

/* ── Dark ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:      #0b0d11; --bg-2: #111318; --bg-3: #181b22; --bg-4: #1e2230;
  --surface: #14171e; --surface-2: #1a1e28; --surface-3: #212637;
  --border:  #1f232e; --border-2: #2a2f3d; --border-3: #333a4d;
  --text:    #e8ecf4; --text-2: #8892a4; --text-3: #525e70; --text-4: #3a4456;
  --header-bg: rgba(11,13,17,0.94);
  --input-bg: #111318; --input-bd: #1f232e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.6);
  --scrollbar: #1f232e;
  color-scheme: dark;
}

/* ── Light ─────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:      #f4f6fb; --bg-2: #ebeef5; --bg-3: #e1e6f0; --bg-4: #d5dcea;
  --surface: #ffffff; --surface-2: #f8fafd; --surface-3: #f0f3f9;
  --border:  #e2e7f0; --border-2: #d0d8e8; --border-3: #bec8da;
  --text:    #0d1117; --text-2: #4a5568; --text-3: #8a96a8; --text-4: #b8c2cf;
  --header-bg: rgba(255,255,255,0.95);
  --input-bg: #ffffff; --input-bd: #e2e7f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --scrollbar: #d0d8e8;
  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background var(--base) var(--ease), color var(--base) var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--brand-d); }
ul,ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
p { color: var(--text-2); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 99px; }

/* ── Typography ────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.text-primary { color: var(--brand); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-muted    { color: var(--text-2); }
.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.8125rem; }
.fw-bold  { font-weight: 700; }
.fw-black { font-weight: 900; }
.text-center { text-align: center; }
.w-full  { width: 100%; }
.mt-auto { margin-top: auto; }

/* ── Layout ────────────────────────────────────────────────────── */
.container    { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 20px; }
.container-xs { max-width: 600px;  margin: 0 auto; padding: 0 20px; }
.site-main { padding-top: 60px; min-height: 100vh; }

/* Auto-responsive grids (no fixed column counts that break at 1 item) */
.auto-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.auto-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.auto-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 14px; }

/* ══ HEADER ════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 60px;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
[data-theme="dark"]  .site-header { box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 4px 24px rgba(0,0,0,.3); }
[data-theme="light"] .site-header { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.site-logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; background: linear-gradient(135deg, var(--brand), #7c3aed); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(88,101,242,.4); }
.logo-mark svg { width: 16px; height: 16px; color: #fff; }

.header-nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a { padding: 6px 11px; border-radius: var(--r-sm); font-size: 0.8375rem; font-weight: 500; color: var(--text-2); transition: all var(--fast) var(--ease); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.header-nav a:hover { color: var(--text); background: var(--bg-3); }
.header-nav a.active { color: var(--text); background: var(--bg-3); font-weight: 600; }
.header-nav a svg { width: 14px; height: 14px; flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

.hbtn { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm); font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: all var(--fast) var(--ease); white-space: nowrap; text-decoration: none; }
.hbtn:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-3); }
.hbtn svg { width: 14px; height: 14px; flex-shrink: 0; }
.hbtn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(88,101,242,.3); }
.hbtn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }

/* Cart */
.cart-btn { position: relative; height: 34px; width: 34px; padding: 0; justify-content: center; box-sizing: border-box; }
.cart-btn svg { width: 16px; height: 16px; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 3px; background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700; border-radius: 99px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }

/* Balance chip */
.balance-chip { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-size: .8125rem; font-weight: 700; color: var(--text); text-decoration: none; transition: all var(--fast) var(--ease); }
.balance-chip:hover { border-color: var(--accent); color: var(--text); }
.balance-chip svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* User avatar */
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: .625rem; font-weight: 800; color: #fff; flex-shrink: 0; }

/* Lang/Theme controls */
.lang-sel { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--border); }
.lang-opt { padding: 3px 7px; border-radius: 4px; cursor: pointer; font-size: .75rem; font-weight: 700; color: var(--text-3); border: none; background: none; transition: all var(--fast) var(--ease); letter-spacing: .02em; }
.lang-opt.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.lang-opt:hover:not(.active) { color: var(--text-2); }
.theme-toggle { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--fast) var(--ease); color: var(--text-2); flex-shrink: 0; box-sizing: border-box; }
.theme-toggle:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-3); }
.theme-toggle svg { width: 15px; height: 15px; }

/* Mobile hamburger */
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.mobile-menu-btn span { width: 16px; height: 1.5px; background: var(--text-2); border-radius: 99px; transition: all var(--base) var(--ease); }
.mobile-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 999; padding: 10px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; color: var(--text-2); }
.mobile-nav a:hover { color: var(--text); background: var(--bg-3); }

/* ══ DROPDOWN ══════════════════════════════════════════════════════ */
.dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: .8125rem; font-weight: 500; color: var(--text); cursor: pointer; transition: all var(--fast) var(--ease); box-sizing: border-box; }
.dropdown-trigger:hover { border-color: var(--border-2); }
.dropdown-trigger .chev { width: 12px; height: 12px; transition: transform var(--fast) var(--ease); }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 200px; padding: 4px; box-shadow: var(--shadow-lg); z-index: 600; }
.dropdown.open .dropdown-menu { display: block; animation: ddIn .15s var(--ease); }
@keyframes ddIn { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:none } }
.dd-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r-sm); font-size: .8125rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: all var(--fast) var(--ease); text-decoration: none; border: none; background: none; width: 100%; text-align: left; }
.dd-item:hover { color: var(--text); background: var(--bg-3); }
.dd-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-3); }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: rgba(239,68,68,.08); }
.dd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dd-label { padding: 5px 11px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }

/* ══ BUTTONS ═══════════════════════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-sm); font-family: var(--font); font-size: .875rem; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all var(--fast) var(--ease); white-space: nowrap; text-decoration: none; line-height: 1; min-width: 0; -webkit-tap-highlight-color: transparent; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 1px 3px rgba(88,101,242,.3), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; box-shadow: 0 3px 10px rgba(88,101,242,.4); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover  { filter: brightness(.9); color: #fff; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { filter: brightness(.9); color: #fff; }
.btn-ghost  { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover  { background: var(--bg-3); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm  { padding: 6px 12px; font-size: .8125rem; }
.btn-xs  { padding: 4px 9px; font-size: .75rem; }
.btn-lg  { padding: 11px 22px; font-size: .9375rem; }
.btn-icon { padding: 7px; aspect-ratio: 1; }
.btn-icon-sm { padding: 5px; aspect-ratio: 1; }
.btn-full { width: 100%; }

/* ══ FORMS ══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.form-control { width: 100%; padding: 9px 12px; background: var(--input-bg); border: 1px solid var(--input-bd); border-radius: var(--r-sm); color: var(--text); font-family: var(--font); font-size: .875rem; outline: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); -webkit-appearance: none; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(88,101,242,.15); }
.form-control::placeholder { color: var(--text-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-hint { margin-top: 5px; font-size: .75rem; color: var(--text-3); }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ══ CARDS ══════════════════════════════════════════════════════════ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--fast) var(--ease); }
.card-body   { padding: 20px; }
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-size: .9rem; font-weight: 700; }
.card-footer { padding: 13px 20px; border-top: 1px solid var(--border); background: var(--bg-2); }

/* ══ BADGES ═════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--r-xs); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-primary { background: var(--brand-l);             color: var(--brand);   border: 1px solid var(--brand-b); }
.badge-success { background: rgba(34,197,94,.1);          color: var(--success); border: 1px solid rgba(34,197,94,.25); }
.badge-danger  { background: rgba(239,68,68,.1);          color: var(--danger);  border: 1px solid rgba(239,68,68,.25); }
.badge-warning { background: rgba(245,158,11,.1);         color: var(--warning); border: 1px solid rgba(245,158,11,.25); }
.badge-info    { background: rgba(59,130,246,.1);         color: var(--info);    border: 1px solid rgba(59,130,246,.25); }
.badge-gray    { background: var(--bg-3);                 color: var(--text-3);  border: 1px solid var(--border-2); }
.badge-sale    { background: var(--danger); color: #fff;  border: none; padding: 3px 8px; border-radius: var(--r-xs); }

/* ══ ALERTS ═════════════════════════════════════════════════════════ */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 15px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; margin-bottom: 16px; border: 1px solid; }
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.25);  color: var(--success); }
.alert-danger  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.25);  color: var(--danger);  }
.alert-warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); color: var(--warning); }
.alert-info    { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.25); color: var(--info);    }

/* ══ TABLE ══════════════════════════════════════════════════════════ */
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 540px; }
thead { background: var(--bg-2); }
thead tr { border-bottom: 1px solid var(--border); }
th { padding: 11px 14px; text-align: left; font-size: .7rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { padding: 12px 14px; font-size: .8375rem; border-bottom: 1px solid var(--border); color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tbody tr { background: var(--surface); transition: background var(--fast) var(--ease); }
tbody tr:hover { background: var(--surface-2); }

/* ══ PRODUCT CARD ═══════════════════════════════════════════════════ */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), transform var(--base) var(--ease); position: relative; }
.product-card:hover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 8px 32px rgba(88,101,242,.15); transform: translateY(-2px); }
.pc-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); position: relative; flex-shrink: 0; }
.pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-card:hover .pc-image img { transform: scale(1.04); }
.pc-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.pc-image-placeholder svg { width: 36px; height: 36px; color: var(--text-4); }
.pc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pc-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pc-category { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.pc-title { font-size: .9375rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.pc-desc  { font-size: .8125rem; color: var(--text-3); line-height: 1.55; flex: 1; }
.pc-meta  { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 6px; }
.pc-price .now { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.pc-price .was { font-size: .8rem; color: var(--text-3); text-decoration: line-through; margin-left: 5px; }
.pc-actions { display: flex; gap: 5px; }

/* ══ CATEGORY CARD ══════════════════════════════════════════════════ */
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), transform var(--base) var(--ease); }
.cat-card:hover { border-color: var(--brand); box-shadow: 0 8px 32px rgba(88,101,242,.15); transform: translateY(-3px); }
.cat-card-img { aspect-ratio: 16/7; overflow: hidden; background: var(--bg-3); position: relative; flex-shrink: 0; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.cat-card-img-ph svg { width: 48px; height: 48px; color: var(--text-4); }
.cat-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); }
.cat-card-body { padding: 16px 18px; flex: 1; }
.cat-card-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cat-card-desc  { font-size: .8125rem; color: var(--text-3); line-height: 1.55; }
.cat-card-foot  { padding: 11px 18px; border-top: 1px solid var(--border); background: var(--bg-2); display: flex; align-items: center; justify-content: space-between; }

/* ══ HERO ═══════════════════════════════════════════════════════════ */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--border); background: var(--bg-2); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(88,101,242,.07) 0%, transparent 65%); top: -200px; right: -100px; pointer-events: none; }
.hero::after  { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,212,170,.04) 0%, transparent 65%); bottom: -100px; left: 5%; pointer-events: none; }
.hero-bottom-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%); opacity: .3; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r); background: var(--brand-l); border: 1px solid var(--brand-b); font-size: .725rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.hero-kicker svg { width: 12px; height: 12px; }
.hero-title { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; color: var(--text); margin-bottom: 14px; }
/* Single-color hero word (configurable, no gradient by default) */
.hero-title .brand-word { color: var(--brand); }
.hero-subtitle { font-size: .9375rem; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; }
.hero-actions   { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-image { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-xl); width: 100%; max-width: 480px; aspect-ratio: 1; object-fit: cover; }

/* ══ STATS ══════════════════════════════════════════════════════════ */
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item   { padding: 20px 22px; border-right: 1px solid var(--border); display: flex; align-items: center; gap: 12px; transition: background var(--fast) var(--ease); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface-2); }
.stat-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--brand-l); border: 1px solid var(--brand-b); display: flex; align-items: center; justify-content: center; }
.stat-icon svg { width: 17px; height: 17px; color: var(--brand); }
.stat-num { font-size: 1.35rem; font-weight: 900; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.stat-lbl { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

/* ══ SECTIONS ═══════════════════════════════════════════════════════ */
.section    { padding: 52px 0; }
.section-sm { padding: 32px 0; }
.section-head { margin-bottom: 28px; }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-size: .725rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin-bottom: 8px; }
.section-label svg { width: 12px; height: 12px; }
.section-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.section-sub   { color: var(--text-2); margin-top: 6px; font-size: .9375rem; }

/* ══ FEATURES ═══════════════════════════════════════════════════════ */
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px; transition: border-color var(--base) var(--ease), transform var(--base) var(--ease); }
.feature-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.feature-icon { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--brand-l); border: 1px solid var(--brand-b); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-icon svg { width: 20px !important; height: 20px !important; color: var(--brand); }
.feature-title { font-size: .9375rem; font-weight: 700; margin-bottom: 5px; }
.feature-desc  { font-size: .8125rem; color: var(--text-2); line-height: 1.65; }

/* ══ FAQ ════════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.faq-q { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--text); gap: 12px; transition: color var(--fast) var(--ease); }
.faq-q:hover { color: var(--brand); }
.faq-chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); transition: transform var(--fast) var(--ease); }
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--brand); }
.faq-a { display: none; padding: 0 16px 14px; font-size: .875rem; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ══ FOOTER ═════════════════════════════════════════════════════════ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo-area { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-desc  { font-size: .875rem; color: var(--text-2); line-height: 1.65; max-width: 280px; }
.footer-heading { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: .875rem; color: var(--text-2); transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-3); flex-wrap: wrap; gap: 10px; }

/* ══ CART PANEL ═════════════════════════════════════════════════════ */
.cart-overlay { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.cart-overlay.open { display: block; }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(400px,100vw); background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-xl); }
.cart-overlay.open .cart-panel { transform: none; }
.cart-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cart-head-title { font-size: .9375rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cart-head-title svg { width: 16px; height: 16px; color: var(--brand); }
.cart-body { flex: 1; overflow-y: auto; padding: 12px; }
.cart-empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cart-empty svg { width: 40px; height: 40px; color: var(--text-3); }
.cart-empty p { color: var(--text-2); font-size: .875rem; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: var(--r-sm); border: 1px solid var(--border); margin-bottom: 6px; background: var(--bg-2); }
.cart-item-img    { width: 42px; height: 42px; border-radius: var(--r-sm); object-fit: cover; background: var(--bg-3); flex-shrink: 0; }
.cart-item-img-ph { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--bg-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-img-ph svg { width: 18px; height: 18px; color: var(--text-3); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: .8375rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: .8rem; font-weight: 700; color: var(--brand); margin-top: 2px; }
.cart-item-rm    { color: var(--text-3); background: none; border: none; padding: 4px; cursor: pointer; transition: color var(--fast) var(--ease); display: flex; flex-shrink: 0; }
.cart-item-rm:hover { color: var(--danger); }
.cart-item-rm svg { width: 14px; height: 14px; }
.cart-foot { padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total-label { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.cart-total-value { font-size: 1.25rem; font-weight: 900; color: var(--text); }
.pay-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pay-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--border); cursor: pointer; transition: all var(--fast) var(--ease); background: var(--bg-2); }
.pay-opt:hover, .pay-opt.selected { border-color: var(--brand); background: var(--brand-l); }
.pay-opt-icon { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-opt-icon svg { width: 15px; height: 15px; }
.pay-opt-info { flex: 1; min-width: 0; }
.pay-opt-label { font-size: .8375rem; font-weight: 600; color: var(--text); }
.pay-opt-sub   { font-size: .7rem; color: var(--text-3); margin-top: 1px; }

/* ══ AUTH ═══════════════════════════════════════════════════════════ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); position: relative; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 20% 50%, rgba(88,101,242,.06), transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(0,212,170,.04), transparent 60%); }
.auth-box { width: 100%; max-width: 400px; position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.auth-box-head { padding: 26px 26px 0; }
.auth-box-body { padding: 20px 26px 26px; }
.auth-logo-area { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-title { font-size: 1.2rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub   { font-size: .875rem; color: var(--text-2); text-align: center; }

/* ══ LICENSE CARDS ══════════════════════════════════════════════════ */
.lic-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; transition: border-color var(--fast) var(--ease); }
.lic-card:hover { border-color: var(--border-2); }
.lic-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--bg-2); flex-wrap: wrap; }
.lic-product-thumb { width: 42px; height: 42px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border); background: var(--bg-3); flex-shrink: 0; }
.lic-product-thumb-ph { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lic-product-thumb-ph svg { width: 18px; height: 18px; color: var(--text-3); }
.lic-head-info { flex: 1; min-width: 0; }
.lic-product-name { font-size: .9375rem; font-weight: 700; }
.lic-product-code { font-size: .7rem; color: var(--text-3); font-family: var(--mono); margin-top: 2px; }
.lic-head-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lic-body { padding: 16px 18px; }
.lic-key-row { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 13px; margin-bottom: 14px; flex-wrap: wrap; }
.lic-key { font-family: var(--mono); font-size: .9375rem; font-weight: 600; color: var(--text); flex: 1; letter-spacing: .1em; min-width: 0; word-break: break-all; }
.ip-counter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.ip-counter-chip svg { width: 11px; height: 11px; }
.ip-counter-chip.warn { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: var(--warning); }
.ip-counter-chip.full { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: var(--danger); }
.ip-list { display: flex; flex-direction: column; gap: 5px; }
.ip-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg-2); flex-wrap: wrap; gap: 6px; }
.ip-row-left { display: flex; align-items: center; gap: 9px; }
.ip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ip-dot.on  { background: var(--success); box-shadow: 0 0 4px var(--success); }
.ip-dot.off { background: var(--text-3); }
.ip-addr { font-family: var(--mono); font-size: .8125rem; color: var(--text); }
.ip-meta { font-size: .7rem; color: var(--text-3); margin-top: 1px; }

/* ══ ADMIN LAYOUT ═══════════════════════════════════════════════════ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 228px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 200; display: flex; flex-direction: column; transition: transform var(--base) var(--ease); }
.admin-sidebar-head { padding: 0 14px; height: 60px; border-bottom: 1px solid var(--border); display: flex; align-items: center; flex-shrink: 0; }
.admin-nav      { padding: 6px; flex: 1; }
.admin-nav-lbl  { padding: 5px 8px; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-top: 10px; margin-bottom: 1px; }
.admin-nav-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r-sm); font-size: .8125rem; font-weight: 500; color: var(--text-2); transition: all var(--fast) var(--ease); cursor: pointer; text-decoration: none; margin-bottom: 1px; position: relative; }
.admin-nav-item:hover { color: var(--text); background: var(--bg-3); }
.admin-nav-item.active { color: var(--brand); background: var(--brand-l); font-weight: 600; border: 1px solid var(--brand-b); }
.admin-nav-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.admin-sidebar-foot { padding: 8px; border-top: 1px solid var(--border); flex-shrink: 0; }
.admin-main { margin-left: 228px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { height: 60px; padding: 0 22px; background: var(--header-bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); }
.admin-content { padding: 22px; flex: 1; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 14px; flex-wrap: wrap; }
.admin-page-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }

/* Admin stat cards */
.astat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.astat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 15px 17px; position: relative; overflow: hidden; }
.astat-top { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.astat-ico { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.astat-ico svg { width: 16px; height: 16px; }
.astat-val { font-size: 1.35rem; font-weight: 900; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.astat-lbl { font-size: .7rem; color: var(--text-3); margin-top: 3px; }

/* Chart */
.chart-container { position: relative; height: 190px; }
.chart-container canvas { position: absolute; inset: 0; }

/* Admin form sections */
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px; }
.form-section-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .875rem; font-weight: 700; display: flex; align-items: center; gap: 8px; background: var(--bg-2); }
.form-section-head svg { width: 14px; height: 14px; color: var(--brand); }
.form-section-body { padding: 16px; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg-2); border-top: 1px solid var(--border); padding: 12px 0; margin-top: 20px; z-index: 10; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 38px; height: 21px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--bg-4); border-radius: 99px; cursor: pointer; transition: background var(--fast) var(--ease); border: 1px solid var(--border); }
.toggle-track::before { content: ''; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: transform var(--fast) var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + .toggle-track { background: var(--brand); border-color: var(--brand); }
.toggle input:checked + .toggle-track::before { transform: translateX(17px); }

/* Color swatch */
.color-swatch { display: flex; align-items: center; gap: 8px; }
.color-swatch input[type=color] { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px; cursor: pointer; background: var(--surface); }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }

/* Log status */
.ls-valid    { color: var(--success); font-weight: 600; }
.ls-invalid  { color: var(--danger);  font-weight: 600; }
.ls-ip_limit { color: var(--warning); font-weight: 600; }
.ls-suspended{ color: var(--danger);  font-weight: 600; }
.ls-expired  { color: var(--warning); font-weight: 600; }

/* img preview */
.img-preview { width: 80px; height: 80px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--border); margin-top: 8px; display: block; }
.why-row { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; margin-bottom: 8px; }

/* ══ TOAST ══════════════════════════════════════════════════════════ */
#toast-wrap { position: fixed; top: 66px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .8375rem; font-weight: 500; color: var(--text); min-width: 240px; max-width: 340px; animation: toastIn .3s var(--ease); pointer-events: auto; }
.toast svg { width: 15px; height: 15px; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--success); } .toast-success svg { color: var(--success); }
.toast-danger  { border-left: 3px solid var(--danger);  } .toast-danger svg  { color: var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); } .toast-warning svg { color: var(--warning); }
.toast-info    { border-left: 3px solid var(--info);    } .toast-info svg    { color: var(--info); }
@keyframes toastIn { from { opacity:0; transform:translateX(14px) } to { opacity:1; transform:none } }

/* ══ MODAL ══════════════════════════════════════════════════════════ */
.modal-bg { display: none; position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; max-width: 440px; width: 100%; animation: modIn .22s var(--ease); box-shadow: var(--shadow-xl); }
@keyframes modIn { from { opacity:0; transform:scale(.94) } to { opacity:1; transform:none } }
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.modal-title svg { width: 18px; height: 18px; }
.modal-body { font-size: .875rem; color: var(--text-2); margin-bottom: 18px; line-height: 1.65; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ══ PAGE HERO ══════════════════════════════════════════════════════ */
.page-hero { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 24px 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-3); margin-bottom: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 11px; height: 11px; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.page-sub   { color: var(--text-2); font-size: .875rem; margin-top: 4px; }

/* ══ MISC ═══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 52px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state svg { width: 44px; height: 44px; color: var(--text-3); }
.empty-state h3 { font-size: 1rem; font-weight: 700; }
.empty-state p  { font-size: .875rem; color: var(--text-2); max-width: 280px; }
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pag-btn { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 600; color: var(--text-2); transition: all var(--fast) var(--ease); cursor: pointer; text-decoration: none; }
.pag-btn:hover, .pag-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* KB content */
.kb-content { color: var(--text-2); font-size: .9375rem; line-height: 1.8; }
.kb-content h2 { font-size:1.1rem; font-weight:700; color:var(--text); margin:22px 0 9px; }
.kb-content h3 { font-size:.95rem; font-weight:700; color:var(--text); margin:18px 0 7px; }
.kb-content p  { margin-bottom:11px; }
.kb-content ul, .kb-content ol { margin:10px 0 13px 18px; }
.kb-content li { margin-bottom:5px; }
.kb-content code { font-family:var(--mono); font-size:.85em; background:var(--bg-3); padding:2px 5px; border-radius:3px; color:var(--brand); }
.kb-content pre { background:var(--bg-2); border:1px solid var(--border); border-radius:var(--r-sm); padding:14px; overflow-x:auto; margin:12px 0; }
.kb-content pre code { background:none; padding:0; color:var(--text-2); }
.kb-content strong { color:var(--text); font-weight:600; }
.kb-content a { color:var(--brand); }

/* ══ ANIMATIONS ═════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ RESPONSIVE — Tablet ════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .astat-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-right: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .admin-main  { margin-left: 0; }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 36px; }
  .hero-image { max-width: 100%; }
}

/* ══ RESPONSIVE — Mobile ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container, .container-sm, .container-xs { padding: 0 14px; }

  /* Header */
  .header-nav { display: none; }
  .header-actions .lang-sel, .header-actions .theme-toggle { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Hide balance text on small screens */
  .balance-chip span { display: none; }
  .hbtn > span:not(.cart-count) { display: none; }
  .hbtn { padding: 6px 8px; }

  /* Hero: single column */
  .hero { padding: 36px 0 28px; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: .875rem; }
  .hero-two-col { grid-template-columns: 1fr !important; }
  .hero-image { max-width: 100%; margin: 0 auto; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 14px 14px; }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .stat-item:nth-child(even) { border-right: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Admin */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: none; }
  .admin-content { padding: 14px; }
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .astat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-topbar { padding: 0 14px; }

  /* Cart */
  .cart-panel { width: 100vw; }

  /* Page hero */
  .page-hero { padding: 18px 0; }
  .page-title { font-size: 1.25rem; }

  /* Tables */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Sidebar toggle for products */
  .store-sidebar { display: none; }
  .store-sidebar.open { display: block; }

  /* FAQ */
  .faq-section-grid { grid-template-columns: 1fr !important; }

  /* Lic head */
  .lic-head { flex-wrap: wrap; }
  .lic-key { font-size: .8rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .astat-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-lg { padding: 10px 16px; font-size: .875rem; }
  .cart-total-value { font-size: 1.1rem; }
  .pay-opts { gap: 5px; }
  .btn-sm, .btn-xs { font-size: .75rem; padding: 5px 10px; }
  .pc-actions .btn-xs { font-size: .7rem; padding: 4px 8px; }
}

/* Ensure auto grids work on mobile */
@media (max-width: 540px) {
  .auto-grid-2, .auto-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .auto-grid-2, .auto-grid-3 { grid-template-columns: 1fr; }
}

.cart-item-desc { font-size: 0.75rem; color: var(--text-3); margin: 2px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Müşteri Yorumları (Marquee) ─── */
/* Yorumlar: sonsuz yatay kayan animasyon (sağdan sola) */
.marquee { width:100%; overflow:hidden; -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.marquee-track { display:flex; flex-wrap:nowrap; width:max-content; gap:18px; animation:marquee-scroll 45s linear infinite; will-change:transform; }
.marquee-track:hover { animation-play-state:paused; }
/* İki özdeş kopya olduğu için -50% kayınca dikiş yeri görünmez = sonsuz akıcı döngü */
@keyframes marquee-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration:120s; } }
.testimonial-card { flex:0 0 340px; width:340px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:22px; display:flex; flex-direction:column; gap:12px; }
.testimonial-stars { color:#f5a623; font-size:0.95rem; letter-spacing:2px; }
.testimonial-text { color:var(--text-2); font-size:0.9rem; line-height:1.6; margin:0; flex:1; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.testimonial-author { display:flex; align-items:center; gap:10px; }
.testimonial-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; }
.testimonial-avatar-ph { width:36px; height:36px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; }
.testimonial-name { font-weight:600; color:var(--text); font-size:0.875rem; }

/* ─── Referanslar ─── */
.references-grid { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; align-items:center; }
.reference-item { display:flex; align-items:center; justify-content:center; min-width:140px; height:80px; padding:16px 24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); transition:all var(--fast) var(--ease); text-decoration:none; }
.reference-item:hover { border-color:var(--brand); transform:translateY(-2px); }
.reference-item img { max-height:44px; max-width:140px; object-fit:contain; filter:grayscale(1); opacity:0.75; transition:all var(--fast) var(--ease); }
.reference-item:hover img { filter:grayscale(0); opacity:1; }
.reference-name { font-weight:700; color:var(--text-2); font-size:1rem; }
