/* ═══════════════════════════════════════════════════════════
   Scholar Naija — style.css
   Nigeria's #1 Student Portal · Premium Redesign 2026
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --green:        #00C06A;
  --green-dark:   #008751;
  --green-dim:    #00a35a;
  --green-glow:   rgba(0, 192, 106, 0.18);
  --gold:         #FFB000;
  --gold-dim:     rgba(255,176,0,0.15);
  --blue:         #3B82F6;
  --blue-dim:     rgba(59,130,246,0.15);
  --purple:       #8B5CF6;
  --purple-dim:   rgba(139,92,246,0.15);
  --orange:       #F97316;
  --orange-dim:   rgba(249,115,22,0.15);
  --red:          #EF4444;
  --white : #fff;
  --black : black;
  --yellow :yellow ;
  --violet :violet ;
  --cyan :cyan ;
  --brown :brown ;
  --pink : pink;

  /* Surfaces */
  --bg:           #07090F;
  --bg-2:         #0D1017;
  --surface:      #111827;
  --surface-2:    #1a2233;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(0,192,106,0.35);

  /* Text */
  --text:         #EEF2FF;
  --text-muted:   #7A8AA0;
  --text-faint:   #374151;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;

  /* Spacing */
  --r:    14px;   /* radius standard */
  --r-lg: 20px;
  --r-sm: 8px;

  /* Shadows */
  --shadow:      0 4px 24px rgba(0,0,0,0.45);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.35);
  --glow:        0 0 40px rgba(0,192,106,0.15);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --dur:  0.25s;

  /* Sidebar */
  --sidebar-w: 270px;

  /* Legacy compat (kept for other pages) */
  --brand-primary:      #00C06A;
  --brand-dark:         #008751;
  --accent-gold:        #FFB000;
  --background-slate:   #07090F;
  --surface-pure:       #111827;
  --text-slate-heavy:   #EEF2FF;
  --text-slate-muted:   #7A8AA0;
  --border-slate-light: rgba(255,255,255,0.07);
  --danger-crimson:     #EF4444;
  --radius-standard:    14px;
  --shadow-premium:     0 4px 24px rgba(0,0,0,0.45);
  --font-stack:         'Outfit', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, video { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }


/* ════════════════════════════════════════════════════════════
  ARTICLE ABOUT US
════════════════════════════════════════════════════════════ */
.about{
  margin: 10px;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
}
.article-body p strong {
  color: lightgreen;
}
.article-body ul {
  list-style:circle ;
  margin-left: 40px;
  color: #00C06A;
}
.article-body h2{
  color: darkblue;
}
/* ════════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}


/* ── SIDEBAR ── */
.app-sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--dur) var(--ease);
}

/* ── MAIN ── */
.app-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ════════════════════════════════════════════════════════════
   SIDEBAR INTERNALS
════════════════════════════════════════════════════════════ */

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,192,106,0.3);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-name span { color: var(--green); }

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Nav */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  width: 100%;
  text-align: left;
  position: relative;
}

.menu-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.menu-item.active {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(0,192,106,0.2);
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--green);
  border-radius: 0 3px 3px 0;
}

.menu-icon { font-size: 1.05rem; flex-shrink: 0; }
.menu-label { font-family: var(--font-display); letter-spacing: 0.01em; }

.menu-item.login-btn {
  margin-top: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  justify-content: center;
}
.menu-item.login-btn:hover {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

/* Sidebar Promo */
.sidebar-promo {
  background: linear-gradient(135deg, rgba(0,192,106,0.12), rgba(0,135,81,0.08));
  border: 1px solid rgba(0,192,106,0.2);
  border-radius: var(--r);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.sidebar-promo::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(0,192,106,0.2), transparent 70%);
  pointer-events: none;
}

.promo-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.promo-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.promo-cta {
  display: inline-block;
  background: var(--green);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 8px 16px;
  border-radius: 50px;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
}
.promo-cta:hover { background: var(--green-dim); transform: translateY(-1px); }


/* ════════════════════════════════════════════════════════════
   AD STRIP
════════════════════════════════════════════════════════════ */
.ad-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 32px;
  text-align: center;
  position: relative;
}
.ad-strip-mid {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
}
.ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.adsbygoogle { display: block; width: 100%; }


