/* =========================================================
   Startup Jharkhand Incubator — Design System
   Refreshed: light sidebar, modern horizontal journey stepper,
   live registration countdown, refined marquee, professional
   dashboard surfaces. All legacy class names are preserved.
   ========================================================= */

:root {
  /* Brand */
  --primary: #187520;
  --primary-dark: #187520;
  --primary-darker: #187520;
  --primary-light: #e7fce9;
  --primary-tint: #ebf5ec;
  --accent: #187520;

  /* Admin accent (amber) */
  --admin: #b45309;
  --admin-dark: #92400e;
  --admin-light: #fef3c7;
  --admin-tint: #fffbeb;

  /* Neutrals */
  --ink: #14172b;
  --ink-soft: #3b3f54;
  --ink-muted: #6b7186;
  --line: #e7e9f2;
  --line-strong: #d9dcea;
  --bg-app: #f4f5fb;
  --bg-soft: #f6f7fb;
  --surface: #ffffff;

  /* Status */
  --success: #12855f;
  --success-bg: #e7f7ef;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #c02626;
  --danger-bg: #fdecec;
  --info: #187520;
  --info-bg: #f1fff2;

  /* Radius */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(20, 23, 43, .04);
  --shadow-sm: 0 4px 16px rgba(20, 23, 43, .05);
  --shadow-md: 0 10px 28px rgba(20, 23, 43, .08);
  --shadow-lg: 0 22px 55px rgba(20, 23, 43, .12);

  --sidebar-w: 264px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--surface);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: #c7c9d9 transparent;
  -webkit-font-smoothing: antialiased;
}
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-thumb { background: #cdd0e0; border-radius: 5px; }

h1, h2, h3, h4, h5, h6 { letter-spacing: -.015em; color: var(--ink); }
a { text-decoration: none; }

.link-muted { color: var(--ink-muted); font-size: .875rem; font-weight: 500; transition: color .15s ease; }
.link-muted:hover { color: var(--primary); }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--ink-muted) !important; }

/* ---------------- Buttons ---------------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  letter-spacing: -.01em;
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, .22);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 7px 18px rgba(79, 70, 229, .3);
  transform: translateY(-1px);
}
.btn-outline-primary { color: var(--primary); border-color: var(--line-strong); background: var(--surface); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .22); transform: translateY(-1px); }
.btn-outline-secondary { color: var(--ink-soft); border-color: var(--line-strong); }
.btn-outline-secondary:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--line-strong); }
.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-success:hover { background-color: #0e6f4f; border-color: #0e6f4f; }
.btn-lg { padding: 12px 22px; border-radius: var(--radius-md); }
.btn-sm { border-radius: 8px; }

/* Admin amber button */
.auth-body-admin .btn-primary, .btn-admin {
  background-color: var(--admin); border-color: var(--admin);
  box-shadow: 0 4px 12px rgba(180, 83, 9, .22); color: #fff;
}
.auth-body-admin .btn-primary:hover, .btn-admin:hover {
  background-color: var(--admin-dark); border-color: var(--admin-dark);
  box-shadow: 0 7px 18px rgba(180, 83, 9, .3);
}

