:root {
  --ks-bg: #050507;
  --ks-panel: #0c0c11;
  --ks-panel-2: #111117;
  --ks-line: rgba(255,255,255,.075);
  --ks-line-strong: rgba(255,255,255,.12);
  --ks-text: #f3f3f7;
  --ks-muted: #8d8d99;
  --ks-muted-2: #666672;
  --ks-purple: #8ea8ff;
  --ks-purple-2: #c5a7ff;
  --ks-red: #990000;
  --ks-green: #89e3b0;
  --ks-header-height: 68px;
}

html {
  min-height: 100%;
  background: var(--ks-bg);
  color-scheme: dark;
}

body.kespa-site-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% -10%, rgba(95,91,255,.11), transparent 31%),
    radial-gradient(circle at 95% 26%, rgba(142,168,255,.045), transparent 24%),
    radial-gradient(circle at 5% 95%, rgba(153,0,0,.045), transparent 28%),
    var(--ks-bg);
  color: var(--ks-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.kespa-site-menu-open { overflow: hidden; }

.kespa-site-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.kespa-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(5,5,7,.82);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.kespa-site-header::after {
  position: absolute;
  right: 18%;
  bottom: -1px;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142,168,255,.24), rgba(197,167,255,.17), transparent);
  content: '';
  pointer-events: none;
}

.kespa-site-header-inner {
  width: min(1220px, calc(100% - 36px));
  min-height: var(--ks-header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.kespa-site-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.kespa-site-brand img {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(95,91,255,.18));
}

.kespa-site-brand span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.kespa-site-brand strong {
  color: #f8f8fb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
}

.kespa-site-brand small {
  overflow: hidden;
  color: #686875;
  font: 700 8px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.kespa-site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.kespa-site-nav a,
.kespa-site-signin,
.kespa-site-admin-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  color: #777783;
  text-decoration: none;
  font-size: 10px;
  font-weight: 750;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.kespa-site-nav a:hover,
.kespa-site-nav a.active,
.kespa-site-signin:hover,
.kespa-site-admin-link:hover {
  background: rgba(255,255,255,.035);
  color: #fff;
}

.kespa-site-nav a.active {
  color: #dce1ff;
}

.kespa-site-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kespa-site-primary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(142,168,255,.25);
  border-radius: 10px;
  background: #4b4cb8;
  box-shadow: 0 9px 24px rgba(0,0,0,.18), 0 0 26px rgba(90,84,196,.07);
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
}

.kespa-site-primary:hover {
  filter: brightness(1.09);
  color: #fff;
}

.kespa-site-account-link {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 3px 4px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: #aaaab5;
  text-decoration: none;
  font-size: 9px;
  font-weight: 750;
}

.kespa-site-account-link img {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  object-fit: cover;
  background: #111117;
}

.kespa-site-account-link:hover {
  border-color: rgba(142,168,255,.18);
  color: #fff;
}

.kespa-site-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.kespa-site-menu-button span {
  display: block;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: #aaaab5;
}

.kespa-site-mobile-backdrop {
  position: fixed;
  z-index: 990;
  inset: var(--ks-header-height) 0 0;
  visibility: hidden;
  background: rgba(0,0,0,.62);
  opacity: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: .15s ease;
}

.kespa-site-mobile-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.kespa-site-footer {
  width: min(1220px, calc(100% - 36px));
  margin: auto auto 0;
  padding: 54px 0 26px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.kespa-site-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, .7fr));
  gap: 34px;
}

.kespa-site-footer-brand img {
  width: min(240px, 100%);
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

.kespa-site-footer-brand p {
  max-width: 430px;
  margin: 14px 0 0;
  color: #666672;
  font-size: 11px;
  line-height: 1.7;
}

.kespa-site-footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.kespa-site-footer-column strong {
  margin-bottom: 3px;
  color: #aaaab6;
  font: 800 9px/1 "JetBrains Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.kespa-site-footer-column a {
  color: #63636f;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.35;
}

.kespa-site-footer-column a:hover { color: #fff; }

.kespa-site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.045);
  color: #484852;
  font: 600 8px/1.55 "JetBrains Mono", monospace;
}

