/* =====================================================
   TopTeller Digital AI Class — Global Styles
   Palette: Gold · Navy · Black · White
   ===================================================== */

:root {
  --bg: #080b14;
  --bg-2: #0c1220;
  --card: rgba(255,255,255,0.04);
  --card-solid: #0e1628;
  --border: rgba(200,168,78,0.14);
  --border-hover: rgba(200,168,78,0.35);
  --text: #f0ede4;
  --text-dim: #a0a8b8;
  --text-mute: #5e6778;
  --primary: #c8a84e;
  --primary-2: #e8d48b;
  --accent: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #60a5fa;
  --success: #10b981;
  --grad: linear-gradient(135deg, #c8a84e, #a68a3a);
  --grad-soft: linear-gradient(135deg, rgba(200,168,78,0.12), rgba(166,138,58,0.08));
  --navy: #0d1b2a;
  --navy-light: #1b2838;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Space Grotesk', var(--font);
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Lucide icons ---------- */
svg.lucide { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.14em; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,168,78,0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(13,27,42,0.6), transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(59,130,246,0.06), transparent 45%),
    linear-gradient(#0c1220, #080b14);
}
.bg-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,168,78,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,78,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 80%);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .brand-text, .stat-num, .cert-name, .hero-title {
  font-family: var(--font-title);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.16; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; margin-top: .4rem; }
p { color: var(--text-dim); }
strong { color: var(--text); }
small { color: var(--text-mute); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.accent { color: var(--primary-2); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-2); }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.main { min-height: 60vh; }
.page-container { padding-top: 110px; padding-bottom: 80px; }
.narrow { max-width: 620px !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flex-end { display: flex; align-items: flex-end; }
.nowrap { white-space: nowrap; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-mute); }

/* ---------- Navbar ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; }
.navbar.glass {
  background: rgba(8,11,20,0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-menu { display: contents; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; background: var(--grad); color: #fff;
  box-shadow: 0 6px 24px rgba(200,168,78,0.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-logo { height: 38px; width: auto; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.3); background: #fff; }
.brand-text { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-dim); font-size: .92rem; padding: 8px 12px;
  border-radius: 10px; transition: all .2s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(200,168,78,0.08); }
.nav-links a.active { color: var(--primary); background: rgba(200,168,78,0.12); }
.nav-btn-ghost { border: 1px solid var(--border) !important; }
.nav-btn-ghost:hover { border-color: var(--border-hover) !important; }
.hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; border-radius: 8px; }
.hamburger:hover { background: rgba(200,168,78,0.08); }
.hamburger svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(200,168,78,0.06);
  color: var(--text); font-weight: 600; font-size: .94rem;
  cursor: pointer; transition: all .22s ease; font-family: var(--font); text-decoration: none;
}
.btn:hover { border-color: var(--border-hover); background: rgba(200,168,78,0.12); transform: translateY(-2px); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-glow {
  background: var(--grad); color: #fff; border: none;
  box-shadow: 0 10px 30px rgba(200,168,78,0.3);
}
.btn-glow:hover { background: linear-gradient(135deg, #b89a42, #d4b85e); box-shadow: 0 14px 40px rgba(200,168,78,0.45); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: rgba(200,168,78,0.3); }
.btn-ghost:hover { background: rgba(200,168,78,0.08); color: var(--primary-2); border-color: var(--primary); }
.btn-danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(239,68,68,0.2); color: var(--danger); }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, #b89a42, #d4b85e); color: #fff; }
.btn-success { background: rgba(16,185,129,0.14); border-color: rgba(16,185,129,0.4); color: var(--success); }
.btn-success:hover { background: rgba(16,185,129,0.22); color: var(--success); }
.btn-muted { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-muted:hover { border-color: var(--border-hover); color: var(--text); background: rgba(200,168,78,0.06); transform: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-xs { padding: 5px 12px; font-size: .78rem; border-radius: 8px; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline { display: inline-flex; gap: 6px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; position: relative; }
.hero-inner { width: 100%; text-align: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(200,168,78,0.08); border: 1px solid rgba(200,168,78,0.25);
  color: var(--primary); font-size: .88rem; font-weight: 600; margin-bottom: 26px;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--primary); animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }

.hero-title { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.12; margin-bottom: 22px; }
.typewrite { color: var(--primary); border-right: 3px solid var(--primary); padding-right: 4px; animation: blink .8s step-end infinite; }
@keyframes blink { 50% { border-color: transparent; } }
.hero-sub { max-width: 640px; margin: 0 auto 34px; font-size: 1.06rem; color: var(--text-dim); }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.meta-chip {
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  font-size: .85rem; color: var(--text-dim);
}
.meta-chip strong { display: block; font-size: 1.15rem; color: var(--text); }

/* ---------- Sections & cards ---------- */
.section { padding: 90px 0; position: relative; }
.section-alt { background: rgba(13,27,42,0.4); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { max-width: 640px; margin: 12px auto 0; }
.section-head h2 { margin-top: 8px; }
.section-head .sponsor-line {
  display: inline-block; margin-top: 16px; padding: 8px 18px;
  border-radius: 100px; background: linear-gradient(135deg, rgba(200,168,78,0.12), rgba(166,138,58,0.08));
  border: 1px solid var(--border-hover); font-size: .85rem; color: var(--text); font-weight: 600;
}
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 8px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--border-hover); }
.card h3 { margin-bottom: 14px; }
.card h3 small { font-weight: 400; }

