@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080808;
  --bg-card: #111111;
  --bg-card-2: #1a1a1a;
  --border: #252525;
  --border-light: #2e2e2e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #a07830;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #444;
  --danger: #e53e3e;
  --success: #38a169;
  --warning: #d69e2e;
  --info: #3182ce;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── GOLD TEXT ── */
.gold { color: var(--gold); }
.gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.25rem; font-weight: 900; letter-spacing: 0.06em;
  text-decoration: none; color: var(--text);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.85rem; letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* ── BUTTONS ── */
.btn {
  padding: 0.65rem 1.5rem;
  border-radius: 5px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.18s;
  border: none; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,168,76,.28); }
.btn-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .88; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .88; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.72rem; }
.btn-lg { padding: 0.95rem 2.4rem; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(201,168,76,.055) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(201,168,76,.5); color: var(--gold);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 100px; margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.08;
  margin-bottom: 1.5rem; max-width: 820px;
}
.hero p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 5rem; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── SECTIONS ── */
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); max-width: 580px; margin-bottom: 3rem; font-size: 0.95rem; }
.divider { height: 1px; background: var(--border); max-width: 1200px; margin: 0 auto; }
.full-divider { height: 1px; background: var(--border); }

/* ── FEATURE GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem; transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(201,168,76,.4); }
.feature-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }

/* ── TIER CARDS ── */
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.tier-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.tier-card:hover { border-color: rgba(201,168,76,.5); transform: translateY(-2px); }
.tier-card.featured { border-color: var(--gold); background: linear-gradient(160deg, #141414 0%, #120f00 100%); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.12em; padding: 0.28rem 1rem;
  border-radius: 100px; text-transform: uppercase; white-space: nowrap;
}
.tier-icon { font-size: 2rem; margin-bottom: 1rem; }
.tier-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.tier-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.75rem; line-height: 1.55; }
.tier-features { list-style: none; }
.tier-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.87rem; padding: 0.3rem 0; color: var(--text-muted); }
.tier-features li .check { color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center; padding: 6rem 2rem;
  background: linear-gradient(160deg, #0e0e0e 0%, #0c0b00 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 6rem 1.5rem 2rem;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 460px;
}
.auth-card-wide { max-width: 580px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo-text { font-size: 1.1rem; font-weight: 900; letter-spacing: 0.06em; text-decoration: none; color: var(--text); }
.auth-logo-text span { color: var(--gold); }
.auth-title { font-size: 1.55rem; font-weight: 800; text-align: center; margin-bottom: 0.4rem; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2rem; line-height: 1.55; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.15rem; }
.form-label {
  display: block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-muted);
  margin-bottom: 0.45rem; text-transform: uppercase;
}
.form-input {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  font-size: 0.93rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--text-dim); }
select.form-input option { background: var(--bg-card); }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.form-footer a { color: var(--gold); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }
.form-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-dim); font-size: 0.82rem;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── ALERTS ── */
.alert { padding: 0.85rem 1rem; border-radius: 7px; font-size: 0.88rem; margin-bottom: 1.1rem; display: none; }
.alert.show { display: block; }
.alert-error { background: rgba(229,62,62,.1); border: 1px solid rgba(229,62,62,.3); color: #fc8181; }
.alert-success { background: rgba(56,161,105,.1); border: 1px solid rgba(56,161,105,.3); color: #68d391; }
.alert-warning { background: rgba(214,158,46,.1); border: 1px solid rgba(214,158,46,.3); color: #f6c23e; }
.alert-info { background: rgba(49,130,206,.1); border: 1px solid rgba(49,130,206,.3); color: #90cdf4; }

/* ── DASHBOARD LAYOUT ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 255px;
  background: linear-gradient(180deg, #0d0d0d 0%, #0a0900 60%, #0d0d0d 100%);
  border-right: 1px solid rgba(201,168,76,.15);
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
  display: flex; flex-direction: column;
  box-shadow: 2px 0 24px rgba(0,0,0,.5), inset -1px 0 0 rgba(201,168,76,.08);
}
/* Subtle gold shimmer line down the right edge */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(201,168,76,.3) 30%, rgba(201,168,76,.5) 50%, rgba(201,168,76,.3) 70%, transparent 100%);
  pointer-events: none;
}

.sidebar-top { flex: 1; overflow-y: auto; }

.sidebar-logo {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(201,168,76,.12);
  background: linear-gradient(135deg, rgba(201,168,76,.05) 0%, transparent 100%);
}
.sidebar-logo-text { font-size: 1rem; font-weight: 900; letter-spacing: 0.06em; text-decoration: none; color: var(--text); }
.sidebar-logo-text span { color: var(--gold); text-shadow: 0 0 12px rgba(201,168,76,.4); }

.sidebar-user {
  padding: 1.1rem 1.5rem 1.1rem;
  border-bottom: 1px solid rgba(201,168,76,.1);
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(201,168,76,.03);
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #000; font-size: 0.9rem; flex-shrink: 0;
  box-shadow: 0 0 12px rgba(201,168,76,.35);
}
.user-name { font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.user-role-tag {
  font-size: 0.65rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(201,168,76,.4);
}

.sidebar-nav { padding: 1rem 0.6rem; }
.nav-section-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(201,168,76,.4); padding: 0.6rem 0.7rem 0.25rem; margin-top: 0.5rem;
  position: relative;
}
/* Thin gold line after section labels */
.nav-section-label::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.2) 0%, transparent 100%);
  margin-top: 0.3rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.58rem 0.75rem; border-radius: 8px;
  text-decoration: none; color: var(--text-muted);
  font-size: 0.87rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; border: none; background: none; width: 100%; text-align: left;
  position: relative;
}
.sidebar-link:hover {
  background: rgba(201,168,76,.08);
  color: var(--text);
  padding-left: 1rem;
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(201,168,76,.18) 0%, rgba(201,168,76,.06) 100%);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: calc(0.75rem - 2px);
  box-shadow: inset 0 0 20px rgba(201,168,76,.04);
}
.sidebar-link.active .icon {
  filter: drop-shadow(0 0 4px rgba(201,168,76,.5));
}
.sidebar-link .icon { font-size: 0.95rem; width: 1.2rem; text-align: center; flex-shrink: 0; transition: filter .2s; }

/* ── AI NAV BUTTON — HYPE ── */
.sidebar-link-ai {
  background: linear-gradient(90deg, rgba(201,168,76,.14) 0%, rgba(201,168,76,.05) 100%) !important;
  border: 1px solid rgba(201,168,76,.3) !important;
  color: var(--gold) !important;
  position: relative;
  animation: ai-nav-pulse 2.5s ease-in-out infinite;
  margin-top: .3rem;
}
@keyframes ai-nav-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0), inset 0 0 10px rgba(201,168,76,.04); border-color: rgba(201,168,76,.3); }
  50%      { box-shadow: 0 0 18px 2px rgba(201,168,76,.18), inset 0 0 16px rgba(201,168,76,.08); border-color: rgba(201,168,76,.6); }
}
.sidebar-link-ai:hover {
  background: linear-gradient(90deg, rgba(201,168,76,.22) 0%, rgba(201,168,76,.1) 100%) !important;
  box-shadow: 0 0 24px rgba(201,168,76,.25) !important;
}
.sidebar-link-ai .icon {
  filter: drop-shadow(0 0 5px rgba(201,168,76,.7));
  animation: ai-icon-spin 8s linear infinite;
}
@keyframes ai-icon-spin {
  0%,100% { filter: drop-shadow(0 0 5px rgba(201,168,76,.7)); }
  50%      { filter: drop-shadow(0 0 10px rgba(201,168,76,1)); }
}
.ai-nav-label { flex: 1; font-weight: 800; }
.ai-nav-badge {
  font-size: .5rem; font-weight: 900; letter-spacing: .12em;
  background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 4px; padding: .15rem .35rem;
  animation: ai-badge-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(201,168,76,.3);
}
@keyframes ai-badge-blink {
  0%,100% { opacity:1; }
  50%      { opacity:.6; }
}