/* ════════════════════════════════════════════════════════════
   PORTAL VIEWS
════════════════════════════════════════════════════════════ */
.portal-panel { display: none; padding: 32px; animation: fadeUp 0.35s var(--ease); }
.portal-panel.active { display: block; }
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════════════════════════ */
.hero-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Ambient orbs */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,192,106,0.25), transparent 70%);
  top: -80px; right: -60px;
}
.orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,176,0,0.15), transparent 70%);
  bottom: -40px; left: 10%;
  animation-delay: -4s;
}
.orb-3 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -7s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(10px,-15px) scale(1.05); }
  66%      { transform: translate(-8px,10px) scale(0.97); }
}

.hero-body { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,192,106,0.1);
  border: 1px solid rgba(0,192,106,0.22);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  animation: fadeUp 0.55s var(--ease) 0.05s both;
}

.hero-accent { color: var(--green); }

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
  animation: fadeUp 0.55s var(--ease) 0.1s both;
}

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  animation: fadeUp 0.55s var(--ease) 0.15s both;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  border: none;
}

.hbtn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(0,192,106,0.35);
}
.hbtn-primary:hover {
  background: var(--green-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,192,106,0.45);
}

.hbtn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.hbtn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats-row {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  animation: fadeUp 0.55s var(--ease) 0.2s both;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hstat { display: flex; flex-direction: column; }
.hstat-n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hstat-l {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}


/* ════════════════════════════════════════════════════════════
   QUICK ACCESS CARDS
════════════════════════════════════════════════════════════ */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.qa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.qa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  border-radius: var(--r) var(--r) 0 0;
  transition: opacity var(--dur);
}

.qa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.qa-green::before  { background: var(--green); }
.qa-gold::before   { background: var(--gold); }
.qa-blue::before   { background: var(--blue); }
.qa-purple::before { background: var(--purple); }
.qa-orange::before { background: var(--orange); }
.qa-black::before { background: var(--black); }
.qa-yellow::before { background: var(--yellow); }
.qa-violet::before { background: var(--violet); }
.qa-green::before { background: var(--green); }
.qa-red::before { background: var(--red); }
.qa-cyan::before { background: var(--cyan); }
.qa-brown::before { background: var(--brown); }
.qa-white::before { background: var(--white); }
.qa-pink::before { background: var(--pink); }

.qa-green:hover  { border-color: rgba(0,192,106,0.4); box-shadow: 0 4px 20px rgba(0,192,106,0.1); }
.qa-gold:hover   { border-color: rgba(255,176,0,0.4); box-shadow: 0 4px 20px rgba(255,176,0,0.1); }
.qa-blue:hover   { border-color: rgba(59,130,246,0.4); box-shadow: 0 4px 20px rgba(59,130,246,0.1); }
.qa-purple:hover { border-color: rgba(139,92,246,0.4); box-shadow: 0 4px 20px rgba(139,92,246,0.1); }
.qa-orange:hover { border-color: rgba(249,115,22,0.4); box-shadow: 0 4px 20px rgba(249,115,22,0.1); }

.qa-icon { font-size: 1.4rem; flex-shrink: 0; }
.qa-info { flex: 1; min-width: 0; }
.qa-info strong { display: block; font-family: var(--font-display); font-size: 0.88rem; font-weight: 700; color: var(--text); }
.qa-info small   { font-size: 0.75rem; color: var(--text-muted); }
.qa-chevron { font-size: 1.2rem; color: var(--text-faint); transition: color var(--dur); }
.qa-card:hover .qa-chevron { color: var(--green); }


/* ════════════════════════════════════════════════════════════
   LIVE FEEDS
════════════════════════════════════════════════════════════ */
.feeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  transition: border-color var(--dur) var(--ease);
}
.feed-card:hover { border-color: rgba(0,192,106,0.2); }

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.feed-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-icon { font-size: 1.15rem; }
.feed-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
}

.badge-verified {
  background: var(--green-glow);
  border: 1px solid rgba(0,192,106,0.22);
  color: var(--green);
}

