@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ─── Variables — Stratos Hyperion Tactical ──── */
:root {
  /* Tactical earth — near-black with warm soil undertones */
  --bg:           #04080a;
  --bg2:          #060d0f;
  --bg3:          #0a1416;
  --bg4:          #0e1c1f;
  --bg5:          #132428;
  /* Borders — olive-steel */
  --border:       #172a2e;
  --border2:      #1e3a3f;
  --border3:      #254d53;
  /* Accent — Hyperion amber-gold */
  --accent:       #d4960a;
  --accent-h:     #f0b832;
  --accent-glow:  rgba(212,150,10,0.22);
  --accent-glow2: rgba(212,150,10,0.08);
  /* Secondary — tactical teal */
  --purple:       #0e8a7a;
  --purple-glow:  rgba(14,138,122,0.20);
  /* Tertiary — stratos sky */
  --cyan:         #2eb8c8;
  --cyan-glow:    rgba(46,184,200,0.15);
  /* Status — unchanged */
  --green:        #3ddc97;
  --red:          #f04e4e;
  --yellow:       #f5a623;
  --pink:         #e91e8c;
  /* Text — warm off-white with earthy tint */
  --text:         #ccd9d6;
  --text2:        #6a8f8a;
  --text3:        #354b4d;
  --white:        #eaf3f0;

  /* Tactical grid SVG (64px cells, 1px lines at 6% opacity) */
  --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M 64 0 L 0 0 0 64' fill='none' stroke='%232eb8c8' stroke-width='0.6' stroke-opacity='0.06'/%3E%3C/svg%3E");

  /* Topographic contour SVG (subtle loops) */
  --topo-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cellipse cx='200' cy='200' rx='180' ry='80' fill='none' stroke='%23d4960a' stroke-width='0.4' stroke-opacity='0.04'/%3E%3Cellipse cx='200' cy='200' rx='140' ry='58' fill='none' stroke='%23d4960a' stroke-width='0.4' stroke-opacity='0.04'/%3E%3Cellipse cx='200' cy='200' rx='100' ry='38' fill='none' stroke='%23d4960a' stroke-width='0.4' stroke-opacity='0.035'/%3E%3Cellipse cx='200' cy='200' rx='60' ry='20' fill='none' stroke='%23d4960a' stroke-width='0.4' stroke-opacity='0.03'/%3E%3Cellipse cx='80' cy='320' rx='110' ry='50' fill='none' stroke='%232eb8c8' stroke-width='0.4' stroke-opacity='0.04'/%3E%3Cellipse cx='80' cy='320' rx='75' ry='33' fill='none' stroke='%232eb8c8' stroke-width='0.4' stroke-opacity='0.035'/%3E%3Cellipse cx='340' cy='90' rx='90' ry='42' fill='none' stroke='%232eb8c8' stroke-width='0.4' stroke-opacity='0.04'/%3E%3Cellipse cx='340' cy='90' rx='56' ry='26' fill='none' stroke='%232eb8c8' stroke-width='0.4' stroke-opacity='0.03'/%3E%3C/svg%3E");
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Stratos Hyperion Tactical body ──────────── */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* Layer 1: tactical topo contours (400px tile) */
  /* Layer 2: fine grid lines (64px tile) */
  /* Layer 3: Stratos atmospheric glow — amber crown at top */
  /* Layer 4: Hyperion deep-field amber diffusion */
  /* Layer 5: tactical teal flank */
  /* Layer 6: base vignette */
  background-image:
    var(--topo-svg),
    var(--grid-svg),
    radial-gradient(ellipse 110% 42% at 50% -5%,  rgba(212,150,10,0.14)  0%, transparent 58%),
    radial-gradient(ellipse 70%  55% at 20%  10%,  rgba(212,150,10,0.07)  0%, transparent 55%),
    radial-gradient(ellipse 50%  45% at 82%  80%,  rgba(46,184,200,0.07)  0%, transparent 52%),
    radial-gradient(ellipse 100% 70% at 50% 50%,   rgba(0,0,0,0.55)       0%, transparent 100%);
  background-size:
    400px 400px,
    64px 64px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  background-attachment: fixed;
}

/* ── Tactical noise grain overlay ───────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
}

/* ── Scanline pulse — ultra-subtle ──────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent               0px,
    transparent               3px,
    rgba(0,0,0,0.018)         3px,
    rgba(0,0,0,0.018)         4px
  );
  background-size: 100% 4px;
}
a { color: var(--accent-h); text-decoration: none; transition: color .2s; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border3); }

/* ─── Layout ─────────────────────────────────── */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ─── Topbar ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4,8,10,0.86);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(212,150,10,0.12);
  box-shadow: 0 1px 0 rgba(212,150,10,0.07), 0 4px 28px rgba(0,0,0,0.45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--white) !important;
  text-decoration: none;
  text-transform: uppercase;
}
.logo span {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(212,150,10,0.65);
}