.sidebar-bottom {
  padding: 1rem 0.6rem;
  border-top: 1px solid rgba(201,168,76,.1);
  background: rgba(0,0,0,.2);
}
.main-content { margin-left: 255px; flex: 1; padding: 2.5rem; min-height: 100vh; }
.page-header { margin-bottom: 2.25rem; }
.page-title { font-size: 1.75rem; font-weight: 800; }
.page-sub { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* ── CARDS ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card-title { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.home-card-styled {
  background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
  border-color: rgba(201,168,76,.15);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: linear-gradient(135deg, #111 0%, #0d0b00 100%);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 14px; padding: 1.4rem 1.5rem;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(201,168,76,.1); }
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  transform: translate(20px,-20px);
  pointer-events: none;
}
.stat-card-number { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; text-shadow: 0 0 20px rgba(201,168,76,.3); }
.stat-card-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ── HOME HERO ── */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0d0b00 0%, #100e00 40%, #0a0a0a 100%);
  border: 1px solid rgba(201,168,76,.3); border-radius: 20px;
  padding: 3rem 2.5rem; margin-bottom: 2rem;
  animation: home-hero-pulse 6s ease-in-out infinite;
}
@keyframes home-hero-pulse {
  0%,100% { border-color: rgba(201,168,76,.25); box-shadow: 0 0 40px rgba(201,168,76,.05); }
  50%      { border-color: rgba(201,168,76,.5);  box-shadow: 0 0 80px rgba(201,168,76,.12); }
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.home-hero-orb1 {
  position: absolute; width: 550px; height: 550px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 65%);
  top: -200px; right: -150px; pointer-events: none;
  animation: home-orb1 11s ease-in-out infinite;
}
@keyframes home-orb1 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.7; }
  50%      { transform: translate(-30px,20px) scale(1.07); opacity:1; }
}
.home-hero-orb2 {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
  bottom: -100px; left: 5%; pointer-events: none;
  animation: home-orb2 14s ease-in-out infinite;
}
@keyframes home-orb2 {
  0%,100% { transform: translate(0,0); opacity:.5; }
  50%      { transform: translate(25px,-15px); opacity:.9; }
}
.home-hero-content { position: relative; z-index: 2; }
.home-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,.35); border-radius: 30px;
  padding: .3rem .9rem; margin-bottom: 1.1rem; background: rgba(201,168,76,.08);
  animation: home-badge-glow 3.5s ease-in-out infinite;
}
@keyframes home-badge-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%      { box-shadow: 0 0 14px 3px rgba(201,168,76,.2); }
}
.home-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900;
  line-height: 1.1; margin-bottom: .6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.home-hero-name { color: var(--gold); text-shadow: 0 0 30px rgba(201,168,76,.4); }
.home-hero-sub {
  font-size: .92rem; color: var(--text-muted); max-width: 600px;
  line-height: 1.65; margin: 0;
}

/* ── HOME SECTION LABEL ── */
.home-section-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(201,168,76,.6);
  margin-bottom: 1rem; padding-left: .1rem;
}

/* ── FEATURE CARDS ── */
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: .5rem;
}
.home-feature-card {
  display: flex; flex-direction: column;
  background: linear-gradient(145deg, #111 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.home-feature-card.tool-locked { cursor: default; }
.home-feature-card.tool-locked:hover {
  transform: none !important; box-shadow: none !important;
  border-color: rgba(255,255,255,.07) !important;
}
.home-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
/* Visual banner */
.home-feature-visual {
  position: relative; height: 90px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hfv-ai     { background: linear-gradient(135deg, #0d0b00, #1a1400); }
.hfv-red    { background: linear-gradient(135deg, #0d0000, #1a0000); }
.hfv-gold   { background: linear-gradient(135deg, #0d0900, #1a1200); }
.hfv-blue   { background: linear-gradient(135deg, #000d1a, #001a2e); }
.hfv-purple { background: linear-gradient(135deg, #0a0014, #140028); }
.hfv-green  { background: linear-gradient(135deg, #001a08, #002e10); }

.home-feature-icon { font-size: 2.4rem; position: relative; z-index: 2; filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
.home-feature-glow {
  position: absolute; width: 130px; height: 130px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
  animation: feat-glow-pulse 3s ease-in-out infinite;
}
.hfg-gold   { background: radial-gradient(circle, rgba(201,168,76,.25) 0%, transparent 70%); }
.hfg-red    { background: radial-gradient(circle, rgba(229,62,62,.25) 0%, transparent 70%); }
.hfg-blue   { background: radial-gradient(circle, rgba(99,179,237,.25) 0%, transparent 70%); }
.hfg-purple { background: radial-gradient(circle, rgba(183,148,244,.25) 0%, transparent 70%); }
.hfg-green  { background: radial-gradient(circle, rgba(104,211,145,.25) 0%, transparent 70%); }
@keyframes feat-glow-pulse {
  0%,100% { opacity:.7; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity:1;  transform: translate(-50%,-50%) scale(1.15); }
}

.home-feature-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.home-feature-tag {
  display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,.3); background: rgba(201,168,76,.08);
  border-radius: 20px; padding: .18rem .6rem; width: fit-content;
}
.home-feature-title { font-size: .92rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.home-feature-desc  { font-size: .78rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.home-feature-cta   { font-size: .76rem; font-weight: 700; color: var(--gold); margin-top: .3rem; letter-spacing: .02em; }

@media (max-width: 1000px) { .home-features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .home-features-grid { grid-template-columns: 1fr; } }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg-card); padding: 0.85rem 1rem; text-align: left;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 0.85rem 1rem; font-size: 0.88rem; border-bottom: 1px solid var(--border); background: var(--bg); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #0e0e0e; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.18rem 0.65rem; border-radius: 100px;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-gold { background: rgba(201,168,76,.15); color: var(--gold); }
.badge-green { background: rgba(56,161,105,.15); color: #68d391; }
.badge-red { background: rgba(229,62,62,.15); color: #fc8181; }
.badge-blue { background: rgba(49,130,206,.15); color: #90cdf4; }
.badge-gray { background: rgba(100,100,100,.12); color: var(--text-muted); }
.badge-purple { background: rgba(159,122,234,.15); color: #b794f4; }

/* ── SEARCH ── */
.search-box {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.7rem 1rem;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--gold); }
.search-box .search-icon { color: var(--text-dim); font-size: 1rem; flex-shrink: 0; }
.search-box input { background: none; border: none; outline: none; color: var(--text); font-size: 0.92rem; flex: 1; }
.search-box input::placeholder { color: var(--text-dim); }

/* ── LOADING ── */
.loading-screen {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 1rem; color: var(--text-muted);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; opacity: .35; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-size: 0.85rem; }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tab {
  padding: 0.75rem 1.25rem; font-size: 0.83rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.82);
  z-index: 200; display: none; align-items: flex-start; justify-content: center;
  padding: 1.5rem; overflow-y: auto;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 2rem; width: 100%; max-width: 500px;
  position: relative; animation: modalIn 0.2s ease;
  margin: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.1rem; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 0.2rem; }
.modal-close:hover { color: var(--text); }

/* Image upload box */
.img-upload-wrap {
  width: 100%; height: 140px;
  border: 2px dashed var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); transition: border-color .18s;
  position: relative;
}
.img-upload-wrap:hover { border-color: rgba(201,168,76,.5); }
#imgUploadPlaceholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem;
  pointer-events: none;
}

/* ── PENDING ── */
.pending-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem; text-align: center;
}
.pending-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 3rem 2.5rem; max-width: 480px;
}
.pending-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }

/* ── RESOURCE CARDS ── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.resource-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; transition: border-color 0.2s, transform 0.2s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.resource-card:hover { border-color: rgba(201,168,76,.5); transform: translateY(-2px); }
.resource-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.resource-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.resource-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── DNR REDESIGN ── */

/* Page-level background */
#page-dnr {
  position: relative;
}
#page-dnr::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(180,0,0,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(180,0,0,.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero */
.dnr-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d0000 0%, #110200 50%, #0a0a0a 100%);
  border: 1px solid rgba(229,62,62,.3);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(180,0,0,.08), inset 0 1px 0 rgba(255,255,255,.03);
  animation: dnr-border-pulse 4s ease-in-out infinite;
}

/* Animated border glow */
@keyframes dnr-border-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(180,0,0,.08), inset 0 1px 0 rgba(255,255,255,.03); border-color: rgba(229,62,62,.25); }
  50%       { box-shadow: 0 0 55px rgba(220,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03); border-color: rgba(229,62,62,.5); }
}

/* Grid overlay */
.dnr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(229,62,62,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,62,62,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glowing orbs */
.dnr-hero::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,0,0,.13) 0%, transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
  animation: dnr-orb-float 8s ease-in-out infinite;
}
@keyframes dnr-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .8; }
  33%       { transform: translate(-20px, 15px) scale(1.05); opacity: 1; }
  66%       { transform: translate(10px, -10px) scale(.95); opacity: .7; }
}

/* Second orb via JS-added element */
.dnr-orb2 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.07) 0%, transparent 70%);
  bottom: -80px; left: 10%;
  pointer-events: none;
  animation: dnr-orb2-float 11s ease-in-out infinite;
}
@keyframes dnr-orb2-float {
  0%, 100% { transform: translate(0, 0); opacity: .6; }
  50%       { transform: translate(25px, -20px); opacity: 1; }
}

/* Scanline shimmer */
.dnr-hero-content {
  position: relative;
  z-index: 2;
}

.dnr-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .67rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fc8181; border: 1px solid rgba(229,62,62,.45);
  padding: .28rem .85rem; border-radius: 100px; margin-bottom: 1.1rem;
  background: rgba(229,62,62,.08);
  animation: dnr-badge-pulse 3s ease-in-out infinite;
}
@keyframes dnr-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,62,62,0); }
  50%       { box-shadow: 0 0 12px 2px rgba(229,62,62,.25); }
}