/* Pulse dot */
.pulse {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.4s ease infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.5); }
}

/* Data feed list */
.data-feed li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur);
}
.data-feed li:last-child { border-bottom: none; }
.data-feed li::before {
  content: '→';
  color: var(--green);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Skeleton loaders */
.skel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.skel-row::before { display: none; }
.skel-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, rgba(255,255,255,0.03) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.s-long  { width: 60%; }
.s-med   { width: 45%; }
.s-short { width: 20%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-loading { color: var(--text-muted); font-size: 0.85rem; font-style: italic; padding: 12px 0; }


/* ════════════════════════════════════════════════════════════
   ARTICLES SECTION
════════════════════════════════════════════════════════════ */

.blog-grid{
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 5px;
}

.article-card{
    flex-grow: 1;
}

.blog-grid div{
    justify-self: center;
    padding: 10px;
    border: solid 2px white;
    color: aqua;
    background-color: #111827;
    height: 200px;
    overflow: hidden;    
    flex-wrap: wrap;

}

.articles-block {
  margin-bottom: 0;
}

.section-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.sh-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sh-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.see-all {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(0,192,106,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  transition: all var(--dur) var(--ease);
}
.see-all:hover {
  background: var(--green-glow);
  border-color: rgba(0,192,106,0.4);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.article-skel {
  height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}


/* ════════════════════════════════════════════════════════════
   PANEL CARDS (shared)
════════════════════════════════════════════════════════════ */
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-card);
}


/* ════════════════════════════════════════════════════════════
   CBT SECTION
════════════════════════════════════════════════════════════ */
.cbt-setup {
  margin-bottom: 24px;
}

.cbt-setup-hdr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.cbt-setup-icon {
  width: 52px; height: 52px;
  background: var(--green-glow);
  border: 1px solid rgba(0,192,106,0.2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cbt-setup h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.cbt-setup p { font-size: 0.88rem; color: var(--text-muted); }

/* CBT Grid Interface */
.cbt-grid-interface {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  animation: fadeUp 0.35s var(--ease);
}

.cbt-header-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.timer-alert {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.22);
  color: var(--red);
}

.question-number-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.main-question {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
}

.options-vertical-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.cbt-option-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--dur) var(--ease);
}
.cbt-option-wrapper input { display: none; }
.cbt-option-wrapper:hover  { border-color: var(--green); background: var(--green-glow); }
.cbt-option-wrapper.selected { border-color: var(--green); background: var(--green); color: var(--bg); font-weight: 700; }

.workspace-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Navigator Matrix */
.navigator-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.matrix-node {
  padding: 10px 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.matrix-node:hover    { border-color: var(--green); color: var(--green); }
.matrix-node.answered { background: var(--green); border-color: var(--green); color: var(--bg); }
.matrix-node.flagged  { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.matrix-node.current  { box-shadow: 0 0 0 2px var(--text); }

.workspace-card { margin-bottom: 0; }
.navigation-matrix-card h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; color: var(--text); margin-bottom: 16px; }


/* ════════════════════════════════════════════════════════════
   CALCULATORS
════════════════════════════════════════════════════════════ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.calc-card {}

.calc-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.calc-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.calc-card h3 small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.calc-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

.calc-row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.action-row-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.result-display-panel {
  background: var(--bg-2);
  border: 1.5px solid rgba(0,192,106,0.25);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.result-display-panel span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.result-big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
}


/* ════════════════════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════════════════════ */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.input-wrap label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.input-wrap.hidden { display: none !important; }

input, select {
  font-family: var(--font-body);
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  width: 100%;
  transition: all var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: var(--text-faint); }
input:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,192,106,0.12);
  background: var(--surface);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8AA0' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}


/* ════════════════════════════════════════════════════════════
   ACTION BUTTONS
════════════════════════════════════════════════════════════ */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--dur) var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.action-btn:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,192,106,0.3); }

.action-btn.outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.action-btn.outline:hover { border-color: var(--green); color: var(--green); background: var(--green-glow); box-shadow: none; }

