/* ============================================
   VN MODZ - Premium FiveM Store
   Design System & Global Styles
   ============================================ */

:root {
  --bg-900: #03060f;
  --bg-800: #050a1a;
  --bg-700: #081226;
  --bg-600: #0c1c3d;
  --surface: rgba(13, 28, 58, 0.55);
  --surface-solid: #0b1733;
  --border: rgba(91, 158, 255, 0.18);
  --border-strong: rgba(91, 158, 255, 0.4);

  --blue-400: #5bb0ff;
  --blue-500: #1e90ff;
  --blue-600: #0a6ad6;
  --blue-glow: rgba(30, 144, 255, 0.55);

  --white: #ffffff;
  --text: #e8f1ff;
  --text-dim: #9bb4d8;
  --text-muted: #6b83a8;

  --success: #2ecc71;
  --danger: #ff5470;
  --warning: #f7b733;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 30px rgba(30, 144, 255, 0.25);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --maxw: 1240px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-800);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(30, 144, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(10, 106, 214, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-900), var(--bg-800) 40%, var(--bg-700));
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  user-select: text;
  -webkit-user-select: text;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

[data-allow-copy], code.copyable {
  user-select: text;
  -webkit-user-select: text;
}

::selection { background: var(--blue-500); color: #fff; }


/* Scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue-600), var(--blue-500));
  border-radius: 10px;
  border: 2px solid var(--bg-900);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-400); }

/* ============ Layout ============ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), transparent);
}

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

.text-grad {
  background: linear-gradient(120deg, #fff 10%, var(--blue-400) 55%, var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--text-dim); }
.lead { font-size: 1.1rem; color: var(--text-dim); max-width: 620px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 30px rgba(30, 144, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(30, 144, 255, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(30, 144, 255, 0.12);
  border-color: var(--blue-500);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(5, 10, 26, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(5, 10, 26, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.maintenance-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(255, 152, 0, 0.18), rgba(30, 144, 255, 0.18));
  border-bottom: 1px solid rgba(255, 152, 0, 0.35);
  color: #ffd9a0;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}

.alert-maintenance {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #ffd9a0;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.header-inner { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-glow); }
.brand span { letter-spacing: 0.02em; }
.brand b { color: var(--blue-400); }

.main-nav { display: flex; gap: 6px; margin-left: 10px; }
.main-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--blue-500); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover { background: rgba(30,144,255,0.14); border-color: var(--blue-500); transform: translateY(-2px); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--blue-500); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  border-radius: 10px; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg-800);
}

.nav-toggle { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  backdrop-filter: blur(8px);
}
.pill svg { width: 16px; height: 16px; color: var(--blue-400); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3,6,15,0.6));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.stat { text-align: center; padding: 20px; }
.stat .num {
  font-size: 2.1rem; font-weight: 800;
  background: linear-gradient(120deg, #fff, var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 18, 38, 0.5);
  overflow: hidden;
  padding: 16px 0;
}
.marquee-track {
  display: flex; gap: 60px; width: max-content;
  animation: scroll-x 24s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--text-dim); white-space: nowrap;
  font-size: 0.95rem; letter-spacing: 0.04em;
}
.marquee-track span::before { content: '★'; color: var(--blue-500); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============ Cards / Grid ============ */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
}

/* Product card */
.product-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-700);
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-media img { transform: scale(1.08); }

.product-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; z-index: 2; }
.tag {
  padding: 5px 11px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; backdrop-filter: blur(6px);
}
.tag-sale { background: linear-gradient(120deg, var(--danger), #d63a55); color: #fff; }
.tag-new { background: linear-gradient(120deg, var(--blue-500), var(--blue-600)); color: #fff; }
.tag-escrow { background: rgba(3,6,15,0.7); color: var(--text-dim); border: 1px solid var(--border); }

.product-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(3,6,15,0.6); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-6px); transition: all 0.25s;
}
.product-card:hover .product-fav { opacity: 1; transform: translateY(0); }
.product-fav:hover { color: var(--danger); border-color: var(--danger); }
.product-fav.active { color: var(--danger); border-color: var(--danger); }

.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: 0.76rem; font-weight: 700; color: var(--blue-400); text-transform: uppercase; letter-spacing: 0.08em; }
.product-title { font-size: 1.02rem; font-weight: 700; color: #fff; }
.product-title a:hover { color: var(--blue-400); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.stars { color: var(--warning); letter-spacing: 1px; }

.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-size: 1.3rem; font-weight: 800; color: #fff; }
.price .was { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; }

/* ============ Category cards ============ */
.cat-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end;
  padding: 22px;
  background-size: cover; background-position: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,6,15,0.1), rgba(3,6,15,0.85));
  transition: background 0.3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.cat-card:hover::before { background: linear-gradient(180deg, rgba(30,144,255,0.25), rgba(3,6,15,0.85)); }