.kespa-site-footer-bottom a { color: #676773; text-decoration: none; }
.kespa-site-footer-bottom a:hover { color: #fff; }

/* Common public-page building blocks */
.kespa-page-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 78px;
}

.kespa-page-hero { padding: 22px 0 38px; }
.kespa-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8ea8ff;
  font: 750 9px/1.3 "JetBrains Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.kespa-page-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89e3b0;
  box-shadow: 0 0 12px rgba(137,227,176,.55);
  content: '';
}
.kespa-page-hero h1 {
  max-width: 900px;
  margin: 18px 0 0;
  color: #f5f5f8;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.05em;
}
.kespa-page-hero h1 .accent {
  background: linear-gradient(120deg, #8ea8ff 0%, #c5a7ff 58%, #f1c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kespa-page-hero > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #91919d;
  font-size: 14px;
  line-height: 1.72;
}

/* Existing auth cards can now live under the universal header/footer. */
body.kespa-site-body.security-auth-page {
  display: block !important;
  padding: 0 !important;
}
body.kespa-site-body.security-auth-page > .kespa-site-frame { min-height: 100dvh; }
body.kespa-site-body.security-auth-page .security-auth-card {
  margin: 76px auto;
}

@media (max-width: 1040px) {
  .kespa-site-nav a { padding-inline: 7px; }
  .kespa-site-account-link span { display: none; }
}

@media (max-width: 860px) {
  .kespa-site-header-inner { width: min(100% - 24px, 1220px); min-height: 62px; gap: 10px; }
  :root { --ks-header-height: 62px; }
  .kespa-site-menu-button { display: block; }
  .kespa-site-nav {
    position: fixed;
    z-index: 1001;
    top: 62px;
    right: 12px;
    left: 12px;
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 10px;
    visibility: hidden;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 14px;
    background: rgba(12,12,17,.98);
    box-shadow: 0 26px 70px rgba(0,0,0,.48);
    opacity: 0;
    transform: translateY(-8px);
    transition: .15s ease;
  }
  .kespa-site-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .kespa-site-nav a { min-height: 42px; padding: 0 12px; font-size: 11px; }
  .kespa-site-actions { margin-left: 0; }
  .kespa-site-signin,
  .kespa-site-admin-link,
  .kespa-site-account-link { display: none; }
  .kespa-site-primary { min-height: 36px; padding-inline: 11px; }
  .kespa-site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .kespa-site-footer-column:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .kespa-site-header-inner { width: calc(100% - 20px); }
  .kespa-site-brand img { width: 35px; height: 35px; flex-basis: 35px; }
  .kespa-site-brand small { max-width: 140px; }
  .kespa-site-primary { font-size: 9px; }
  .kespa-site-footer { width: calc(100% - 24px); padding-top: 38px; }
  .kespa-site-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .kespa-site-footer-brand { grid-column: 1 / -1; }
  .kespa-site-footer-column:last-child { grid-column: 1 / -1; }
  .kespa-site-footer-bottom { flex-direction: column; gap: 7px; }
  .kespa-page-shell { width: calc(100% - 24px); padding-top: 44px; }
  body.kespa-site-body.security-auth-page .security-auth-card { margin: 40px auto 54px; }
}


/* Open Beta universal shell integration */
body.kespa-site-body.legal-accept-page {
  display: block !important;
  min-height: 100dvh;
  padding: 0 !important;
}
body.kespa-site-body.legal-accept-page .legal-accept-card {
  margin: 70px auto;
}
body.kespa-site-body.legal-page .legal-shell,
body.kespa-site-body.status-page .status-wrap,
body.kespa-site-body.profile-page .profile-wrap,
body.kespa-site-body.leaderboard-page .leaderboard-wrap,
body.kespa-site-body.settings-page .settings-wrap {
  flex: 0 0 auto;
}
body.kespa-site-body .research-page {
  min-height: auto;
  background: transparent;
}
@media (max-width: 640px) {
  body.kespa-site-body.legal-accept-page .legal-accept-card {
    margin: 36px auto 52px;
  }
}

/* Shared navigation account utilities. These are only shown inside the
   mobile navigation panel; desktop keeps account controls on the right. */
.kespa-site-nav-mobile-account {
  display: none;
}

@media (max-width: 860px) {
  .kespa-site-nav-mobile-account {
    display: grid;
    gap: 3px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  .kespa-site-nav-mobile-account a {
    color: #92929f;
  }
}

.kespa-not-found-page .kespa-not-found-hero {
  max-width: 760px;
  padding-top: 92px;
  padding-bottom: 110px;
}

.kespa-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.kespa-not-found-secondary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #aaaab5;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
}

.kespa-not-found-secondary:hover {
  border-color: rgba(142,168,255,.20);
  color: #fff;
}

/* Plans / access */
.kespa-upgrade-shell { width: min(1240px, calc(100% - 36px)); }
.kespa-upgrade-page .kespa-page-hero strong { color: #fff; }
.kespa-upgrade-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; }
.kespa-upgrade-hero > div:first-child { max-width:780px; }
.kespa-upgrade-hero-actions { display:flex; flex-wrap:wrap; gap:8px; }
.kespa-upgrade-primary,.kespa-upgrade-secondary {
  min-height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0 14px;
  border-radius:10px; text-decoration:none; font-size:10px; font-weight:800;
}
.kespa-upgrade-primary { border:1px solid rgba(107,109,220,.74); background:#4b4cb8; color:#fff; box-shadow:0 8px 24px rgba(75,76,184,.18); }
.kespa-upgrade-primary:hover { background:#595ac8; }
.kespa-upgrade-secondary { border:1px solid rgba(255,255,255,.08); background:#101016; color:#aaaab6; }
.kespa-upgrade-secondary:hover { border-color:rgba(75,76,184,.48); color:#fff; }

.kespa-upgrade-credit-strip {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:10px; align-items:stretch;
  margin:0 0 14px; padding:12px; border:1px solid rgba(75,76,184,.26); border-radius:16px; background:#0d0d13;
}
.kespa-upgrade-credit-strip > div { min-width:0; padding:12px 14px; border:1px solid rgba(255,255,255,.055); border-radius:11px; background:#111118; }
.kespa-upgrade-credit-strip span { display:block; color:#696a78; font:750 8px/1 "JetBrains Mono",monospace; letter-spacing:.08em; }
.kespa-upgrade-credit-strip strong { display:block; margin-top:7px; color:#eeeeF5; font-size:15px; }
.kespa-upgrade-credit-strip small { display:block; margin-top:4px; color:#686876; font-size:9px; }
.kespa-upgrade-credit-strip > a { min-width:130px; display:flex; align-items:center; justify-content:center; padding:0 14px; border-radius:11px; background:#4b4cb8; color:#fff; text-decoration:none; font-size:9px; font-weight:800; }
.kespa-upgrade-credit-strip > a:hover { background:#595ac8; }

.kespa-plan-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.kespa-plan-card { position:relative; padding:20px; border:1px solid rgba(255,255,255,.07); border-radius:18px; background:#0d0d13; box-shadow:0 18px 48px rgba(0,0,0,.14); }
.kespa-plan-card.current { border-color:rgba(75,76,184,.56); box-shadow:0 0 0 1px rgba(75,76,184,.12),0 18px 48px rgba(0,0,0,.18); }
.kespa-plan-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.kespa-plan-card-head span,.kespa-plan-section-label { color:#696a78; font:750 8px/1 "JetBrains Mono",monospace; letter-spacing:.09em; text-transform:uppercase; }
.kespa-plan-card-head h2 { margin:7px 0 0; color:#f2f2f6; font-size:23px; letter-spacing:-.03em; }
.kespa-plan-price { color:#c9caff; font-size:15px; font-weight:800; white-space:nowrap; }
.kespa-plan-active-badge { position:absolute; top:53px; right:20px; padding:5px 8px; border:1px solid rgba(137,227,176,.18); border-radius:999px; background:rgba(137,227,176,.05); color:#89e3b0; font:750 8px/1 "JetBrains Mono",monospace; }

.kespa-plan-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:20px; }
.kespa-plan-metrics div { padding:12px; border:1px solid rgba(255,255,255,.055); border-radius:12px; background:#111118; }
.kespa-plan-metrics strong { display:block; color:#ededf2; font-size:14px; }
.kespa-plan-metrics span { display:block; margin-top:4px; color:#686672; font-size:9px; }
.kespa-plan-section-label { margin-top:17px; }
.kespa-plan-models { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.kespa-plan-models span { padding:5px 8px; border:1px solid rgba(75,76,184,.22); border-radius:999px; background:rgba(75,76,184,.055); color:#999ae6; font:700 8px/1 "JetBrains Mono",monospace; }

.kespa-plan-api { margin-top:16px; padding-top:2px; }
.kespa-plan-api-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-top:9px; }
.kespa-plan-api-grid div { padding:10px 11px; border:1px solid rgba(255,255,255,.05); border-radius:10px; background:#101016; }
.kespa-plan-api-grid span { display:block; color:#666673; font-size:8.5px; }
.kespa-plan-api-grid strong { display:block; margin-top:4px; color:#dcdced; font-size:10px; }
.kespa-plan-api-note,.kespa-plan-api-off { display:block; margin-top:9px; color:#72727f; font-size:9px; line-height:1.5; }
.kespa-plan-api-off { padding:10px 11px; border:1px dashed rgba(255,255,255,.07); border-radius:10px; }
.kespa-plan-features { display:grid; gap:6px; margin-top:16px; }
.kespa-plan-features span { color:#8c8c99; font-size:9.5px; }

.kespa-plan-current-label,.kespa-plan-contact { min-height:39px; display:flex; align-items:center; justify-content:center; margin-top:17px; border-radius:10px; font-size:10px; font-weight:800; }
.kespa-plan-current-label { border:1px solid rgba(75,76,184,.30); background:rgba(75,76,184,.08); color:#b9baff; }
.kespa-plan-contact { border:1px solid rgba(75,76,184,.42); background:#4b4cb8; color:#fff; text-decoration:none; }
.kespa-plan-contact:hover { background:#595ac8; }

.kespa-plan-beta-note { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; margin-top:14px; padding:18px; border:1px solid rgba(75,76,184,.20); border-radius:16px; background:#0d0d13; }
.kespa-plan-beta-note > span { color:#aaaaff; font:800 8px/1 "JetBrains Mono",monospace; letter-spacing:.08em; }
.kespa-plan-beta-note strong { color:#e8e8ed; font-size:12px; }
.kespa-plan-beta-note p { margin:4px 0 0; color:#73737f; font-size:10.5px; line-height:1.55; }
.kespa-plan-beta-note a { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:0 12px; border:1px solid rgba(75,76,184,.35); border-radius:9px; background:#141420; color:#c8c9ff; text-decoration:none; font-size:9px; font-weight:800; }
.kespa-plan-beta-note a:hover { background:#4b4cb8; color:#fff; }

@media (max-width:900px) {
  .kespa-upgrade-hero { align-items:flex-start; flex-direction:column; }
  .kespa-upgrade-credit-strip { grid-template-columns:1fr 1fr; }
  .kespa-upgrade-credit-strip > a { min-height:42px; }
}
@media (max-width:760px) {
  .kespa-plan-grid,.kespa-upgrade-credit-strip { grid-template-columns:1fr; }
  .kespa-plan-beta-note { grid-template-columns:1fr; align-items:start; }
  .kespa-plan-beta-note a { justify-content:center; }
  .kespa-plan-price { font-size:13px; }
}

/* Native /app same-origin subpage mode. The parent app provides navigation. */
body.kespa-site-body.kespa-site-embedded {
  min-height: 100%;
  background: #07070b;
}
body.kespa-site-body.kespa-site-embedded .kespa-site-frame {
  min-height: 100%;
}
body.kespa-site-body.kespa-site-embedded .kespa-site-footer {
  display: none !important;
}
body.kespa-site-body.kespa-site-embedded :where(.profile-wrap,.settings-wrap,.status-wrap,.support-wrap,.support-center-shell,.legal-shell) {
  padding-top: 14px;
  padding-bottom: 28px;
}

/* ========================================================================
   KESPA Frontend TLC Lock-In 2026-09-29
   Solid action color, cleaner navigation, account menu, and public-page polish.
   ======================================================================== */
:root{
  --ks-action:#4b4cb8;
  --ks-action-hover:#5b5dcc;
  --ks-action-soft:rgba(75,76,184,.13);
  --ks-action-line:rgba(105,107,224,.42);
  --ks-surface:#0b0b10;
  --ks-surface-2:#101016;
}

.kespa-site-header{
  background:rgba(6,6,9,.90);
  border-bottom-color:rgba(255,255,255,.075);
  box-shadow:0 8px 34px rgba(0,0,0,.24);
}
.kespa-site-header::after{display:none}
.kespa-site-header-inner{width:min(1320px,calc(100% - 34px));gap:18px}
.kespa-site-brand{gap:11px;flex:0 0 auto}
.kespa-site-brand img{width:41px;height:41px;flex-basis:41px}
.kespa-site-brand strong{font-size:12.5px;letter-spacing:.045em}
.kespa-site-brand small{max-width:210px;color:#747480}
.kespa-site-nav{gap:2px;justify-content:center}
.kespa-site-nav>a{
  min-height:38px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:10px;
  color:#858591;
  font-size:10.5px;
  font-weight:760;
}
.kespa-site-nav>a:hover{
  border-color:rgba(255,255,255,.055);
  background:#101015;
  color:#f4f4f7;
}
.kespa-site-nav>a.active{
  border-color:rgba(75,76,184,.30);
  background:var(--ks-action-soft);
  color:#d9daff;
}
.kespa-site-actions{gap:8px;flex:0 0 auto}
.kespa-site-primary,
.kespa-upgrade-primary,
.kespa-upgrade-credit-strip>a,
.kespa-plan-contact{
  border-color:var(--ks-action-line)!important;
  background:var(--ks-action)!important;
  background-image:none!important;
  box-shadow:0 10px 24px rgba(75,76,184,.14)!important;
  color:#fff!important;
}
.kespa-site-primary:hover,
.kespa-upgrade-primary:hover,
.kespa-upgrade-credit-strip>a:hover,
.kespa-plan-contact:hover{background:var(--ks-action-hover)!important;filter:none!important}
.kespa-site-signin{border:1px solid transparent}
.kespa-site-signin:hover{border-color:rgba(75,76,184,.24);background:var(--ks-action-soft)}

.kespa-site-account{position:relative}
.kespa-site-account-toggle{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  max-width:190px;
  padding:4px 9px 4px 4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:#0d0d12;
  color:#b4b4be;
  cursor:pointer;
  font:750 9.5px/1 Inter,sans-serif;
}
.kespa-site-account-toggle:hover,
.kespa-site-account.open .kespa-site-account-toggle{
  border-color:rgba(75,76,184,.42);
  background:#12121a;
  color:#fff;
}
.kespa-site-account-toggle img{width:29px;height:29px;border-radius:8px;object-fit:cover;background:#15151b}
.kespa-site-account-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kespa-site-account-toggle svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .15s ease}
.kespa-site-account.open .kespa-site-account-toggle svg{transform:rotate(180deg)}
.kespa-site-account-menu{
  position:absolute;
  z-index:1050;
  top:calc(100% + 9px);
  right:0;
  width:290px;
  display:grid;
  gap:3px;
  padding:8px;
  visibility:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;
  background:#0c0c11;
  box-shadow:0 24px 70px rgba(0,0,0,.52);
  opacity:0;
  transform:translateY(-5px);
  transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
.kespa-site-account.open .kespa-site-account-menu{visibility:visible;opacity:1;transform:translateY(0)}
.kespa-site-account-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;margin-bottom:4px;padding:10px;border-bottom:1px solid rgba(255,255,255,.065)}
.kespa-site-account-summary img{width:38px;height:38px;border-radius:10px;object-fit:cover}
.kespa-site-account-summary div{min-width:0;display:grid;gap:4px}
.kespa-site-account-summary strong,.kespa-site-account-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kespa-site-account-summary strong{color:#ededf1;font-size:11px}
.kespa-site-account-summary span{color:#686874;font-size:9px}
.kespa-site-account-menu>a{
  display:grid;
  gap:3px;
  padding:10px 11px;
  border:1px solid transparent;
  border-radius:10px;
  color:#c5c5cc;
  text-decoration:none;
}
.kespa-site-account-menu>a:hover{border-color:rgba(75,76,184,.22);background:var(--ks-action-soft);color:#fff}
.kespa-site-account-menu>a span{font-size:10.5px;font-weight:760}
.kespa-site-account-menu>a small{color:#666671;font-size:8.8px;line-height:1.35}
.kespa-site-account-menu>a.signout{margin-top:3px;border-top:1px solid rgba(255,255,255,.055);border-radius:8px;color:#d49398}
.kespa-site-account-menu>a.signout:hover{border-color:rgba(239,68,68,.18);background:rgba(239,68,68,.06)}

/* Public CTAs: solid KESPA action color; secondary actions stay blue-toned. */
body.support-page .support-action-primary,
body.support-page .support-action-secondary,
.kespa-not-found-secondary{
  border-color:var(--ks-action-line)!important;
  background:var(--ks-action)!important;
  background-image:none!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.support-page .support-action-primary:hover,
body.support-page .support-action-secondary:hover,
.kespa-not-found-secondary:hover{background:var(--ks-action-hover)!important;border-color:rgba(121,123,238,.7)!important;transform:translateY(-1px)}

/* Footer is calmer and easier to scan. */
.kespa-site-footer{width:min(1320px,calc(100% - 36px));padding-top:46px}
.kespa-site-footer-grid{gap:42px}
.kespa-site-footer-column a{font-size:10.5px;color:#747480}
.kespa-site-footer-column a:hover{color:#c5c7ff}

/* Public content gets slightly more breathing room without changing page semantics. */
.kespa-page-shell{width:min(1180px,calc(100% - 36px))}
.kespa-page-hero>p{font-size:14.5px;color:#9999a5}

@media(max-width:1100px){
  .kespa-site-nav>a{padding-inline:8px}
  .kespa-site-account-toggle span{display:none}
  .kespa-site-account-toggle{padding-right:7px}
}
@media(max-width:860px){
  .kespa-site-header-inner{width:min(100% - 22px,1320px)}
  .kespa-site-account{display:none}
  .kespa-site-nav{background:#0b0b10}
  .kespa-site-nav>a{min-height:44px;padding:0 13px;font-size:11.5px}
}

/* Public support/business hero polish */
body.support-page .support-page-shell{width:min(1240px,calc(100% - 44px))}
body.support-page .support-page-hero{max-width:1040px;padding-top:34px}
body.support-page .support-page-hero h1{font-size:clamp(3rem,6vw,5.55rem);line-height:.96;letter-spacing:-.055em}
body.support-page .support-page-hero>p{max-width:900px;color:#9b9ba7;font-size:1rem}
@media(max-width:700px){body.support-page .support-page-shell{width:calc(100% - 24px)}body.support-page .support-page-hero h1{font-size:clamp(2.75rem,13vw,4.4rem)}}

/* Legacy/public landing CTA normalization */
.btn-primary,.btn-secondary,
a.btn-primary,a.btn-secondary,
button.btn-primary,button.btn-secondary{
  border-color:var(--ks-action-line)!important;
  background:var(--ks-action)!important;
  background-image:none!important;
  color:#fff!important;
  box-shadow:none!important;
}
.btn-primary:hover,.btn-secondary:hover,
a.btn-primary:hover,a.btn-secondary:hover,
button.btn-primary:hover,button.btn-secondary:hover{background:var(--ks-action-hover)!important;border-color:rgba(121,123,238,.7)!important}
