/* LuchamSkonga design system — plain CSS on top of Bootstrap 5.3 (no build step). */
:root {
  --sa-blue: #0B3D91;
  --sa-blue-600: #0a3580;
  --sa-blue-50: #EEF3FC;
  --sa-navy: #0C1936;
  --sa-navy-2: #13244d;
  --sa-green: #1F8A38;
  --sa-green-bright: #239C3F;
  --sa-brand-navy: #0A1C68;
  --sa-green-50: #E9F7EE;
  --sa-orange: #F48C06;
  --sa-orange-50: #FFF4E5;
  --sa-ink: #16203A;
  --sa-muted: #56627E;
  --sa-line: #E3E8F2;
  --sa-bg: #F6F8FC;
  --sa-radius: 18px;
  --sa-radius-lg: 28px;
  --sa-shadow: 0 1px 2px rgba(12, 25, 54, .06), 0 8px 24px rgba(12, 25, 54, .06);
  --sa-shadow-lg: 0 30px 60px -20px rgba(12, 25, 54, .35);
  --bs-primary: #0B3D91;
  --bs-primary-rgb: 11, 61, 145;
  --bs-link-color: #0B3D91;
  --bs-link-hover-color: #072a66;
  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: #16203A;
  --bs-border-color: #E3E8F2;
}

