/* ─────────────────────────────────────────────────────────────────────────
   ADX Academy Portal — Shared Visual Theme
   Loaded after each page's inline <style> block to apply unified ADX aesthetic.
   Cascade order: external stylesheet (this file) beats same-specificity inline rules.
───────────────────────────────────────────────────────────────────────── */

/* ── CSS variable overrides (cascade: this file loads after inline <style>) ── */
:root {
  --bg: #0a0a0a;
  --sb: #141414;
  --s1: #141414;
  --s2: #1a1a1a;
  --b:  rgba(255,255,255,.08);
  --gold: #ffb72e;
  --gold-d: rgba(255,183,46,.1);
  --muted: rgba(255,255,255,.52);
  --dim: rgba(255,255,255,.26);
  --purple: #8B5CF6;
  --purple-d: rgba(139,92,246,.08);
  --purple-glow: rgba(139,92,246,.18);
  --sb-div: rgba(255,255,255,.08);
  --green: #22c55e;
  --green-d: rgba(34,197,94,.12);
  --red: #ef4444;
  --amber: #f59e0b;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
body { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif !important; }
button, input, textarea, select { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Arial,sans-serif; }

/* ── Background ───────────────────────────────────────────────────────────── */
body {
  color: rgba(255,255,255,.92) !important;
  background: #0a0a0a !important;
  background-attachment: fixed !important;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
nav { display: none !important; }
nav.sb-nav { display: flex !important; }

.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #141414;
  border-bottom: 1px solid rgba(255,255,255,.09);
  z-index: 300;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.hamburger {
  background: none;
  border: none;
  color: #f0f0f0;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 190;
}
.sidebar-overlay.active { display: block; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: #141414 !important;
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform .28s ease;
}
.sb-brand-wrap {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-brand {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--gold) !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  text-shadow: 0 0 20px rgba(255,183,46,.3) !important;
  display: block !important;
}
.nav-brand span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.35) !important;
  margin-left: 4px !important;
}
.sb-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}
.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 10px 20px !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  transition: color .15s, background .15s, border-color .15s !important;
  white-space: nowrap !important;
}
.nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
  border-left-color: rgba(255,183,46,.4) !important;
}
.nav-link.active {
  color: var(--gold) !important;
  background: rgba(255,183,46,.06) !important;
  border-left: 3px solid var(--gold) !important;
}
.nav-link.locked {
  color: rgba(255,255,255,.25) !important;
  cursor: default !important;
  pointer-events: none !important;
}
.nav-link.locked:hover {
  color: rgba(255,255,255,.25) !important;
  background: transparent !important;
  border-left-color: transparent !important;
}
.nav-link.locked::after {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  margin-left: auto;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.3)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Sidebar readiness bar ───────────────────────────────────────────────── */
.sb-readiness { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.sb-score-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.sb-score-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; margin-bottom: 6px; }
.sb-score-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg,#ffb72e,rgba(255,183,46,.6)); transition: width .7s ease; }
.sb-score-pct { font-size: 11px; color: var(--gold); font-weight: 700; }

