/* Eduprop — design layer v3
   Keeps the original indigo / violet / sky palette (tokens live in the inline <style>)
   and adds depth: layered surfaces, a dark navigation rail, spotlight cards, charts,
   skeleton loading, a command palette and scroll reveals. */

/* ───────────────────────── Icon font ───────────────────────── */
.ph, .ph-bold, .ph-fill {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.14em;
  flex-shrink: 0;
}
.btn .ph, .btn .ph-bold, .btn .ph-fill { font-size: 1.18em; }
.theme-toggle-btn .ph { font-size: 18px; }

/* ───────────────────────── Base polish ───────────────────────── */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rail-1: #0F1433;
  --rail-2: #0A0D24;
  --hairline: rgba(99, 102, 241, 0.14);
}
[data-theme="dark"] { --hairline: rgba(129, 140, 248, 0.16); }

body { font-feature-settings: 'cv11' 1, 'ss03' 1; }
h1, h2, h3, h4 { font-feature-settings: 'ss01' 1; }
.stat-card-val, .impact-kpi-val, .dash-aside-val, table.data-table td { font-variant-numeric: tabular-nums; }

* { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.35) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.55); background-clip: content-box; border: 2px solid transparent; }

:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(99, 102, 241, 0.28); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn { border-radius: 11px; letter-spacing: 0.005em; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary {
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-secondary { background: var(--surface); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }

/* ───────────────────────── Navigation rail ───────────────────────── */
.sidebar {
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgba(124, 58, 237, 0.2), transparent 60%),
    linear-gradient(180deg, var(--rail-1), var(--rail-2));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #B6BEE0;
  position: sticky;
}
.sidebar .brand-title { color: #fff; }
.sidebar .brand-sub { color: #8E98D6; }
.sidebar .nav-heading { color: #6F7BB8; letter-spacing: 0.14em; }
.sidebar-nav { gap: 2px; }
.nav-btn {
  position: relative;
  color: #B6BEE0;
  border-radius: 11px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.nav-btn .ph, .nav-btn .ph-bold { font-size: 19px; color: #7C88C8; transition: color 0.2s ease, transform 0.25s var(--ease-out); }
.nav-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; transform: translateX(2px); }
.nav-btn:hover .ph { color: #C7CCFF; transform: scale(1.08); }
.nav-btn.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.42), rgba(99, 102, 241, 0.08));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.28);
}
.nav-btn.active::before {
  content: '';
  position: absolute; left: -1rem; top: 22%; bottom: 22%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #A5B4FC, #7C3AED);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.9);
}
.nav-btn.active .ph { color: #C7D2FE; }

.sidebar .user-badge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #E6E9FF;
  backdrop-filter: blur(8px);
}
.sidebar .user-badge-card .text-muted, .sidebar .user-badge-card div[style*="text-muted"] { color: #8E98D6 !important; }
.sidebar .btn-secondary { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #D5D9F5; box-shadow: none; }
.sidebar .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sidebar .theme-toggle-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #D5D9F5; }
.user-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 6px 14px -4px rgba(79, 70, 229, 0.7); }

/* ───────────────────────── Top bar ───────────────────────── */
.top-header {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.main-wrapper {
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(99, 102, 241, 0.1), transparent 70%),
    radial-gradient(700px 400px at -10% 30%, rgba(14, 165, 233, 0.06), transparent 70%),
    var(--bg);
}
[data-theme="dark"] .main-wrapper {
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(700px 400px at -10% 30%, rgba(14, 165, 233, 0.08), transparent 70%),
    var(--bg);
}
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-width: 230px;
  padding: 0.48rem 0.6rem 0.48rem 0.8rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
}
.cmdk-trigger:hover { border-color: var(--brand-border); color: var(--text-primary); background: var(--surface); }
.cmdk-trigger .ph { font-size: 16px; }
.cmdk-trigger span { flex: 1; text-align: left; }
@media (max-width: 1100px) { .cmdk-trigger { min-width: 0; } .cmdk-trigger span, .cmdk-trigger kbd { display: none; } }
kbd {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* ───────────────────────── Dashboard hero ───────────────────────── */
.dash-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  padding: 1.9rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(56, 189, 248, 0.45), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(167, 139, 250, 0.55), transparent 60%),
    linear-gradient(125deg, #3730A3 0%, #4F46E5 48%, #6D28D9 100%);
  box-shadow: 0 24px 50px -24px rgba(79, 70, 229, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.dash-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
  opacity: 0.55;
  pointer-events: none;
}
.dash-hero > * { position: relative; }
.dash-hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0.5rem 0 0.35rem; }
.dash-hero p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.3rem; max-width: 46ch; }
.dash-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: capitalize;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
}
.dash-hero .btn-primary { background: #fff; color: #3730A3; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5); }
.dash-hero .btn-primary::after { display: none; }
.dash-hero .btn-primary:hover { background: #EEF2FF; }
.dash-hero-aside {
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15rem;
  padding: 1.1rem 1.25rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  color: #fff;
}
.dash-aside-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.dash-aside-val { font-family: var(--font-heading); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.dash-aside-val::after { content: " so'm"; font-size: 15px; font-weight: 500; opacity: 0.75; letter-spacing: 0; }
.dash-aside-trend { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 12.5px; font-weight: 600; color: #BBF7D0; }
.dash-aside-trend.down { color: #FECACA; }
.dash-aside .sparkline, .dash-hero-aside .sparkline { color: #fff; margin-top: 0.5rem; }
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; padding: 1.4rem 1.25rem; border-radius: 18px; gap: 1.25rem; }
  .dash-hero h1 { font-size: 24px; }
}

/* ───────────────────────── Cards, KPI tiles ───────────────────────── */
.card, .stat-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -18px rgba(15, 23, 42, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.card::before, .stat-card::before, .impact-kpi-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(99, 102, 241, 0.11), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover::before, .stat-card:hover::before, .impact-kpi-card:hover::before { opacity: 1; }
.stat-card:hover { border-color: var(--brand-border); transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(79, 70, 229, 0.45); }
.stat-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #6366F1, #8B5CF6, #38BDF8);
  opacity: 0.85;
  border-radius: 16px 16px 0 0;
}
.stat-card { padding-right: 4.2rem; }
/* five KPI tiles: 3 + 2 rows that always fill the width */
@media (min-width: 760px) {
  .stat-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat-grid:has(> :nth-child(5):last-child) > :nth-child(-n+3) { grid-column: span 2; }
  .stat-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1500px) {
  .stat-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat-grid:has(> :nth-child(5):last-child) > * { grid-column: auto !important; }
}
.stat-card-label { letter-spacing: 0.06em; font-size: 11.5px; }
.stat-card-val { font-size: 28px; font-weight: 800; }
.stat-ico {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.35s var(--ease-out);
}
.stat-card:hover .stat-ico { transform: rotate(-6deg) scale(1.08); }
.stat-ico.t-indigo { background: var(--brand-subtle); color: var(--brand); }
.stat-ico.t-green  { background: var(--green-bg);  color: var(--green); }
.stat-ico.t-amber  { background: var(--amber-bg);  color: var(--amber); }
.stat-ico.t-rose   { background: var(--red-bg);    color: var(--red); }
.stat-ico.t-sky    { background: var(--blue-bg);   color: var(--blue); }
.stat-ico.t-violet { background: var(--purple-bg); color: var(--purple); }
.stat-badge, .badge { border-radius: 999px; }
.badge-green::before, .badge-amber::before, .badge-red::before, .badge-blue::before, .badge-purple::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; flex-shrink: 0;
}
.card-title { font-weight: 800; }

/* ───────────────────────── Charts ───────────────────────── */
.area-chart-wrap { width: 100%; overflow: hidden; }
.area-chart { width: 100%; height: auto; max-height: 300px; display: block; overflow: visible; }
.ac-grid { stroke: var(--border); stroke-dasharray: 3 5; stroke-width: 1; }
.ac-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: acDraw 1.4s var(--ease-out) 0.15s forwards; filter: drop-shadow(0 6px 10px rgba(99, 102, 241, 0.35)); }
.ac-area { opacity: 0; animation: acFade 0.9s ease 0.5s forwards; }
@keyframes acDraw { to { stroke-dashoffset: 0; } }
@keyframes acFade { to { opacity: 1; } }
.ac-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; transition: r 0.2s var(--ease-out); }
.ac-drop { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.2s ease; }
.ac-val { fill: var(--text-primary); font: 700 12.5px var(--font-body); opacity: 0; transition: opacity 0.2s ease; }
.ac-x { fill: var(--text-muted); font: 600 11.5px var(--font-body); }
.ac-point.best .ac-val, .ac-point:hover .ac-val, .ac-point:hover .ac-drop { opacity: 1; }
.ac-point:hover .ac-dot { r: 7; }
.ac-point.best .ac-dot { fill: var(--brand); }
.ac-point { cursor: pointer; }
.sparkline { display: block; overflow: visible; }

/* ───────────────────────── Tables ───────────────────────── */
table.data-table th { position: sticky; top: 0; background: var(--surface-subtle); z-index: 1; }
table.data-table tbody tr { transition: background 0.15s ease; }
table.data-table tr:hover td { background: linear-gradient(90deg, var(--brand-subtle), transparent 70%); }
table.data-table tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand-light); }

