/* =====================================================================
   HeroSam - public theme (light + dark).
   Brand colors (--st-primary*) are injected from ThemeSettings in head.
   ===================================================================== */

/* --- Dark (default) --------------------------------------------------- */
html[data-theme="dark"],
html:not([data-theme]) {
  --st-bg: #0B1220;
  --st-bg-2: #0F172A;
  --st-surface: color-mix(in srgb, var(--st-primary) 6%, transparent);
  --st-surface-solid: #0c0820;
  --st-surface-hover: color-mix(in srgb, var(--st-primary) 12%, transparent);
  --st-border: color-mix(in srgb, var(--st-primary) 25%, transparent);
  --st-text: #e7e3f5;
  --st-text-strong: #ffffff;
  --st-muted: #9a93b8;
  --st-nav-bg: rgba(6, 3, 15, 0.72);
  --st-dropdown-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --st-glow: 0 0 14px color-mix(in srgb, var(--st-primary) 55%, transparent);
  --st-card-bg: linear-gradient(180deg, color-mix(in srgb, var(--st-primary) 8%, transparent), rgba(12, 8, 32, 0.6));
  --st-card-shadow: 0 10px 40px color-mix(in srgb, var(--st-primary-2) 25%, transparent);
  --st-input-bg: rgba(12, 8, 32, 0.7);
  --st-grid-line: color-mix(in srgb, var(--st-primary) 7%, transparent);
  --st-bg-glow-1: color-mix(in srgb, var(--st-primary-2) 25%, transparent);
  --st-bg-glow-2: rgba(34, 211, 238, 0.10);
  --st-alert-error-bg: rgba(239, 68, 68, 0.1);
  --st-alert-error-text: #fca5a5;
  --st-alert-success-bg: rgba(34, 197, 94, 0.1);
  --st-alert-success-text: #86efac;
  --st-alert-info-bg: rgba(34, 211, 238, 0.1);
  --st-alert-info-text: #67e8f9;
  --st-theme-toggle-bg: var(--st-surface);
  --st-theme-toggle-border: var(--st-border);
  --st-eyebrow-fg: var(--st-accent);
  --st-eyebrow-bg: color-mix(in srgb, var(--st-primary) 8%, transparent);
  --st-eyebrow-border: var(--st-border);
  --st-heading: var(--st-text-strong);
  --st-link: var(--st-primary);
  --st-table-head: var(--st-accent);
  --st-icon-box-bg: linear-gradient(135deg, var(--st-primary-2), var(--st-primary));
  --st-icon-box-shadow: var(--st-glow);
  --st-cta-bg: linear-gradient(135deg, color-mix(in srgb, var(--st-primary-2) 22%, transparent), rgba(34, 211, 238, 0.08));
  --st-cta-border: var(--st-border);
  --st-prose: var(--st-muted);
}