/* Live recording dot */
.dnr-live-dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: #e53e3e;
  box-shadow: 0 0 6px 2px rgba(229,62,62,.7);
  flex-shrink: 0;
  animation: dnr-dot-record 1.2s ease-in-out infinite;
}
@keyframes dnr-dot-record {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(229,62,62,.7), 0 0 0 0 rgba(229,62,62,0); }
  50%       { opacity: .85; box-shadow: 0 0 10px 4px rgba(229,62,62,.9), 0 0 0 6px rgba(229,62,62,.15); }
}

.dnr-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900;
  margin-bottom: .55rem; line-height: 1.1;
}
.dnr-hero-sub {
  font-size: .88rem; color: var(--text-muted); max-width: 640px;
  line-height: 1.6; margin-bottom: 1.4rem;
}
.dnr-search-wrap { max-width: 680px; }
.dnr-search-box {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-light);
  border-radius: 8px; padding: .8rem 1rem; margin-bottom: .7rem;
  transition: border-color .2s;
}
.dnr-search-box:focus-within { border-color: var(--gold); }
.dnr-search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: .93rem; flex: 1; font-family: inherit;
}
.dnr-search-box input::placeholder { color: var(--text-dim); }
.dnr-report-inline-btn {
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3);
  color: var(--gold); border-radius: 5px; padding: .35rem .85rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: all .15s; flex-shrink: 0;
}
.dnr-report-inline-btn:hover { background: rgba(201,168,76,.22); }
.dnr-try-row {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.dnr-try-label { font-size: .75rem; color: var(--text-dim); }
.dnr-try-chip {
  font-size: .72rem; color: var(--text-muted); background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: 4px;
  padding: .22rem .7rem; cursor: pointer; transition: all .15s;
}
.dnr-try-chip:hover { color: var(--text); border-color: var(--border-light); }

/* Tips Bar */
.dnr-tips-bar {
  background: linear-gradient(135deg, #0d0d0d 0%, #120a00 100%);
  border: 1px solid rgba(212,160,23,.25);
  border-radius: 14px; margin-bottom: 1.5rem;
  overflow: hidden;
}
.dnr-tips-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem 1.25rem; cursor: pointer;
  transition: background .2s;
}
.dnr-tips-header:hover { background: rgba(212,160,23,.06); }
.dnr-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}
.dnr-tip-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px; padding: .9rem 1rem;
}
.dnr-tip-icon { font-size: 1.3rem; margin-bottom: .45rem; }
.dnr-tip-title {
  font-size: .78rem; font-weight: 800;
  letter-spacing: .04em; color: var(--text);
  margin-bottom: .3rem; text-transform: uppercase;
}
.dnr-tip-text {
  font-size: .78rem; color: var(--text-muted); line-height: 1.55;
}

/* Stats */
.dnr-stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.dnr-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.2rem 1.4rem;
}
.dnr-stat-card.dnr-stat-green  { border-color: rgba(104,211,145,.3); }
.dnr-stat-card.dnr-stat-red    { border-color: rgba(229,62,62,.3); }
.dnr-stat-card.dnr-stat-orange { border-color: rgba(237,100,25,.3); }
.dnr-stat-card.dnr-stat-yellow { border-color: rgba(214,158,46,.3); }
.dnr-stat-card.dnr-stat-purple { border-color: rgba(159,122,234,.3); }
.dnr-stat-card.dnr-stat-clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dnr-stat-card.dnr-stat-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.dnr-stat-card.dnr-stat-clickable.active { box-shadow: 0 0 0 2px currentColor; }
.dnr-stat-card.dnr-stat-red.active    { box-shadow: 0 0 0 2px rgba(252,129,129,.5); background: rgba(229,62,62,.08); }
.dnr-stat-card.dnr-stat-orange.active { box-shadow: 0 0 0 2px rgba(249,115,22,.5); background: rgba(237,100,25,.08); }
.dnr-stat-card.dnr-stat-purple.active { box-shadow: 0 0 0 2px rgba(183,148,244,.5); background: rgba(159,122,234,.08); }
.dnr-stat-num {
  font-size: 2rem; font-weight: 900; line-height: 1;
  margin-bottom: .3rem; color: var(--text);
}
.dnr-stat-card.dnr-stat-green  .dnr-stat-num { color: #68d391; }
.dnr-stat-card.dnr-stat-red    .dnr-stat-num { color: #fc8181; }
.dnr-stat-card.dnr-stat-orange .dnr-stat-num { color: #f97316; }
.dnr-stat-card.dnr-stat-yellow .dnr-stat-num { color: #ecc94b; }
.dnr-stat-card.dnr-stat-purple .dnr-stat-num { color: #b794f4; }
.dnr-stat-label {
  font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}

/* Two-column layout */
.dnr-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Filter Sidebar */
.dnr-filter-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem 1.25rem;
  position: sticky; top: 1.5rem;
}
.dnr-filter-heading {
  font-size: .95rem; font-weight: 800; margin-bottom: 1.25rem;
  color: var(--text);
}
.dnr-filter-section { margin-bottom: 1.4rem; }
.dnr-filter-label {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .65rem; font-weight: 700;
}
.dnr-filter-grid { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Filter tag buttons — dark themed */
.dnr-ftag {
  padding: .38rem .85rem; border-radius: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer;
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all .18s;
}
.dnr-ftag:hover {
  background: #222;
  border-color: #333;
  color: var(--text);
}
.dnr-ftag.active {
  background: rgba(201,168,76,.13);
  border-color: rgba(201,168,76,.45);
  color: var(--gold);
}

/* Category list in sidebar */
.dnr-cat-list { display: flex; flex-direction: column; gap: .05rem; }
.dnr-cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .48rem .55rem; border-radius: 6px; cursor: pointer;
  border: none; background: transparent; width: 100%; text-align: left;
  transition: background .15s; color: var(--text-muted);
}
.dnr-cat-row:hover { background: rgba(255,255,255,.05); color: var(--text); }
.dnr-cat-row.active { background: rgba(201,168,76,.08); color: var(--gold); }
.dnr-cat-row-name { font-size: .8rem; line-height: 1.4; }
.dnr-cat-row-count { font-size: .72rem; color: var(--text-dim); flex-shrink: 0; padding-left: .5rem; }

/* Main content */
.dnr-main { min-width: 0; }
.dnr-main-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.dnr-main-title { font-size: 1rem; font-weight: 800; }
.dnr-match-count { font-size: .78rem; color: var(--text-dim); }

/* ── DNR Cards ─────────────────────────────────────── */
.dnr-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  grid-template-rows: 90px;        /* fixed row height — both cells same */
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-bottom: .6rem;
  transition: border-color .18s, box-shadow .15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.dnr-card:hover {
  border-color: rgba(201,168,76,.3);
  box-shadow: 0 3px 14px rgba(0,0,0,.45);
}

/* Cell 1 — image */
.dnr-card-img-wrap {
  position: relative;
  width: 130px; height: 90px;
  border-right: 1px solid var(--border);
  background: #111;
  flex-shrink: 0;
}
.dnr-card-verified-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 36px; height: 36px;
  object-fit: contain;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.9));
}
.dnr-card-avatar-img {
  width: 130px; height: 90px;
  object-fit: cover; object-position: center top;
  display: block;
}

/* Cell 1 — initials fallback */
.dnr-card-avatar {
  width: 130px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 900;
  border-right: 1px solid var(--border);
  background: #111;
}

/* Cell 2 — content */
.dnr-card-body {
  height: 90px;
  padding: .6rem .85rem;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: .25rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .dnr-card {
    grid-template-columns: 100px 1fr;
    grid-template-rows: 80px;
  }
  .dnr-card-img-wrap,
  .dnr-card-avatar-img { width: 100px; height: 80px; }
  .dnr-card-avatar { width: 100px; height: 80px; font-size: 1.5rem; }
  .dnr-card-body { height: 80px; padding: .5rem .65rem; }
  .dnr-card-name { font-size: .82rem; }
  .dnr-card-violation { font-size: .74rem; }
}
.dnr-card-top-row {
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap; margin-bottom: .15rem;
}
.dnr-card-name { font-size: .92rem; font-weight: 800; line-height: 1.2; }
.dnr-sev-badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .08em;
  padding: .18rem .6rem; border-radius: 4px; white-space: nowrap;
}
.dnr-status-badge {
  font-size: .6rem; font-weight: 800; letter-spacing: .08em;
  padding: .18rem .6rem; border-radius: 4px;
  background: rgba(104,211,145,.1); color: #68d391;
}
.dnr-card-violation {
  font-size: .8rem; color: var(--text-muted); line-height: 1.3;
  margin-bottom: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dnr-card-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.dnr-tag {
  font-size: .65rem; font-weight: 600; letter-spacing: .03em;
  padding: .16rem .6rem; border-radius: 4px;
  background: rgba(255,255,255,.06); color: var(--text-muted);
}

/* Admin DNR table (keep for admin panel) */
.dnr-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.dnr-entry {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.dnr-flag { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.dnr-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.dnr-violation { font-size: 0.83rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .dnr-layout { grid-template-columns: 1fr; }
  .dnr-filter-sidebar { position: static; }
}

/* ── ANNOUNCEMENTS HERO ── */
#page-announcements { position: relative; }
#page-announcements::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 50% 30% at 80% 10%, rgba(212,160,23,.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 10% 80%, rgba(212,160,23,.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.ann-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0d0b00 0%, #110f00 45%, #0a0a0a 100%);
  border: 1px solid rgba(212,160,23,.3); border-radius: 20px;
  padding: 2.5rem 2.5rem 2rem; margin-bottom: 2rem;
  animation: ann-hero-pulse 5s ease-in-out infinite;
}
@keyframes ann-hero-pulse {
  0%,100% { border-color: rgba(212,160,23,.22); box-shadow: 0 0 30px rgba(212,160,23,.05); }
  50%      { border-color: rgba(212,160,23,.48); box-shadow: 0 0 70px rgba(212,160,23,.11); }
}
.ann-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,.03) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none;
}
.ann-hero-orb1 {
  position: absolute; width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.09) 0%, transparent 65%);
  top: -160px; right: -100px; pointer-events: none;
  animation: ann-orb1 10s ease-in-out infinite;
}
@keyframes ann-orb1 { 0%,100%{transform:translate(0,0) scale(1);opacity:.7;} 50%{transform:translate(-20px,15px) scale(1.06);opacity:1;} }
.ann-hero-orb2 {
  position: absolute; width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.06) 0%, transparent 70%);
  bottom: -80px; left: 8%; pointer-events: none;
  animation: ann-orb2 13s ease-in-out infinite;
}
@keyframes ann-orb2 { 0%,100%{transform:translate(0,0);opacity:.5;} 50%{transform:translate(20px,-15px);opacity:.9;} }
.ann-hero-content { position: relative; z-index: 2; }
.ann-hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(212,160,23,.35); border-radius: 30px;
  padding: .3rem .9rem; margin-bottom: 1rem; background: rgba(212,160,23,.07);
  animation: ann-badge-glow 3.5s ease-in-out infinite;
}
@keyframes ann-badge-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); }
  50%      { box-shadow: 0 0 14px 3px rgba(212,160,23,.2); }
}
.ann-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900;
  line-height: 1.1; margin-bottom: .55rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.ann-hero-sub {
  font-size: .9rem; color: var(--text-muted); max-width: 560px; line-height: 1.65;
}