/* ─── Nav Buttons ─────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .15s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.14);
  line-height: 1.4;
  background: rgba(255,255,255,0.07);
  color: #ffffff;
  position: relative;
}
.nav-btn-ghost {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 3px 12px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.nav-btn-ghost:active {
  transform: translateY(0);
  background: rgba(255,255,255,0.09);
}
.nav-btn-new {
  color: #0d0d0d !important;
  background: #f5a623 !important;
  border-color: #e09010 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(212,150,10,0.45),
              inset 0 1px 0 rgba(255,255,255,0.30) !important;
  text-shadow: none !important;
}
.nav-btn-new:hover {
  background: #ffb83a !important;
  border-color: #f5a623 !important;
  box-shadow: 0 5px 18px rgba(212,150,10,0.60),
              inset 0 1px 0 rgba(255,255,255,0.35) !important;
  transform: translateY(-2px);
  color: #0d0d0d !important;
}
.nav-btn-new:active {
  transform: translateY(0) !important;
}
.inbox-dot {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(212,150,10,0.7);
}
.nav-btn-logout {
  color: #f87171 !important;
  background: rgba(248,113,113,0.08) !important;
  border-color: rgba(248,113,113,0.18) !important;
}
.nav-btn-logout:hover {
  background: rgba(248,113,113,0.18) !important;
  border-color: rgba(248,113,113,0.40) !important;
  box-shadow: 0 0 14px rgba(248,113,113,0.15);
  transform: translateY(-1px);
}
.nav-links .btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .1px;
  box-shadow: 0 2px 10px rgba(212,150,10,0.25);
  margin-left: 6px;
}
.nav-links .btn-nav:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 18px rgba(212,150,10,0.4);
  transform: translateY(-1px);
}

/* ─── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  padding: 108px 0 88px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 50% -12%, rgba(212,150,10,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 6%  78%,  rgba(14,138,122,0.12) 0%, transparent 52%),
    radial-gradient(ellipse 38% 40% at 94% 52%,  rgba(46,184,200,0.10) 0%, transparent 48%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212,150,10,0.08);
  border: 1px solid rgba(212,150,10,0.22);
  color: var(--accent-h);
  padding: 5px 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(212,150,10,0.28));
}
.hero p {
  font-size: 17px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Sections ─────────────────────────────── */
.section { padding: 90px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(8,13,24,0.6) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 38px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}

/* ─── Grids ─────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 22px; }

/* ─── Cards ─────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,150,10,0.3), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.card:hover::before { opacity: 1; }
.card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--text2); line-height: 1.65; margin-bottom: 16px; }

/* ─── Buttons ─────────────────────────────── */
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(212,150,10,0.3);
}
.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 20px rgba(212,150,10,0.45);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--accent-h);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  background: rgba(212,150,10,0.07);
  border-color: var(--border3);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--border2); }
.btn-danger { background: rgba(240,78,78,0.1); color: var(--red); border: 1px solid rgba(240,78,78,0.22); }
.btn-danger:hover { background: rgba(240,78,78,0.2); }
.btn-success { background: rgba(0,200,150,0.1); color: var(--green); border: 1px solid rgba(0,200,150,0.22); }
.btn-success:hover { background: rgba(0,200,150,0.2); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 9px; letter-spacing: .1px; }

/* ─── Forms ─────────────────────────────────── */
.page-box { width: 94%; max-width: 490px; margin: 72px auto; }
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 38px 34px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.38);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,150,10,0.35), transparent);
}
.form-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.form-sub { font-size: 14px; color: var(--text2); margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 6px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(212,150,10,0.6);
  box-shadow: 0 0 0 3px rgba(212,150,10,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text3); }
select option { background: var(--bg3); color: var(--text); }
textarea { resize: vertical; min-height: 100px; }
input[type="file"] { padding: 10px 14px; cursor: pointer; color: var(--text2); }
.form-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text2); }

/* ─── Alerts ─────────────────────────────── */
.alert { padding: 13px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert-error   { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.25);   color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.25);  color: #6ee7b7; }
.alert-info    { background: rgba(212,150,10,0.08);  border-color: rgba(212,150,10,0.25);  color: #93c5fd; }

/* ─── Dashboard ─────────────────────────── */
.dashboard-wrap {
  display: grid;
  grid-template-columns: 242px 1fr;
  gap: 22px;
  padding: 36px 0 64px;
  align-items: start;
}
.dash-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 16px;
  position: sticky;
  top: 78px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 3px rgba(212,150,10,0.15);
}
.dash-username { text-align: center; font-family: 'Syne', sans-serif; font-weight: 700; color: var(--white); font-size: 16px; margin-bottom: 3px; }
.dash-email    { text-align: center; font-size: 12px; color: var(--text3); margin-bottom: 22px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all .18s;
}
.dash-nav a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.dash-nav a.active { background: rgba(212,150,10,0.1); color: var(--accent-h); border: 1px solid rgba(212,150,10,0.18); }
.dash-nav a .icon { font-size: 15px; }
.dash-divider { height: 1px; background: var(--border); margin: 8px 2px; }
.dash-content { display: flex; flex-direction: column; gap: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 18px 20px;
  transition: border-color .2s, transform .2s;
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; font-weight: 600; }
.stat-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; color: var(--white); line-height: 1; }