.action-btn.outline.warning {
  border-color: rgba(255,176,0,0.3);
  color: var(--gold);
}
.action-btn.outline.warning:hover { background: var(--gold-dim); border-color: var(--gold); box-shadow: none; }

.action-btn.danger { background: var(--red); }
.action-btn.danger:hover { background: #DC2626; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }

.action-btn.btn-launch {
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,192,106,0.3);
}

.full-width { width: 100%; }

.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }


/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.app-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  margin-top: auto;
  text-align: center;
}

.footer-ad {
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 50px;
  transition: all var(--dur) var(--ease);
}
.footer-nav a:hover { color: var(--green); background: var(--green-glow); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 992px)
════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {

  /* Sidebar → bottom tab bar */
  .app-sidebar {
    position: fixed;
    bottom: 0; left: 0;
    top: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    gap: 0;
    z-index: 200;
    background: rgba(17,24,39,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  .sidebar-brand,
  .sidebar-promo { display: none; }

  .sidebar-menu {
    flex-direction: row;
    width: 100%;
    gap: 0;
    justify-content: space-around;
    align-items: stretch;
  }

  .menu-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    font-size: 0.65rem;
    border-radius: 0;
    height: 62px;
  }

  .menu-item::before { display: none; }

  .menu-item.active {
    background: rgba(0,192,106,0.08);
    border: none;
    border-top: 2px solid var(--green);
    color: var(--green);
  }

  .menu-icon { font-size: 1.2rem; }

  .menu-item.login-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    justify-content: center;
  }
  .menu-item.login-btn:hover,
  .menu-item.login-btn.active {
    background: rgba(0,192,106,0.08);
    color: var(--green);
    border-top: 2px solid var(--green);
  }

  .app-main {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .cbt-grid-interface {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feeds-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE (≤ 640px) ── */
@media (max-width: 640px) {

  .portal-panel { padding: 20px 16px; }

  .hero-banner { padding: 32px 22px; }

  .hero-title { font-size: 1.75rem; }

  .hero-stats-row { gap: 20px; }

  .hero-btns { flex-direction: column; }
  .hbtn { width: 100%; justify-content: center; }

  .qa-grid { grid-template-columns: 1fr; }

  .form-row { flex-direction: column; gap: 0; }

  .calc-grid { grid-template-columns: 1fr; }

  .workspace-actions { flex-direction: column-reverse; }
  .workspace-actions .action-btn { width: 100%; }

  .matrix-grid { grid-template-columns: repeat(4, 1fr); }

  .articles-grid { grid-template-columns: 1fr; }

  .section-hdr { flex-direction: column; align-items: flex-start; }

  .action-row-group { flex-direction: column; }
  .action-row-group .action-btn { width: 100%; }

  .calc-row-inputs { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   LEGACY / OTHER PAGES (kept intact)
════════════════════════════════════════════════════════════ */

/* Article / post pages */
.article-content p,
.article-content h2,
.article-content h3 { color: var(--text); }

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-premium);
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 600; color: var(--text); font-size: 14px; }
.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--border-slate-light);
  border-radius: var(--radius-standard);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--surface-2);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand-primary); background: var(--surface); }
.submit-btn {
  background: var(--brand-primary);
  color: var(--bg);
  border: none;
  padding: 16px;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-standard);
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover { opacity: 0.9; }
.contact-info { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-slate-light); text-align: center; }
.contact-info p { margin: 8px 0; color: var(--text); font-weight: 600; }

/* Auth Page */
body.center-viewport-bg {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  margin-bottom: 12px;
}

.auth-toggle-header {
  display: flex;
  background: var(--surface-2);
  padding: 6px;
  border-bottom: 1px solid var(--border);
}

.auth-tab-selector {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: calc(var(--radius-standard) - 6px);
  transition: all 0.2s ease;
}
.auth-tab-selector.active {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.auth-structural-form { padding: 40px 32px; }
.auth-structural-form h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-structural-form .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.auth-footer-nav { margin-top: 24px; text-align: center; }
.auth-footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-footer-nav a:hover { color: var(--green); }
.auth-page-footer-container { width: 100%; max-width: 520px; }

/* Animations (kept) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}