/* ── ANNOUNCEMENT CARDS ── */
.announcement-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #111 0%, #0d0d0d 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.35rem;
  margin-bottom: 1.1rem;
  transition: border-color .2s, transform .15s;
}
.announcement-card:hover {
  border-color: rgba(212,160,23,.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(212,160,23,.08);
}
.announcement-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), #f6e05e, var(--gold), transparent);
  opacity: .7;
}
.announcement-card-new {
  border-color: rgba(212,160,23,.3) !important;
  box-shadow: 0 0 20px rgba(212,160,23,.07);
}
.announcement-card-new::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.07) 0%, transparent 70%);
  transform: translate(50%, -50%); pointer-events: none;
}
.announcement-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.announcement-card-logo {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #1a1200, #2a1e00);
  border: 1px solid rgba(212,160,23,.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(212,160,23,.15);
}
.announcement-card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.announcement-tier-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .22rem .65rem;
  border-radius: 20px;
}
.announcement-card-title {
  font-size: 1.1rem; font-weight: 900; color: var(--text);
  margin-bottom: .65rem; line-height: 1.3; letter-spacing: .01em;
}
.announcement-card-body {
  font-size: .87rem; color: var(--text-muted); line-height: 1.75;
  white-space: pre-line;
}
.announcement-card-footer {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .72rem; color: var(--text-dim);
}
.ann-footer-brand {
  margin-left: auto; font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(212,160,23,.3); font-weight: 800;
}
.announcement-new-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 20px;
  background: rgba(212,160,23,.1); color: var(--gold);
  border: 1px solid rgba(212,160,23,.35);
  animation: ann-new-glow 2s ease-in-out infinite;
}
@keyframes ann-new-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,160,23,0); }
  50%      { box-shadow: 0 0 8px 2px rgba(212,160,23,.2); }
}
.ann-new-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 5px rgba(212,160,23,.8);
  animation: dnr-dot-record 1.2s ease-in-out infinite;
}
.announcement-meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.5rem; }

/* Announcement link type toggle */
.ann-link-type-btn {
  flex: 1; padding: .4rem .6rem; border-radius: 7px; font-size: .75rem; font-weight: 700;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.ann-link-type-btn:hover { border-color: rgba(212,160,23,.4); color: var(--text); }
.ann-link-type-btn.active { background: rgba(212,160,23,.12); border-color: rgba(212,160,23,.45); color: var(--gold); }

.ann-link-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.35);
  color: var(--gold);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer; font-family: inherit;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.ann-link-btn:hover {
  background: rgba(212,160,23,.18);
  box-shadow: 0 0 16px rgba(212,160,23,.2);
  transform: translateY(-1px);
}

/* ── AI MARKET CONSTRUCTION ── */
.ai-construction-wrap {
  position: relative; overflow: hidden;
  padding: 3rem 1.5rem 4rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

/* Particles */
.ai-particles { position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden; }
.ai-particle {
  position:absolute; bottom:-10px;
  width:3px; height:3px; border-radius:50%;
  background:rgba(255,255,255,.25);
  animation: aiFloat linear infinite;
}
.ai-particle-gold { background:rgba(212,160,23,.5); width:4px; height:4px; }
@keyframes aiFloat {
  0%   { transform:translateY(0) scale(1); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:.6; }
  100% { transform:translateY(-700px) scale(.3); opacity:0; }
}

/* Grid lines */
.ai-grid-lines {
  position:absolute;inset:0;pointer-events:none;z-index:0;
  display:flex;flex-direction:column;justify-content:space-evenly;
}
.ai-grid-h {
  width:100%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(212,160,23,.06),transparent);
}
.ai-grid-v {
  position:absolute;top:0;bottom:0;width:1px;
  background:linear-gradient(180deg,transparent,rgba(212,160,23,.06),transparent);
}
.ai-grid-v:nth-child(4) { left:20%; }
.ai-grid-v:nth-child(5) { left:40%; }
.ai-grid-v:nth-child(6) { left:60%; }
.ai-grid-v:nth-child(7) { left:80%; }

/* Orbs */
.ai-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
  animation: aiOrbPulse 6s ease-in-out infinite alternate;
}
.ai-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,160,23,.15) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation-duration: 7s;
}
.ai-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.1) 0%, transparent 70%);
  bottom: 100px; right: -120px; animation-duration: 9s;
}
.ai-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 70%);
  top: 200px; left: -80px; animation-duration: 8s;
}
@keyframes aiOrbPulse {
  from { opacity:.6; transform:translateX(-50%) scale(1); }
  to   { opacity:1;  transform:translateX(-50%) scale(1.1); }
}

/* Radar rings */
.ai-radar-ring {
  position:absolute;top:50%;left:50%;
  border-radius:50%;border:1px solid rgba(212,160,23,.2);
  transform:translate(-50%,-50%);
  pointer-events:none;
  animation:aiRadar 3s ease-out infinite;
}
.ai-radar-1 { width:300px;height:300px;animation-delay:0s; }
.ai-radar-2 { width:420px;height:420px;animation-delay:1s; }
.ai-radar-3 { width:540px;height:540px;animation-delay:2s; }
@keyframes aiRadar {
  0%   { opacity:.5; transform:translate(-50%,-50%) scale(.85); }
  100% { opacity:0;  transform:translate(-50%,-50%) scale(1.1); }
}

