/* =========================================================
   ELITE PRIME — SMM PANEL 2.0 DESIGN SYSTEM
   Design tokens: Navy / Gold / Ivory / Slate
   ========================================================= */

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

:root {
  --navy-950: #0d1117;
  --navy-900: #141a25;
  --navy-800: #1a2233;
  --navy-700: #212d42;
  --navy-600: #2a3a55;
  --gold-500: #c9a13b;
  --gold-400: #d9b45a;
  --gold-300: #eccf8a;
  --gold-glow: rgba(201, 161, 59, 0.30);
  --ivory: #f0ede6;
  --ivory-dim: #c8c3b5;
  --white: #ffffff;
  --black: #050505;
  --slate: #8b93b3;
  --slate-dim: #5c6488;
  --line: rgba(201, 161, 59, 0.18);
  --line-soft: rgba(246, 243, 234, 0.10);

  --status-pending: #f59e0b;
  --status-inprogress: #3b82f6;
  --status-completed: #10b981;
  --status-partial: #8b5cf6;
  --status-canceled: #ef4444;
  --status-processing: #06b6d4;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1280px;
  --radius: 6px;
  --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; }

::selection { background: var(--gold-500); color: var(--navy-950); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--gold-400);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---------- Background Texture ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography & Eyebrows ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-500); }

.seal { display: inline-block; }
.seal svg { display: block; }

.hr-seal {
  display: flex; align-items: center; gap: 14px; margin: 0 auto; max-width: var(--max);
  padding: 0 32px;
}
.hr-seal::before, .hr-seal::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.hr-seal .diamond { width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); flex: 0 0 auto; }

/* =========================================================
   PUBLIC HEADER & NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 34, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-word {
  font-family: var(--font-display); font-size: 22px; letter-spacing: .03em; color: var(--white);
  font-weight: 600;
}
.brand-word em { font-style: normal; color: var(--gold-400); }
.brand-sub {
  display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .32em; color: var(--slate); text-transform: uppercase; margin-top: 2px;
}

.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  position: relative; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-dim);
  padding: 6px 0; transition: color .25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-400);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-400); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: all .3s ease; white-space: nowrap; font-weight: 600;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950); font-weight: 600; box-shadow: 0 0 0 rgba(201, 161, 59, 0);
}
.btn-gold:hover { box-shadow: 0 8px 24px -4px var(--gold-glow); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line); color: var(--ivory); background: transparent;
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(201,161,59,0.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 11px; }

.nav-toggle { display: none; background: none; border: none; color: var(--ivory); width: 36px; height: 36px; cursor: pointer; }

.nav-mobile {
  display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: var(--navy-900);
  z-index: 99; padding: 32px; flex-direction: column; gap: 20px; border-top: 1px solid var(--line-soft);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 18px; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--ivory-dim); border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.nav-mobile a.active { color: var(--gold-400); }

/* =========================================================
   PUBLIC HERO & LANDING SECTIONS
   ========================================================= */
.hero { padding: 90px 0 70px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero-title { font-family: var(--font-display); font-size: 52px; line-height: 1.12; margin: 20px 0 24px; font-weight: 500; }
.hero-title .accent { color: var(--gold-300); font-style: italic; }
.hero-desc { font-size: 17px; color: var(--slate); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line-soft); padding-top: 28px; }
.stat b { display: block; font-family: var(--font-mono); font-size: 24px; color: var(--gold-400); font-weight: 500; }
.stat span { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }

.hero-seal-wrap { display: flex; justify-content: center; align-items: center; }
.hero-seal-card {
  width: 320px; height: 320px; border: 1px solid var(--line); background: var(--navy-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.seal-rotate { animation: spin 45s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.hero-seal-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; font-size: 12px; color: var(--slate); }
.hero-seal-caption strong { display: block; color: var(--gold-300); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

.section { padding: 90px 0; }
.section-alt { background: var(--navy-900); border-y: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head h2 { font-family: var(--font-display); font-size: 36px; margin: 12px 0; font-weight: 500; }
.section-head p { color: var(--slate); font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--navy-900); border: 1px solid var(--line-soft); padding: 32px 24px;
  border-radius: var(--radius); transition: all 0.3s ease; position: relative;
}
.feature-card:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.5); }
.feature-num { font-family: var(--font-mono); font-size: 12px; color: var(--gold-400); display: block; margin-bottom: 16px; }
.feature-icon { width: 36px; height: 36px; color: var(--gold-300); margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; margin: 0 0 10px; font-family: var(--font-display); }
.feature-card p { font-size: 14px; color: var(--slate); margin: 0; }

.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { background: var(--navy-950); border: 1px solid var(--line-soft); padding: 28px 20px; border-radius: var(--radius); }
.process-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); border: 1px solid var(--line); color: var(--gold-300); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; margin-bottom: 16px; }
.process-step h3 { font-size: 16px; margin: 0 0 8px; }
.process-step p { font-size: 13px; color: var(--slate); margin: 0; }

/* Auth section on homepage */
.auth-section { padding: 90px 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.auth-copy h2 { font-family: var(--font-display); font-size: 38px; margin: 16px 0; }
.auth-copy p { color: var(--slate); font-size: 16px; margin-bottom: 28px; }
.auth-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ivory-dim); margin-bottom: 12px; }
.auth-list svg { color: var(--gold-400); flex: 0 0 auto; }

.card { background: var(--navy-900); border: 1px solid var(--line); padding: 36px; border-radius: var(--radius-lg); box-shadow: 0 20px 40px -15px rgba(0,0,0,0.6); }
.card h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; }
.card-sub { font-size: 13px; color: var(--slate); margin-bottom: 24px; }

/* Forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ivory-dim); margin-bottom: 8px; }
.form-control, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; background: var(--navy-950); border: 1px solid var(--line-soft); color: var(--ivory);
  padding: 12px 16px; font-size: 14px; border-radius: var(--radius); transition: border-color 0.25s ease;
}
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: var(--gold-400); outline: none; }
.field-hint { font-size: 11px; color: var(--slate); margin-top: 6px; }
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate); margin-bottom: 20px; }
.field-row a { color: var(--gold-300); }
.field-row a:hover { text-decoration: underline; }

/* =========================================================
   CUSTOMER DASHBOARD SAAS LAYOUT
   ========================================================= */
.dash-shell { display: flex; min-height: 100vh; background: var(--navy-950); }

/* Sidebar */
.dash-sidebar {
  width: 260px; background: var(--navy-900); border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; flex: 0 0 260px; z-index: 90;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-brand {
  height: 72px; padding: 0 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line-soft); flex-shrink: 0;
}
.dash-nav { padding: 20px 14px; flex: 1; overflow-y: auto; }
.dash-nav-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--slate-dim); margin: 18px 10px 8px;
}
.dash-nav-label:first-child { margin-top: 0; }
.dash-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13.5px;
  color: var(--slate); border-radius: var(--radius); transition: all 0.2s ease; margin-bottom: 2px;
}
.dash-link svg { width: 18px; height: 18px; color: var(--slate); transition: color 0.2s ease; flex-shrink: 0; }
.dash-link:hover { color: var(--ivory); background: rgba(201,161,59,0.06); }
.dash-link:hover svg { color: var(--gold-300); }
.dash-link.active { color: var(--gold-300); background: rgba(201,161,59,0.12); font-weight: 500; border-left: 2px solid var(--gold-400); }
.dash-link.active svg { color: var(--gold-400); }
.dash-nav-sep { height: 1px; background: var(--line-soft); margin: 14px 10px; }
.dash-sidebar-foot { padding: 16px 14px; border-top: 1px solid var(--line-soft); flex-shrink: 0; }

/* Main Content Area */
.dash-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }

.dash-topbar {
  height: 60px; background: rgba(13, 17, 23, 0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 80; flex-shrink: 0;
}
.dash-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sidebar-toggle { display: none; background: none; border: none; color: var(--ivory); cursor: pointer; padding: 6px; }
.dash-crumb { font-size: 13px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-crumb strong { color: var(--ivory); font-weight: 500; }

.dash-topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Currency Pill */
.currency-pill { position: relative; }
.currency-pill button {
  background: var(--navy-800); border: 1px solid var(--line-soft); color: var(--ivory-dim);
  padding: 6px 12px; border-radius: var(--radius); font-size: 12px; font-family: var(--font-mono);
  display: flex; align-items: center; gap: 6px; cursor: pointer; transition: border-color 0.2s ease;
}
.currency-pill button:hover { border-color: var(--gold-500); }
.currency-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--navy-900);
  border: 1px solid var(--line); border-radius: var(--radius); min-width: 140px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 100;
}
.currency-menu.open { display: block; }
.currency-menu a { display: block; padding: 10px 14px; font-size: 12px; font-family: var(--font-mono); color: var(--slate); border-bottom: 1px solid var(--line-soft); }
.currency-menu a:hover { color: var(--gold-300); background: rgba(201,161,59,0.08); }
.currency-menu a:last-child { border-bottom: none; }

/* Account Pill */
.account-pill {
  display: flex; align-items: center; gap: 10px; background: var(--navy-800);
  border: 1px solid var(--line-soft); padding: 5px 12px; border-radius: var(--radius);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-pill span { font-size: 12px; font-weight: 500; }
.account-pill a { color: var(--slate); transition: color 0.2s ease; display: flex; align-items: center; }
.account-pill a:hover { color: var(--gold-300); }

/* Dashboard Body */
.dash-body { padding: 28px; flex: 1; max-width: 100%; }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--navy-900); border: 1px solid var(--line-soft); padding: 18px 20px;
  border-radius: var(--radius-lg); display: flex; align-items: center; gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { border-color: var(--line); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.stat-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius); background: rgba(201,161,59,0.08);
  border: 1px solid var(--line); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon svg { width: 20px; height: 20px; }
.stat-card h3 { margin: 0 0 2px; font-size: 18px; font-family: var(--font-mono); color: var(--ivory); word-break: break-all; }
.stat-card p { margin: 0; font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }

/* Order Layout */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel { background: var(--navy-900); border: 1px solid var(--line-soft); padding: 28px; border-radius: var(--radius-lg); }
.panel-sub { font-size: 14px; color: var(--slate); margin-bottom: 20px; }

/* Info Panel */
.info-panel { background: var(--navy-900); border: 1px solid var(--line); }
.info-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-400); background: rgba(201,161,59,0.1); padding: 4px 10px; border-radius: var(--radius); display: inline-block; margin-bottom: 12px; }
.info-row { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.info-row span:first-child { color: var(--slate); }
.info-row span:last-child { color: var(--ivory); font-family: var(--font-mono); font-weight: 500; }
.info-desc { font-size: 13px; color: var(--slate); line-height: 1.6; margin: 18px 0 14px; }
.info-note { font-size: 12px; color: var(--gold-300); background: rgba(201,161,59,0.06); padding: 12px; border-radius: var(--radius); border-left: 2px solid var(--gold-400); }

/* =========================================================
   RESPONSIVE DATA TABLES & BADGES
   ========================================================= */
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.table th {
  background: var(--navy-950); color: var(--slate); font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ivory-dim); vertical-align: middle; }
.table tbody tr:hover { background: rgba(201,161,59,0.03); }
.table tbody tr:last-child td { border-bottom: none; }

