/* ═══════════════════════════════════════════════════════════════════════════
   اُلیمپ‌لیگ — Premium Design System
   Palette: Navy #0D1B2E | Red #D72638 | Teal #00D8FF | Charcoal #111E33
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0D1B2E;
  --navy-deep:  #070f1c;
  --navy-mid:   #111E33;
  --navy-light: #1a2d47;
  --red:        #D72638;
  --red-dark:   #b01e2d;
  --red-glow:   rgba(215,38,56,.35);
  --teal:       #00D8FF;
  --teal-glow:  rgba(0,216,255,.25);
  --white:      #ffffff;
  --off-white:  #e8edf5;
  --muted:      #7a8fa8;
  --muted-dim:  #4a5f77;
  --panel:      rgba(17,30,51,.85);
  --panel-dark: rgba(7,15,28,.92);
  --border:     rgba(255,255,255,.07);
  --border-teal:rgba(0,216,255,.18);

  /* Radius system */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(7,15,28,.4), 0 8px 24px rgba(7,15,28,.45), 0 24px 64px rgba(7,15,28,.35);
  --shadow-red:  0 4px 16px rgba(215,38,56,.35), 0 12px 40px rgba(215,38,56,.2);
  --shadow-teal: 0 4px 16px rgba(0,216,255,.25);

  /* Spacing scale */
  --section-py: clamp(72px, 10vw, 120px);
  --container:  1220px;
  --gap:        24px;
}

html {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-size: 16px;
  background: var(--navy-deep);
  color: var(--white);
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,216,255,.06) 0%, transparent 70%),
    var(--navy-deep);
}

::selection { background: rgba(215,38,56,.3); color: #fff; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }

/* ── Typography scale ─────────────────────────────────────────────────────── */
.t-display { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.12; }
.t-h1      { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 800; line-height: 1.2; }
.t-h2      { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.3; }
.t-h3      { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; line-height: 1.4; }
.t-body    { font-size: 1rem;    line-height: 2;   font-weight: 400; }
.t-small   { font-size: .875rem; line-height: 1.7; font-weight: 400; }
.t-eyebrow { font-size: .78rem;  line-height: 1;   font-weight: 700; letter-spacing: .04em; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.text-red   { color: var(--red); }
.text-teal  { color: var(--teal); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }

.section-py { padding-block: var(--section-py); }

/* Hex grid background pattern */
.hex-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpath d='M28 2L54 16v32L28 62 2 48V16z' fill='none' stroke='rgba(0,216,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64px;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-size: .95rem;
  font-weight: 700;
  transition: all .22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: #f02b3d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(215,38,56,.5), 0 16px 48px rgba(215,38,56,.28);
}
.btn-primary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.btn-teal {
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 800;
}
.btn-teal:hover { background: #20e3ff; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ── Header / Nav ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

.site-header.scrolled {
  background: var(--panel-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}
.logo-mark svg { width: 22px; height: 22px; color: #fff; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .brand-fa  { font-size: 1rem;   font-weight: 800; color: #fff; }
.logo-text .brand-lat { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; direction: ltr; }

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--off-white);
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--teal);
  background: rgba(0,216,255,.08);
}

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

.lang-chip {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
}
.lang-chip span {
  padding: 4px 10px;
  cursor: pointer;
  transition: background .18s;
}
.lang-chip span.active { background: var(--red); color: #fff; }
.lang-chip span:not(.active) { color: var(--muted); }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  color: var(--white);
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background .18s;
}
.menu-toggle:hover { background: rgba(255,255,255,.08); }
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  padding: 100px 32px 48px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color .18s, color .18s;
}
.mobile-nav a:hover { border-color: var(--teal); color: var(--teal); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--muted);
  padding: 8px;
}
.mobile-nav-close svg { width: 28px; height: 28px; }

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  padding-block-start: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64'%3E%3Cpath d='M28 2L54 16v32L28 62 2 48V16z' fill='none' stroke='rgba(0,216,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  z-index: 0;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(215,38,56,.18) 0%, transparent 70%);
  top: -100px; right: -150px;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,216,255,.12) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-block: 60px;
}