.cat-card-content { position: relative; z-index: 2; }
.cat-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.85rem; color: var(--text-dim); }
.cat-card .arrow {
  position: absolute; top: 22px; right: 22px; z-index: 2;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  transition: all 0.3s;
}
.cat-card:hover .arrow { background: var(--blue-500); transform: rotate(-45deg); }

/* ============ Feature row ============ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.feature .ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(120deg, rgba(30,144,255,0.2), rgba(10,106,214,0.1));
  border: 1px solid var(--border-strong); color: var(--blue-400);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1rem; margin-bottom: 3px; }
.feature p { font-size: 0.85rem; color: var(--text-dim); }

/* ============ Forms / Auth ============ */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 60px 0; }
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 40px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow-card), var(--shadow-glow);
}
.auth-card h2 { margin-bottom: 6px; }
.auth-card .muted { margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.input, .textarea, select.input {
  width: 100%; padding: 13px 16px;
  background: rgba(3,6,15,0.5); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30,144,255,0.15); background: rgba(3,6,15,0.7);
}
.textarea { resize: vertical; min-height: 120px; }

.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-dim); cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--blue-500); }
.link { color: var(--blue-400); font-weight: 600; }
.link:hover { text-decoration: underline; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-foot { text-align: center; margin-top: 22px; font-size: 0.9rem; color: var(--text-dim); }

.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; min-height: 1em; }

/* ============ Alerts / Toast ============ */
.alert { padding: 13px 16px; border-radius: 11px; font-size: 0.9rem; margin-bottom: 18px; border: 1px solid; }
.alert-error { background: rgba(255,84,112,0.1); border-color: rgba(255,84,112,0.4); color: #ffadbb; }
.alert-success { background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.4); color: #9ff0c0; }

#toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px; min-width: 280px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card); color: var(--text);
  animation: toast-in 0.35s cubic-bezier(.2,.8,.2,1);
}
.toast.out { animation: toast-out 0.3s forwards; }
.toast .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.toast.success .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.toast.info .dot { background: var(--blue-500); box-shadow: 0 0 10px var(--blue-500); }
.toast.error .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* ============ Page header ============ */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--blue-400); }