/* Chat preview */
.ai-chat-preview {
  width:100%;max-width:580px;margin-bottom:3rem;
  background:linear-gradient(135deg,#0d0d0d,#110900);
  border:1px solid rgba(212,160,23,.2);border-radius:16px;
  overflow:hidden;text-align:left;
  box-shadow:0 0 60px rgba(212,160,23,.06),0 20px 60px rgba(0,0,0,.5);
}
.ai-chat-preview-header {
  display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 1.1rem;border-bottom:1px solid #1a1a1a;
  background:linear-gradient(135deg,#0a0a0a,#0f0900);
}
.ai-chat-preview-body {
  padding:1.1rem;display:flex;flex-direction:column;gap:.75rem;
  min-height:200px;
}
.ai-preview-bubble {
  max-width:85%;padding:.75rem .95rem;border-radius:12px;
  font-size:.78rem;line-height:1.6;
}
.ai-preview-bubble-user {
  align-self:flex-end;
  background:linear-gradient(135deg,#1a1200,#2a1e00);
  border:1px solid rgba(212,160,23,.2);color:#e8d5a0;
  border-radius:12px 3px 12px 12px;
}
.ai-preview-bubble-ai {
  align-self:flex-start;
  background:rgba(255,255,255,.04);border:1px solid #1e1e1e;
  color:var(--text-muted);border-radius:3px 12px 12px 12px;
}
.ai-preview-typing { padding:.85rem 1rem !important; }
.ai-chat-preview-input {
  display:flex;flex-direction:row;align-items:center;gap:.65rem;
  padding:.85rem 1.1rem;border-top:1px solid #1a1a1a;background:#0a0a0a;
}

/* Stats row */
.ai-stats-row {
  display:flex;flex-direction:row;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:0;margin-bottom:3rem;
  width:100%;max-width:700px;
  background:linear-gradient(135deg,#0d0d0d,#110900);
  border:1px solid rgba(212,160,23,.2);border-radius:16px;overflow:hidden;
}
.ai-stat-item { flex:1;min-width:120px;padding:1.4rem 1rem;text-align:center; }
.ai-stat-num  { font-size:1.8rem;font-weight:900;color:var(--gold);line-height:1;margin-bottom:.3rem; }
.ai-stat-label{ font-size:.65rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);line-height:1.4; }
.ai-stat-divider { width:1px;height:50px;background:rgba(212,160,23,.1);flex-shrink:0; }
.ai-construction-badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,160,23,.08);
  border: 1px solid rgba(212,160,23,.25); border-radius: 100px;
  padding: .3rem .95rem; margin-bottom: 1.25rem;
}
.ai-construction-title {
  position: relative; z-index: 1;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: .75rem; line-height: 1.1;
  width: 100%;
}
.ai-construction-sub {
  position: relative; z-index: 1;
  font-size: .92rem; color: var(--text-muted); max-width: 560px;
  width: 100%; margin-bottom: 2.5rem; line-height: 1.7;
}
/* Countdown */
.ai-countdown-wrap {
  background: linear-gradient(135deg, #0d0d0d, #110800);
  border: 1px solid rgba(212,160,23,.25);
  border-radius: 18px; padding: 1.75rem 2rem;
  width: 100%; max-width: min(480px, 90vw);
  box-sizing: border-box;
}
.ai-countdown-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem;
}
.ai-countdown-grid {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.ai-countdown-block {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem .5rem;
  min-width: 72px; text-align: center;
}
.ai-countdown-num {
  font-size: 2.4rem; font-weight: 900; color: var(--gold);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.ai-countdown-unit {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-top: .3rem;
}
.ai-countdown-sep {
  font-size: 2rem; font-weight: 900; color: rgba(212,160,23,.4);
  line-height: 1; margin-bottom: .6rem;
}
.ai-countdown-date {
  font-size: .72rem; color: var(--text-dim); margin-top: 1rem;
  letter-spacing: .06em; text-transform: uppercase;
}
/* Feature preview grid */
.ai-preview-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1rem; text-align: left; width: 100%;
}
.ai-preview-card {
  background: linear-gradient(135deg,#0d0d0d,#110900);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.35rem 1.25rem;
  transition: border-color .2s, transform .15s;
}
.ai-preview-card:hover { border-color: rgba(212,160,23,.35); transform: translateY(-2px); }
.ai-preview-icon  { font-size: 1.6rem; margin-bottom: .65rem; }
.ai-preview-title {
  font-size: .85rem; font-weight: 800; color: var(--text);
  margin-bottom: .4rem; letter-spacing: .02em;
}
.ai-preview-text  { font-size: .78rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 480px) {
  .ai-countdown-num  { font-size: 1.6rem; }
  .ai-countdown-block { min-width: 54px; }
  .ai-countdown-sep  { font-size: 1.4rem; }
}

/* ── INVESTOR PORTAL ── */
.inv-admin-tab {
  padding:.38rem .9rem;font-size:.75rem;font-weight:700;border-radius:8px;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid var(--border);color:var(--text-muted);
  transition:all .18s;white-space:nowrap;
}
.inv-admin-tab:hover { background:rgba(252,129,129,.08);border-color:rgba(252,129,129,.3);color:#fc8181; }
.active-admin-tab { background:rgba(252,129,129,.1) !important;border-color:rgba(252,129,129,.4) !important;color:#fc8181 !important; }

.inv-range-btn {
  padding:.28rem .75rem;font-size:.68rem;font-weight:700;border-radius:100px;cursor:pointer;
  background:rgba(255,255,255,.04);border:1px solid var(--border);color:var(--text-muted);
  transition:all .18s;white-space:nowrap;
}
.inv-range-btn:hover { background:rgba(212,160,23,.1);border-color:rgba(212,160,23,.35);color:var(--gold); }
@media (max-width: 820px) {
  .inv-two-col { grid-template-columns: 1fr !important; }
}

/* ── AI MARKET ── */
@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}
@keyframes aiCursorBlink {
  0%, 100% { opacity: .9; }
  50%       { opacity: 0; }
}

.ai-insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 1.1rem 1.1rem 1rem;
  cursor: pointer;
  transition: border-color .2s, transform .18s, background .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.ai-insight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,160,23,.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}
.ai-insight-card:hover {
  border-color: rgba(212,160,23,.35);
  background: rgba(212,160,23,.04);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(212,160,23,.1);
}
.ai-insight-card:hover::before { opacity: 1; }
.ai-insight-icon  { font-size: 1.5rem; margin-bottom: .55rem; }
.ai-insight-title { font-size: .83rem; font-weight: 800; color: var(--text); margin-bottom: .28rem; letter-spacing: .02em; }
.ai-insight-sub   { font-size: .74rem; color: var(--text-muted); line-height: 1.5; margin-bottom: .7rem; }
.ai-insight-cta   { font-size: .7rem; font-weight: 800; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }

.ai-msg { display: flex; gap: .75rem; }
.ai-msg-user { flex-direction: row-reverse; }
.ai-msg-bubble {
  max-width: 80%; padding: .85rem 1.05rem; border-radius: 14px;
  font-size: .87rem; line-height: 1.68; color: var(--text);
}
.ai-msg-assistant .ai-msg-bubble {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg,#1c1400,#2e2000);
  border: 1px solid rgba(212,160,23,.3);
  border-radius: 14px 4px 14px 14px;
  color: #f0e0b0;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ai-msg-typing .ai-msg-bubble {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px 14px 14px 14px;
  color: var(--text-dim); font-style: italic;
}
.ai-typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.ai-typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.4;
  animation: aiDot 1.2s infinite;
}
.ai-typing-dots span:nth-child(2) { animation-delay: .2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%,60%,100% { opacity:.2; transform:scale(.8); } 30% { opacity:1; transform:scale(1.1); } }

/* ── FOOTER ── */
footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
.footer-logo { font-size: 1.1rem; font-weight: 900; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--gold); }
.footer-text { color: var(--text-muted); font-size: 0.82rem; }
.footer-text a { color: var(--gold); text-decoration: none; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── MOBILE TOP BAR ── */
.mobile-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.mobile-topbar-logo {
  font-size: .9rem; font-weight: 900; letter-spacing: .06em;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}
.mobile-topbar-logo span { color: var(--gold); }
.mobile-hamburger {
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: .4rem;
  display: flex; flex-direction: column; gap: 5px;
}
.mobile-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .22s;
}
.mobile-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay behind open sidebar */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 149;
  background: rgba(0,0,0,.55);
}
.sidebar-overlay.show { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .mobile-topbar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 150; top: 0;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 1rem; padding-top: 68px; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-title { font-size: 1.35rem; }
  .page-sub   { font-size: .82rem; }
  .page-header { margin-bottom: 1.25rem; }

  /* Home stat cards — 2 per row on tablet/mobile */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem; margin-bottom: 1.25rem;
  }
  .stat-card { padding: 1rem 1.1rem; }
  .stat-card-number { font-size: 1.4rem; }
  .stat-card-label  { font-size: .68rem; }

  /* DNR stat cards — 2×2 grid */
  .dnr-stats-row { grid-template-columns: repeat(2, 1fr); gap: .65rem; margin-bottom: 1.25rem; }
  .dnr-stat-num   { font-size: 1.5rem; }

  /* Workspace headers */
  .ws-page-header { flex-direction: column; align-items: flex-start; margin-bottom: 1.25rem; }

  /* Notes grid — 1 col on mobile */
  .notes-grid { grid-template-columns: 1fr; }

  /* Files grid — 2 col on mobile */
  .files-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { padding: .75rem 1rem; }
  .nav-logo { font-size: .95rem; }
  .nav-logo img { height: 32px !important; }
  .nav-cta { gap: .4rem; }
  .nav-cta .btn { padding: .45rem .85rem; font-size: .78rem; }
  /* Hide Apply Now from nav on mobile — hero already has it */
  .nav-cta .btn-gold { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }

  .main-content { padding: .85rem; padding-top: 66px; }

  /* Tighter topbar logo on small phones */
  .mobile-topbar-logo { font-size: .78rem; }
  .mobile-topbar-logo img { height: 24px; }

  /* Stack stat cards back to 1 col only on very small screens if needed */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .stat-card { padding: .85rem .9rem; }
  .stat-card-number { font-size: 1.25rem; }

  .dnr-stats-row { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .dnr-hero-title { font-size: 1.25rem; }
  .dnr-hero-sub   { font-size: .8rem; }

  /* File rows wrap on small screens */
  .file-row { flex-wrap: wrap; gap: .4rem; }
  .file-date { display: none; }
}