.feature-card { text-align: center; padding: 36px 26px; }
.feature-card, .benefit-card { background: rgba(200,168,78,0.04); }
.card-icon {
  width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 18px;
  background: var(--grad-soft); border: 1px solid var(--border-hover);
}
.feature-card:hover, .benefit-card:hover { transform: translateY(-6px); }
.benefit-card { position: relative; overflow: hidden; padding: 34px 26px; }
.benefit-card h3 { margin: 10px 0 8px; }
.benefit-num {
  font-family: var(--font-title); font-size: 2rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: .9;
}

/* Requirements */
.requirements-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.req-card h3 { display: flex; align-items: center; gap: 10px; }
.req-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--border-hover); font-size: 1rem; }
.req-list { list-style: none; }
.req-list li { position: relative; padding: 8px 0 8px 26px; color: var(--text-dim); font-size: .92rem; border-bottom: 1px dashed rgba(200,168,78,0.1); }
.req-list li:last-child { border-bottom: none; }
.req-list li::before { content: "\279C"; position: absolute; left: 0; color: var(--primary); }

/* Months / apply cards */
.months-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.month-card { display: flex; flex-direction: column; gap: 12px; }
.month-card .btn { margin-top: auto; }
.month-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.month-top h3 { margin: 0; }
.month-dates { color: var(--text-mute); font-size: .9rem; }
.fee-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fee-box { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.fee-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); }
.fee-value { display: block; font-size: 1.25rem; font-weight: 700; color: var(--primary); font-family: var(--font-title); }
.fee-seats { display: block; font-size: .8rem; color: var(--primary-2); }
.month-note { font-size: .82rem; color: var(--text-mute); }
.empty-state { text-align: center; padding: 60px 30px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state .btn { margin-top: 18px; }

/* Refund banner */
.refund-banner { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, rgba(200,168,78,0.08), rgba(166,138,58,0.04)); border-color: rgba(200,168,78,0.25); padding: 34px; }
.refund-icon { font-size: 2.6rem; flex-shrink: 0; }
.refund-banner h3 { margin-bottom: 6px; color: var(--primary); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.badge.success { background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge.warning { background: rgba(245,158,11,0.12); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge.danger { background: rgba(239,68,68,0.12); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge.info { background: rgba(96,165,250,0.12); color: var(--info); border: 1px solid rgba(96,165,250,0.3); }
.badge.primary { background: rgba(200,168,78,0.14); color: var(--primary-2); border: 1px solid rgba(200,168,78,0.35); }
.badge.secondary { background: rgba(200,168,78,0.06); color: var(--text-dim); border: 1px solid var(--border); }

/* ---------- Alerts & toast ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; margin: 8px 0; font-size: .92rem; }
.alert-info { background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.3); color: var(--info); }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: var(--warning); }
.toast-info { background: #0a1a2e; border: 1px solid rgba(96,165,250,0.5); color: var(--info); }
.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 14px 22px; border-radius: var(--radius-sm);
  font-size: .92rem; max-width: 540px; text-align: center;
  box-shadow: var(--shadow); animation: slideDown .4s ease;
}
.toast-success { background: #0e2d22; border: 1px solid rgba(16,185,129,0.5); color: var(--success); }
.toast-error { background: #331018; border: 1px solid rgba(239,68,68,0.5); color: var(--danger); }
.toast-close { background: none; border: none; color: inherit; font-size: 1.1rem; margin-left: 12px; cursor: pointer; }
@keyframes slideDown { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Forms ---------- */
fieldset.form-section { border: none; padding: 0; }
.form-section legend { font-weight: 700; font-family: var(--font-title); font-size: 1.15rem; padding: 22px 6px 14px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; font-size: .9rem; margin-right: 10px; }
.req-for-all { display: block !important; font-size: .8rem; font-weight: 500; color: var(--primary); margin-top: 4px; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(8,11,20,0.7); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form-field textarea { resize: vertical; min-height: 60px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,168,78,0.15);
}
.form-field input::placeholder { color: var(--text-mute); }
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.checkbox-field { flex-direction: row; align-items: flex-start; gap: 10px; }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400 !important; color: var(--text-dim) !important; cursor: pointer; }
.check-label input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.check-label strong { color: var(--text); }
.form-actions { margin-top: 24px; display: flex; gap: 12px; }
.hint { font-size: .84rem; color: var(--text-mute); margin-top: 12px; }

/* Type cards (live-in / remote) */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.type-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 18px;
  border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: all .22s; background: rgba(8,11,20,0.5);
}
.type-card input { display: none; }
.type-card .type-emoji { font-size: 1.9rem; }
.type-card strong { font-family: var(--font-title); font-size: 1.02rem; }
.type-card span:last-child { font-size: .84rem; color: var(--text-mute); }
.type-card.selected { border-color: var(--primary); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(200,168,78,0.12); }
.type-card.selected strong { color: var(--primary); }
.agreements { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Apply / success / auth pages ---------- */
.page-head { text-align: center; margin-bottom: 34px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { max-width: 560px; margin: 0 auto; }
.success-card { text-align: center; padding: 44px 30px; }
.success-check {
  width: 74px; height: 74px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem;
  box-shadow: 0 10px 40px rgba(200,168,78,0.4); animation: pop .5s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.enroll-box { background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 20px; margin: 24px 0 18px; }
.enroll-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(200,168,78,0.12); font-size: .94rem; }
.enroll-row:last-child { border-bottom: none; }
.enroll-row span { color: var(--text-mute); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.auth-card { max-width: 460px; margin: 0 auto; padding: 40px 34px; text-align: center; }
.auth-icon { width: 60px; height: 60px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 18px; background: var(--grad-soft); border: 1px solid var(--border-hover); }
.auth-card h1 { margin-bottom: 6px; }
.auth-card > p { margin-bottom: 24px; font-size: .92rem; }
.auth-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.auth-alt { margin-top: 18px; font-size: .9rem; }

/* ---------- Verification ---------- */
.verify-result { margin-top: 24px; text-align: center; padding: 40px 30px; position: relative; }
.verify-badge { display: inline-block; padding: 8px 24px; border-radius: 100px; font-weight: 700; margin-bottom: 16px; background: rgba(16,185,129,0.12); color: var(--success); border: 1px solid rgba(16,185,129,0.4); }
.verify-badge.danger { background: rgba(239,68,68,0.12); color: var(--danger); border-color: rgba(239,68,68,0.4); }
.verify-result h2 { margin-bottom: 16px; }
.verify-detail { display: flex; justify-content: space-between; gap: 20px; max-width: 480px; margin: 0 auto; padding: 8px 0; border-bottom: 1px dashed rgba(200,168,78,0.1); font-size: .94rem; }
.verify-detail span { color: var(--text-mute); font-weight: 500; }
.verify-stamp { margin-top: 22px; display: inline-block; padding: 8px 26px; border: 3px double var(--success); color: var(--success); border-radius: 12px; font-weight: 800; letter-spacing: .2em; transform: rotate(-4deg); font-family: var(--font-title); }

/* ============================================================= */
/*  SIDEBAR NAVIGATION (Admin & Student)                         */
/* ============================================================= */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 110;
  background: var(--navy);
  border-right: 1px solid rgba(200,168,78,0.1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(200,168,78,0.08);
  text-decoration: none; color: var(--text);
}
.sidebar-brand img { height: 36px; width: auto; border-radius: 8px; background: #fff; }
.sidebar-brand-text { font-family: var(--font-title); font-weight: 700; font-size: .95rem; }
.sidebar-brand-text span { color: var(--primary); }
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  color: var(--text-dim); font-size: .88rem; font-weight: 500;
  transition: all .2s; text-decoration: none;
}
.sidebar-nav a:hover { color: var(--text); background: rgba(200,168,78,0.06); }
.sidebar-nav a.active { color: var(--primary); background: rgba(200,168,78,0.1); font-weight: 600; }
.sidebar-nav a svg, .sidebar-nav a i { width: 18px; height: 18px; flex-shrink: 0; opacity: .7; }
.sidebar-nav a.active svg, .sidebar-nav a.active i { opacity: 1; }
.sidebar-section { padding: 14px 14px 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); font-weight: 600; }
.sidebar-footer {
  padding: 14px 16px; border-top: 1px solid rgba(200,168,78,0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sidebar-footer .theme-toggle { width: 34px; height: 34px; }
.sidebar-footer .btn { font-size: .8rem; padding: 7px 14px; }
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 105;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.sidebar-open .sidebar-overlay { display: block; }

/* Main content offset when sidebar present */
.app-panel .main { margin-left: var(--sidebar-w); }
.app-panel .footer-simple { margin-left: var(--sidebar-w); }
.app-panel .page-container { padding-top: 30px; }

/* Sidebar bell/dropdown inside sidebar */
.sidebar-nav .bell-wrap { position: relative; }
.sidebar-nav .bell-btn { background: none; border: none; color: var(--text-dim); padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 12px; width: 100%; font-size: .88rem; cursor: pointer; transition: all .2s; }
.sidebar-nav .bell-btn:hover { color: var(--text); background: rgba(200,168,78,0.06); }
.sidebar-nav .bell-count { position: absolute; left: 36px; top: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: .65rem; font-weight: 700; background: var(--danger); color: #fff; display: flex; align-items: center; justify-content: center; }
.sidebar-nav .bell-dropdown {
  position: absolute; left: 100%; top: 0; width: 320px; max-height: 380px;
  overflow: auto; background: var(--card-solid); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 120;
}
.sidebar-nav .bell-dropdown.open { display: block; animation: fadeIn .2s; }

/* Legacy: show old top-nav style on non-app pages */
.app-panel .navbar { display: none; }

/* Mobile sidebar toggle */
.sidebar-toggle-btn {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 115;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--navy); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.sidebar-toggle-btn svg { width: 22px; height: 22px; }

/* ---------- App panels (student / admin) ---------- */
.student-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.student-header h1 { font-size: 1.8rem; }
.student-header .sub { color: var(--text-mute); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stats-grid.mini { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 0; }
.stat-card { text-align: center; padding: 20px 14px; position: relative; overflow: hidden; }
.stat-num { font-size: 1.8rem; font-weight: 700; }
.stat-label { font-size: .82rem; color: var(--text-mute); margin-top: 4px; }
.stat-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--grad-soft); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.profile-grid > div { padding-bottom: 10px; border-bottom: 1px dashed rgba(200,168,78,0.08); }
.profile-grid .full { grid-column: 1 / -1; }
.profile-grid span { display: block; font-size: .78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.profile-grid strong { font-size: .94rem; }
.filter-bar { margin-bottom: 22px; padding: 20px 22px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; padding: 11px 12px; color: var(--text-mute); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid rgba(200,168,78,0.06); vertical-align: top; }
.table tbody tr:hover { background: rgba(200,168,78,0.03); }
.table td a { text-decoration: none; }

/* Payment row */
.pay-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(200,168,78,0.1); flex-wrap: wrap; }
.pay-row:last-child { border-bottom: none; }
.pay-amount { font-weight: 700; font-family: var(--font-title); min-width: 110px; }
.pay-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mini-select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); }
.pay-notes { color: var(--text-dim); font-size: .78rem; }
.mini-input { width: 90px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-solid); color: var(--text); }

/* Certificate display */
.certificate-frame { background: repeating-linear-gradient(45deg, rgba(200,168,78,0.03) 0 10px, transparent 10px 20px); border-radius: var(--radius); padding: 30px; margin: 22px 0; }
.certificate { position: relative; background: linear-gradient(135deg, #0e1628, #131b3f); border: 2px solid rgba(200,168,78,0.3); outline: 1px solid rgba(200,168,78,0.12); outline-offset: 6px; border-radius: 6px; padding: 40px 44px 36px; text-align: center; box-shadow: var(--shadow); }
.cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.cert-brand { font-family: var(--font-title); font-weight: 800; font-size: 1.2rem; color: var(--text); }
.cert-num { font-size: .76rem; color: var(--text-mute); letter-spacing: .12em; }
.cert-label { font-family: var(--font-title); font-size: 1.7rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .18em; margin-bottom: 10px; }
.cert-presented { font-size: .9rem; color: var(--text-dim); }
.cert-name { font-size: 2.4rem; font-weight: 700; margin: 18px 0; color: var(--text); font-family: var(--font-title); }
.cert-text { max-width: 520px; margin: 0 auto; font-size: .92rem; color: var(--text-dim); }
.cert-grade { margin-top: 14px; font-size: .92rem; }
.cert-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 44px; }
.cert-sig, .cert-date { text-align: center; font-size: .8rem; color: var(--text-dim); }
.sig-line { width: 200px; border-top: 2px solid rgba(200,168,78,0.3); margin-bottom: 8px; }
.cert-seal { position: absolute; right: 34px; bottom: 30px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; border: 3px double var(--primary); color: var(--primary); font-size: 1.8rem; opacity: .55; transform: rotate(-12deg); }
.cert-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================= */
/*  FOOTER — Columnar                                           */
/* ============================================================= */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(8,11,20,0.85);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 { font-family: var(--font-title); font-weight: 700; font-size: .95rem; margin-bottom: 16px; color: var(--text); }
.footer-col p { font-size: .88rem; line-height: 1.65; margin-bottom: 8px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .88rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-brand-img { height: 32px; border-radius: 8px; margin-bottom: 12px; background: #fff; }
.footer-sponsor { color: var(--primary); font-weight: 600; font-size: .88rem; margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(200,168,78,0.08);
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: .8rem; color: var(--text-mute); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-mute); font-size: .82rem; }
.footer-links a:hover { color: var(--primary); }
/* Admin/student simple footer */
.footer-simple { border-top: 1px solid var(--border); background: rgba(8,11,20,0.85); padding: 30px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-copy { font-size: .8rem; color: var(--text-mute); }

/* ---------- AI models marquee ---------- */
.ai-marquee {
  overflow: hidden; padding: 6px 0 26px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ai-marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 80s linear infinite; }
.ai-marquee:hover .ai-marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ai-tool-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; min-width: 220px;
  background: var(--card-solid); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all .2s; flex-shrink: 0;
}
.ai-tool-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(200,168,78,0.15); }
.ai-tool-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: color-mix(in srgb, var(--b, #c8a84e) 14%, transparent); border: 1px solid color-mix(in srgb, var(--b, #c8a84e) 30%, transparent); }
.ai-tool-icon img { width: 28px; height: 28px; }
.ai-logo { width: 24px; height: 24px; color: var(--b, #c8a84e); }
.ai-tool-info { display: flex; flex-direction: column; line-height: 1.3; }
.ai-tool-info strong { font-size: .95rem; }
.ai-tool-info span { font-size: .78rem; color: var(--text-mute); }
.ai-tool-info small { font-size: .72rem; color: var(--primary); }
.ai-cats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-chip { border-color: rgba(200,168,78,0.4) !important; color: var(--primary) !important; cursor: pointer; transition: all .2s; }
.cta-chip:hover { background: rgba(200,168,78,0.1); transform: translateY(-2px); }

/* ---------- Curriculum / timetable ---------- */
.curriculum-col { display: flex; flex-direction: column; gap: 14px; }
.curriculum-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all .2s;
}
.curriculum-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.cur-day {
  flex-shrink: 0; background: var(--grad); color: #fff;
  font-family: var(--font-title); font-size: .74rem; font-weight: 700;
  padding: 5px 10px; border-radius: 100px; letter-spacing: .04em; white-space: nowrap; margin-top: 2px;
}
.curriculum-item strong { display: block; font-size: .9rem; line-height: 1.35; }
.curriculum-item span:not(.cur-day) { font-size: .8rem; color: var(--text-mute); line-height: 1.45; display: block; margin-top: 3px; }
.track-card h3 { margin-bottom: 8px; }
.track-list { list-style: none; }
.track-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(200,168,78,0.1); font-size: .88rem; color: var(--text-dim); }
.track-list li:last-child { border-bottom: none; }
.track-list li strong { margin-left: auto; color: var(--primary); white-space: nowrap; font-size: .78rem; }
.mentorship-banner {
  display: flex; align-items: center; gap: 18px; margin-top: 26px;
  background: linear-gradient(135deg, rgba(200,168,78,0.08), rgba(166,138,58,0.04));
  border-color: rgba(200,168,78,0.25); padding: 26px 30px;
}
.mentor-icon { font-size: 2rem; flex-shrink: 0; }
.mentorship-banner h3 { margin-bottom: 4px; color: var(--primary); }
.mentorship-banner p { margin: 0; font-size: .9rem; }

/* ---------- Course picker (registration) ---------- */
.course-picker { display: block; }
.core-chip { border: 1px solid rgba(16,185,129,0.35) !important; background: rgba(16,185,129,0.06) !important; }
.addon-chip {
  border: 1px solid var(--border); background: var(--card-solid); border-radius: var(--radius-sm);
  padding: 16px; display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer; transition: all .22s; position: relative;
}
.addon-chip:hover { border-color: var(--primary); }
.addon-chip input[type="checkbox"] { display: none; }
.addon-chip::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); transition: all .2s;
}
.addon-chip:has(input:checked) { border-color: var(--primary); background: rgba(200,168,78,0.06); box-shadow: 0 0 0 3px rgba(200,168,78,0.1); }
.addon-chip:has(input:checked)::after {
  border-color: var(--primary); background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23080b14' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.course-chip { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); margin-bottom: 10px; }
.course-chip:last-child { margin-bottom: 0; }
.course-chip > span.course-icon { font-size: 1.6rem; flex-shrink: 0; }
.course-info { display: flex; flex-direction: column; gap: 4px; max-width: calc(100% - 40px); }
.course-info strong { font-size: .95rem; }
.course-desc { font-size: .82rem; color: var(--text-mute); line-height: 1.45; }
.course-fee { font-size: .85rem; color: var(--primary); font-weight: 700; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.course-grid .addon-chip { margin: 0; }
.course-chip.badge { align-self: flex-start; }
.course-total-row { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid var(--border-hover); font-size: 1rem; color: var(--text); }
.course-total-row strong { font-size: 1.3rem; font-family: var(--font-title); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Admin utilities ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tabs__link { padding: .55rem 1rem; border-radius: 10px; background: rgba(200,168,78,0.08); color: var(--text-dim); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tabs__link.active { background: var(--primary); color: #fff; }
.btn-small { padding: .3rem .6rem; font-size: .8rem; border-radius: 7px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82em; }
.code-input { tab-size: 4; white-space: pre-wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pay-option input[type="radio"] { accent-color: var(--primary); }

/* =================================================== */
/* Theme toggle                                        */
/* =================================================== */
.field { display: flex; flex-direction: column; gap: 7px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-heading h1, .admin-heading h2 { margin: 0; }
.cert-body { padding: 22px; position: relative; }
.footer-note { font-size: .82rem; color: var(--text-mute); }
.apply-form { position: relative; }
.livein-only, .remote-only { display: block; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); cursor: pointer; transition: .25s;
}
.theme-toggle:hover { border-color: var(--border-hover); background: var(--grad-soft); transform: rotate(15deg); }

/* =================================================== */
/* Light theme                                        */
/* =================================================== */
body[data-theme="light"] {
  --bg: #faf8f3; --bg-2: #f0ede4;
  --card: rgba(13,27,42,0.04); --card-solid: #ffffff;
  --border: rgba(13,27,42,0.08); --border-hover: rgba(13,27,42,0.2);
  --text: #1a1a2e; --text-dim: #4a5568; --text-mute: #718096;
  --shadow: 0 18px 50px rgba(40,50,80,0.08);
}
body[data-theme="light"] .bg-grid {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,168,78,0.1), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(13,27,42,0.06), transparent 45%),
    linear-gradient(#f0ede4, #faf8f3);
}
body[data-theme="light"] .navbar.glass { background: rgba(255,255,255,0.82); }
body[data-theme="light"] .sidebar { background: #ffffff; border-right-color: rgba(0,0,0,0.06); }
body[data-theme="light"] .sidebar-brand { border-bottom-color: rgba(0,0,0,0.06); }
body[data-theme="light"] .sidebar-nav a { color: #4a5568; }
body[data-theme="light"] .sidebar-nav a:hover { color: #1a1a2e; background: rgba(200,168,78,0.06); }
body[data-theme="light"] .sidebar-nav a.active { color: #8b7425; background: rgba(200,168,78,0.1); }
body[data-theme="light"] .sidebar-footer { border-top-color: rgba(0,0,0,0.06); }
body[data-theme="light"] .card { background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); }
body[data-theme="light"] .card .card { background: #f8faff; }
body[data-theme="light"] .toast { color: #fff; }
body[data-theme="light"] .table th { background: rgba(13,27,42,0.04); }
body[data-theme="light"] .table tr:hover td { background: rgba(13,27,42,0.02); }
body[data-theme="light"] input, body[data-theme="light"] select, body[data-theme="light"] textarea {
  background: rgba(255,255,255,0.9); color: var(--text); border-color: var(--border);
}
body[data-theme="light"] .navbar:not(.glass) { background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); }
body[data-theme="light"] .footer { background: rgba(240,237,228,0.6); }
body[data-theme="light"] .type-card:hover { background: var(--grad-soft); }
body[data-theme="light"] .enroll-box, body[data-theme="light"] .alert { background: rgba(13,27,42,0.03); }

/* =================================================== */
/* Preloader                                           */
/* =================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; transition: opacity .5s, visibility .5s;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(200,168,78,0.15); border-top-color: var(--primary); border-right-color: var(--primary-2);
  animation: spin 1s linear infinite;
}
.preloader-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-title); font-weight: 700; letter-spacing: -0.02em; }
.preloader-logo .brand-logo { height: 46px; border-radius: 12px; }
.preloader-logo span { color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================== */
/* Landing floating objects — SLOWER                   */
/* =================================================== */
.float-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: -1;
  filter: blur(6px); opacity: .4; animation: floaty 24s ease-in-out infinite;
}
.float-orb.orb-a { width: 90px; height: 90px; background: radial-gradient(circle at 30% 30%, var(--primary), transparent); }
.float-orb.orb-b { width: 60px; height: 60px; background: radial-gradient(circle at 30% 30%, var(--navy-light), transparent); animation-delay: -8s; }
.float-orb.orb-c { width: 46px; height: 46px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent); animation-delay: -16s; }
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.12); }
  66% { transform: translate(-24px,20px) scale(0.94); }
}
.ai-buddy {
  position: fixed; z-index: 1; pointer-events: none;
  width: 74px; height: 74px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(200,168,78,0.85), rgba(166,138,58,0.8));
  box-shadow: 0 14px 40px rgba(200,168,78,0.3);
  animation: buddyFloat 16s ease-in-out infinite;
}
.ai-buddy svg { width: 38px; height: 38px; color: #fff; }
.ai-buddy::after {
  content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.35); filter: blur(3px);
  animation: shadowPulse 16s ease-in-out infinite;
}
@keyframes buddyFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-26px) rotate(4deg); } }
@keyframes shadowPulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity:.4; } 50% { transform: translateX(-50%) scale(.6); opacity:.25; } }

/* =================================================== */
/* Upcoming-session countdown modal                    */
/* =================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .3s;
}
body[data-theme="light"] .modal-backdrop { background: rgba(20,26,60,0.5); }
.countdown-modal {
  max-width: 460px; width: 100%; background: var(--card-solid);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px;
  text-align: center; position: relative; color: var(--text); overflow: hidden;
  box-shadow: var(--shadow);
}
.countdown-modal::before { content: ""; position: absolute; inset: 0 0 55% 0; background: var(--grad-soft); }
.countdown-modal h2 { margin-bottom: .25rem; position: relative; }
.countdown-modal .subline { color: var(--text-dim); position: relative; }
.countdown-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; position: relative; }
.cd-box { background: var(--grad); color: #fff; border-radius: 14px; padding: 14px 6px; box-shadow: 0 10px 24px rgba(200,168,78,0.2); }
.cd-box .cd-num { font-family: var(--font-title); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.cd-box .cd-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.cd-cta { display: inline-block; position: relative; }
.cd-note { font-size: .82rem; color: var(--text-mute); margin-top: 12px; position: relative; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =================================================== */
/* Newsletters                                         */
/* =================================================== */
.newsletter-box { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-box input { flex: 1; border-radius: 10px 0 0 10px; }
.newsletter-box button { border-radius: 0 10px 10px 0; }
.newsletter-success { color: var(--success); font-size: .85rem; margin-top: 8px; }

/* =================================================== */
/* Notifications bell + dropdown                       */
/* =================================================== */
.bell-wrap { position: relative; display: inline-flex; }
.bell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: var(--text); cursor: pointer; position: relative; transition: .25s;
}
.bell-btn:hover { border-color: var(--border-hover); }
.bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 9px; font-size: .68rem; font-weight: 700;
  background: var(--danger); color: #fff; display: flex; align-items: center; justify-content: center;
}
.bell-dropdown {
  position: absolute; right: 0; top: 44px; width: 330px; max-height: 380px; overflow: auto;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 120;
}
.bell-dropdown.open { display: block; animation: fadeIn .2s; }
body[data-theme="light"] .bell-dropdown, body[data-theme="light"] .notif-item:hover { color:#fff; }
.bell-dropdown h4 { padding: 10px 12px; margin: 0; }
.notif-item {
  display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none;
  color: var(--text); border-bottom: 1px solid rgba(200,168,78,0.06); font-size: .88rem;
}
.notif-item:hover { background: var(--grad-soft); }
.notif-item .ni-title { font-weight: 600; }
.notif-item .ni-time { font-size: .74rem; color: var(--text-mute); }
.notif-item.unread { background: rgba(200,168,78,0.08); }
.notif-all { display: block; text-align: center; padding: 9px; font-size: .85rem; color: var(--primary); }

/* =================================================== */
/* AI tools page                                       */
/* =================================================== */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.tool-card {
  background: var(--card-solid); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: .3s; position: relative;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 1.5rem;
}
.tool-card h3 { margin: 0; }
.tool-card .tool-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mute); }
.tool-creds {
  background: rgba(200,168,78,0.06); border: 1px dashed var(--border-hover); border-radius: 10px;
  padding: 10px 12px; font-size: .85rem; display: grid; gap: 5px;
}
.tool-creds .mono { word-break: break-all; }
.tool-lock { margin-left: auto; }
.premium-badge { position: absolute; top: 14px; right: 14px; }

/* =================================================== */
/* 2FA                                                 */
/* =================================================== */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box img { border-radius: 14px; border: 1px solid var(--border); background: #fff; padding: 8px; }
.totp-secret { letter-spacing: .12em; font-weight: 600; color: var(--primary); }

/* =================================================== */
/* Material-style polish                               */
/* =================================================== */
.material-card { transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s; }
.material-card:hover { transform: translateY(-3px); }
.stat-card { position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 64px; height: 64px; border-radius: 50%; background: var(--grad-soft); }
.banner-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  background: var(--grad); color: #fff; border-radius: 999px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(200,168,78,0.3);
}
.banner-pill i { width: 1.1em; height: 1.1em; animate: none; }
.pulse { animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 14px 34px rgba(200,168,78,0.3); }
  50% { box-shadow: 0 14px 46px rgba(200,168,78,0.5); }
}