/* ───────────────────────── Modal & toasts ───────────────────────── */
.modal-backdrop { backdrop-filter: blur(7px) saturate(120%); background: rgba(10, 13, 36, 0.55); }
.modal-box { border-radius: 20px; animation: modalIn 0.38s var(--ease-out); box-shadow: 0 40px 80px -30px rgba(10, 13, 36, 0.7), 0 0 0 1px var(--hairline); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close-btn { border-radius: 10px; }
.toast-item { backdrop-filter: blur(10px); border-radius: 12px; }

/* ───────────────────────── Skeleton loading ───────────────────────── */
.sk-wrap { display: grid; gap: 1rem; }
.sk {
  border-radius: 12px;
  background: linear-gradient(100deg, var(--surface-subtle) 30%, color-mix(in srgb, var(--surface-subtle) 40%, var(--surface)) 50%, var(--surface-subtle) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-title { height: 30px; width: 38%; }
.sk-line { height: 14px; }
.sk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.sk-card { height: 108px; border-radius: 16px; }
.sk-panel { height: 280px; border-radius: 16px; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ───────────────────────── Entrance motion ───────────────────────── */
.rise { animation: rise 0.6s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--rv, 0ms); }
.rv.rv-in { opacity: 1; transform: none; }

/* ───────────────────────── Command palette ───────────────────────── */
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: start center; padding: 12vh 1rem 1rem;
  background: rgba(10, 13, 36, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.15s ease;
}
.cmdk-backdrop.in { opacity: 1; }
.cmdk {
  width: 100%; max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(10, 13, 36, 0.8), 0 0 0 1px var(--hairline);
  overflow: hidden;
  transform: translateY(-8px) scale(0.985);
  transition: transform 0.25s var(--ease-out);
}
.cmdk-backdrop.in .cmdk { transform: none; }
.cmdk-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--border); }
.cmdk-head .ph { font-size: 20px; color: var(--brand); }
.cmdk-input { flex: 1; background: none; border: 0 !important; outline: none; box-shadow: none !important; font-size: 16px; color: var(--text-primary); padding: 0; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 0.4rem 0.5rem 0.6rem; }
.cmdk-group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); padding: 0.7rem 0.6rem 0.3rem; }
.cmdk-item { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.55rem 0.6rem; border-radius: 11px; text-align: left; color: var(--text-primary); font-size: 14px; }
.cmdk-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-subtle); color: var(--text-secondary); font-size: 17px; flex-shrink: 0; transition: var(--transition); }
.cmdk-title { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-hint { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.cmdk-item.active { background: var(--brand-subtle); }
.cmdk-item.active .cmdk-ico { background: var(--brand-gradient); color: #fff; }
.cmdk-empty { text-align: center; padding: 2.2rem 1rem; color: var(--text-muted); display: grid; gap: 0.5rem; justify-items: center; }
.cmdk-empty .ph { font-size: 28px; opacity: 0.6; }
.cmdk-foot { display: flex; gap: 1.1rem; padding: 0.6rem 1rem; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-muted); background: var(--surface-subtle); }
.cmdk-foot kbd { margin-right: 3px; }
@media (max-width: 600px) { .cmdk-backdrop { padding-top: 6vh; } .cmdk-foot { display: none; } }

/* ───────────────────────── Landing ───────────────────────── */
.landing-navbar { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.landing-nav-link { position: relative; }
.landing-nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.landing-nav-link:hover::after { transform: scaleX(1); }
.landing-nav-link .ph { font-size: 15px; opacity: 0.75; }
.landing-wrapper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.7;
}
.hero-headline { font-size: clamp(34px, 4.4vw, 58px); font-weight: 900; line-height: 1.07; letter-spacing: -0.04em; }
.gradient-text { background-size: 200% 100%; animation: gradShift 6s ease-in-out infinite alternate; background-image: linear-gradient(100deg, #4F46E5, #7C3AED 40%, #0EA5E9 80%); }
@keyframes gradShift { to { background-position: 100% 0; } }
.hero-chip .ph { font-size: 14px; }
.impact-kpi-card, .landing-feature-card, .pricing-card { position: relative; border-radius: 18px; }
.impact-kpi-card:hover { box-shadow: 0 22px 40px -24px rgba(79, 70, 229, 0.5); }
.impact-kpi-icon, .feature-icon-badge { border-radius: 14px; font-size: 24px; }
.guarantee-banner { position: relative; overflow: hidden; }
.guarantee-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
  background-size: 24px 24px; opacity: 0.6;
}
.guarantee-banner > * { position: relative; }
.pricing-feature-item .ph-bold, .pricing-feature-item .ph { color: var(--green); margin-top: 0.2em; }
.pricing-card:hover { box-shadow: 0 30px 50px -30px rgba(79, 70, 229, 0.55); }
.ticker-item .ph, .ticker-item .ph-bold { color: var(--brand-light); margin-right: 0.15rem; }

/* The scrolling text used to slide under a translucent badge. Give the badge an
   opaque body and a soft fade behind it so the marquee tucks away cleanly. */
.ticker-wrap { padding: 0.7rem 0; }
.ticker-badge-live {
  position: relative;
  z-index: 3;
  margin-left: 1.25rem;
  margin-right: 1.5rem;
  padding: 0.38rem 0.95rem;
  background: linear-gradient(var(--brand-subtle), var(--brand-subtle)), var(--surface);
  border-radius: 999px;
}
.ticker-badge-live::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -0.8rem -3.4rem -0.8rem -1.25rem;
  background: linear-gradient(90deg, var(--surface) 0, var(--surface) calc(100% - 3.6rem), transparent 100%);
  pointer-events: none;
}
.ticker-wrap::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 72px;
  background: linear-gradient(270deg, var(--surface), transparent);
  pointer-events: none;
  z-index: 2;
}
.ticker-badge-live .pulse-dot { flex-shrink: 0; }

/* ───────────────────────── Accounts / credentials ───────────────────────── */
.sidebar-center {
  display: flex; align-items: center; gap: 5px;
  margin-top: 3px; font-size: 11px; font-weight: 600;
  color: #A5B4FC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-center .ph { font-size: 12px; }
.cred-wrap { display: grid; gap: 0.85rem; }
.cred-card {
  border: 1px solid var(--brand-border);
  background: linear-gradient(180deg, var(--brand-subtle), transparent 140%);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: grid; gap: 0.5rem;
}
.cred-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.15rem; }
.cred-role {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.18rem 0.55rem; border-radius: 999px; background: var(--brand); color: #fff;
}
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 13px; color: var(--text-muted); }
.cred-row code {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  background: var(--surface); border: 1px dashed var(--brand-border);
  padding: 0.28rem 0.65rem; border-radius: 8px; user-select: all;
}
.cred-site { font-size: 12.5px; color: var(--text-muted); text-align: center; padding-top: 0.25rem; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; display: grid; gap: 0.4rem; justify-items: center; }
.empty-state > .ph { font-size: 38px; color: var(--brand-light); opacity: 0.8; }
.empty-state h3 { font-size: 17px; }