/* ─── User List ─────────────────────────── */
.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px 18px;
  gap: 12px;
  transition: border-color .18s, transform .18s;
}
.user-item:hover { border-color: var(--border2); transform: translateX(2px); }
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px;
  color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(212,150,10,0.2);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; color: var(--white); font-size: 15px; }
.user-status-text { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ─── Requests ─────────────────────────── */
.req-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 20px;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color .18s;
}
.req-item:hover { border-color: var(--border2); }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Badges ─────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-blue   { background: rgba(212,150,10,0.14);  color: #93c5fd; border: 1px solid rgba(212,150,10,0.28); }
.badge-green  { background: rgba(16,185,129,0.14);  color: #6ee7b7; border: 1px solid rgba(16,185,129,0.28); }
.badge-purple { background: rgba(14,138,122,0.14);  color: #c4b5fd; border: 1px solid rgba(14,138,122,0.28); }
.badge-yellow { background: rgba(245,158,11,0.14);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.28); }
.badge-red    { background: rgba(239,68,68,0.14);   color: #fca5a5; border: 1px solid rgba(239,68,68,0.28); }
.badge-gray   { background: rgba(100,116,139,0.14); color: #94a3b8; border: 1px solid rgba(100,116,139,0.28); }

/* ─── Private Chat ──────────────────────── */
.chat-wrap {
  display: flex;
  flex-direction: column;
  max-width: 840px;
  margin: 36px auto 64px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.chat-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.chat-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,150,10,0.18), transparent);
}
.chat-header h2 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; color: var(--white); }
.chat-messages {
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 500px;
  overflow-y: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ── Bubble base (receiver = left) ── */
.msg-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 76%;
  align-self: flex-start;
}
/* ── Sender = right ── */
.msg-bubble.mine {
  flex-direction: row-reverse;
  align-self: flex-end;
}
.msg-ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(212,150,10,0.28);
}
.mine .msg-ava {
  background: linear-gradient(135deg, #2563eb, var(--accent));
  box-shadow: 0 2px 10px rgba(212,150,10,0.38);
}
.msg-content { display: flex; flex-direction: column; gap: 4px; }
.msg-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 4px;
}
.mine .msg-meta {
  flex-direction: row-reverse;
  text-align: right;
}
/* ── Receiver bubble ── */
.msg-text {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 4px 18px 18px 18px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: box-shadow .2s;
}
.msg-text:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.3); }
/* ── Sender bubble ── */
.mine .msg-text {
  background: linear-gradient(135deg, rgba(212,150,10,0.22) 0%, rgba(37,99,235,0.18) 100%);
  border-color: rgba(212,150,10,0.35);
  border-radius: 18px 4px 18px 18px;
  color: #dbeafe;
  box-shadow: 0 2px 14px rgba(212,150,10,0.15);
}
.mine .msg-text:hover { box-shadow: 0 4px 20px rgba(212,150,10,0.25); }

/* ── Date divider ── */
.msg-date-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 4px 0;
}
.msg-date-divider::before,
.msg-date-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Input bar ── */
.chat-input-area {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(212,150,10,0.10);
  border-radius: 0 0 20px 20px;
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
.chat-input-area::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,150,10,0.15), transparent);
}
.chat-input-area input {
  flex: 1;
  background: rgba(4,6,14,0.7);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.chat-input-area input:focus {
  border-color: var(--accent);
  background: rgba(4,6,14,0.95);
  box-shadow: 0 0 0 3px rgba(212,150,10,0.14);
}
.chat-input-area .btn-primary {
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Store ─────────────────────────────── */
.store-hero {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -20%, rgba(212,150,10,0.12) 0%, transparent 65%);
}
.store-hero h1 { font-family: 'Syne', sans-serif; font-size: 38px; font-weight: 800; color: var(--white); margin-bottom: 10px; position: relative; }
.store-hero p { color: var(--text2); font-size: 15px; max-width: 600px; position: relative; }
.product-card {
  background: linear-gradient(160deg, var(--bg2) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .28s, transform .28s, box-shadow .28s;
}
.product-card:hover {
  border-color: var(--border3);
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,150,10,0.1);
}
.product-thumb {
  height: 175px;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
}
.product-body { padding: 20px; }
.product-type { margin-bottom: 10px; }
.product-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.35; }
.product-desc { font-size: 13px; color: var(--text2); line-height: 1.55; margin-bottom: 16px; }
.product-price { font-family: 'DM Mono', monospace; font-size: 22px; color: var(--green); font-weight: 500; text-shadow: 0 0 14px rgba(16,185,129,0.3); }
.product-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.15); }