/* ============ Shop layout ============ */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.shop-sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px);
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-list button {
  text-align: left; padding: 9px 12px; border-radius: 9px;
  background: transparent; border: none; color: var(--text-dim);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-list button:hover { background: rgba(30,144,255,0.1); color: #fff; }
.filter-list button.active { background: rgba(30,144,255,0.16); color: #fff; }
.filter-list button .count { font-size: 0.78rem; color: var(--text-muted); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.search-box { position: relative; flex: 1; max-width: 360px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); }
.search-box input { padding-left: 42px; }

/* ============ Product detail ============ */
.pd-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.pd-gallery { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); }
.pd-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pd-info h1 { font-size: 2.2rem; margin: 10px 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.pd-price .now { font-size: 2.4rem; font-weight: 800; color: #fff; }
.pd-price .was { font-size: 1.2rem; color: var(--text-muted); text-decoration: line-through; }
.pd-desc { color: var(--text-dim); margin: 18px 0; }
.pd-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.pd-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 0.92rem; }
.pd-list li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.qty { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 11px; overflow: hidden; }
.qty button { width: 42px; height: 46px; background: rgba(255,255,255,0.04); border: none; color: #fff; font-size: 1.2rem; cursor: pointer; transition: background 0.2s; }
.qty button:hover { background: var(--blue-500); }
.qty input { width: 54px; height: 46px; text-align: center; background: transparent; border: none; color: #fff; font-weight: 700; font-size: 1rem; }
.pd-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }

/* ============ Cart ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 14px; transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border-strong); }
.cart-item img { width: 100px; height: 70px; object-fit: cover; border-radius: 10px; }
.cart-item-title { font-weight: 700; color: #fff; }
.cart-item-cat { font-size: 0.8rem; color: var(--blue-400); }
.cart-item-right { display: flex; align-items: center; gap: 18px; }
.cart-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.cart-remove:hover { color: var(--danger); }

.summary {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(12px);
}
.summary h3 { margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-dim); font-size: 0.92rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 18px; font-size: 1.15rem; font-weight: 800; color: #fff; }
.coupon-row { display: flex; gap: 8px; margin: 18px 0; }

.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .ic { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.empty-state .ic svg { width: 38px; height: 38px; }

/* ============ Account dashboard ============ */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.dash-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px); position: sticky; top: calc(var(--header-h) + 20px); }
.dash-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.dash-avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(120deg, var(--blue-500), var(--blue-600)); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.2rem; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav button { display: flex; align-items: center; gap: 11px; text-align: left; padding: 11px 13px; border-radius: 10px; background: none; border: none; color: var(--text-dim); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: all 0.2s; }
.dash-nav button svg { width: 18px; height: 18px; }
.dash-nav button:hover { background: rgba(30,144,255,0.1); color: #fff; }
.dash-nav button.active { background: rgba(30,144,255,0.16); color: #fff; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fade-up 0.4s; }

.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-card .v { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-card .l { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 13px 14px; font-size: 0.9rem; }
table.data th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
table.data td { border-bottom: 1px solid rgba(91,158,255,0.08); color: var(--text-dim); }
table.data tr:hover td { background: rgba(30,144,255,0.04); }
.badge { padding: 4px 11px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; }
.badge-success { background: rgba(46,204,113,0.14); color: #9ff0c0; }
.badge-pending { background: rgba(247,183,51,0.14); color: #ffd98a; }

/* ============ Checkout ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.checkout-card h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-500); display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; }
.pay-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.pay-method { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(3,6,15,0.4); cursor: pointer; text-align: center; transition: all 0.2s; font-weight: 600; font-size: 0.88rem; }
.pay-method:hover { border-color: var(--border-strong); }
.pay-method.active { border-color: var(--blue-500); background: rgba(30,144,255,0.12); box-shadow: 0 0 0 3px rgba(30,144,255,0.12); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); background: rgba(3,6,15,0.6); margin-top: 60px; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 16px 0; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 5px 0; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--blue-400); padding-left: 5px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); transition: all 0.25s; }
.socials a:hover { background: var(--blue-500); color: #fff; transform: translateY(-3px); border-color: var(--blue-500); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 16px; }
.pay-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-badge { display: grid; place-items: center; height: 28px; padding: 0 8px; background: #fff; border-radius: 5px; }
.pay-badge svg { height: 16px; width: auto; display: block; }
.dmca-badge { display: inline-flex; line-height: 0; opacity: .9; }
.dmca-badge img { height: 28px; width: auto; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; background: rgba(3,6,15,.45); }
.pd-thumb { width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--blue-500); }
.pd-video { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; }
.pd-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.pd-video-link { margin-top: 12px; }
.admin-img-list { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-img-item { position: relative; width: 110px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: rgba(3,6,15,.5); }
.admin-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-img-label { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.admin-img-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(220,50,50,.95); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.reviews-wrap { margin-top: 36px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.review-card .review-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .85rem; color: var(--text-dim); }
.review-form { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.star-pick { display: flex; gap: 6px; margin: 8px 0 14px; }
.star-pick button { background: none; border: 0; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 0; line-height: 1; }
.star-pick button.on { color: #f5c518; }
.shop-cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============ CTA band ============ */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 56px 48px;
  background: linear-gradient(120deg, rgba(10,106,214,0.25), rgba(30,144,255,0.12));
  text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(30,144,255,0.3), transparent 70%);
}
.cta-band > * { position: relative; z-index: 2; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 768px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; background: rgba(5,10,26,0.98); backdrop-filter: blur(20px); padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.35s; }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: grid; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .pd-grid { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .stat-cards, .stat-card, .pay-methods { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item img { width: 70px; height: 56px; }
  .cart-item-right { grid-column: 1 / -1; justify-content: space-between; }
  .container { padding: 0 16px; }
}