body { font-family: var(--bs-body-font-family); color: var(--sa-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display-5, .display-6 { font-weight: 800; letter-spacing: -0.02em; color: var(--sa-ink); }
.text-muted, .sa-muted { color: var(--sa-muted) !important; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sa-orange); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.35rem; }
.btn-sm { padding: .4rem .9rem; }
.btn-primary { --bs-btn-bg: var(--sa-blue); --bs-btn-border-color: var(--sa-blue); --bs-btn-hover-bg: var(--sa-blue-600); --bs-btn-hover-border-color: var(--sa-blue-600); --bs-btn-active-bg: #072a66; }
.btn-accent { background: var(--sa-orange); color: #1b1203; border: 0; }
.btn-accent:hover, .btn-accent:focus { background: #e07f00; color: #1b1203; }
.btn-success { --bs-btn-bg: var(--sa-green); --bs-btn-border-color: var(--sa-green); --bs-btn-hover-bg: #17752f; --bs-btn-hover-border-color: #17752f; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* ---------- Public site ---------- */
.site-nav { padding-block: .3rem; background: #fff; border-bottom: 1px solid var(--sa-line); }
.site-nav .nav-link { white-space: nowrap; font-weight: 600; color: var(--sa-ink); padding: .5rem .8rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--sa-blue); background: var(--sa-blue-50); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--sa-ink); text-decoration: none; }
.brand img.site-logo-full { height: clamp(58px, 4.6vw, 66px); width: auto; border-radius: 0; background: transparent; }
.brand .w-shule { color: var(--sa-brand-navy); }
.brand .w-app { color: var(--sa-green-bright); }
.brand.on-dark .w-shule { color: #fff; }
.brand.on-dark .w-app { color: #5fd07a; }
.logo-card { background: #fff; border-radius: 18px; padding: 14px 18px; display: inline-block; }
.logo-card img { display: block; height: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sa-blue), var(--sa-green-bright)); color: #fff; font-weight: 800; }
.lang-switch { font-weight: 700; font-size: .85rem; border: 1.5px solid var(--sa-line); border-radius: 999px; padding: .35rem .8rem; color: var(--sa-ink); text-decoration: none; }
.lang-switch:hover { border-color: var(--sa-blue); color: var(--sa-blue); }

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(36,161,72,.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(244,140,6,.22), transparent 60%),
    linear-gradient(160deg, var(--sa-navy) 0%, var(--sa-navy-2) 55%, #0B3D91 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 38rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-orange); }
.hero .eyebrow { color: #FFC266; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .35rem .8rem; border-radius: 999px; }
.trust li { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; }
.trust i { color: #7ee2a0; }

.premium-carousel { background: #dfe5ea; }
.premium-carousel .carousel-item { height: clamp(560px, 72vh, 720px); position: relative; }
.premium-carousel-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.premium-carousel-content { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero-copy-panel { width: min(540px, calc(100% - 48px)); padding: clamp(28px, 4vw, 48px); color: #fff; background: rgba(8, 23, 49, .88); border-left: 4px solid var(--sa-orange); box-shadow: 0 22px 60px rgba(4, 12, 28, .28); pointer-events: auto; }
.hero-copy-panel h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.02; text-wrap: balance; }
.hero-copy-panel p { max-width: 31rem; margin: 0 0 1.6rem; color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.btn-hero-link { color: #fff; padding-inline: .8rem; }
.btn-hero-link:hover, .btn-hero-link:focus { color: #fff; text-decoration: underline; }
.premium-carousel .carousel-control-prev, .premium-carousel .carousel-control-next { width: 64px; opacity: .8; }
.premium-carousel .carousel-control-prev-icon, .premium-carousel .carousel-control-next-icon { width: 42px; height: 42px; padding: 11px; border: 1px solid rgba(255,255,255,.55); background-size: 44%; background-color: rgba(8,23,49,.55); }
.premium-carousel .carousel-indicators { align-items: center; gap: 8px; margin-bottom: 25px; }
.premium-carousel .carousel-indicators [data-bs-target] { width: 26px; height: 3px; margin: 0; border: 0; background-color: #fff; opacity: .55; transition: width .2s ease, opacity .2s ease; }
.premium-carousel .carousel-indicators .active { width: 52px; opacity: 1; }

/* Product preview (pure HTML/CSS, not a screenshot) */
.preview { position: relative; }
.preview-window { background: #fff; color: var(--sa-ink); border-radius: 22px; box-shadow: var(--sa-shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.4); }
.preview-bar { display: flex; gap: 6px; padding: 12px 16px; background: #F1F4FA; border-bottom: 1px solid var(--sa-line); }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe8; }
.preview-body { display: grid; grid-template-columns: 58px 1fr; min-height: 330px; }
.preview-side { background: var(--sa-navy); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; }
.preview-side i { color: rgba(255,255,255,.55); font-size: 1.1rem; }
.preview-side i.on { color: #fff; background: rgba(255,255,255,.12); border-radius: 10px; padding: 6px 8px; }
.preview-main { padding: 18px; background: var(--sa-bg); }
.kpi { background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; padding: 12px 14px; }
.kpi small { color: var(--sa-muted); font-weight: 600; font-size: .72rem; }
.kpi strong { display: block; font-size: 1.15rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px; background: #fff; border: 1px solid var(--sa-line); border-radius: 14px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3f6fd1, var(--sa-blue)); }
.bars span:nth-child(3n) { background: linear-gradient(180deg, #45c46b, var(--sa-green)); }
.float-card { position: absolute; background: #fff; color: var(--sa-ink); border-radius: 16px; box-shadow: var(--sa-shadow-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .85rem; animation: float 6s ease-in-out infinite; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-card.one { left: -26px; bottom: 34px; }
.float-card.two { right: -18px; top: 70px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.outcomes-band { background: #fff; border-bottom: 1px solid var(--sa-line); }
.outcomes-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.outcome { padding: 26px clamp(16px, 3vw, 34px); border-right: 1px solid var(--sa-line); }
.outcome:first-child { border-left: 1px solid var(--sa-line); }
.outcome strong { display: block; color: var(--sa-navy); font-size: 1rem; letter-spacing: -.01em; }
.outcome span { display: block; margin-top: .25rem; color: var(--sa-muted); font-size: .78rem; line-height: 1.45; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--sa-bg); }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-lead { color: var(--sa-muted); font-size: 1.1rem; max-width: 44rem; }
.photo { position: relative; overflow: hidden; border-radius: 26px; min-height: 360px; background: var(--sa-blue-50); box-shadow: 0 24px 60px rgba(12,25,54,.14); }
.photo img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.025); }
.journey-photo { position: relative; }
.journey-photo .photo { min-height: 260px; }
.journey-photo .photo img { min-height: 260px; aspect-ratio: 3 / 2; }
.journey-photo > span { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: .55rem; width: fit-content; max-width: calc(100% - 36px); padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(8,27,61,.82); backdrop-filter: blur(12px); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 10px 26px rgba(0,0,0,.16); }

.card-soft { background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.card-soft:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(12,25,54,.06), 0 16px 36px rgba(12,25,54,.1); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--sa-blue-50); color: var(--sa-blue); }
.icon-tile.green { background: var(--sa-green-50); color: var(--sa-green); }
.icon-tile.orange { background: var(--sa-orange-50); color: #b86500; }
.feature-ledger { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--sa-line); }
.feature-ledger-item { min-width: 0; display: grid; grid-template-columns: 36px 48px 1fr; gap: 16px; align-items: start; padding: 24px 24px 24px 8px; border-bottom: 1px solid var(--sa-line); }
.feature-ledger-item:nth-child(odd) { border-right: 1px solid var(--sa-line); }
.feature-ledger-wide .feature-ledger-item { min-height: 142px; }
.feature-no { padding-top: 13px; color: #8b95aa; font-size: .67rem; font-weight: 800; letter-spacing: .08em; }
.topic-ledger { border-top: 1px solid var(--sa-line); }
.topic-ledger-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--sa-line); }
.topic-ledger-item > span { color: var(--sa-orange); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.journey-section { background: #fff; }
.journey-copy { position: sticky; top: 110px; }
.journey-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #ccd5e4; }
.journey-list li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid #ccd5e4; }
.journey-list > li > span { color: var(--sa-orange); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.journey-list h3 { margin: 0 0 6px; font-size: 1.08rem; }
.journey-list p { margin: 0; color: var(--sa-muted); line-height: 1.65; }

.photo { border-radius: var(--sa-radius-lg); overflow: hidden; box-shadow: var(--sa-shadow-lg); aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--sa-blue-50), var(--sa-green-50)); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-art { display: grid; place-items: center; height: 100%; color: var(--sa-blue); font-size: 5rem; }

.page-hero { background: linear-gradient(160deg, var(--sa-navy), var(--sa-blue)); color: #fff; padding: 92px 0 78px; position: relative; overflow: hidden; border-bottom: 6px solid var(--sa-orange); }
.page-hero::after { content: ""; position: absolute; inset: 0 0 0 55%; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 38px 38px; transform: skewX(-8deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 42rem; }

/* Pricing */
.price-card { border: 0; border-top: 4px solid #ced6e5; border-radius: 0 0 var(--sa-radius) var(--sa-radius); padding: 30px 26px 26px; background: #fff; height: 100%; display: flex; flex-direction: column; position: relative; box-shadow: var(--sa-shadow); }
.price-card.featured { border-color: var(--sa-blue); box-shadow: 0 20px 45px -20px rgba(11,61,145,.45); }
.price-card .badge-pop { position: absolute; top: -12px; left: 28px; background: var(--sa-orange); color: #1b1203; font-weight: 800; font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; }
.price { font-size: clamp(1.55rem, 2.1vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-size: .9rem; color: var(--sa-muted); font-weight: 600; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .35rem 0 .35rem 1.8rem; position: relative; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .3rem; color: var(--sa-green); font-size: 1.05rem; }
.billing-toggle { background: var(--sa-bg); border: 1px solid var(--sa-line); border-radius: 999px; padding: 4px; display: inline-flex; }
.billing-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .5rem 1.2rem; font-weight: 700; color: var(--sa-muted); }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--sa-blue); box-shadow: var(--sa-shadow); }

/* FAQ */
.accordion-button { font-weight: 700; }
.accordion-button:not(.collapsed) { background: var(--sa-blue-50); color: var(--sa-blue); box-shadow: none; }
.accordion-item { border-radius: 0 !important; border: 0; border-bottom: 1px solid var(--sa-line); margin: 0; }
.accordion-button { padding: 1.2rem .25rem; }
.accordion-button:not(.collapsed) { box-shadow: inset 4px 0 0 var(--sa-orange); padding-left: 1rem; }

/* Forms */
.form-card { background: #fff; border: 0; border-top: 4px solid var(--sa-blue); border-radius: 0 0 var(--sa-radius) var(--sa-radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--sa-shadow-lg); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border-color: #d7deeb; }
.form-control:focus, .form-select:focus { border-color: var(--sa-blue); box-shadow: 0 0 0 .25rem rgba(11,61,145,.15); }
.form-label { font-weight: 600; font-size: .92rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cta-band { background: linear-gradient(120deg, var(--sa-blue), var(--sa-navy)); color: #fff; border-radius: 0; border-left: 7px solid var(--sa-orange); padding: clamp(32px, 5vw, 60px); position: relative; overflow: hidden; box-shadow: var(--sa-shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); }

.site-footer { background: #08142c; color: rgba(255,255,255,.7); padding: 0 0 24px; }
.site-footer h6 { color: #fff; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-intro { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-intro h2 { max-width: 760px; margin: .55rem 0 0; color: #fff; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.14; }
.footer-kicker { color: #77d78d; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-main { padding: 52px 0 44px; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: clamp(200px, 20vw, 250px); height: auto; }
.footer-about { max-width: 27rem; margin: 1.5rem 0 1.1rem; line-height: 1.75; }
.footer-contact { color: #fff !important; font-weight: 700; }
.footer-contact i { margin-left: .25rem; color: var(--sa-orange); }
.app-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.store-badge { min-width: 168px; display: grid; grid-template-columns: 28px 1fr 14px; align-items: center; gap: 9px; padding: 9px 11px; color: #fff !important; border: 1px solid rgba(255,255,255,.2); background: #030915; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.store-badge > .bi:first-child { font-size: 1.55rem; line-height: 1; }
.store-badge span { display: grid; line-height: 1.1; }
.store-badge small { margin-bottom: 3px; color: rgba(255,255,255,.62); font-size: .57rem; font-weight: 600; letter-spacing: .02em; }
.store-badge strong { color: #fff; font-size: .9rem; letter-spacing: -.01em; }
.store-badge-arrow { color: rgba(255,255,255,.55); font-size: .7rem; }
a.store-badge:hover, a.store-badge:focus-visible { transform: translateY(-2px); border-color: rgba(255,255,255,.5); background: #0d1b38; }
.store-badge.is-coming { grid-template-columns: 28px 1fr; color: rgba(255,255,255,.7) !important; border-style: dashed; background: rgba(3,9,21,.45); cursor: default; }
.store-badge.is-coming strong { color: rgba(255,255,255,.82); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .78rem; }
.footer-bottom p { margin: 0; }

.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { color: #34405c; line-height: 1.7; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .card-soft { transition: none; }
  .premium-carousel .carousel-item { transition: none; }
}
@media (max-width: 767.98px) {
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcome:nth-child(2) { border-right: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid var(--sa-line); }
  .feature-ledger { grid-template-columns: 1fr; }
  .feature-ledger-item:nth-child(odd) { border-right: 0; }
  .journey-copy { position: static; }
  .hero .container { padding-top: 64px !important; padding-bottom: 72px !important; }
  .footer-intro { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--sa-navy), var(--sa-blue)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; }
.auth-main { display: grid; place-items: center; padding: 32px 18px; background: var(--sa-bg); }
.auth-card { width: 100%; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Dashboard console ---------- */
.console { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--sa-bg); }
.console-side { background: var(--sa-navy); color: rgba(255,255,255,.75); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.console-side .brand { color: #fff; padding: 6px 8px 18px; }
.console-side .nav-section { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.42); margin: 18px 10px 6px; font-weight: 700; }
.console-side a { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.78); text-decoration: none; padding: .55rem .75rem; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.console-side a:hover { background: rgba(255,255,255,.07); color: #fff; }
.console-side a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--sa-orange); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--sa-line); position: sticky; top: 0; z-index: 10; }
.console-content { padding: 28px; }
.console-content h1 { font-size: 1.6rem; margin: 0; }
.panel { background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--sa-line); flex-wrap: wrap; }
.panel-body { padding: 20px; }
.stat { background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 18px; height: 100%; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; }
.stat:hover { border-color: #c9d3e6; }
.stat .v { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--sa-muted); font-weight: 600; font-size: .85rem; }
.table-sa { margin: 0; }
.table-sa thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sa-muted); background: #FAFBFE; border-bottom: 1px solid var(--sa-line); font-weight: 700; white-space: nowrap; }
.table-sa td { vertical-align: middle; }
.table-sa tbody tr:hover { background: #FAFBFE; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #eef1f6; color: #4a5570; text-transform: capitalize; white-space: nowrap; }
.status-active, .status-paid, .status-approved, .status-boarded, .status-published, .status-present, .status-completed { background: var(--sa-green-50); color: #17752f; }
.status-trial, .status-pending, .status-new, .status-draft, .status-scheduled { background: var(--sa-blue-50); color: var(--sa-blue); }
.status-grace, .status-info_requested, .status-late, .status-partial, .status-contacted, .status-in_progress { background: var(--sa-orange-50); color: #a35a00; }
.status-expired, .status-suspended, .status-rejected, .status-failed, .status-cancelled, .status-absent, .status-unpaid, .status-reversed { background: #FDECEC; color: #b42318; }
.empty { text-align: center; padding: 48px 16px; color: var(--sa-muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: 8px; opacity: .5; }
.console-burger { display: none; }
.school-branded .console-side { background: linear-gradient(175deg, color-mix(in srgb, var(--school-primary) 64%, #0C1936), #0C1936 85%); }
.school-branded .console-side a.active { box-shadow: inset 3px 0 0 var(--school-accent); }
.school-branded { --bs-primary: var(--school-primary); --bs-primary-rgb: var(--school-primary-rgb); --bs-link-color: var(--school-primary-text, var(--school-primary)); --bs-link-hover-color: color-mix(in srgb, var(--school-primary) 75%, #000); }
.school-branded :focus-visible { outline-color: var(--school-accent); }
.school-branded .btn-primary { --bs-btn-bg: var(--school-primary); --bs-btn-border-color: var(--school-primary); --bs-btn-color: var(--school-primary-fg); --bs-btn-hover-bg: color-mix(in srgb, var(--school-primary) 82%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--school-primary) 82%, #000); --bs-btn-hover-color: var(--school-primary-fg); }
.school-branded .btn-outline-primary { --bs-btn-color: var(--school-primary); --bs-btn-border-color: var(--school-primary); --bs-btn-hover-bg: var(--school-primary); --bs-btn-hover-border-color: var(--school-primary); --bs-btn-hover-color: var(--school-primary-fg); }
/* Links in the page content only; the sidebar keeps its own light text on the dark school colour. */
.school-branded #main a:not(.btn):not(.dropdown-item):not(.nav-link) { color: var(--school-primary-text, var(--school-primary)); }
.school-branded .console-side a, .school-branded .console-side .brand, .school-branded .console-side .wordmark { color: rgba(255,255,255,.86); }
.school-branded .console-side a:hover, .school-branded .console-side a.active { color: #fff; }
.school-branded .settings-nav a:hover, .school-branded .settings-nav a:focus, .school-branded .settings-nav a.active { color: var(--school-primary); background: rgba(var(--school-primary-rgb), .09); }
.school-branded .form-control:focus, .school-branded .form-select:focus { border-color: var(--school-primary); box-shadow: 0 0 0 .25rem rgba(var(--school-primary-rgb), .15); }
.school-branded .progress-bar.bg-primary { background-color: var(--school-primary) !important; }
.brand-preview { width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; overflow: hidden; background: var(--sa-bg); border: 1px dashed #bdc8dc; border-radius: 16px; }
.brand-preview.small { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
.brand-preview img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.settings-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 88px; display: grid; gap: 4px; padding: 8px; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); }
.settings-nav a { display: flex; align-items: center; gap: .7rem; padding: .72rem .8rem; border-radius: 11px; color: var(--sa-ink); text-decoration: none; font-weight: 700; font-size: .88rem; }
.settings-nav a:hover, .settings-nav a:focus, .settings-nav a.active { color: var(--school-primary, var(--sa-blue)); background: var(--sa-blue-50); }
.settings-section { scroll-margin-top: 86px; }
.settings-intro { padding: clamp(20px, 3vw, 30px); background: linear-gradient(120deg, var(--sa-navy), color-mix(in srgb, var(--school-primary, var(--sa-blue)) 72%, #0C1936)); color: #fff; border-radius: var(--sa-radius); overflow: hidden; position: relative; }
.settings-intro h2 { color: #fff; }
.settings-intro p { color: rgba(255,255,255,.75); }
.settings-loading { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--sa-muted); font-size: .85rem; }
.section-kicker { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-kicker span { color: var(--school-primary, var(--sa-blue)); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; font-weight: 800; }
.section-kicker h2 { margin: .2rem 0 0; font-size: 1.22rem; }
.section-kicker p { max-width: 32rem; margin: 0; color: var(--sa-muted); font-size: .83rem; }
.settings-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--sa-line); background: var(--sa-line); border-radius: var(--sa-radius); overflow: hidden; }
.setup-status { display: flex; gap: .75rem; align-items: center; min-width: 0; padding: 15px; background: #fff; }
.setup-status > i { color: var(--sa-muted); font-size: 1.1rem; }
.setup-status.ready > i { color: var(--sa-green); }
.setup-status strong, .setup-status span { display: block; font-size: .78rem; }
.setup-status span { margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-error { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 18px; border: 1px solid #efc5c2; background: #fff8f7; color: #8f241d; border-radius: 12px; text-align: left; }
.settings-error i { font-size: 1.4rem; }
@media (max-width: 991.98px) {
  .settings-shell { grid-template-columns: 1fr; gap: 18px; }
  .settings-nav { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .settings-nav { grid-template-columns: 1fr 1fr; }
  .settings-nav a { padding: .65rem; }
  .settings-status-grid { grid-template-columns: 1fr 1fr; }
  .section-kicker { align-items: start; flex-direction: column; gap: 4px; }
}

@media (max-width: 575.98px) {
  .premium-carousel .carousel-item { height: 640px; }
  .premium-carousel-image { object-position: 62% center; }
  .premium-carousel-content { align-items: end; padding: 0 20px 66px; }
  .hero-copy-panel { width: 100%; padding: 20px 18px; background: rgba(8,23,49,.82); border-left-width: 3px; }
  .hero-copy-panel h1 { margin-bottom: .7rem; font-size: 2rem; }
  .hero-copy-panel p { margin-bottom: 1.1rem; font-size: .95rem; }
  .hero-copy-panel .btn-lg { padding: .58rem 1rem; font-size: .95rem; }
  .premium-carousel .carousel-control-prev, .premium-carousel .carousel-control-next { display: none; }
  .photo, .photo img { width: 100%; max-width: 100%; min-width: 0; min-height: 0; }
  .photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 991.98px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .console-side { position: fixed; left: 0; top: 0; width: 272px; z-index: 1050; transform: translateX(-100%); transition: transform .25s ease; }
  .console-side.open { transform: none; box-shadow: var(--sa-shadow-lg); }
  .console-burger { display: inline-flex; }
  .console-content { padding: 18px; }
  .console-top { padding: 12px 16px; }
}
.dl-grid { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; }
.dl-grid dt { color: var(--sa-muted); font-weight: 600; }
.dl-grid dd { margin: 0; }
@media (max-width: 575.98px) { .dl-grid { grid-template-columns: 1fr; } .dl-grid dd { margin-bottom: 8px; } }

@media print {
  .console-side, .console-top, .no-print { display: none !important; }
  .console { display: block; }
}