/* Status Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: capitalize; white-space: nowrap;
}
.badge-pending { background: rgba(245, 158, 11, 0.12); color: var(--status-pending); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-inprogress { background: rgba(59, 130, 246, 0.12); color: var(--status-inprogress); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-completed { background: rgba(16, 185, 129, 0.12); color: var(--status-completed); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-partial { background: rgba(139, 92, 246, 0.12); color: var(--status-partial); border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-canceled { background: rgba(239, 68, 68, 0.12); color: var(--status-canceled); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-processing { background: rgba(6, 182, 212, 0.12); color: var(--status-processing); border: 1px solid rgba(6, 182, 212, 0.3); }

/* Filter & Search Bar */
.filter-bar { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.search-input { width: 280px; position: relative; }
.search-input input { padding-left: 38px; }
.search-input svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--slate); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line-soft); padding: 70px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 50px; }
.footer-brand p { color: var(--slate); font-size: 14px; max-width: 320px; margin-top: 16px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-400); margin: 0 0 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 14px; color: var(--slate); transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--slate); }

/* Overlay */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(5,9,18,0.8); z-index: 85; }

/* =========================================================
   MEDIA QUERIES (RESPONSIVE BREAKPOINTS)
   ========================================================= */
@media (max-width: 1200px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .account-pill span:not(:first-child) { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .process-row { grid-template-columns: repeat(2, 1fr); }
  .auth-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-feature-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .dash-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: 280px;
    transform: translateX(-100%); height: 100vh;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .dash-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.open { display: block; }
  .header-inner { padding: 0 16px; height: 64px; }
  .dash-topbar { padding: 0 16px; height: 52px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .dash-body { padding: 16px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-card-icon { width: 36px; height: 36px; }
  .stat-card-icon svg { width: 18px; height: 18px; }
  .stat-card h3 { font-size: 15px; }
  .stat-card p { font-size: 10px; }
  .feature-grid, .process-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-title { font-size: 32px !important; }
  .hero-seal-wrap { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat b { font-size: 20px; }
  .panel, .card { padding: 20px; }
  .account-pill { padding: 4px 8px; gap: 6px; }
  .currency-pill button { padding: 5px 8px; font-size: 11px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .filter-pills { gap: 6px; }
  .pill { padding: 5px 10px; font-size: 11px; }
}

/* =========================================================
   MISSING UTILITY CLASSES (used across templates)
   ========================================================= */

/* Pill filter buttons */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 500; text-decoration: none;
  background: var(--navy-800); border: 1px solid var(--line-soft); color: var(--slate);
  transition: all 0.2s ease; cursor: pointer;
}
.pill:hover { border-color: var(--gold-500); color: var(--gold-300); }
.pill.active { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); font-weight: 600; }

/* Generic badge variants */
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--status-completed); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--status-pending); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--status-canceled); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: var(--status-inprogress); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-muted { background: rgba(107, 114, 128, 0.12); color: var(--slate); border: 1px solid rgba(107, 114, 128, 0.3); }

/* Link cell truncation */
.link-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-cell a { color: var(--ivory-dim); text-decoration: none; }
.link-cell a:hover { color: var(--gold-300); text-decoration: underline; }

/* No-wrap utility */
.nowrap { white-space: nowrap; }

/* Reveal animation */
.reveal {
  animation: revealUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0; transform: translateY(16px);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ Accordion */
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--ivory);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s ease; font-size: 14px;
}
.faq-q:hover { background: rgba(201,161,59,0.04); }
.faq-q::after { content: "+"; font-size: 20px; color: var(--gold-400); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px; color: var(--ivory-dim); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 18px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Child Panel Grid */
.child-panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; margin-bottom: 24px; }
@media (max-width: 768px) { .child-panel-grid { grid-template-columns: 1fr; } }

/* =========================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--line-soft);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--slate);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex: 1;
  height: 100%;
}

.mobile-nav-item svg {
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--gold-300);
}

.mobile-nav-item.active svg {
  stroke: var(--gold-400);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  .dash-body {
    padding-bottom: 84px !important;
  }
}