.hero-content { }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(215,38,56,.12);
  border: 1px solid rgba(215,38,56,.3);
  color: var(--red);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-eyebrow svg { width: 14px; height: 14px; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #fff;
}
.hero-title .accent { color: var(--red); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.9;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-item { }
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  direction: ltr;
  display: block;
}
.hero-stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/11;
  box-shadow:
    0 2px 4px rgba(0,0,0,.5),
    0 16px 48px rgba(0,0,0,.6),
    0 0 0 1px rgba(0,216,255,.12);
}

.hero-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-in-out alternate infinite;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(215,38,56,.18) 0%,
    transparent 50%,
    rgba(0,216,255,.1) 100%
  );
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-teal);
  border-radius: var(--r-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-badge svg { width: 20px; height: 20px; color: var(--teal); }
.hero-badge-text { font-size: .8rem; color: var(--off-white); font-weight: 600; }
.hero-badge-num  { font-size: 1.1rem; font-weight: 900; color: var(--teal); line-height: 1; }

/* ── Stats Strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-block: 1px solid var(--border);
  padding-block: 40px;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(215,38,56,.04) 0%, rgba(0,216,255,.04) 100%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-icon {
  width: 48px; height: 48px;
  background: rgba(215,38,56,.12);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 4px;
}
.stat-icon svg { width: 22px; height: 22px; }

.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  direction: ltr;
}
.stat-label {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Category Cards ───────────────────────────────────────────────────────── */
.categories {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}
.section-title .accent { color: var(--red); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* Staggered: middle card lifted */
.cat-card:nth-child(2) { transform: translateY(-24px); }

.cat-card {
  background: var(--navy-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 16px 48px rgba(0,0,0,.5), 0 32px 80px rgba(0,0,0,.3);
}
.cat-card:nth-child(2):hover { transform: translateY(-32px); }

.cat-card-accent {
  height: 4px;
}
.cat-card:nth-child(1) .cat-card-accent { background: linear-gradient(90deg, #ff6b35, #f7c59f); }
.cat-card:nth-child(2) .cat-card-accent { background: linear-gradient(90deg, #6644aa, #3b26bb); }
.cat-card:nth-child(3) .cat-card-accent { background: linear-gradient(90deg, #7b2fa8, #0D1B2E); }

.cat-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.06); }

.cat-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.cat-card:nth-child(1) .cat-card-tag { background: rgba(255,107,53,.15); color: #ff6b35; }
.cat-card:nth-child(2) .cat-card-tag { background: rgba(102,68,170,.2); color: #9b7fd4; }
.cat-card:nth-child(3) .cat-card-tag { background: rgba(123,47,168,.2); color: #c084fc; }

.cat-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}
.cat-card-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}
.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cat-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal);
  direction: ltr;
}

/* ── Games Section ────────────────────────────────────────────────────────── */
.games-section {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .28s, box-shadow .28s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 20px 60px rgba(0,0,0,.5);
}

.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.game-card:hover img { transform: scale(1.08); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7,15,28,.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 10px;
}

.game-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.game-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 600;
  direction: ltr;
}
.game-countdown svg { width: 14px; height: 14px; flex-shrink: 0; }
.countdown-timer {
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
}

/* ── News Section ─────────────────────────────────────────────────────────── */
.news-section {
  background: var(--navy-deep);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--navy-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .28s, box-shadow .28s;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 20px 56px rgba(0,0,0,.45);
}

.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-tag {
  display: inline-flex;
  background: rgba(215,38,56,.15);
  color: var(--red);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  flex: 1;
}
.news-title a:hover { color: var(--teal); }

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: var(--muted-dim);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-meta svg { width: 14px; height: 14px; }

/* ── CTA Band ─────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-mid);
  border-block: 1px solid var(--border);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-band-img {
  order: -1;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.cta-band-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.8) saturate(1.2);
}

.cta-band-content { }
.cta-band-eyebrow {
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
  display: block;
}
.cta-band-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}
.cta-band-title .accent { color: var(--red); }
.cta-band-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.9;
  margin-bottom: 32px;
}
.cta-band-orb {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(215,38,56,.12) 0%, transparent 70%);
  top: 50%; right: 0;
  transform: translateY(-50%);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--border);
  padding-block-start: 64px;
  padding-block-end: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  text-decoration: none;
}
.footer-logo-mark {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}
.footer-logo-mark svg { width: 24px; height: 24px; color: #fff; }
.footer-brand-fa  { font-size: 1.05rem; font-weight: 800; }
.footer-brand-lat { font-size: .72rem; font-weight: 600; color: var(--muted); direction: ltr; }
.footer-tagline {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 36ch;
  margin-bottom: 24px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color .18s, border-color .18s, background .18s;
}
.social-btn:hover { color: var(--teal); border-color: var(--teal); background: rgba(0,216,255,.08); }
.social-btn svg { width: 18px; height: 18px; }

.footer-col-title {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .18s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--teal); }
.footer-links a svg { width: 14px; height: 14px; opacity: .6; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: var(--muted);
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a:hover { color: var(--teal); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted-dim);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--muted); transition: color .18s; }
.footer-bottom a:hover { color: var(--teal); }

/* ── Stub pages ───────────────────────────────────────────────────────────── */
.stub-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy-deep);
  padding-block-start: 120px;
}
.stub-icon {
  width: 80px; height: 80px;
  background: rgba(215,38,56,.12);
  border: 1px solid rgba(215,38,56,.25);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--red);
}
.stub-icon svg { width: 36px; height: 36px; }

/* ── Account / Auth ───────────────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block-start: 72px;
  padding-block: 100px 60px;
}
.auth-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 56px);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-card);
}
.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.auth-card p { color: var(--muted); margin-bottom: 28px; font-size: .9rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: .85rem; font-weight: 600; color: var(--off-white); }
.form-input {
  background: rgba(0,0,0,.2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: #fff;
  font-size: .95rem;
  transition: border-color .18s, box-shadow .18s;
  direction: ltr;
  text-align: right;
}
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,216,255,.12);
}
.form-input::placeholder { color: var(--muted-dim); }

.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: .875rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.alert-error { background: rgba(215,38,56,.12); border: 1px solid rgba(215,38,56,.3); color: #ff8899; }
.alert-success { background: rgba(0,216,255,.08); border: 1px solid rgba(0,216,255,.2); color: var(--teal); }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}
.not-found-num {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  opacity: .3;
}

/* ── Utility grid ─────────────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ── Responsive: 390px ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .lang-chip { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block-start: 32px;
  }
  .hero-content { order: 1; }
  .hero-visual  { order: 0; }
  .hero-eyebrow { margin-inline: auto; }
  .hero-subtitle { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; gap: 24px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item + .stat-item::before { display: none; }

  .cat-grid { grid-template-columns: 1fr; }
  .cat-card:nth-child(2) { transform: none; }
  .cat-card:nth-child(2):hover { transform: translateY(-8px); }

  .games-grid { grid-template-columns: 1fr; }
  .game-card  { aspect-ratio: 16/9; }

  .news-grid { grid-template-columns: 1fr; }

  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-img   { order: 0; }

  .grid-2 { grid-template-columns: 1fr; gap: 28px; }

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

@media (max-width: 600px) {
  .hero-img-frame { aspect-ratio: 4/3; }
  .hero-badge { right: 12px; bottom: 12px; }
  .hero-stats { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAGE 2 — Shop / Product / Cart / Checkout
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Header cart button ────────────────────────────────────────────────────── */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--off-white);
  transition: color .18s, border-color .18s, background .18s;
  flex-shrink: 0;
}
.header-cart:hover { color: var(--teal); border-color: var(--teal); background: rgba(0,216,255,.08); }
.header-cart-icon { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -6px; left: -6px;
  min-width: 18px; height: 18px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color .18s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }

/* ── Shop filter ───────────────────────────────────────────────────────────── */
.shop-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--teal); border-color: var(--teal); }
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* ── Shop product grid ─────────────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .28s, box-shadow .28s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 20px 56px rgba(0,0,0,.45);
}

.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.product-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.product-badge-lg {
  font-size: .8rem;
  padding: 5px 14px;
}

.product-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card-name {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}
.product-card-name a:hover { color: var(--teal); }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--teal);
  direction: ltr;
}

/* ── Product detail page ───────────────────────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-gallery {}
.product-gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.product-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.product-info {}
.cat-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(215,38,56,.1);
  border: 1px solid rgba(215,38,56,.25);
  color: var(--red);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cat-tag-pill svg { width: 13px; height: 13px; }

.product-info-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.product-info-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal);
  direction: ltr;
  margin-bottom: 20px;
}
.product-info-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

.product-form-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.product-form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--off-white);
  flex-shrink: 0;
  min-width: 72px;
}

/* Size picker */
.size-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-option { position: relative; }
.size-option input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.size-option span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.size-option:hover span { border-color: var(--teal); color: var(--teal); }
.size-option.selected span,
.size-option input:checked + span {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

/* Qty control */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-control-sm .qty-input { width: 44px; }

.qty-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  transition: color .18s, background .18s;
  flex-shrink: 0;
}
.qty-btn svg { width: 16px; height: 16px; }
.qty-btn:hover { color: var(--teal); background: rgba(0,216,255,.08); }