/* ─── Page header ─────────────────────── */
.page-header {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.page-header h1 { font-family: 'Syne', sans-serif; font-size: 34px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.page-header p { color: var(--text2); font-size: 15px; }

/* ─── Empty state ─────────────────────── */
.empty-state {
  text-align: center;
  padding: 72px 20px;
  color: var(--text3);
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-radius: 18px;
  border: 1px dashed var(--border2);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 18px; opacity: 0.7; }
.empty-state p { font-size: 16px; color: var(--text2); margin-bottom: 6px; }

/* ─── Footer ─────────────────────────── */
.footer {
  background: linear-gradient(0deg, var(--bg2) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
}

/* ─── Utilities ─────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text2); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.flex  { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.w-full { width: 100%; }

/* ─── Animations ────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .55s cubic-bezier(.4,0,.2,1) both; }
.fade-up-2 { animation: fadeUp .55s .12s cubic-bezier(.4,0,.2,1) both; }
.fade-up-3 { animation: fadeUp .55s .22s cubic-bezier(.4,0,.2,1) both; }

/* ─── Responsive ────────────────────── */
@media (max-width: 900px) {
  .dashboard-wrap { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
}
@media (max-width: 640px) {
  .nav-btn:not(.btn-nav):not([href="index.php"]) { display: none; }
  .hero { padding: 80px 0 64px; }
  .form-card { padding: 28px 22px; }
  .chat-messages { height: 360px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; letter-spacing: -.5px; }
  .hero p { font-size: 16px; }
}

/* ─── Global Nav Search Bar (Amazon-style) ───── */
.nav-search-form {
  flex: 1;
  max-width: 460px;
  margin: 0 16px;
}
.nav-search-wrap {
  display: flex;
  align-items: stretch;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--accent);
  transition: border-color .2s, box-shadow .2s;
}
.nav-search-wrap:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}

/* Left dropdown */
.nav-search-category {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg4);
  border: none;
  border-right: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  padding: 0 10px 0 12px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  min-width: 64px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238da1bc'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
  transition: background .15s;
}
.nav-search-category:hover,
.nav-search-category:focus {
  background-color: var(--bg5);
  color: var(--white);
}

/* Middle text input */
.nav-search-input {
  flex: 1;
  background: var(--bg4);
  border: none;
  outline: none;
  padding: 0 12px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}
.nav-search-input::placeholder {
  color: var(--text3);
}

/* Right submit button */
.nav-search-btn {
  background: #f59e0b;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .15s;
  flex-shrink: 0;
}
.nav-search-btn:hover {
  background: #d97706;
}
.nav-search-btn svg {
  width: 17px;
  height: 17px;
  fill: #111;
}

/* ─── Search Page ─────────────────────────────── */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap--large .search-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  pointer-events: none;
  opacity: 0.55;
}
.search-input-wrap--large .search-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 28px;
  padding: 14px 48px 14px 48px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input-wrap--large .search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212,150,10,0.14);
}
.search-input-wrap--large .search-input::placeholder {
  color: var(--text3);
}
.search-clear {
  position: absolute;
  right: 16px;
  color: var(--text3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
  transition: color .2s, background .2s;
}
.search-clear:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.search-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.search-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.search-tab:hover {
  color: var(--white);
  background: rgba(255,255,255,0.09);
  border-color: var(--border2);
}
.search-tab--active {
  color: var(--accent-h) !important;
  background: rgba(212,150,10,0.12) !important;
  border-color: rgba(212,150,10,0.35) !important;
}

/* ─── Responsive: collapse search on mobile ──── */
@media (max-width: 900px) {
  .nav-search-form {
    display: none;
  }
}
@media (max-width: 700px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    gap: 8px;
  }
  .nav-search-form {
    display: flex;
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .nav-links {
    order: 2;
  }
}
/* ─── Scroll-Triggered Reveal ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .20s; }
.reveal-delay-3 { transition-delay: .30s; }
.reveal-delay-4 { transition-delay: .40s; }

/* ─── Store Banner Placeholder ───────────────── */
.store-banner-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}

/* ─── Store Logo Wrap ────────────────────────── */
.store-logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -36px;
  padding: 0 16px;
}
.store-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg2);
  background: var(--bg3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.store-logo-initial {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  border: 3px solid var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,150,10,0.3);
}

/* ─── Store Hero Info ────────────────────────── */
.store-hero-info {
  padding: 16px 16px 0;
}
.store-hero-name {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.store-hero-desc {
  color: var(--text2);
  font-size: 14px;
  max-width: 600px;
}
.store-hero-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text3);
}