/* ── VENDOR STATUS PAGE BACKGROUND ──────────────────── */
#page-vendorstatus {
  position: relative;
}
#page-vendorstatus::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 35% at 85% 15%, rgba(201,168,76,.06) 0%, transparent 70%),
    radial-gradient(ellipse 45% 30% at 15% 85%, rgba(201,168,76,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── STAR COMPANIES ─────────────────────────────────── */
.star-companies-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0800 0%, #0f0d00 50%, #050500 100%);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 16px; padding: 2rem 1.5rem 1.75rem;
  margin-bottom: 1.75rem; text-align: center;
  box-shadow: 0 0 40px rgba(201,168,76,.06);
  animation: vs-star-border 5s ease-in-out infinite;
}
@keyframes vs-star-border {
  0%, 100% { border-color: rgba(201,168,76,.2); box-shadow: 0 0 30px rgba(201,168,76,.05); }
  50%       { border-color: rgba(201,168,76,.45); box-shadow: 0 0 60px rgba(201,168,76,.12); }
}
.star-companies-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.star-companies-section::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
  animation: vs-orb-drift 9s ease-in-out infinite;
}
@keyframes vs-orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); opacity:.7; }
  50%       { transform: translate(-20px, 15px) scale(1.08); opacity:1; }
}

.star-companies-title {
  position: relative; z-index: 2;
  font-size: 1.35rem; font-weight: 900; letter-spacing: .18em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.75rem;
  text-shadow: 0 0 30px rgba(201,168,76,.3);
}
.star-companies-row {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
}
.star-company-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  min-width: 110px; max-width: 140px; flex: 1;
}
.star-logo-wrap {
  position: relative; z-index: 2;
  width: 90px; height: 90px; border-radius: 50%;
  background: #111; border: 2px solid rgba(201,168,76,.25);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .3s, box-shadow .3s;
  animation: vs-logo-glow 4s ease-in-out infinite;
}
.star-company-card:hover .star-logo-wrap {
  border-color: rgba(201,168,76,.7);
  box-shadow: 0 0 20px rgba(201,168,76,.25);
}
@keyframes vs-logo-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 12px 2px rgba(201,168,76,.15); }
}
.star-logo-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.star-logo-initials {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: var(--gold);
  background: rgba(201,168,76,.1);
}
.star-company-name {
  font-size: .72rem; font-weight: 900; letter-spacing: .08em;
  color: #fff; text-align: center; line-height: 1.3;
}
.star-company-sub {
  font-size: .65rem; color: #888; letter-spacing: .04em;
  text-align: center; line-height: 1.3;
}
.star-ig-btn {
  width: 28px; height: 28px; color: #aaa;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: color .15s;
}
.star-ig-btn:hover { color: var(--gold); }
.star-ig-btn svg { width: 20px; height: 20px; }
.star-ig-empty { opacity: .3; cursor: default; }

@media (max-width: 640px) {
  .star-companies-row { gap: .5rem; }
  .star-company-card  { min-width: 80px; }
  .star-logo-wrap     { width: 68px; height: 68px; }
  .star-company-name  { font-size: .65rem; }
  .star-company-sub   { font-size: .58rem; }
}

/* ── VENDOR STATUS PAGE ─────────────────────────────── */
.vs-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d0b00 0%, #111000 50%, #0a0a0a 100%);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: vs-hero-pulse 5s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(201,168,76,.06), inset 0 1px 0 rgba(255,255,255,.03);
}
@keyframes vs-hero-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(201,168,76,.06), inset 0 1px 0 rgba(255,255,255,.02); border-color: rgba(201,168,76,.25); }
  50%       { box-shadow: 0 0 70px rgba(201,168,76,.14), inset 0 1px 0 rgba(255,255,255,.04); border-color: rgba(201,168,76,.55); }
}
/* Grid overlay */
.vs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
/* Top-right gold orb */
.vs-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.1) 0%, transparent 65%);
  top: -180px; right: -120px;
  pointer-events: none;
  animation: vs-hero-orb 10s ease-in-out infinite;
}
@keyframes vs-hero-orb {
  0%, 100% { transform: translate(0,0) scale(1); opacity:.7; }
  33%       { transform: translate(-25px,20px) scale(1.06); opacity:1; }
  66%       { transform: translate(12px,-12px) scale(.94); opacity:.6; }
}
/* Bottom-left orb (gold accent) */
.vs-orb2 {
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%);
  bottom: -100px; left: 5%;
  pointer-events: none;
  animation: vs-orb2-float 13s ease-in-out infinite;
}
@keyframes vs-orb2-float {
  0%, 100% { transform: translate(0,0); opacity:.5; }
  50%       { transform: translate(30px,-20px); opacity:.9; }
}
/* Content above effects */
.vs-hero-content {
  position: relative;
  z-index: 2;
}

.vs-hero-badge {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,.4); border-radius: 30px;
  padding: .3rem .9rem; margin-bottom: 1rem;
  background: rgba(201,168,76,.08);
  animation: vs-badge-glow 3.5s ease-in-out infinite;
}
@keyframes vs-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 14px 3px rgba(201,168,76,.22); }
}
.vs-hero-title {
  font-size: 1.75rem; font-weight: 900; margin-bottom: .6rem;
}
.vs-hero-sub {
  font-size: .88rem; color: var(--text-muted); line-height: 1.65;
  max-width: 540px; margin: 0 auto 1.25rem;
}
.vs-search-wrap {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: 10px; padding: .65rem 1rem; max-width: 480px; margin: 0 auto;
}
.vs-search-wrap input {
  background: none; border: none; outline: none; flex: 1;
  font-size: .9rem; color: var(--text); font-family: inherit;
}

.vs-filter-row {
  display: flex; align-items: center; gap: .45rem;
  flex-wrap: wrap; margin-bottom: .5rem;
}

/* ── Base pill shared styles ── */
.vs-pill, .vs-type-pill {
  border-radius: 100px; font-family: inherit; cursor: pointer;
  font-weight: 700; letter-spacing: .03em; transition: all .18s;
  white-space: nowrap;
}

/* ── Status pills (row 1) ── */
.vs-pill {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: .38rem 1rem; font-size: .76rem; color: var(--text-muted);
}
.vs-pill:hover { background: rgba(255,255,255,.07); color: var(--text); }