.qty-input {
  width: 56px;
  text-align: center;
  background: transparent;
  border: none;
  border-inline: 1.5px solid var(--border);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 8px 4px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input:focus { outline: none; }

.product-cta { margin-top: 8px; width: 100%; justify-content: center; }

.product-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--muted);
}
.product-features li svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }

/* ── Cart page ─────────────────────────────────────────────────────────────── */
.cart-empty {
  text-align: center;
  padding: 80px 24px;
}
.cart-empty .stub-icon { margin: 0 auto 24px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.cart-item-img {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  flex-shrink: 0;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-item-name {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.cart-item-name a:hover { color: var(--teal); }
.cart-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--muted);
}
.cart-item-meta svg { width: 12px; height: 12px; }
.cart-item-price {
  font-size: .88rem;
  color: var(--teal);
  font-weight: 700;
  direction: ltr;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-qty-form {}

.cart-item-subtotal {
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
  direction: ltr;
  text-align: left;
}

.btn-icon-only {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(215,38,56,.1);
  color: var(--red);
  border: 1px solid rgba(215,38,56,.2);
  cursor: pointer;
  transition: all .18s;
}
.btn-icon-only:hover { background: rgba(215,38,56,.2); }
.btn-icon-only svg { width: 15px; height: 15px; }

/* Cart summary panel */
.cart-summary {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.cart-summary-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}
.cart-total-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--teal);
  direction: ltr;
}

.cart-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted-dim);
  margin-top: 12px;
}
.cart-trust svg { width: 14px; height: 14px; color: var(--muted-dim); }

/* ── Checkout page ─────────────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.checkout-form-wrap {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
}

.checkout-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Responsive: shop / product / cart / checkout ──────────────────────────── */
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }

  .product-detail-grid { grid-template-columns: 1fr; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-actions { flex-direction: row; flex-wrap: wrap; grid-column: 1 / -1; justify-content: flex-start; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shop-filter { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: .78rem; }
  .checkout-form-wrap { padding: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════════════════════════════════ */
.adm-body { background: var(--navy-deep); margin: 0; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.adm-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--navy-deep);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.adm-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--navy-mid);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.adm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--white);
}

.adm-logo svg {
  width: 28px;
  height: 28px;
  color: var(--red);
  flex-shrink: 0;
}

.adm-logo-brand {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

.adm-logo-sub {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 1px;
}

.adm-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-nav-section {
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 16px 8px 6px;
  display: block;
}

.adm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  color: var(--off-white);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.adm-nav a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color .15s;
}

.adm-nav a span { flex: 1; }

.adm-nav a:hover {
  background: var(--navy-light);
  color: var(--white);
}