/* =================================================== */
/* RESPONSIVE — Mobile                                 */
/* =================================================== */
@media (max-width: 900px) {
  .grid-2, .grid-3, .requirements-layout { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-menu.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 66px; left: 14px; right: 14px;
    background: var(--card-solid); border: 1px solid var(--border);
    border-radius: 14px; padding: 10px; gap: 2px;
    box-shadow: var(--shadow); z-index: 120;
  }
  .nav-menu.open .nav-links a { padding: 11px 14px; }
  .hamburger { display: flex; }
  .hero { padding-top: 100px; }
  .hero-title { font-size: 2rem; }
  .certificate { padding: 28px 18px; }
  .sig-line { width: 110px; }
  .cert-name { font-size: 1.7rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid.mini { grid-template-columns: repeat(2, 1fr); }
  .cert-bottom { flex-direction: column; gap: 22px; align-items: center; }
  .cert-seal { right: 12px; bottom: 12px; width: 54px; height: 54px; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Sidebar → off-canvas on mobile */
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: translateX(0); }
  .app-panel .main { margin-left: 0; }
  .app-panel .footer-simple { margin-left: 0; }
  .sidebar-toggle-btn { display: flex; }
  .page-container { padding-top: 60px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta { gap: 8px; }
  .meta-chip { padding: 10px 14px; font-size: .8rem; }
  .hero-title { font-size: 1.6rem; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box { flex-direction: column; }
  .newsletter-box input, .newsletter-box button { border-radius: var(--radius-sm); }
}

/* ---------- Print (certificate) ---------- */
@media print {
  body { background: #fff; color: #000; }
  .bg-grid, #particles, nav, footer, .cert-actions, .certificate-frame, .sidebar, .sidebar-toggle-btn { display: none !important; }
  .app-panel .main { margin-left: 0; }
  .certificate-frame { padding: 0; background: none; }
  .certificate { box-shadow: none; background: #fff; color: #000; outline-color: #999; }
  .certificate .cert-text, .certificate p.cert-presented, .certificate .cert-grade, .certificate .cert-num { color: #333; }
  .cert-seal { border-color: #28a745; color: #28a745; opacity: .4; }
}