/* Loading spinner */
.btn.is-loading { position: relative; pointer-events: none; opacity: .85; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  top: 50%; left: 50%; margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  border-radius: 50%; animation: btn-spin .6s linear infinite;
}
.btn-outline-secondary.is-loading::after,
.btn-outline-primary.is-loading::after { border-color: rgba(79, 70, 229, .25); border-top-color: var(--primary); }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  padding: 10px 14px;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #a3a8bd; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, .13);
}
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); }
.form-text { color: var(--ink-muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); border-color: var(--primary); }
.input-group-password .form-control { border-right: none; }
.input-group-password .toggle-password { border: 1.5px solid var(--line); border-left: none; background: #fff; color: var(--ink-muted); }

.alert { border-radius: var(--radius-md); border: none; font-size: .92rem; padding: 13px 16px; }
.alert-danger { background: var(--danger-bg); color: #9c1c1c; }
.alert-success { background: var(--success-bg); color: #0c6247; }
.alert-info { background: var(--info-bg); color: #187520; }
.alert-warning { background: var(--warning-bg); color: #8a4a08; }

/* ---------------- Auth split-screen ---------------- */
.auth-body { background: #fff; }
.auth-split { min-height: 100vh; display: flex; }
.auth-brand-panel {
  flex: 0 0 44%; max-width: 580px;
  background: linear-gradient(155deg, #187520 0%, #187520 52%, #187520 100%);
  color: #fff; padding: 56px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-brand-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); top: -200px; right: -170px;
}
.auth-brand-panel::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, .05); bottom: -140px; left: -110px;
}
.auth-brand-inner { position: relative; z-index: 1; }
.auth-brand-logo { color: #fff; font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 60px; }
.auth-brand-title { font-weight: 800; font-size: 2.05rem; line-height: 1.22; margin-bottom: 16px; color: #fff; }
.auth-brand-subtitle { color: rgba(255, 255, 255, .86); font-size: 1.02rem; margin-bottom: 34px; }
.auth-brand-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.auth-brand-points li { color: rgba(255, 255, 255, .93); font-size: .96rem; display: flex; align-items: flex-start; gap: 11px; }
.auth-brand-points i { color: #a5f3d0; margin-top: 2px; font-size: 1.05rem; }
.auth-brand-footer { position: relative; z-index: 1; color: rgba(255, 255, 255, .62); font-size: .82rem; }

.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-form-inner-wide { max-width: 720px; }
.auth-heading h1 { font-weight: 800; font-size: 1.75rem; margin-bottom: 6px; }
.auth-heading p { color: var(--ink-muted); margin-bottom: 28px; }
.auth-icon-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.auth-icon-badge-admin { background: var(--admin-light); color: var(--admin); }
.auth-switch { text-align: center; margin-top: 20px; margin-bottom: 0; color: var(--ink-muted); font-size: .92rem; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.otp-input { font-size: 1.6rem; letter-spacing: 10px; text-align: center; }

.auth-body-admin .auth-brand-panel { background: linear-gradient(155deg, #1f2937 0%, #78350f 70%, #b45309 130%); }
.auth-body-admin .auth-brand-points i { color: #fcd34d; }

@media (max-width: 900px) {
  .auth-split { flex-direction: column; }
  .auth-brand-panel { flex: none; max-width: none; padding: 32px 26px; }
  .auth-brand-title { font-size: 1.55rem; }
  .auth-brand-points { display: none; }
  .auth-brand-logo { margin-bottom: 20px; }
  .auth-form-panel { padding: 34px 22px; }
}

/* ---------------- Registration wizard ---------------- */
.wizard-progress { display: flex; align-items: center; margin-bottom: 32px; }
.wizard-step-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.wizard-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; border: 2px solid var(--line); transition: all .2s ease;
}
.wizard-step-label { font-size: .78rem; color: var(--ink-muted); font-weight: 600; }
.wizard-step-dot.active .wizard-step-num { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.wizard-step-dot.active .wizard-step-label { color: var(--primary); }
.wizard-step-dot.completed .wizard-step-num { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.wizard-step-dot.completed .wizard-step-num::before { content: "\2713"; }
.wizard-step-line { flex: 1; height: 2px; background: var(--line); margin: 0 8px 22px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.wizard-review-box { background: var(--bg-soft); border-radius: var(--radius-md); padding: 16px; }

/* ---------------- Section headings ---------------- */
.section-title { font-weight: 800; margin-bottom: 8px; }
.section-subtitle { color: var(--ink-muted); margin-bottom: 40px; }

/* ---------------- Content cards ---------------- */
.event-card, .mentor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden; height: 100%;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  background: var(--surface);
}
.event-card:hover, .mentor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }

.badge-status-upcoming { background: var(--info-bg); color: var(--info); }
.badge-status-ongoing { background: var(--success-bg); color: var(--success); }
.badge-status-past { background: #eef0f5; color: #7c8195; }

.mentor-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }

/* ---------------- Dashboard layout ---------------- */
.dashboard-body { background: var(--bg-app); overflow-x: hidden; }

/* Codinglab-style light sidebar: logo tile + search + solid active item + pinned logout */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w); max-width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  color: var(--ink-soft);
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1030;
  display: flex; flex-direction: column; overflow: visible;
  border-right: 1px solid var(--line);
  transition: width .22s ease, min-width .22s ease, max-width .22s ease, flex-basis .22s ease;
}

/* Brand header: logo tile + name/subtitle + collapse toggle */
.sidebar-brand {
  padding: 18px 16px; display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto; border-bottom: 1px solid var(--line); position: relative;
  color: var(--ink); text-decoration: none; min-height: 79px;
}
.sidebar-logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 12px rgba(79,70,229,.28);
}
.sidebar-admin .sidebar-logo { background: linear-gradient(135deg, var(--admin), #d97706); box-shadow: 0 4px 12px rgba(180,83,9,.28); }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; }
.sidebar-brand-name { font-weight: 800; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.sidebar-brand-sub { font-size: .72rem; color: var(--ink-muted); font-weight: 500; white-space: nowrap; }

.sidebar-toggle {
  position: absolute; right: -13px; top: 27px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; padding: 0;
  background: var(--primary); color: #fff; border: 2.5px solid var(--surface);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  font-size: .82rem; box-shadow: 0 2px 8px rgba(20,23,43,.22); transition: transform .22s ease;
}
.sidebar-admin .sidebar-toggle { background: var(--admin); }
@media (min-width: 992px) { .sidebar-toggle { display: flex; } }
body.sidebar-collapsed .sidebar-toggle { transform: rotate(180deg); }

/* Search box */
.sidebar-search { padding: 14px 14px 4px; flex: 0 0 auto; }
.sidebar-search-inner { position: relative; display: flex; align-items: center; }
.sidebar-search i { position: absolute; left: 13px; color: var(--ink-muted); font-size: .95rem; pointer-events: none; transition: left .2s ease; }
.sidebar-search input {
  width: 100%; border: 1.5px solid var(--line); background: var(--bg-soft);
  border-radius: 10px; padding: 9px 12px 9px 37px; font-size: .88rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sidebar-search input::placeholder { color: #9aa0b4; }
.sidebar-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.sidebar-admin .sidebar-search input:focus { border-color: var(--admin); box-shadow: 0 0 0 3px rgba(180,83,9,.1); }

.sidebar-nav-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 10px 12px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.sidebar-nav-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.sidebar .nav-link {
  color: var(--ink-soft);
  padding: 11px 13px; border-radius: 10px; margin-bottom: 4px;
  font-size: .92rem; font-weight: 500;
  display: flex; align-items: center; gap: 14px;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease;
  white-space: nowrap; position: relative;
}
.sidebar .nav-link i { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; color: var(--ink-muted); transition: color .14s ease; }
.sidebar .nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.sidebar .nav-link:hover i { color: var(--ink-soft); }
/* Solid filled active item (matches the reference design) */
.sidebar .nav-link.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(79,70,229,.32); }
.sidebar .nav-link.active i { color: #fff; }
.sidebar-admin .nav-link.active { background: var(--admin); color: #fff; box-shadow: 0 6px 16px rgba(180,83,9,.32); }
.sidebar-admin .nav-link.active i { color: #fff; }

/* Divider + pinned logout at the bottom */
.sidebar-footer { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10px 12px 14px; }
.sidebar-logout-pin {
  margin: 0; padding: 11px 13px; border-radius: 10px;
  color: var(--danger); font-weight: 600;
  display: flex; align-items: center; gap: 14px;
  transition: background .14s ease; white-space: nowrap; text-decoration: none;
}
.sidebar-logout-pin i { color: var(--danger); font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-logout-pin:hover { background: var(--danger-bg); color: var(--danger); }

/* Collapsed (icon-only) sidebar — desktop only */
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar { width: 82px; min-width: 82px; max-width: 82px; flex-basis: 82px; }
  body.sidebar-collapsed .main-content { margin-left: 82px; width: calc(100% - 82px); }
  body.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 18px 8px; }
  body.sidebar-collapsed .sidebar-brand-text,
  body.sidebar-collapsed .sidebar-label { opacity: 0; width: 0; overflow: hidden; visibility: hidden; margin: 0; }
  body.sidebar-collapsed .sidebar-search input { padding-left: 12px; color: transparent; }
  body.sidebar-collapsed .sidebar-search input::placeholder { color: transparent; }
  body.sidebar-collapsed .sidebar-search i { left: 50%; transform: translateX(-50%); }
  body.sidebar-collapsed .sidebar .nav-link,
  body.sidebar-collapsed .sidebar-logout-pin { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
  body.sidebar-collapsed .sidebar .nav-link i,
  body.sidebar-collapsed .sidebar-logout-pin i { width: auto; }
}

.main-content { min-height: 100vh; margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); overflow-x: hidden; transition: margin-left .22s ease, width .22s ease; }

.navbar.dashboard-topbar {
  height: 64px;
  background: rgba(255, 255, 255, .85) !important;
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
}
.navbar.dashboard-topbar h5 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
@media (min-width: 992px) { .navbar.dashboard-topbar { position: sticky; top: 0; z-index: 1020; } }

.main-content > main { animation: content-fade-in .35s ease; }
@keyframes content-fade-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
}

/* Offcanvas mobile menu adopts sidebar styling */
.offcanvas .nav-link { color: var(--ink-soft); padding: 11px 14px; border-radius: 10px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.offcanvas .nav-link:hover { background: var(--bg-soft); }
.offcanvas .nav-link.text-danger { color: var(--danger) !important; }

/* ---------------- Stat boxes ---------------- */
.stat-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  height: 100%;
}
.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.stat-box .num { font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.15; }
.stat-box-compact { padding: 16px; }
.stat-box-compact .num { font-size: 1.4rem; }

.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 14px; }
.stat-icon-compact { width: 34px; height: 34px; font-size: 1rem; margin-bottom: 10px; border-radius: 9px; }
.stat-icon-primary { background: var(--primary-light); color: var(--primary); }
.stat-icon-success { background: var(--success-bg); color: var(--success); }
.stat-icon-warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon-danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon-info { background: var(--info-bg); color: var(--info); }

.breakdown-row { margin-bottom: 14px; }
.breakdown-row:last-child { margin-bottom: 0; }
.breakdown-bar-track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.breakdown-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s ease; }
.breakdown-bar-fill-amber { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* ---------------- Table cards ---------------- */
.table-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); transition: box-shadow .2s ease;
}
.table-card:hover { box-shadow: var(--shadow-sm); }
.table-card table { margin-bottom: 0; }
.table-card thead th {
  border-bottom: 1.5px solid var(--line); color: var(--ink-muted);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  padding-top: 4px;
}
.table-card tbody tr { transition: background .12s ease; }
.table-card tbody tr:hover { background: var(--bg-soft); }
.table-card td, .table-card th { vertical-align: middle; }

/* ---------------- Timeline items ---------------- */
.timeline-item { border-left: 3px solid var(--primary); padding-left: 16px; margin-bottom: 18px; }
.timeline-item-actionable {
  padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--bg-soft); border-left-width: 3px;
  transition: background .15s ease, transform .15s ease;
  margin-bottom: 12px;
}
.timeline-item-actionable:hover { background: var(--primary-tint); transform: translateX(2px); }
.timeline-item-actionable:last-child { margin-bottom: 0; }
.badge-type-event { background: var(--primary-light); color: var(--primary-darker); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.badge-type-program { background: var(--warning-bg); color: var(--warning); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 56px 24px; color: var(--ink-muted); }
.empty-state i { font-size: 2.4rem; color: var(--primary); opacity: .5; margin-bottom: 14px; display: block; }
.empty-state h6 { color: var(--ink); font-weight: 700; margin-bottom: 6px; }

.badge { font-weight: 600; border-radius: 999px; padding: 5px 11px; letter-spacing: -.01em; }

/* ---------------- Announcements marquee ---------------- */
.marquee-card {
  background: linear-gradient(120deg, #187620 0%, #187620 55%, #187620 100%);
  border-radius: var(--radius-md);
  color: #fff; padding: 0; overflow: hidden; position: relative;
  display: flex; align-items: stretch; box-shadow: var(--shadow-sm);
}
.marquee-badge {
  flex: 0 0 auto; background: rgba(255, 255, 255, .16);
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 0 18px;
}
.marquee-badge i { font-size: .95rem; }
.marquee-track-wrap { flex: 1; overflow: hidden; position: relative; padding: 13px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.marquee-track { display: flex; gap: 52px; white-space: nowrap; animation: marquee-scroll 34s linear infinite; width: max-content; padding-left: 24px; }
.marquee-track-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-size: .9rem; }
.marquee-item strong { font-weight: 700; }
.marquee-item a { color: #fff; text-decoration: underline; text-underline-offset: 2px; opacity: .95; }
.marquee-item a:hover { opacity: 1; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- Insight / KPI chips ---------------- */
.insight-chip { display: flex; align-items: center; gap: 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 15px; font-size: .88rem; height: 100%; }
.insight-chip i { font-size: 1.15rem; flex-shrink: 0; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-flat { color: var(--ink-muted); }

/* ---------------- Team member cards ---------------- */
.team-member-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; background: var(--surface); height: 100%; transition: box-shadow .2s ease, border-color .2s ease; }
.team-member-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.team-role-badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------- Valuation calculator ---------------- */
.valuation-result-card { background: linear-gradient(135deg, #187520, #1cda2c); border-radius: var(--radius-xl); color: #fff; padding: 32px; box-shadow: var(--shadow-md); }
.valuation-result-card h2, .valuation-result-card h3 { color: #fff; }
.valuation-method-row { border-bottom: 1px solid var(--line); padding: 12px 0; }
.valuation-method-row:last-child { border-bottom: none; }
.valuation-disclaimer { background: var(--warning-bg); border: 1px solid #fcd9a4; color: #8a4a08; border-radius: var(--radius-md); padding: 14px 16px; font-size: .85rem; }

/* ---------------- Program cards ---------------- */
.program-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); height: 100%; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.program-tag { background: var(--primary-light); color: var(--primary); font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }

/* ---------------- Certificate ---------------- */
.certificate-preview-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.certificate-preview-wrap img { width: 100%; display: block; }
.cert-status-badge-active { background: var(--success-bg); color: var(--success); }
.cert-status-badge-revoked { background: var(--danger-bg); color: var(--danger); }

/* =========================================================
   Startup Journey — modern horizontal stepper
   Rebuilt with a real connector track (no z-index hacks) so
   the line always renders behind the dots and a progress
   fill spans completed steps.
   ========================================================= */
.journey-stepper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
/* Base connector track sits centered on the dot row */
.journey-stepper::before,
.journey-stepper::after {
  content: "";
  position: absolute;
  top: 19px; height: 4px; border-radius: 999px;
  left: calc((100% / (var(--steps, 5) * 2)));
  right: calc((100% / (var(--steps, 5) * 2)));
}
.journey-stepper::before { background: var(--line); }
.journey-stepper::after { background: linear-gradient(90deg, var(--primary), var(--accent)); width: var(--progress, 0); right: auto; transition: width .5s ease; }

.journey-step {
  position: relative; z-index: 1;
  flex: 1 1 0; min-width: 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.journey-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: .92rem; font-weight: 700; color: var(--ink-muted);
  transition: all .25s ease; box-shadow: 0 1px 2px rgba(20, 23, 43, .05);
}
.journey-step.done .journey-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .28); }
.journey-step.current .journey-dot { background: #fff; border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-light); transform: scale(1.06); }
.journey-label { font-size: .78rem; color: var(--ink-muted); font-weight: 600; line-height: 1.25; max-width: 108px; }
.journey-step.done .journey-label, .journey-step.current .journey-label { color: var(--ink); }
.journey-step.current .journey-label { color: var(--primary-darker); }

@media (max-width: 640px) {
  .journey-stepper { overflow-x: auto; gap: 4px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .journey-step { flex: 0 0 88px; }
  .journey-stepper::before, .journey-stepper::after { display: none; }
  .journey-label { font-size: .72rem; }
}

/* Legacy .stage-stepper kept as a graceful fallback (unused by new markup) */
.stage-stepper { display: flex; align-items: flex-start; justify-content: space-between; }
.stage-step { flex: 1; text-align: center; position: relative; }
.stage-step .stage-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: .78rem; font-weight: 700; color: var(--ink-muted); }
.stage-step.done .stage-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.stage-step.current .stage-dot { background: #fff; border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.stage-step-label { font-size: .74rem; color: var(--ink-muted); font-weight: 600; }

/* =========================================================
   Registration countdown component
   ========================================================= */
.countdown-box {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--bg-soft); padding: 12px 14px;
}
.countdown-box.is-open { background: var(--primary-tint); border-color: #dfe1fb; }
.countdown-box.is-soon { background: var(--warning-bg); border-color: #fcd9a4; }
.countdown-box.is-closed { background: #f1f2f6; border-color: var(--line); }

.countdown-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-muted); margin-bottom: 8px;
}
.countdown-box.is-open .countdown-label { color: var(--primary-dark); }
.countdown-box.is-soon .countdown-label { color: var(--warning); }

.countdown-timer { display: flex; gap: 7px; }
.countdown-unit {
  flex: 1; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 4px; min-width: 0;
}
.countdown-box.is-open .countdown-unit { border-color: #dfe1fb; }
.countdown-num { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-unit-label { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-top: 2px; }
.countdown-static { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.countdown-box.is-closed .countdown-static { color: var(--ink-muted); }

/* Registration status pill */
.reg-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: -.01em; }
.reg-pill i { font-size: .8rem; }
.reg-pill-open { background: var(--success-bg); color: var(--success); }
.reg-pill-soon { background: var(--warning-bg); color: var(--warning); }
.reg-pill-closed { background: #eef0f5; color: #7c8195; }

/* Event/program meta row */
.meta-line { display: flex; align-items: center; gap: 7px; color: var(--ink-muted); font-size: .84rem; }
.meta-line i { color: var(--primary); font-size: .95rem; flex-shrink: 0; }
.event-date-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-tint); border: 1px solid #e2e4fb; border-radius: 10px;
  padding: 8px 12px; font-size: .85rem; color: var(--ink-soft); font-weight: 500;
}
.event-date-chip i { color: var(--primary); }
.event-date-chip strong { color: var(--ink); font-weight: 700; }

/* ---------------- Nav pills (events tabs) ---------------- */
.nav-pills .nav-link { color: var(--ink-muted); font-weight: 600; border-radius: 999px; padding: 7px 18px; font-size: .9rem; border: 1px solid transparent; }
.nav-pills .nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-pills .nav-link.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .22); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .main-content > main { animation: none; }
  .btn, .stat-box, .event-card, .mentor-card, .program-card, .timeline-item-actionable { transition: none; }
  .journey-stepper::after { transition: none; }
}