.adm-nav a:hover svg { color: var(--teal); }

.adm-nav a.active {
  background: rgba(0,216,255,.08);
  color: var(--teal);
  font-weight: 600;
}

.adm-nav a.active svg { color: var(--teal); }

.adm-sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: .82rem;
  color: var(--muted);
}

.adm-sidebar-user svg { width: 16px; height: 16px; }

.adm-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--muted);
  padding: 8px 12px;
  font-family: Vazirmatn, sans-serif;
  font-size: .82rem;
  cursor: pointer;
  width: 100%;
  transition: border-color .15s, color .15s, background .15s;
}

.adm-logout-btn svg { width: 14px; height: 14px; }

.adm-logout-btn:hover {
  border-color: var(--red);
  color: #f87171;
  background: rgba(215,38,56,.06);
}

/* ── Main area ───────────────────────────────────────────────────────────── */
.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.adm-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.adm-content {
  flex: 1;
  padding: 28px 32px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-family: Vazirmatn, sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}

.adm-btn svg { width: 15px; height: 15px; }

.adm-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.adm-btn-ghost:hover {
  background: var(--navy-light);
  color: var(--white);
  border-color: var(--muted-dim);
}

.adm-btn-active {
  background: rgba(0,216,255,.1);
  border-color: var(--border-teal);
  color: var(--teal);
}

.adm-btn-danger {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 7px;
}

.adm-btn-danger:hover {
  background: rgba(215,38,56,.1);
  border-color: rgba(215,38,56,.3);
  color: #f87171;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.adm-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.adm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.adm-stat {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}

.adm-stat:hover {
  border-color: var(--border-teal);
  transform: translateY(-2px);
}

.adm-stat-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.adm-stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.adm-stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.adm-table th {
  text-align: right;
  padding: 11px 16px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(0,0,0,.15);
}

.adm-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  color: var(--off-white);
  vertical-align: middle;
}

.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.adm-badge-green { background: rgba(34,197,94,.12);  color: #4ade80; }
.adm-badge-red   { background: rgba(215,38,56,.12);  color: #f87171; }
.adm-badge-blue  { background: rgba(0,216,255,.1);   color: var(--teal); }
.adm-badge-muted { background: rgba(255,255,255,.06); color: var(--muted); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.adm-alert {
  padding: 12px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-size: .9rem;
  font-weight: 500;
}

.adm-alert-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #4ade80;
}

.adm-alert-error {
  background: rgba(215,38,56,.1);
  border: 1px solid rgba(215,38,56,.3);
  color: #f87171;
}

/* ── Page header ─────────────────────────────────────────────────────────── */
.adm-page-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.adm-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.adm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-field.full { grid-column: 1 / -1; }

.adm-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
}

.adm-input,
.adm-select,
.adm-textarea {
  background: var(--navy-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--white);
  padding: 10px 14px;
  font-family: Vazirmatn, sans-serif;
  font-size: .9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,216,255,.08);
}

.adm-textarea { min-height: 120px; resize: vertical; }

.adm-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8fa8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 36px;
}

.adm-img-preview {
  max-width: 180px;
  max-height: 130px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ── Login page ──────────────────────────────────────────────────────────── */
.adm-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  background-image: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(215,38,56,.08), transparent);
  padding: 24px;
}

.adm-login-box {
  width: 100%;
  max-width: 400px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}

.adm-login-logo {
  width: 48px;
  height: 48px;
  background: rgba(215,38,56,.12);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--red);
}

.adm-login-logo svg { width: 26px; height: 26px; }

.adm-login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 4px;
}

.adm-login-sub {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 28px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .adm-sidebar { width: 220px; }
  .adm-content { padding: 20px; }
  .adm-topbar  { padding: 12px 20px; }
}

@media (max-width: 680px) {
  .adm-sidebar  { display: none; }
  .adm-form-grid { grid-template-columns: 1fr; }
}

/* CR#538: customer logo */
.site-logo-img{height:52px;width:auto;display:block}
@media(max-width:640px){.site-logo-img{height:42px}}