/* ── Sidebar footer ──────────────────────────────────────────────────────── */
.sb-footer { padding: 14px 20px 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.sb-cta {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  padding: 11px 16px !important;
  font-size: 13px !important;
  background: var(--gold) !important;
  color: #0a0a0a !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 0 18px rgba(255,183,46,.28) !important;
  letter-spacing: .03em !important;
}
.sb-cta:hover { opacity: .88 !important; }
.sb-user { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-email { font-size: 11px !important; color: var(--dim) !important; flex: 1 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; max-width: 120px !important; }
.nav-logout { background: transparent !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: 6px !important; padding: 4px 10px !important; font-size: 11px !important; color: var(--muted) !important; cursor: pointer !important; font-family: inherit !important; }
.nav-logout:hover { border-color: rgba(255,255,255,.3) !important; color: #fff !important; }

/* ── Main content offset ─────────────────────────────────────────────────── */
.main-content { margin-left: 240px; min-height: 100vh; }

/* ── CTA button ──────────────────────────────────────────────────────────── */
.btn-cta {
  font-weight: 800 !important;
  letter-spacing: .04em;
  box-shadow: 0 0 14px rgba(255,183,46,.28) !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media(max-width:768px) {
  .sidebar { transform: translateX(-240px); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,.5); }
  .main-content { margin-left: 0; padding-top: 56px; }
  .mobile-bar { display: flex !important; }
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
/* --s1 and --b already overridden above; add hover glow */
.card {
  transition: box-shadow .2s, border-color .2s;
}
.card:hover {
  border-color: rgba(255,183,46,.3) !important;
  box-shadow: 0 0 18px rgba(255,183,46,.1) !important;
}
.card-title { color: rgba(255,183,46,.82) !important; }

.need-help {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
.nh-card:hover {
  border-color: rgba(255,183,46,.3) !important;
  background: rgba(255,183,46,.05) !important;
}

/* ── Portal login / auth panel card ──────────────────────────────────────── */
.panel {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 0 40px rgba(0,0,0,.6) !important;
  border-radius: 16px !important;
}

/* ── Skeleton shimmer ─────────────────────────────────────────────────────── */
.skel {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.1) 50%,
    rgba(255,255,255,.05) 75%
  ) !important;
  background-size: 400% 100% !important;
}

/* ── Primary/Save buttons ─────────────────────────────────────────────────── */
.btn-save { font-weight: 800 !important; }

/* ── Locked-section CTA ───────────────────────────────────────────────────── */
.btn-unlock {
  background: var(--gold) !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 22px rgba(255,183,46,.28) !important;
  font-weight: 800 !important;
}
.btn-unlock:hover {
  opacity: .88 !important;
  background: var(--gold) !important;
  box-shadow: 0 0 32px rgba(255,183,46,.4) !important;
}
.locked-section h2 { color: var(--gold) !important; }
.locked-section .lock-icon { filter: drop-shadow(0 0 12px rgba(255,183,46,.35)); }

/* ── Countdown hero (dashboard) ──────────────────────────────────────────── */
.countdown-hero {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.cd-val { text-shadow: 0 0 28px rgba(255,183,46,.38) !important; }
.perk {
  background: rgba(255,183,46,.08) !important;
  border: 1px solid rgba(255,183,46,.22) !important;
  color: var(--gold) !important;
}

/* ── Progress bars ────────────────────────────────────────────────────────── */
.score-bar, .progress-track { background: rgba(255,255,255,.07) !important; }
.score-fill, .progress-fill {
  background: linear-gradient(90deg,#ffb72e,rgba(255,183,46,.58)) !important;
}

/* ── Readiness check items ─────────────────────────────────────────────────── */
.check-item { background: rgba(255,255,255,.03) !important; border-color: rgba(255,255,255,.08) !important; }
.check-item.done { background: rgba(34,197,94,.08) !important; }

/* ── Payment: next-due panel ──────────────────────────────────────────────── */
.next-pay {
  background: linear-gradient(135deg,rgba(255,183,46,.08),rgba(255,183,46,.04)) !important;
  border: 1px solid rgba(255,183,46,.22) !important;
}

/* ── Testimonial card ─────────────────────────────────────────────────────── */
.testimonials-card {
  background: #141414 !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* ── Community btn (dashboard) ────────────────────────────────────────────── */
.btn-community {
  background: rgba(255,183,46,.08) !important;
  border: 1px solid rgba(255,183,46,.25) !important;
  color: var(--gold) !important;
}
.btn-community:hover { background: rgba(255,183,46,.15) !important; }

/* ── Info note banners ────────────────────────────────────────────────────── */
.info-note {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.75) !important;
}

/* ── Tabs (resources) ─────────────────────────────────────────────────────── */
.tabs { background: rgba(255,255,255,.05) !important; }
.tab-btn.active {
  background: #141414 !important;
  color: var(--gold) !important;
}

/* ── Community hero ───────────────────────────────────────────────────────── */
.community-hero {
  background: linear-gradient(135deg,#141414,#1a1a1a) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

/* ── Community countdown tiles ────────────────────────────────────────────── */
.countdown-wrap .cd-unit {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,.09) !important;
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.stat-card {
  background: #141414 !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* ── Update feed cards ────────────────────────────────────────────────────── */
.update-card {
  background: #141414 !important;
  border-color: rgba(255,255,255,.08) !important;
}
.update-card.pinned { border-color: rgba(255,183,46,.38) !important; }

/* ── Deadline bar (updates) ───────────────────────────────────────────────── */
.deadline-bar {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}

/* ── Upcoming milestones ──────────────────────────────────────────────────── */
.upcoming-item {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

/* ── Staff card ───────────────────────────────────────────────────────────── */
.staff-card { background: #141414 !important; border-color: rgba(255,255,255,.08) !important; }
.staff-avatar { background: rgba(255,183,46,.1) !important; border-color: rgba(255,183,46,.25) !important; }

/* ── Room type cards (roommates) ──────────────────────────────────────────── */
.room-type-card { background: rgba(255,255,255,.03) !important; }
.room-type-card:hover { border-color: rgba(255,183,46,.48) !important; background: rgba(255,183,46,.06) !important; }
.room-type-card.selected { border-color: var(--gold) !important; background: rgba(255,183,46,.1) !important; }

/* ── Text inputs ──────────────────────────────────────────────────────────── */
input[type=text], input[type=email], input[type=password], textarea {
  background: rgba(0,0,0,.5) !important;
  border-color: rgba(255,255,255,.12) !important;
  font-family: inherit !important;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255,183,46,.15) !important;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.2) !important; }

/* ── Status badges (registration) ─────────────────────────────────────────── */
.badge-green { background: rgba(34,197,94,.14) !important; color: #22c55e !important; }
.badge-amber { background: rgba(234,179,8,.14) !important; color: #eab308 !important; }
.badge-gray  { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.48) !important; }

/* ── Participant cards (registration) ─────────────────────────────────────── */
.participant-card {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}

/* ── Link buttons ─────────────────────────────────────────────────────────── */
.link-btn { color: var(--gold) !important; }

/* ── Divider ──────────────────────────────────────────────────────────────── */
.divider { border-color: rgba(255,255,255,.08) !important; }

/* ── Need Help icon — SVG-ready ───────────────────────────────────────────── */
.nh-icon { font-size: 0 !important; display: flex !important; align-items: center !important; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.32); }