/* --- Light (matches desktop tool Light palette) ----------------------- */
html[data-theme="light"] {
  --st-bg: #f5f7fa;
  --st-bg-2: #ebeff5;
  --st-surface: #ffffff;
  --st-surface-solid: #f8fafd;
  --st-surface-hover: #edf2f7;
  --st-border: rgba(0, 120, 180, 0.18);
  --st-text: #23282d;
  --st-text-strong: #0f1419;
  --st-muted: #6e7880;
  --st-nav-bg: rgba(240, 243, 248, 0.95);
  --st-dropdown-shadow: 0 12px 32px rgba(0, 80, 130, 0.12);
  --st-glow: 0 4px 18px rgba(0, 160, 220, 0.18);
  --st-card-bg: #ffffff;
  --st-card-shadow: 0 1px 2px rgba(0, 80, 130, 0.05), 0 8px 28px rgba(0, 160, 220, 0.08);
  --st-input-bg: #ffffff;
  --st-grid-line: rgba(0, 160, 220, 0.07);
  --st-bg-glow-1: rgba(0, 160, 220, 0.08);
  --st-bg-glow-2: rgba(0, 190, 240, 0.05);
  --st-alert-error-bg: #fef2f2;
  --st-alert-error-text: #b91c1c;
  --st-alert-success-bg: #f0fdf4;
  --st-alert-success-text: #15803d;
  --st-alert-info-bg: #e8f7fd;
  --st-alert-info-text: #0078b4;
  --st-theme-toggle-bg: #ffffff;
  --st-theme-toggle-border: rgba(0, 120, 180, 0.18);
  --st-eyebrow-fg: #0078b4;
  --st-eyebrow-bg: #e8f4fa;
  --st-eyebrow-border: rgba(0, 120, 180, 0.16);
  --st-heading: #0f1419;
  --st-link: #0078b4;
  --st-table-head: #0078b4;
  --st-icon-box-bg: linear-gradient(135deg, #0078b4, #00a0dc);
  --st-icon-box-shadow: 0 6px 20px rgba(0, 160, 220, 0.22);
  --st-cta-bg: linear-gradient(135deg, #eaf5fb 0%, #deeef7 45%, #ecfaff 100%);
  --st-cta-border: rgba(0, 120, 180, 0.14);
  --st-prose: #4a5560;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Animated grid + glow background */
.st-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -10%, var(--st-bg-glow-1), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, var(--st-bg-glow-2), transparent 55%),
    var(--st-bg);
  transition: background 0.25s ease;
}
.st-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--st-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--st-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Neon / gradient text */
.st-neon {
  color: var(--st-text-strong);
  text-shadow:
    0 0 6px color-mix(in srgb, var(--st-primary) 90%, transparent),
    0 0 22px color-mix(in srgb, var(--st-primary-2) 70%, transparent),
    0 0 40px color-mix(in srgb, var(--st-primary-2) 40%, transparent);
}
html[data-theme="light"] .st-neon {
  color: var(--st-heading);
  text-shadow: none;
  font-weight: 800;
}
.st-gradient-text {
  background: linear-gradient(90deg, var(--st-primary-2), var(--st-primary), var(--st-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .st-gradient-text {
  background: linear-gradient(90deg, #0078b4, #00a0dc, #00bef0);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Theme toggle */
.st-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--st-theme-toggle-border);
  background: var(--st-theme-toggle-bg);
  color: var(--st-text);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.st-theme-toggle:hover {
  border-color: var(--st-primary);
  box-shadow: var(--st-glow);
  transform: translateY(-1px);
}

/* Buttons */
.st-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: .65rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.st-btn-primary {
  background: linear-gradient(90deg, var(--st-primary-2), var(--st-primary));
  color: #fff;
  box-shadow: var(--st-glow);
}
.st-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px color-mix(in srgb, var(--st-primary) 45%, transparent); }
html[data-theme="light"] .st-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 160, 220, 0.28);
}
.st-btn-ghost {
  background: var(--st-surface-solid);
  color: var(--st-text);
  border-color: var(--st-border);
}
html[data-theme="light"] .st-btn-ghost {
  background: #ffffff;
}
.st-btn-ghost:hover { border-color: var(--st-primary); box-shadow: var(--st-glow); }

/* Cards */
.st-card {
  background: var(--st-card-bg);
  border: 1px solid var(--st-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.st-card:hover {
  transform: translateY(-4px);
  border-color: var(--st-primary);
  box-shadow: var(--st-card-shadow);
}

.st-container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.st-section { padding: 5rem 0; }
.st-eyebrow {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--st-eyebrow-fg);
  background: var(--st-eyebrow-bg);
  border: 1px solid var(--st-eyebrow-border);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Navbar */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--st-nav-bg);
  border-bottom: 1px solid var(--st-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.st-nav a.st-nav-link {
  color: var(--st-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.st-nav a.st-nav-link:hover { color: var(--st-text-strong); }

.st-nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.st-nav-toggle-btn {
  background: none;
  border: 0;
  color: var(--st-text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* User menu */
.st-user-menu { position: relative; }
.st-user-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  color: var(--st-text);
  padding: .4rem .7rem;
  border-radius: 10px;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.st-user-btn:hover { border-color: var(--st-primary); box-shadow: var(--st-glow); }
.st-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(135deg, var(--st-primary-2), var(--st-primary));
}
.st-user-name { font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  width: 230px;
  background: var(--st-surface-solid);
  border: 1px solid var(--st-border);
  border-radius: 12px;
  box-shadow: var(--st-dropdown-shadow);
  padding: .4rem;
  z-index: 60;
}
.st-user-dropdown.open { display: block; }
.st-user-head { padding: .6rem .7rem; border-bottom: 1px solid var(--st-border); margin-bottom: .35rem; }
.st-user-fullname { font-weight: 700; color: var(--st-text); font-size: .92rem; }
.st-user-email { color: var(--st-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-user-label { color: var(--st-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .7rem .15rem; }
.st-user-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  color: var(--st-text);
  text-decoration: none;
  font-size: .88rem;
  transition: background .15s;
}
.st-user-item:hover { background: var(--st-surface-hover); color: var(--st-text-strong); }
.st-user-item i { width: 16px; text-align: center; color: var(--st-muted); }
.st-user-logout { color: #f87171; }
.st-user-logout i { color: #f87171; }
.st-user-sep { height: 1px; background: var(--st-border); margin: .35rem 0; }

/* Footer */
.st-footer {
  border-top: 1px solid var(--st-border);
  background: var(--st-bg-2);
  color: var(--st-muted);
  transition: background 0.25s ease;
}
.st-footer-topline { height: 3px; background: linear-gradient(90deg, var(--st-primary-2), var(--st-primary), var(--st-accent)); }
.st-footer-title {
  color: var(--st-text-strong);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 1.1rem;
}
.st-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.st-footer-bottom { border-top: 1px solid var(--st-border); margin-top: 3rem; }
.st-footer-bar {
  padding: 1.15rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem 1.5rem;
  align-items: center;
}
.st-footer-copy { font-size: .88rem; }
.st-made-by {
  margin: 0;
  justify-self: center;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--st-muted);
  white-space: nowrap;
}
.st-heart {
  display: inline-block;
  margin: 0 .18em;
  font-size: .92em;
  line-height: 1;
  vertical-align: .05em;
}
.st-made-name {
  color: inherit;
  font: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-decoration: none;
}
.st-made-name:hover {
  color: var(--st-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.st-footer-meta {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  justify-self: end;
  flex-wrap: wrap;
}
.st-footer-meta .st-nav-link,
.st-footer-powered { font-size: .85rem; }
.st-footer-powered .st-gradient-text { font-weight: 600; }
@media (max-width: 768px) {
  .st-footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .st-footer-meta { justify-self: center; justify-content: center; }
}
.st-social { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--st-border);
  color: var(--st-text);
  background: var(--st-surface);
  transition: all .2s;
  text-decoration: none;
}
.st-social a:hover {
  border-color: var(--st-primary);
  color: var(--st-text-strong);
  box-shadow: var(--st-glow);
  transform: translateY(-2px);
}

#st-back-to-top {
  position: fixed;
  bottom: 1.3rem;
  right: 1.3rem;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--st-primary-2), var(--st-primary));
  box-shadow: var(--st-glow);
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  font-size: 1rem;
}
#st-back-to-top.show { opacity: 1; visibility: visible; }
#st-back-to-top:hover { transform: scale(1.1); }

.st-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.st-reveal.is-visible { opacity: 1; transform: none; }

.st-faq-item { border: 1px solid var(--st-border); border-radius: .75rem; overflow: hidden; margin-bottom: .75rem; background: var(--st-surface); }
.st-faq-q { width: 100%; text-align: left; background: transparent; color: var(--st-text); border: 0; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.st-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 1.25rem; color: var(--st-muted); }
.st-faq-item.open .st-faq-a { max-height: 320px; padding-bottom: 1.1rem; }

.st-table { width: 100%; border-collapse: collapse; }
.st-table th, .st-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--st-border); }
.st-table th { color: var(--st-table-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.st-table td { color: var(--st-text); }

.st-input {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--st-input-bg);
  border: 1px solid var(--st-border);
  border-radius: .6rem;
  color: var(--st-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.st-input:focus { outline: none; border-color: var(--st-primary); box-shadow: var(--st-glow); }
.st-label { display: block; margin-bottom: .35rem; font-size: .85rem; color: var(--st-muted); }

.st-alert { padding: .85rem 1rem; border-radius: .6rem; margin-bottom: 1rem; border: 1px solid; }
.st-alert-error { background: var(--st-alert-error-bg); border-color: rgba(239, 68, 68, .35); color: var(--st-alert-error-text); }
.st-alert-success { background: var(--st-alert-success-bg); border-color: rgba(34, 197, 94, .35); color: var(--st-alert-success-text); }
.st-alert-info { background: var(--st-alert-info-bg); border-color: rgba(34, 211, 238, .35); color: var(--st-alert-info-text); }

@media (max-width: 768px) {
  .st-section { padding: 3rem 0; }
  #st-nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--st-surface-solid);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--st-border);
    display: none;
    align-items: stretch;
    box-shadow: var(--st-dropdown-shadow);
  }
  #st-nav-menu.open { display: flex; }
  .st-user-menu { width: 100%; }
  .st-user-dropdown { position: static; width: 100%; margin-top: .5rem; }
  .st-footer-grid { grid-template-columns: 1fr !important; }
}

html[data-theme-toggle="0"] .st-theme-toggle,
html[data-theme-toggle="0"] .p-theme-toggle { display: none !important; }

/* --- Typography & utilities ----------------------------------------- */
main h1, main h2, main h3, main h4, main h5 {
  color: var(--st-heading);
}
.st-muted { color: var(--st-muted); }
.st-page-header { text-align: center; margin-bottom: 2.5rem; }
.st-page-header--lg { margin-bottom: 3rem; }
.st-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: .5rem 0;
  color: var(--st-heading);
}
.st-section-lead {
  color: var(--st-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.st-section-intro { text-align: center; margin-bottom: 3rem; }
.st-breadcrumb {
  color: var(--st-muted);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.st-breadcrumb strong { color: var(--st-heading); font-weight: 600; }

/* Grids */
.st-grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.st-grid-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.st-grid-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.st-grid-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.st-grid-resellers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.st-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* Feature / icon blocks */
.st-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st-icon-box-bg);
  box-shadow: var(--st-icon-box-shadow);
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
}
.st-feature-title {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--st-heading);
}
.st-feature-text { color: var(--st-muted); margin: 0; line-height: 1.65; }
.st-stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin: .5rem 0 0;
  color: var(--st-heading);
}
.st-step-num {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: .45;
  color: var(--st-primary-2);
}
html[data-theme="light"] .st-step-num { opacity: .35; color: #0078b4; }
.st-card-title-sm {
  margin: .25rem 0;
  font-weight: 700;
  color: var(--st-heading);
}
.st-card-meta { color: var(--st-muted); font-size: .85rem; }
.st-card-link {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.st-card-link:hover { color: inherit; }
.st-card-plain {
  text-decoration: none;
  color: inherit;
  display: block;
}
.st-card-plain:hover { color: inherit; }

/* CTA band */
.st-cta-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--st-cta-bg) !important;
  border-color: var(--st-cta-border) !important;
}
.st-cta-card .st-section-title { margin-bottom: 1rem; }

/* Avatar circle (resellers, etc.) */
.st-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--st-primary-2), var(--st-accent));
  flex-shrink: 0;
}
.st-avatar--md {
  width: 48px;
  height: 48px;
  border-radius: .7rem;
}
.st-role-card {
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
}
.st-role-card:hover { border-color: var(--st-primary) !important; }

/* Rich HTML blocks (changelog, descriptions) */
.st-changelog,
.st-prose {
  color: var(--st-prose);
  line-height: 1.7;
}
.st-changelog h1, .st-changelog h2, .st-changelog h3,
.st-prose h1, .st-prose h2, .st-prose h3 {
  color: var(--st-heading);
  margin-top: 1.25rem;
}
.st-changelog a, .st-prose a { color: var(--st-link); }
.st-changelog ul, .st-prose ul { padding-left: 1.25rem; }
.st-changelog li, .st-prose li { margin-bottom: .35rem; }
html[data-theme="light"] .st-changelog,
html[data-theme="light"] .st-prose {
  color: var(--st-prose);
}

/* Public pagination (shared markup with panel) */
.pagination ul { display: flex; gap: .35rem; list-style: none; padding: 0; margin: 1.5rem 0 0; justify-content: center; flex-wrap: wrap; }
.pagination li a {
  display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid var(--st-border); border-radius: .45rem; color: var(--st-muted);
  padding: 0 .5rem; text-decoration: none; background: var(--st-surface-solid);
}
.pagination li a:hover { border-color: var(--st-primary); color: var(--st-heading); }
.pagination li.active a {
  background: linear-gradient(90deg, var(--st-primary-2), var(--st-primary));
  color: #fff; border-color: transparent;
}
.pagination li.disabled a { opacity: .4; pointer-events: none; }

/* Light-mode polish */
html[data-theme="light"] main .st-card {
  box-shadow: var(--st-card-shadow);
}
html[data-theme="light"] .st-card:hover {
  box-shadow: 0 4px 6px rgba(45, 38, 64, 0.04), 0 16px 36px rgba(0, 160, 220, 0.1);
}
html[data-theme="light"] .st-faq-item {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(45, 38, 64, 0.04);
}
html[data-theme="light"] .st-faq-q { color: var(--st-heading); }
html[data-theme="light"] .st-grid { opacity: .85; }
html[data-theme="light"] .st-social a {
  background: #ffffff;
  color: var(--st-primary-2);
}
html[data-theme="light"] .st-social a:hover {
  background: #e8f4fa;
  color: #0078b4;
}
html[data-theme="light"] select.st-input,
html[data-theme="light"] .st-input {
  box-shadow: 0 1px 2px rgba(45, 38, 64, 0.04);
}

/* Hero */
.st-hero { padding-top: 5rem; text-align: center; }
.st-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin: .5rem 0;
  line-height: 1.05;
}
.st-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin: 0 0 1rem;
}
.st-hero-desc {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--st-muted);
  font-size: 1.05rem;
}
.st-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.st-hero-note {
  margin-top: 1.5rem;
  color: var(--st-muted);
  font-size: .9rem;
}
.st-hero-note strong { color: var(--st-heading); }