/* ─── Nav Logo Image ─────────────────────────── */
.logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .2s, transform .2s;
  filter: drop-shadow(0 0 10px rgba(212,150,10,0.45));
}
.logo:hover .logo-img {
  opacity: 0.90;
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(212,150,10,0.7));
}

/* ─── Store Cards (Homepage) ─────────────────── */
.store-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
}

.store-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
  text-decoration: none;
  color: inherit;
}

/* Banner */
.store-card-banner {
  position: relative;
  height: 110px;
  overflow: hidden;
}

.store-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .38s ease;
}

.store-card:hover .store-card-banner img {
  transform: scale(1.04);
}

.store-card-banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg4) 50%, rgba(212,150,10,0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.store-card-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.5) 100%);
}

/* Logo */
.store-card-logo-wrap {
  display: flex;
  padding: 0 18px;
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.store-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--bg2);
  background: var(--bg3);
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.store-card-logo-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  box-shadow: 0 3px 12px rgba(212,150,10,0.3);
}

/* Body */
.store-card-body {
  padding: 10px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.store-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  flex: 1;
}

.store-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.store-card-badge {
  font-size: 12px;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 9px;
}

.store-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color .18s;
}

.store-card:hover .store-card-cta {
  color: var(--accent-h);
}

@media (max-width: 640px) {
  .store-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════════
   THEME SYSTEM: Light + Illuminati (Dark is default)
════════════════════════════════════════════════════════ */

/* ── LIGHT MODE ── */
html[data-theme="light"] {
  --bg:           #f8fafc;
  --bg2:          #ffffff;
  --bg3:          #f1f5f9;
  --bg4:          #e2e8f0;
  --bg5:          #cbd5e1;
  --border:       #e2e8f0;
  --border2:      #cbd5e1;
  --border3:      #94a3b8;
  --accent:       #2563eb;
  --accent-h:     #1d4ed8;
  --accent-glow:  rgba(37,99,235,0.15);
  --accent-glow2: rgba(37,99,235,0.06);
  --purple:       #7c3aed;
  --purple-glow:  rgba(124,58,237,0.14);
  --cyan:         #0284c7;
  --cyan-glow:    rgba(2,132,199,0.12);
  --green:        #059669;
  --red:          #dc2626;
  --yellow:       #d97706;
  --pink:         #db2777;
  --text:         #0f172a;
  --text2:        #334155;
  --text3:        #64748b;
  --white:        #020617;
}
html[data-theme="light"] body {
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 130% 55% at 38% -8%, rgba(37,99,235,0.06) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 94%, rgba(124,58,237,0.04) 0%, transparent 52%);
  color: #0f172a;
}
html[data-theme="light"] .topbar {
  background: rgba(255,255,255,0.88);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 0 rgba(37,99,235,0.04), 0 4px 16px rgba(0,0,0,0.06);
}
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 65% at 45% -10%, rgba(37,99,235,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 42% 42% at 8% 75%, rgba(124,58,237,0.06) 0%, transparent 52%),
    radial-gradient(ellipse 35% 38% at 92% 55%, rgba(2,132,199,0.04) 0%, transparent 48%);
}
html[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, #ffffff 0%, rgba(241,245,249,0.6) 100%);
}
html[data-theme="light"] .alert-error   { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); color: #991b1b; }
html[data-theme="light"] .alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.18); color: #047857; }
html[data-theme="light"] .alert-info    { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.18); color: #1e40af; }
html[data-theme="light"] .badge-blue   { background: rgba(59,130,246,0.10); color: #1d4ed8; border-color: rgba(59,130,246,0.22); }
html[data-theme="light"] .badge-green  { background: rgba(16,185,129,0.10); color: #047857; border-color: rgba(16,185,129,0.22); }
html[data-theme="light"] .badge-purple { background: rgba(139,92,246,0.10); color: #5b21b6; border-color: rgba(139,92,246,0.22); }
html[data-theme="light"] .badge-yellow { background: rgba(245,158,11,0.10); color: #92400e; border-color: rgba(245,158,11,0.22); }
html[data-theme="light"] .badge-red    { background: rgba(239,68,68,0.10); color: #991b1b; border-color: rgba(239,68,68,0.22); }
html[data-theme="light"] .badge-gray   { background: rgba(100,116,139,0.10); color: #475569; border-color: rgba(100,116,139,0.22); }
html[data-theme="light"] .mine .msg-text { color: #1e3a8a; }
html[data-theme="light"] .nav-btn-logout { color: #dc2626 !important; background: rgba(239,68,68,0.06) !important; border-color: rgba(239,68,68,0.14) !important; }
html[data-theme="light"] .nav-btn-logout:hover { background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.28) !important; }

/* ── Light mode nav buttons — light purple style (matches screenshot) ── */
html[data-theme="light"] .nav-btn {
  color: #5b21b6 !important;
  background: rgba(139,92,246,0.10) !important;
  border-color: rgba(139,92,246,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.80) !important;
}
html[data-theme="light"] .nav-btn-ghost {
  color: #5b21b6 !important;
  background: rgba(139,92,246,0.10) !important;
  border-color: rgba(139,92,246,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.80) !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .nav-btn-ghost:hover {
  color: #4c1d95 !important;
  background: rgba(139,92,246,0.20) !important;
  border-color: rgba(109,40,217,0.45) !important;
  box-shadow: 0 3px 14px rgba(139,92,246,0.25),
              inset 0 1px 0 rgba(255,255,255,0.90) !important;
  transform: translateY(-1px);
}
html[data-theme="light"] .nav-btn-ghost:active {
  transform: translateY(0) !important;
  background: rgba(139,92,246,0.14) !important;
}
html[data-theme="light"] button.nav-btn-ghost {
  color: #5b21b6 !important;
  background: rgba(139,92,246,0.10) !important;
  border-color: rgba(139,92,246,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.80) !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}
html[data-theme="light"] button.nav-btn-ghost:hover {
  color: #4c1d95 !important;
  background: rgba(139,92,246,0.20) !important;
  border-color: rgba(109,40,217,0.45) !important;
  box-shadow: 0 3px 14px rgba(139,92,246,0.25),
              inset 0 1px 0 rgba(255,255,255,0.90) !important;
  transform: translateY(-1px);
}
/* Light mode — New Store: solid purple like screenshot */
html[data-theme="light"] .nav-btn-new {
  color: #ffffff !important;
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
  box-shadow: 0 2px 10px rgba(109,40,217,0.40),
              inset 0 1px 0 rgba(255,255,255,0.22) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.20) !important;
}
html[data-theme="light"] .nav-btn-new:hover {
  background: #6d28d9 !important;
  border-color: #5b21b6 !important;
  box-shadow: 0 5px 18px rgba(109,40,217,0.50),
              inset 0 1px 0 rgba(255,255,255,0.26) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}
/* Light mode — Logout: red border style like screenshot */
html[data-theme="light"] .nav-btn-logout {
  color: #dc2626 !important;
  background: rgba(239,68,68,0.08) !important;
  border-color: rgba(239,68,68,0.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70) !important;
}
html[data-theme="light"] .nav-btn-logout:hover {
  background: rgba(239,68,68,0.15) !important;
  border-color: rgba(220,38,38,0.55) !important;
  box-shadow: 0 3px 12px rgba(239,68,68,0.25),
              inset 0 1px 0 rgba(255,255,255,0.75) !important;
  transform: translateY(-1px);
}
/* Light mode — Get Started */
html[data-theme="light"] .nav-links .btn-nav {
  color: #ffffff !important;
  background: #f59e0b !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 10px rgba(245,158,11,0.38) !important;
}
html[data-theme="light"] .nav-links .btn-nav:hover {
  background: #fbbf24 !important;
  box-shadow: 0 5px 18px rgba(245,158,11,0.50) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}
html[data-theme="light"] .store-banner-placeholder { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #94a3b8; }
html[data-theme="light"] .store-card-banner-overlay { background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.15) 100%); }
html[data-theme="light"] .empty-state { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); border-color: #cbd5e1; }
html[data-theme="light"] .empty-state p { color: #475569; }
html[data-theme="light"] .chat-header::after { background: linear-gradient(90deg, transparent, rgba(37,99,235,0.10), transparent); }
html[data-theme="light"] .chat-input-area::before { background: linear-gradient(90deg, transparent, rgba(37,99,235,0.08), transparent); }
html[data-theme="light"] .msg-date-divider::before, html[data-theme="light"] .msg-date-divider::after { background: #e2e8f0; }
html[data-theme="light"] .card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
html[data-theme="light"] .dash-sidebar { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
html[data-theme="light"] .form-card { box-shadow: 0 20px 56px rgba(0,0,0,0.08); }
html[data-theme="light"] .chat-wrap { box-shadow: 0 24px 64px rgba(0,0,0,0.10); }
html[data-theme="light"] .product-card:hover { box-shadow: 0 24px 56px rgba(0,0,0,0.10), 0 0 0 1px rgba(37,99,235,0.08); }

/* ── FIX: Product section light-mode gray background ─────────────── */
/* 1. Card body: pure white instead of white→gray gradient            */
html[data-theme="light"] .product-card {
  background: #ffffff;
  border-color: #e2e8f0;
}
/* 2. Thumb area: soft blue tint instead of slate-gray gradient       */
html[data-theme="light"] .product-thumb {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom-color: #e2e8f0;
}
/* 3. Footer strip: rgba(0,0,0,.15) is dark on white — use near-transparent */
html[data-theme="light"] .product-footer {
  background: rgba(37, 99, 235, 0.04);
  border-top-color: #e2e8f0;
}

/* ── FIX: Home page Latest Products pcard light-mode gray background ── */
html[data-theme="light"] .pcard {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] .pcard:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.09) !important;
  border-color: #94a3b8 !important;
}
html[data-theme="light"] .pcard-thumb {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
/* ── FIX: Latest Products section — must come after illuminati leak fix ── */
html[data-theme="light"] .home-section.alt-bg {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, #ffffff 0%, rgba(241,245,249,0.6) 100%) !important;
}

/* ── ILLUMINATI MODE ── */
html[data-theme="illuminati"] {
  --bg:           #07070a;
  --bg2:          #0e0e14;
  --bg3:          #14141f;
  --bg4:          #1a1a28;
  --bg5:          #222233;
  --border:       #2a2a3d;
  --border2:      #363650;
  --border3:      #454560;
  --accent:       #f59e0b;
  --accent-h:     #fbbf24;
  --accent-glow:  rgba(245,158,11,0.20);
  --accent-glow2: rgba(245,158,11,0.08);
  --purple:       #d8b4fe;
  --purple-glow:  rgba(216,180,254,0.18);
  --cyan:         #67e8f9;
  --cyan-glow:    rgba(103,232,249,0.15);
  --green:        #34d399;
  --red:          #f87171;
  --yellow:       #fbbf24;
  --pink:         #f9a8d4;
  --text:         #e2e8f0;
  --text2:        #94a3b8;
  --text3:        #64748b;
  --white:        #f8fafc;
}
html[data-theme="illuminati"] body {
  background-color: #07070a;
  background-image:
    radial-gradient(ellipse 130% 55% at 38% -8%, rgba(245,158,11,0.07) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 94%, rgba(168,85,247,0.05) 0%, transparent 52%);
  color: #e2e8f0;
}
html[data-theme="illuminati"] .topbar {
  background: rgba(7,7,10,0.88);
  border-bottom-color: #2a2a3d;
  box-shadow: 0 1px 0 rgba(245,158,11,0.06), 0 4px 16px rgba(0,0,0,0.50);
}
html[data-theme="illuminati"] .hero::before {
  background:
    radial-gradient(ellipse 80% 65% at 45% -10%, rgba(245,158,11,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 42% 42% at 8% 75%, rgba(168,85,247,0.08) 0%, transparent 52%),
    radial-gradient(ellipse 35% 38% at 92% 55%, rgba(103,232,249,0.05) 0%, transparent 48%);
}
html[data-theme="illuminati"] .section-alt {
  background: linear-gradient(180deg, #0e0e14 0%, rgba(20,20,31,0.6) 100%);
}
html[data-theme="illuminati"] .alert-error   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.22); color: #fca5a5; }
html[data-theme="illuminati"] .alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.22); color: #6ee7b7; }
html[data-theme="illuminati"] .alert-info    { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.22); color: #fcd34d; }
html[data-theme="illuminati"] .badge-blue   { background: rgba(245,158,11,0.12); color: #fcd34d; border-color: rgba(245,158,11,0.30); }
html[data-theme="illuminati"] .badge-green  { background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.28); }
html[data-theme="illuminati"] .badge-purple { background: rgba(216,180,254,0.12); color: #e9d5ff; border-color: rgba(216,180,254,0.28); }
html[data-theme="illuminati"] .badge-yellow { background: rgba(251,191,36,0.12); color: #fde68a; border-color: rgba(251,191,36,0.28); }
html[data-theme="illuminati"] .badge-red    { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.28); }
html[data-theme="illuminati"] .badge-gray   { background: rgba(100,116,139,0.12); color: #94a3b8; border-color: rgba(100,116,139,0.28); }
html[data-theme="illuminati"] .mine .msg-text { color: #fffbeb; }
html[data-theme="illuminati"] .nav-btn-logout { color: #f87171 !important; background: rgba(248,113,113,0.08) !important; border-color: rgba(248,113,113,0.18) !important; }
html[data-theme="illuminati"] .nav-btn-logout:hover { background: rgba(248,113,113,0.18) !important; border-color: rgba(248,113,113,0.40) !important; }
html[data-theme="illuminati"] .store-banner-placeholder { background: linear-gradient(135deg, #14141f 0%, #1a1a28 100%); color: #64748b; }
html[data-theme="illuminati"] .store-card-banner-overlay { background: linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.5) 100%); }
html[data-theme="illuminati"] .empty-state { background: linear-gradient(135deg, #0e0e14 0%, #14141f 100%); border-color: #2a2a3d; }
html[data-theme="illuminati"] .empty-state p { color: #94a3b8; }
html[data-theme="illuminati"] .chat-header::after { background: linear-gradient(90deg, transparent, rgba(245,158,11,0.18), transparent); }
html[data-theme="illuminati"] .chat-input-area::before { background: linear-gradient(90deg, transparent, rgba(245,158,11,0.12), transparent); }
html[data-theme="illuminati"] .msg-date-divider::before, html[data-theme="illuminati"] .msg-date-divider::after { background: #2a2a3d; }
html[data-theme="illuminati"] .card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.50); }
html[data-theme="illuminati"] .dash-sidebar { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
html[data-theme="illuminati"] .form-card { box-shadow: 0 20px 56px rgba(0,0,0,0.45); }
html[data-theme="illuminati"] .chat-wrap { box-shadow: 0 24px 64px rgba(0,0,0,0.50); }
html[data-theme="illuminati"] .product-card:hover { box-shadow: 0 24px 56px rgba(0,0,0,0.50), 0 0 0 1px rgba(245,158,11,0.12); }
/* ════════════════════════════════════════════════
   STRATOS — HYPERION TACTICAL  (Background Layer)
   ════════════════════════════════════════════════ */

/* Tactical crosshair reticle in hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  pointer-events: none;
  z-index: 0;
  background-image:
    /* outer ring */
    radial-gradient(circle, transparent 48%, rgba(212,150,10,0.06) 49%, rgba(212,150,10,0.06) 50%, transparent 51%),
    /* inner ring */
    radial-gradient(circle, transparent 28%, rgba(212,150,10,0.05) 29%, rgba(212,150,10,0.05) 30%, transparent 31%),
    /* crosshair lines */
    linear-gradient(90deg, transparent 0%, transparent 49.4%, rgba(212,150,10,0.08) 49.4%, rgba(212,150,10,0.08) 50.6%, transparent 50.6%),
    linear-gradient(0deg,  transparent 0%, transparent 49.4%, rgba(212,150,10,0.08) 49.4%, rgba(212,150,10,0.08) 50.6%, transparent 50.6%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  animation: reticle-pulse 6s ease-in-out infinite;
}

@keyframes reticle-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1.0; transform: translate(-50%, -50%) scale(1.03); }
}

/* Hyperion amber line sweep on hero */
.hero {
  isolation: isolate;
}

/* Tactical card hover glow — amber instead of blue */
.card:hover,
.store-card:hover,
.product-card:hover {
  border-color: rgba(212,150,10,0.55) !important;
  box-shadow: 0 8px 36px rgba(212,150,10,0.14) !important;
}

/* Button primary — amber tactical */
.btn-primary {
  background: linear-gradient(135deg, #c48a08 0%, #e8a80c 100%);
  border: 1px solid rgba(212,150,10,0.4);
  color: #04080a;
  font-weight: 700;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 14px rgba(212,150,10,0.30);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #d49909 0%, #f2b814 100%);
  box-shadow: 0 4px 22px rgba(212,150,10,0.45);
  color: #02050a;
}

/* Logo accent glow — amber */
.logo span {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(212,150,10,0.65);
}

/* Stratos horizon line — amber shimmer under topbar */
.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,150,10,0.35) 30%,
    rgba(240,184,50,0.60) 50%,
    rgba(212,150,10,0.35) 70%,
    transparent 100%);
  animation: horizon-shimmer 5s ease-in-out infinite;
}
@keyframes horizon-shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1.0; }
}

/* Tactical section dividers — illuminati mode ONLY */
html[data-theme="illuminati"] .home-section.alt-bg,
html[data-theme="illuminati"] .section-alt {
  background: rgba(6,13,15,0.65) !important;
  border-top: 1px solid rgba(212,150,10,0.10) !important;
  border-bottom: 1px solid rgba(212,150,10,0.10) !important;
}

/* Alert-info → amber */
.alert-info {
  background: rgba(212,150,10,0.08) !important;
  border-color: rgba(212,150,10,0.25) !important;
  color: #f0c860 !important;
}

/* nav-btn-new — solid amber final (dark mode) */
.nav-btn-new {
  color: #0d0d0d !important;
  background: #f5a623 !important;
  border-color: #e09010 !important;
  box-shadow: 0 2px 10px rgba(212,150,10,0.45),
              inset 0 1px 0 rgba(255,255,255,0.30) !important;
  font-weight: 700 !important;
}
.nav-btn-new:hover {
  background: #ffb83a !important;
  border-color: #f5a623 !important;
  box-shadow: 0 5px 18px rgba(212,150,10,0.60),
              inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/* Dash-nav active item — amber */
.dash-nav a.active {
  background: rgba(212,150,10,0.10) !important;
  color: var(--accent-h) !important;
  border: 1px solid rgba(212,150,10,0.20) !important;
}

/* Scrollbar track — tactical dark */
::-webkit-scrollbar-thumb { background: var(--border3); }
::-webkit-scrollbar-thumb:hover { background: rgba(212,150,10,0.40); }