/* ───────────────────────── Brand: EduProp CRM (navy + gold emblem) ───────────────────────── */
:root {
  --gold: #D4A62A;
  --gold-light: #F3D77C;
  --gold-dark: #A87F14;
  --navy: #0B1B4D;
  --navy-deep: #07122F;
  --gold-gradient: linear-gradient(135deg, #F3D77C 0%, #D4A62A 45%, #A87F14 100%);
}

.brand-logo-icon {
  background: none !important;
  border-radius: 50%;
  box-shadow: 0 8px 22px -8px rgba(212, 166, 42, 0.65), 0 0 0 1px rgba(212, 166, 42, 0.35);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  flex-shrink: 0;
}
.brand-logo-icon img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-badge:hover .brand-logo-icon {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 12px 28px -8px rgba(212, 166, 42, 0.85), 0 0 0 1px rgba(212, 166, 42, 0.6);
}
.brand-title { letter-spacing: -0.035em; }
.brand-title-accent {
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent;
  font-style: normal;
}
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  white-space: nowrap;
}
.sidebar .brand-sub { color: var(--gold-light); opacity: 0.85; }
[data-theme="dark"] .brand-sub { color: var(--gold-light); }
[data-theme="dark"] .brand-title { color: #fff; }

/* hero: the emblem sits on the sample card like a seal */
.hero-sandbox-card { position: relative; margin-top: 52px; padding-top: 3.4rem; overflow: visible; }
.hero-seal {
  position: absolute; left: 50%; top: -52px; transform: translateX(-50%);
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px rgba(212, 166, 42, 0.55), 0 18px 34px -12px rgba(11, 27, 77, 0.65);
  animation: sealFloat 6s ease-in-out infinite;
}
.hero-seal img { width: 100%; height: 100%; border-radius: 50%; display: block; }
@keyframes sealFloat { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@media (max-width: 1040px) { .hero-sandbox-card { margin-top: 56px; } }

/* gold accents */
.pricing-popular-badge {
  background: var(--gold-gradient) !important;
  color: var(--navy-deep) !important;
  border: 0 !important;
  box-shadow: 0 6px 16px -6px rgba(212, 166, 42, 0.7) !important;
}
.hero-chip { border-color: rgba(212, 166, 42, 0.45); }
.landing-footer, footer { border-top: 2px solid; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1; }
.sidebar .user-avatar { box-shadow: 0 0 0 2px rgba(243, 215, 124, 0.55), 0 6px 14px -4px rgba(79, 70, 229, 0.7); }

/* ───────────────────────── Reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}