.st-status-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.st-status-icon--success { color: var(--st-alert-success-text); }
.st-status-icon--error { color: var(--st-alert-error-text); }
.st-status-icon--info { color: var(--st-primary); }
.st-status-title { margin: 1rem 0 .5rem; color: var(--st-heading); font-size: 1.5rem; font-weight: 700; }

/* Auth forms */
.st-auth-wrap { max-width: 440px; margin: 0 auto; }
.st-auth-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  color: var(--st-heading);
}
.st-auth-title--spaced { margin-bottom: 1.5rem; }
.st-auth-lead {
  text-align: center;
  color: var(--st-muted);
  margin: 0 0 1.5rem;
}
.st-auth-footer {
  text-align: center;
  color: var(--st-muted);
  margin-top: 1.25rem;
}
.st-auth-hint {
  color: var(--st-muted);
  font-size: .78rem;
}
.st-link {
  color: var(--st-link);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease;
}
.st-link:hover { color: var(--st-primary-2); }
.st-nav-link.st-link { color: var(--st-link); }

/* Icons & meta */
.st-icon-primary { color: var(--st-primary); }
.st-icon-accent { color: var(--st-accent); }
html[data-theme="light"] .st-icon-accent { color: #0891b2; }
.st-icon-lg { font-size: 1.6rem; }
.st-icon-xl { font-size: 2rem; margin-bottom: .5rem; }
.st-icon-2xl { font-size: 2.5rem; }
.st-icon-hero { font-size: 4rem; }
.st-meta-line {
  color: var(--st-muted);
  font-size: .85rem;
  margin-top: .35rem;
}
.st-meta-line i { opacity: .85; margin-right: .15rem; }

/* Layout helpers */
.st-card--center { text-align: center; }
.st-empty-state { text-align: center; }
.st-empty-state i { font-size: 2rem; color: var(--st-muted); display: block; }
.st-empty-state p { color: var(--st-muted); margin-top: 1rem; }
.st-grid-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.st-model-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
.st-model-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: var(--st-heading);
}
.st-tag-inline { margin: 0 !important; }
.st-eyebrow--chip {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .12em;
}
.st-reseller-name { font-weight: 700; color: var(--st-heading); }
.st-reseller-location { color: var(--st-muted); font-size: .85rem; }
.st-reseller-bio { color: var(--st-muted); font-size: .9rem; margin: .5rem 0; }
.st-model-placeholder {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light-mode refinements */
html[data-theme="light"] .st-stat-value {
  color: var(--st-heading);
  text-shadow: none;
}
html[data-theme="light"] .st-cta-card .st-neon,
html[data-theme="light"] .st-auth-title.st-neon {
  text-shadow: none;
  color: var(--st-heading);
}
html[data-theme="light"] .st-nav a.st-nav-link:hover {
  color: var(--st-link);
}
html[data-theme="light"] .st-footer {
  background: #ece9f4;
}
html[data-theme="light"] .st-changelog img,
html[data-theme="light"] .st-prose img {
  border-radius: .5rem;
  border: 1px solid var(--st-border);
}
html[data-theme="light"] .st-footer-links a.st-nav-link:hover {
  color: var(--st-link);
}
html[data-theme="light"] .st-card-title-sm,
html[data-theme="light"] .st-feature-title {
  color: var(--st-heading);
}

@media (max-width: 768px) {
  .st-model-grid { grid-template-columns: 1fr !important; }
}

/* ===== Skip-to-content link ===== */
.st-skip-link {
  position: absolute; top: -100px; left: 1rem;
  z-index: 9999;
  background: var(--st-primary, #6c5ce7); color: #fff;
  padding: .75rem 1.25rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; font-size: .9rem;
}
.st-skip-link:focus {
  top: 1rem;
}

/* ===== Enhanced focus-visible ===== */
*:focus-visible {
  outline: 2px solid var(--st-primary, #6c5ce7);
  outline-offset: 2px;
}

/* ===== Loading spinner ===== */
.st-spinner {
  display: inline-block; width: 1em; height: 1em;
  border: .15em solid var(--st-border, #e2e8f0);
  border-top-color: var(--st-primary, #6c5ce7);
  border-radius: 50%;
  animation: st-spin .6s linear infinite;
}
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-btn.loading {
  pointer-events: none; opacity: .7; position: relative;
}
.st-btn.loading::after {
  content: ''; position: absolute;
  width: 1em; height: 1em;
  border: .12em solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: st-spin .6s linear infinite;
  margin-left: .5em;
}