/* Color-coded active states */
.vs-pill-all.active        { background: rgba(201,168,76,.14); border-color: rgba(201,168,76,.5); color: #d4a017; box-shadow: 0 0 10px rgba(201,168,76,.2); }
.vs-pill-trusted.active    { background: rgba(236,201,75,.12); border-color: rgba(236,201,75,.5); color: #ecc94b; box-shadow: 0 0 10px rgba(236,201,75,.2); }
.vs-pill-good.active       { background: rgba(104,211,145,.12); border-color: rgba(104,211,145,.5); color: #68d391; box-shadow: 0 0 10px rgba(104,211,145,.2); }
.vs-pill-new.active        { background: rgba(144,205,244,.12); border-color: rgba(144,205,244,.5); color: #90cdf4; box-shadow: 0 0 10px rgba(144,205,244,.2); }
.vs-pill-flagged.active    { background: rgba(252,129,129,.12); border-color: rgba(252,129,129,.5); color: #fc8181; box-shadow: 0 0 10px rgba(252,129,129,.2); }

/* hover accent per pill */
.vs-pill-all:hover     { border-color: rgba(201,168,76,.35); }
.vs-pill-trusted:hover { border-color: rgba(236,201,75,.35); }
.vs-pill-good:hover    { border-color: rgba(104,211,145,.35); }
.vs-pill-new:hover     { border-color: rgba(144,205,244,.35); }
.vs-pill-flagged:hover { border-color: rgba(252,129,129,.35); }

/* ── Type pills (row 2 — slightly smaller) ── */
.vs-type-pill {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  padding: .3rem .85rem; font-size: .71rem; color: rgba(160,174,192,.7);
}
.vs-type-pill:hover { background: rgba(255,255,255,.06); color: var(--text); }

.vs-type-all.active      { background: rgba(160,174,192,.1);  border-color: rgba(160,174,192,.4);  color: #a0aec0; box-shadow: 0 0 8px rgba(160,174,192,.15); }
.vs-type-owner.active    { background: rgba(183,148,244,.12); border-color: rgba(183,148,244,.45); color: #b794f4; box-shadow: 0 0 8px rgba(183,148,244,.2); }
.vs-type-broker.active   { background: rgba(99,179,237,.12);  border-color: rgba(99,179,237,.45);  color: #63b3ed; box-shadow: 0 0 8px rgba(99,179,237,.2); }
.vs-type-yacht.active    { background: rgba(104,211,145,.12); border-color: rgba(104,211,145,.45); color: #68d391; box-shadow: 0 0 8px rgba(104,211,145,.2); }
.vs-type-chauffeur.active{ background: rgba(246,173,85,.12);  border-color: rgba(246,173,85,.45);  color: #f6ad55; box-shadow: 0 0 8px rgba(246,173,85,.2); }
.vs-type-bad.active      { background: rgba(252,129,129,.12); border-color: rgba(252,129,129,.45); color: #fc8181; box-shadow: 0 0 8px rgba(252,129,129,.2); }

.vs-type-owner:hover     { border-color: rgba(183,148,244,.3); }
.vs-type-broker:hover    { border-color: rgba(99,179,237,.3); }
.vs-type-yacht:hover     { border-color: rgba(104,211,145,.3); }
.vs-type-chauffeur:hover { border-color: rgba(246,173,85,.3); }
.vs-type-bad:hover       { border-color: rgba(252,129,129,.3); }

.vs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.vs-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem;
  transition: transform .15s, box-shadow .15s;
}
.vs-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.vs-card-top { display: flex; align-items: flex-start; gap: .85rem; }
.vs-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: rgba(201,168,76,.15); color: var(--gold);
  font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vs-avatar-logo { background: #000; }
.vs-avatar-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-card-info { flex: 1; min-width: 0; }
.vs-name     { font-weight: 800; font-size: .98rem; line-height: 1.3; }
.vs-business { font-size: .8rem; color: var(--gold); font-weight: 600; margin-top: .1rem; }
.vs-location { font-size: .76rem; color: var(--text-muted); margin-top: .2rem; display: block; }
.vs-status-badge {
  flex-shrink: 0; font-size: .7rem; font-weight: 700;
  border-radius: 20px; padding: .25rem .65rem; white-space: nowrap;
}
.vs-fleet-row {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.vs-fleet-tag {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: .22rem .65rem; white-space: nowrap;
}
.vs-ig-link {
  font-size: .78rem; color: var(--text-muted); text-decoration: none;
  transition: color .15s;
}
.vs-ig-link:hover { color: var(--gold); }
.vs-notes {
  font-size: .8rem; color: var(--text-muted); line-height: 1.55;
  border-top: 1px solid var(--border); padding-top: .6rem;
}
.vs-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: auto; flex-wrap: wrap;
}
.vs-added { font-size: .7rem; color: var(--text-dim); }
.vs-gallery-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gold); background: rgba(236,201,75,.08);
  border: 1px solid rgba(236,201,75,.3); border-radius: 20px;
  padding: .3rem .8rem; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.vs-gallery-btn:hover {
  background: rgba(236,201,75,.18); border-color: var(--gold);
}

/* Review button on card */
.vs-review-btn {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  background: transparent; border: 1px solid #2a2a2a;
  color: #888; border-radius: 20px; padding: .22rem .65rem;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.vs-review-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(236,201,75,.07);
}

/* Review count on rating row */
.vs-review-count {
  font-size: .68rem; color: var(--text-dim);
  margin-left: .35rem; white-space: nowrap;
}

/* Vendor type dot */
.vs-type-dot {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  border-radius: 20px; padding: .22rem .65rem;
  white-space: nowrap;
}
.vs-type-dot::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.vs-type-owner {
  color: #c084fc;
  background: rgba(192,132,252,.1);
  border: 1px solid rgba(192,132,252,.35);
}
.vs-type-owner::before  { background: #c084fc; box-shadow: 0 0 5px #c084fc88; }
.vs-type-broker {
  color: #f0f0f0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.25);
}
.vs-type-broker::before { background: #f0f0f0; box-shadow: 0 0 5px #ffffff55; }
.vs-type-yacht {
  color: #60a5fa;
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.35);
}
.vs-type-yacht::before  { background: #60a5fa; box-shadow: 0 0 5px #60a5fa88; }
.vs-type-chauffeur {
  color: #d0d0d0;
  background: rgba(15,15,15,.85);
  border: 1px solid rgba(255,255,255,.15);
}
.vs-type-chauffeur::before { background: #1a1a1a; box-shadow: 0 0 5px #ffffff22; border: 1px solid rgba(255,255,255,.3); }
.vs-type-badbusiness {
  color: #fc8181;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.4);
}
.vs-type-badbusiness::before { background: #ef4444; box-shadow: 0 0 5px #ef444488; }

/* Diamond rating display */
.vs-rating {
  display: flex; align-items: center; gap: .1rem;
  font-size: 1rem; margin-bottom: .5rem; flex-wrap: wrap;
}
.vs-rating-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-dim); text-transform: uppercase;
  margin-right: .45rem; white-space: nowrap;
}
.vs-rating-empty { opacity: .18; }
.vs-rating-score {
  font-size: .75rem; font-weight: 800; color: var(--gold);
  margin-left: .5rem; white-space: nowrap;
}

/* Rating breakdown — view mode */
.vd-breakdown-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: .9rem;
}
.vd-breakdown-title {
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: .85rem;
}
.vd-bd-row { margin-bottom: .85rem; }
.vd-bd-row:last-child { margin-bottom: 0; }
.vd-bd-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .3rem;
}
.vd-bd-label { font-size: .8rem; font-weight: 700; flex: 1; }
.vd-bd-weight { font-size: .7rem; color: var(--text-dim); }
.vd-bd-score  { font-size: .75rem; font-weight: 800; color: var(--gold); min-width: 2.5rem; text-align: right; }
.vd-bd-bar-bg {
  height: 5px; background: var(--border);
  border-radius: 99px; overflow: hidden; margin-bottom: .3rem;
}
.vd-bd-bar-fill {
  height: 100%; background: var(--gold);
  border-radius: 99px; transition: width .4s ease;
}
.vd-bd-sub { font-size: .72rem; color: var(--text-dim); line-height: 1.45; }

/* Rating breakdown — edit form */
.rb-edit-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .75rem;
}
.rb-overall-preview {
  font-size: .85rem; color: var(--gold); font-weight: 700;
  letter-spacing: .03em; text-transform: none;
}
.rb-cat-row {
  border: 1px solid var(--border); border-radius: 10px;
  padding: .75rem .85rem; margin-bottom: .6rem; background: var(--bg);
}
.rb-cat-header {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem;
}
.rb-cat-label { font-size: .8rem; font-weight: 700; flex: 1; }
.rb-cat-weight { font-size: .7rem; color: var(--text-dim); }
.rb-cat-score-disp { font-size: .75rem; font-weight: 800; color: var(--gold); min-width: 2rem; text-align: right; }
.rb-cat-sub { font-size: .72rem; color: var(--text-dim); line-height: 1.4; margin-bottom: .55rem; }
.rb-score-btns { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.rb-score-btn {
  width: 30px; height: 30px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-card-2);
  color: var(--text-muted); font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.rb-score-btn:hover { border-color: var(--gold); color: var(--gold); }
.rb-score-btn.rb-score-active {
  background: var(--gold); border-color: var(--gold);
  color: #000;
}
.rb-score-clear {
  font-size: .7rem; color: #555; background: transparent;
  border: none; cursor: pointer; padding: 0 .25rem; margin-left: .15rem;
}
.rb-score-clear:hover { color: #e53e3e; }

/* Diamond rating picker (edit form) */
.rating-picker {
  display: flex; align-items: center; gap: .15rem;
  padding: .5rem 0;
}
.rating-diamond {
  font-size: 1.4rem; cursor: pointer;
  transition: transform .1s, opacity .15s;
  user-select: none;
}
.rating-diamond:hover { transform: scale(1.25); }
.rating-active { opacity: 1; }
.rating-dim    { opacity: .18; }

/* Clickable card cursor */
.vs-card-clickable {
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.vs-card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* Vendor Detail Modal */
.vd-modal {
  max-width: 500px;
  padding: 2rem;
  position: relative;
}
.vd-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.vd-avatar {
  width: 72px; height: 72px;
  border-radius: 50%; overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  background: var(--gold); color: #000;
}
.vd-header-info { flex: 1; min-width: 0; }
.vd-name     { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.vd-business { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; font-weight: 600; letter-spacing: .04em; }
.vd-location { font-size: .8rem; color: var(--text-dim); margin-top: .3rem; }
.vd-fleet-wrap {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-bottom: .9rem;
}
.vd-meta-row {
  margin-bottom: .75rem;
  font-size: .82rem;
}
.vd-notes-block {
  font-size: .82rem; color: var(--text-muted); line-height: 1.55;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .65rem .85rem;
  margin-bottom: .9rem;
}
.vd-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: .6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.vd-actions { display: flex; gap: .6rem; align-items: center; }

@media (max-width: 640px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-hero { padding: 1.4rem 1rem; }
  .vs-hero-title { font-size: 1.3rem; }
}

/* ── WORKSPACE (My Files / Notes / Team) ────────────── */
.ws-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
}
.ws-header-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.ws-section-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: .75rem;
}

/* Files */
.files-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .85rem; margin-bottom: .5rem;
}
.folder-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem .9rem; text-align: center;
  transition: border-color .2s, transform .15s;
}
.folder-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.folder-icon { font-size: 2rem; margin-bottom: .4rem; }
.folder-name { font-weight: 700; font-size: .88rem; margin-bottom: .2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-meta { font-size: .74rem; color: var(--text-muted); }
.folder-card .item-delete-btn { position: absolute; top: .4rem; right: .4rem; }

.files-list { display: flex; flex-direction: column; gap: .5rem; }
.file-row {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem 1rem;
}
.file-icon { font-size: 1.1rem; flex-shrink: 0; }
.file-name { font-weight: 600; font-size: .88rem; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-folder-tag {
  font-size: .7rem; background: rgba(201,168,76,.1); color: var(--gold);
  border: 1px solid rgba(201,168,76,.25); border-radius: 20px;
  padding: .15rem .55rem; white-space: nowrap; flex-shrink: 0;
}
.file-size  { font-size: .76rem; color: var(--text-dim); flex-shrink: 0; }
.file-date  { font-size: .74rem; color: var(--text-dim); flex-shrink: 0; }

/* Notes */
.notes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.note-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: border-color .2s;
}
.note-card:hover { border-color: var(--border-light); }
.note-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.note-title  { font-weight: 700; font-size: .95rem; line-height: 1.35; flex: 1; }
.note-content { font-size: .83rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.note-date   { font-size: .72rem; color: var(--text-dim); margin-top: auto; padding-top: .25rem; }

/* Team */
.team-list { display: flex; flex-direction: column; gap: .6rem; }
.team-member-row {
  display: flex; align-items: center; gap: .9rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: .85rem 1.1rem;
  transition: border-color .2s;
}
.team-member-row:hover { border-color: var(--border-light); }
.team-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(201,168,76,.12); color: var(--gold);
  font-weight: 900; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.team-info { flex: 1; min-width: 0; }
.team-name  { font-weight: 700; font-size: .9rem; }
.team-role  { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.team-date  { font-size: .74rem; color: var(--text-dim); flex-shrink: 0; }

/* Shared delete button */
.item-delete-btn {
  background: none; border: none; cursor: pointer; font-size: .88rem;
  color: var(--text-dim); padding: .3rem .4rem; border-radius: 6px;
  transition: background .15s, color .15s; flex-shrink: 0; line-height: 1;
}
.item-delete-btn:hover { background: rgba(229,62,62,.12); color: #fc8181; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE GRID UTILITY CLASSES
   Used to override inline grid-template-columns on mobile
═══════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .mob-4col { grid-template-columns: repeat(2, 1fr) !important; }
  .mob-3col { grid-template-columns: repeat(2, 1fr) !important; }
  .mob-2col { grid-template-columns: 1fr !important; }
  .mob-flex-col { flex-direction: column !important; }
}
@media (max-width: 560px) {
  .mob-4col { grid-template-columns: repeat(2, 1fr) !important; }
  .mob-3col { grid-template-columns: 1fr !important; }
  .mob-2col { grid-template-columns: 1fr !important; }
}
@media (max-width: 380px) {
  .mob-4col { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE IMPROVEMENTS
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── Modals: full-width with scroll ── */
  .modal-overlay { padding: .65rem; }
  .modal {
    padding: 1.35rem 1.1rem;
    border-radius: 12px;
    max-height: calc(100svh - 1.5rem);
    overflow-y: auto;
  }
  .modal-title { font-size: .95rem; }

  /* ── Auth pages ── */
  .auth-page { padding: 5rem 1rem 2rem; }
  .auth-card  { padding: 1.75rem 1.25rem; }
  .auth-title { font-size: 1.3rem; }

  /* ── Section padding ── */
  section { padding: 3rem 1.1rem; }

  /* ── Home hero card ── */
  .home-hero { padding: 1.5rem 1.1rem; }
  .home-hero-title { font-size: clamp(1.4rem, 4vw, 1.8rem); }
  .home-hero-sub   { font-size: .84rem; }

  /* ── DNR page hero ── */
  .dnr-hero { padding: 1.5rem 1.1rem 1.35rem; }
  .dnr-hero-title { font-size: 1.25rem; }

  /* ── Announcements hero ── */
  .ann-hero { padding: 1.5rem 1.1rem 1.35rem; }
  .ann-hero-title { font-size: 1.35rem; }

  /* ── Vendor status hero ── */
  .vs-hero { padding: 1.4rem 1rem; }
  .vs-hero-title { font-size: 1.3rem; }

  /* ── Pending card ── */
  .pending-card { padding: 2rem 1.25rem; }

  /* ── Tabs: horizontal scroll ── */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }

  /* ── Announcement cards ── */
  .announcement-card { padding: 1.25rem 1rem 1rem; }
  .announcement-card-header { flex-wrap: wrap; gap: .5rem; }

  /* ── Resource cards ── */
  .resources-grid { grid-template-columns: 1fr; }

  /* ── Feature / tier cards (global) ── */
  .features-grid { grid-template-columns: 1fr; }
  .tiers-grid    { grid-template-columns: 1fr; }

  /* ── Form row already collapses in existing rules ── */

  /* ── Continue Learning Banner ── */
  #continueLearningBanner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .75rem !important;
    padding: 1.1rem 1rem !important;
  }
  #continueLearningBanner > * { width: 100%; }

  /* ── Investor portal ── */
  #invCarHeader    { flex-direction: column; }
  #invCarTabs      { gap: .4rem; }
  .inv-range-btn   { font-size: .65rem; padding: .22rem .6rem; }

  /* ── Page header on mobile ── */
  .page-header { flex-direction: column; gap: .5rem; }

  /* ── Card padding reduction ── */
  .card { padding: 1.1rem; }

  /* ── VS grid: 1 column ── */
  .vs-grid { grid-template-columns: 1fr; }

  /* ── AI countdown blocks ── */
  .ai-countdown-block { min-width: 56px; padding: .75rem .35rem; }
  .ai-countdown-num   { font-size: 1.8rem; }

  /* ── DNR filter sidebar stacks ── */
  .dnr-layout { grid-template-columns: 1fr; }
  .dnr-filter-sidebar { position: static; }

  /* ── DNR tips grid ── */
  .dnr-tips-grid { grid-template-columns: 1fr; }

  /* ── Smaller btn-lg on mobile ── */
  .btn-lg { padding: .8rem 2rem; font-size: .85rem; }

  /* ── Modal wide ── */
  .modal.modal-wide { max-width: 100% !important; }
}

/* ── Landing page hero stats ── */
@media (max-width: 480px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
  }
  .hero-stats .stat-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,.1);
    padding: 1rem .75rem;
  }
  .hero-stats .stat-item:last-child,
  .hero-stats .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ── Nav: tighter on mobile ── */
@media (max-width: 400px) {
  .main-content { padding: .65rem; padding-top: 64px; }
  .page-title   { font-size: 1.2rem; }
}

/* ── Index.html landing page hero logo ── */
@media (max-width: 640px) {
  .hero-logo-wrap img { height: 90px !important; }
  .hero { padding: 6rem 1.25rem 3rem; }
}

/* ── Signup/apply page ── */
@media (max-width: 560px) {
  .apply-right { padding: 3rem 1.25rem 2rem !important; }
}

/* ── Admin panel: search row ── */
@media (max-width: 640px) {
  .search-box { flex: 1 1 100% !important; min-width: 0 !important; }
}

/* ── Investor KPI cards: 2 per row on small phones ── */
@media (max-width: 560px) {
  #invCarKpis { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Blueprint / course section grids: handled via mob-Xcol classes ──
   Additional fallback for the course section wrapper ── */
@media (max-width: 640px) {
  .cl-phase { padding: .85rem !important; }
  .cl-tool  { padding: .85rem !important; }
  .cl-tier  { padding: 1.25rem !important; }
}

/* ── Overseer (admin analytics) two-col ── */
@media (max-width: 820px) {
  #tab-overseer .ov-grid-2 { grid-template-columns: 1fr !important; }
}

/* ── Announcement card meta wrap on tiny screens ── */
@media (max-width: 400px) {
  .announcement-card-meta { flex-direction: column; align-items: flex-start; }
}

/* ── Modals: reduce max-width to not squish on small tablet ── */
@media (max-width: 900px) {
  .modal { max-width: min(100%, 95vw) !important; }
}

/* ── Table minimum width + scroll ── */
.table-wrap table { min-width: 500px; }
@media (max-width: 640px) {
  .table-wrap table { min-width: 400px; }
  th, td { padding: .65rem .75rem; font-size: .8rem; }
}

/* ── Grid-2 utility: 1 col on small mobile ── */
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr !important; }
}
