/* ================================================================
   ARK TOOLKIT — Premium Design System
   Clean consolidated stylesheet — all version patches unified
   ================================================================ */

/* ----------------------------------------------------------------
   1. VARIABLES & RESET
   ---------------------------------------------------------------- */
:root {
  --bg:            #040b14;
  --bg-2:          #060e1a;
  --panel:         #0b1521;
  --panel-2:       #0f1b2a;
  --line:          rgba(255,255,255,.07);
  --line-2:        rgba(255,255,255,.13);
  --text:          #edf4ff;
  --muted:         #8ea2bc;
  --blue:          #4c8ef7;
  --blue-2:        #73b0ff;
  --blue-dim:      rgba(76,142,247,.12);
  --green:         #34d399;
  --amber:         #fbbf24;
  --red:           #f87171;

  --shadow-sm:     0 4px 16px rgba(0,0,0,.18);
  --shadow-md:     0 12px 36px rgba(0,0,0,.22);
  --shadow-lg:     0 28px 72px rgba(0,0,0,.30);

  --radius-sm:     12px;
  --radius-md:     18px;
  --radius-lg:     26px;
  --radius-xl:     34px;

  --nav-h:         80px;
  --container:     1680px;

  --ease-out:      cubic-bezier(0.22,1,0.36,1);
  --ease-smooth:   cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 38%, rgba(76,142,247,.09) 0%, transparent 42%),
    radial-gradient(circle at 18% 82%, rgba(76,142,247,.06) 0%, transparent 38%),
    radial-gradient(circle at 50% 0%,  rgba(76,142,247,.07) 0%, transparent 28%),
    #020719;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

main { flex: 1 0 auto; position: relative; z-index: 1; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   2. AMBIENT DECORATION
   ---------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(76,142,247,.055), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(115,176,255,.04),  transparent 26%),
    radial-gradient(circle at 50% 98%, rgba(76,142,247,.04),   transparent 30%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(118deg, transparent 0%, rgba(255,255,255,.013) 48%, transparent 62%);
  opacity: .18;
  animation: pageSweep 14s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   3. LOADER
   ---------------------------------------------------------------- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #020b14;
  display: grid;
  place-items: center;
  transition: opacity .48s ease, visibility .48s ease;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; }
.site-loader-inner {
  position: relative;
  display: grid;
  place-items: center;
  animation: loaderAppear .5s ease both;
}
.loader-ring {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(76,142,247,.12);
  border-top-color: rgba(115,176,255,.9);
  animation: spin 1.1s linear infinite;
}
.loader-logo {
  width: 88px; height: 88px;
  object-fit: contain;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   4. TOPBAR & NAVIGATION
   ---------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(4,11,20,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.045);
  flex: 0 0 auto;
  position: relative;
  z-index: 200;
}

.nav-shell {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  gap: 16px;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  backdrop-filter: blur(10px);
}

.nav-center a {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: -.01em;
  transition: background .18s ease, color .18s ease;
  position: relative;
}
.nav-center a:hover {
  color: var(--text);
  background: rgba(255,255,255,.05);
}
.nav-center a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-center a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 6px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--blue-2), transparent);
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .22s ease, transform .22s ease;
}
.nav-center a:hover::after,
.nav-center a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-icon-link {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.header-icon-link:hover {
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.header-icon-link svg { width: 18px; height: 18px; fill: #cce0ff; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color .18s ease;
}
.mobile-toggle:hover { border-color: var(--line-2); }
.mobile-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}

/* ----------------------------------------------------------------
   5. BRAND (TOP LEFT)
   ---------------------------------------------------------------- */
.brand-plain-v20 {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  animation: brandReveal .7s var(--ease-out) both;
}
.brand-plain-v20 img {
  width: 32px; height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: transform .4s ease;
}
.brand-plain-v20:hover img {
  transform: scale(1.06);
}
.brand-text {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -.05em;
  line-height: 1;
}
.brand-ark    { color: #ffffff; }
.brand-toolkit { color: var(--blue); margin-left: 3px; }

/* ----------------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4c8ef7 0%, #2563eb 100%);
  box-shadow: 0 10px 32px rgba(76,142,247,.30);
}
.btn-primary:hover {
  box-shadow: 0 16px 42px rgba(76,142,247,.40);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 28%, rgba(255,255,255,.18) 50%, transparent 72%);
  transform: translateX(-140%);
  transition: transform .55s ease;
}
.btn-primary:hover::after { transform: translateX(140%); }

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--line-2);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  font-weight: 600;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 9px 16px;
  font-size: .86rem;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------
   7. SHARED FORM ELEMENTS
   ---------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  color: #cce0ff;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.field-optional {
  color: var(--muted);
  font-weight: 400;
  font-size: .82rem;
  margin-left: 6px;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: rgba(76,142,247,.5);
  background: rgba(76,142,247,.04);
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(142,162,188,.6);
}
.field-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 6px;
  background: var(--muted);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.field-select { padding-right: 44px; cursor: pointer; }
.field-select option { background: #0a1420; color: var(--text); }

.form-error {
  min-height: 18px;
  color: #ff9a9a;
  font-size: .88rem;
  margin: 0;
}

/* ----------------------------------------------------------------
   8. CARDS & PANELS (shared)
   ---------------------------------------------------------------- */
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.panel:hover {
  border-color: var(--line-2);
}

/* ----------------------------------------------------------------
   9. REVEAL ANIMATION SYSTEM
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   10. PAGE HERO (shared)
   ---------------------------------------------------------------- */
.page-hero {
  padding: 56px 0 28px;
}
.page-title {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: .9;
  letter-spacing: -.08em;
  margin-bottom: 10px;
  animation: titleFade .75s var(--ease-out) both;
}
.lead {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
  max-width: 580px;
  animation: softRise .75s var(--ease-out) .08s both;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.026);
  color: var(--blue-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ----------------------------------------------------------------
   11. HOME PAGE
   ---------------------------------------------------------------- */
.hero-home-v20 {
  padding: 38px 0 18px;
}
.hero-home-grid-v20 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 100px);
}
.hero-copy {
  max-width: 780px;
}
.hero-copy h1 {
  font-size: clamp(3.6rem, 6.2vw, 6.4rem);
  line-height: .88;
  letter-spacing: -.09em;
  margin-bottom: 16px;
  animation: titleFade .8s var(--ease-out) both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  animation: softRise .8s var(--ease-out) .1s both;
}
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 640px;
  animation: softRise .8s var(--ease-out) .16s both;
}
.hero-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.032);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-stat:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: rgba(255,255,255,.05);
}
.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.hero-stat strong {
  font-size: .96rem;
  font-weight: 700;
}

/* Home hero right side */
.hero-right-v20 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  animation: softRise .9s var(--ease-out) .05s both;
}
.hero-logo-clean.hero-logo-home-huge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-logo-clean.hero-logo-home-huge img {
  width: 540px;
  max-width: 46vw;
  height: auto;
}

/* ----------------------------------------------------------------
   12. FEATURES PAGE
   ---------------------------------------------------------------- */
.features-hero {
  padding: 52px 0 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.feature-card {
  min-height: 148px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: rgba(255,255,255,.048);
  box-shadow: 0 20px 48px rgba(0,0,0,.22);
}
.feature-card-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76,142,247,.22);
  background: rgba(76,142,247,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.feature-card-icon svg {
  width: 18px; height: 18px;
  fill: var(--blue-2);
}
.feature-card strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.feature-card span {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

/* Features deep dive section title */
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .92;
  letter-spacing: -.06em;
  margin-bottom: 28px;
}

/* ----------------------------------------------------------------
   13. KEYS / BUY PAGE — V22 PREMIUM
   ---------------------------------------------------------------- */
.keys-v22 {
  padding: 38px 0 0;
}
.keys-layout-v22 {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h) - 100px);
}

.keys-left-v22 {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.keys-logo-wrap-v22 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
}
.keys-logo-v22 {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
}
.keys-left-copy-v22 h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  line-height: .92;
  letter-spacing: -.07em;
  margin-bottom: 10px;
}
.keys-left-copy-v22 p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}

/* Trust badges */
.keys-trust-v22 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trust-item-v22 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: .9rem;
  font-weight: 600;
  color: #cce0ff;
  transition: border-color .2s ease, background .2s ease;
}
.trust-item-v22:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,.04);
}
.trust-item-v22 svg {
  width: 16px; height: 16px;
  fill: var(--blue-2);
  flex: 0 0 auto;
}

/* Right panel */
.keys-right-v22 {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.keys-header-v22 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.keys-header-v22 h1 {
  font-size: clamp(3.4rem, 5.5vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.09em;
}
.keys-header-v22 span {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

/* Plan card grid */
.keys-grid-v22 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
}

/* Individual plan card */
.key-card-v22 {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.024);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.key-card-v22:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: rgba(255,255,255,.042);
  box-shadow: 0 24px 56px rgba(0,0,0,.22);
}
.key-card-v22.featured {
  border-color: rgba(76,142,247,.42);
  background: linear-gradient(160deg, rgba(76,142,247,.15), rgba(76,142,247,.06) 60%, rgba(255,255,255,.014));
}
.key-card-v22.featured:hover {
  border-color: rgba(76,142,247,.7);
  background: linear-gradient(160deg, rgba(76,142,247,.22), rgba(76,142,247,.1) 60%, rgba(255,255,255,.024));
}

/* Badge (Most Popular) */
.plan-badge-v22 {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.plan-period-v22 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.plan-name-v22 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.plan-features-v22 {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex: 1;
}
.plan-features-v22 li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}
.plan-features-v22 li::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(115,176,255,.35);
  background: rgba(76,142,247,.1);
  flex: 0 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l2.5 2.5L11 4.5' stroke='%2373b0ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

/* Note under cards */
.keys-note-v22 {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.018);
  text-align: center;
}
.keys-note-v22 span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   14. HOW IT WORKS STRIP
   ---------------------------------------------------------------- */
.how-v22 {
  padding: 40px 0 24px;
}
.how-steps-v22 {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(255,255,255,.028), rgba(255,255,255,.014));
  overflow: hidden;
}
.how-step-v22 {
  flex: 1;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.how-num-v22 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: rgba(76,142,247,.4);
  line-height: 1;
  margin-bottom: 4px;
}
.how-step-v22 strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.how-step-v22 span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.how-divider-v22 {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   15. WHAT YOU GET — ACCORDION
   ---------------------------------------------------------------- */
.what-v22 {
  padding: 16px 0 48px;
}
.what-title-v22 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: .9;
  letter-spacing: -.08em;
  text-transform: lowercase;
  text-align: center;
  margin-bottom: 32px;
}

/* Accordion wrapper */
.accs-v22 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-item-v22 {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.024);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.acc-item-v22.open,
.acc-item-v22:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,.036);
}

.acc-trigger-v22 {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.acc-icon-v22 {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76,142,247,.22);
  background: rgba(76,142,247,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .2s ease, border-color .2s ease;
}
.acc-item-v22.open .acc-icon-v22 {
  background: rgba(76,142,247,.18);
  border-color: rgba(76,142,247,.4);
}
.acc-icon-v22 svg {
  width: 17px; height: 17px;
  fill: var(--blue-2);
}
.acc-label-v22 {
  flex: 1;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.acc-chevron-v22 {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: transform .3s var(--ease-smooth);
}
.acc-item-v22.open .acc-chevron-v22 {
  transform: rotate(180deg);
}
.acc-chevron-v22 svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.acc-body-v22 {
  max-height: 0;
  overflow: hidden;
  transition: max-height .36s var(--ease-smooth);
}
.acc-inner-v22 {
  padding: 0 22px 22px 76px;
}
.acc-inner-v22 p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.acc-list-v22 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-list-v22 li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cce0ff;
  font-size: .9rem;
  font-weight: 500;
}
.acc-list-v22 li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   16. CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-hero {
  padding: 52px 0 28px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 110px);
}
.contact-copy { max-width: 640px; }
.contact-copy h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: .88;
  letter-spacing: -.09em;
  margin-bottom: 14px;
  animation: titleFade .8s var(--ease-out) both;
}
.hero-actions { animation: softRise .8s var(--ease-out) .1s both; }

.support-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  box-shadow: var(--shadow-md);
  transition: transform .22s ease, border-color .22s ease;
}
.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}
.support-top {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.support-logo-clean {
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-logo-clean img {
  width: 80px;
  height: auto;
}
.support-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: .92;
  letter-spacing: -.06em;
}

.support-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.contact-mini {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.028);
  transition: transform .2s ease, border-color .2s ease;
}
.contact-mini:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.contact-mini span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.contact-mini strong { font-size: .94rem; }

.discord-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.026);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.discord-link-box:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: rgba(255,255,255,.04);
}
.discord-link-box span { color: var(--muted); font-size: .88rem; }
.discord-link-box strong { font-size: .96rem; font-weight: 700; }

/* Support ticket CTA strip on contact page */
.contact-ticket-cta {
  margin-top: 28px;
  padding: 0 0 48px;
}
.ticket-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(76,142,247,.08), rgba(255,255,255,.018));
  transition: border-color .2s ease;
}
.ticket-cta-strip:hover { border-color: rgba(76,142,247,.3); }
.ticket-cta-copy strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.ticket-cta-copy span {
  color: var(--muted);
  font-size: .9rem;
}

/* ----------------------------------------------------------------
   17. SUPPORT PAGE
   ---------------------------------------------------------------- */
.sp-hero {
  padding: 52px 0 28px;
}

/* Tab navigation */
.sp-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.024);
  width: fit-content;
  margin-bottom: 28px;
}
.sp-tab {
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.sp-tab:hover { color: var(--text); }
.sp-tab.active {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

/* Tab panes */
.sp-pane { display: none; }
.sp-pane.active { display: block; }

/* Support page layout (two columns) */
.sp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px;
  align-items: start;
}

/* Form panel */
.sp-form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 32px;
}
.sp-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}
.sp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Priority radio grid */
.sp-priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.sp-priority-option {
  position: relative;
}
.sp-priority-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.sp-priority-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  text-align: center;
}
.sp-priority-label:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,.042);
}
.sp-priority-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.sp-priority-option input:checked + .sp-priority-label {
  border-color: rgba(76,142,247,.5);
  background: rgba(76,142,247,.1);
}

/* Priority dot colors */
.dot-low    { background: var(--green); }
.dot-medium { background: var(--amber); }
.dot-high   { background: #f97316; }
.dot-urgent { background: var(--red); }

.sp-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}
.sp-success-msg {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: .9rem;
  font-weight: 600;
}
.sp-success-msg.visible { display: flex; }

/* Right info panel */
.sp-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stats card */
.sp-stat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sp-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sp-stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.sp-stat-row:first-child { padding-top: 0; }
.sp-stat-row span { color: var(--muted); font-size: .88rem; }
.sp-stat-row strong { font-size: .96rem; font-weight: 700; }
.sp-status-green { color: var(--green); }
.sp-status-amber { color: var(--amber); }
.sp-stat-panel-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Expect panel */
.sp-expect-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  padding: 22px;
}
.sp-expect-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.sp-expect-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-expect-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}
.sp-expect-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 auto;
}

/* Discord quick link in info panel */
.sp-discord-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.026);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.sp-discord-link:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}
.sp-discord-link-text span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: 3px;
}
.sp-discord-link-text strong { font-size: .96rem; }
.sp-discord-link svg {
  width: 20px; height: 20px;
  fill: var(--blue-2);
  flex: 0 0 auto;
}

/* Ticket list (My Tickets tab) */
.sp-tickets-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  overflow: hidden;
}
.sp-tickets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.sp-tickets-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.sp-ticket-row {
  display: grid;
  grid-template-columns: 110px auto 1fr auto 90px;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.sp-ticket-row:last-child { border-bottom: none; }
.sp-ticket-row:hover { background: rgba(255,255,255,.018); }
.sp-ticket-id {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-2);
  font-family: monospace;
  letter-spacing: -.01em;
}
.sp-ticket-subject {
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-ticket-time {
  font-size: .8rem;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-blue   { background: rgba(76,142,247,.18); color: #73b0ff; border: 1px solid rgba(76,142,247,.3); }
.badge-green  { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.badge-amber  { background: rgba(251,191,36,.15);  color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.badge-muted  { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }

.sp-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .94rem;
}
.sp-empty-state strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* ----------------------------------------------------------------
   18. DASHBOARD PAGE
   ---------------------------------------------------------------- */
.dashboard-hero {
  padding: 48px 0 28px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: start;
}
.dashboard-main h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.08em;
  margin-bottom: 12px;
  animation: titleFade .8s var(--ease-out) both;
}
.dashboard-main .lead {
  animation: softRise .8s var(--ease-out) .08s both;
}
.dashboard-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  animation: softRise .8s var(--ease-out) .14s both;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014));
  box-shadow: var(--shadow-md);
  padding: 28px;
  transition: transform .22s ease, border-color .22s ease;
}
.dashboard-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.dashboard-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dashboard-brand img {
  width: 52px; height: 52px;
  object-fit: contain;
}
.dashboard-brand strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dashboard-brand span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(52,211,153,.3);
  background: rgba(52,211,153,.1);
  font-size: .82rem;
  font-weight: 700;
  color: var(--green);
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52,211,153,.5);
  animation: statusPulse 2s ease-in-out infinite;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.dashboard-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.dashboard-stat span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
}
.dashboard-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Activity + quick links below main card — spans full dashboard grid width */
.dash-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  grid-column: 1 / -1;
}
.dash-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.024);
  padding: 20px;
}
.dash-panel-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.dot-blue  { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-muted { background: var(--muted); }
.dash-activity-text {
  flex: 1;
  font-size: .88rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.dash-activity-time {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.dash-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.dash-quicklink:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,.042);
  transform: translateX(3px);
}
.dash-quicklink svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------
   19. LOGIN PAGE
   ---------------------------------------------------------------- */
.login-page { overflow: hidden; }
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
}
.login-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 700;
  font-size: .88rem;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.login-back:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: rgba(255,255,255,.05);
}

.login-wrap {
  width: min(100%, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.login-panel {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.036), rgba(255,255,255,.016));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: loginPanelIn .7s var(--ease-out) both;
}
.login-center-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.login-center-logo img {
  width: 80px;
  height: auto;
  object-fit: contain;
}
.login-panel-heading {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .92;
  text-align: center;
  margin-bottom: 6px;
}
.login-panel-sub {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 26px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.login-form label span {
  color: #cce0ff;
  font-size: .88rem;
  font-weight: 600;
}
.login-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.login-form input:focus {
  border-color: rgba(76,142,247,.5);
  background: rgba(76,142,247,.04);
}
.login-form input::placeholder { color: rgba(142,162,188,.55); }
.login-extras {
  display: flex;
  justify-content: flex-end;
}
.login-forgot {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  transition: color .18s ease;
}
.login-forgot:hover { color: var(--blue-2); }

/* ----------------------------------------------------------------
   20. FOOTER
   ---------------------------------------------------------------- */
.footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.055);
  padding: 18px 0 22px;
  margin-top: auto;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-note {
  color: var(--muted);
  font-size: .88rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: .88rem;
}
.footer-links a {
  transition: color .18s ease;
}
.footer-links a:hover { color: var(--text); }

/* ----------------------------------------------------------------
   21. KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes ambientDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-14px,0) scale(1.04); }
}
@keyframes pageSweep {
  0%, 76% { transform: translateX(-110%); }
  100%     { transform: translateX(110%); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: .78; transform: scale(1.06); }
}
@keyframes loaderAppear {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes brandReveal {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes titleFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes softRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes loginPanelIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.85); }
}

/* ----------------------------------------------------------------
   22. RESPONSIVE — ≤1180px
   ---------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero-home-grid-v20 {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
  }
  .hero-right-v20 { min-height: 280px; order: -1; }
  .hero-logo-clean.hero-logo-home-huge img {
    width: min(100%, 320px);
    max-width: 100%;
  }
  .hero-stat-row { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .keys-layout-v22 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .keys-left-v22, .keys-right-v22 { min-height: auto; }
  .keys-logo-wrap-v22 { min-height: 180px; }
  .keys-logo-v22 { width: 140px; }
  .keys-grid-v22 { grid-template-columns: 1fr; }
  .keys-header-v22 { flex-direction: column; margin-bottom: 20px; }

  .how-steps-v22 {
    flex-direction: column;
    gap: 0;
  }
  .how-step-v22 {
    border-bottom: 1px solid var(--line);
  }
  .how-step-v22:last-child { border-bottom: none; }
  .how-divider-v22 { display: none; }

  .contact-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .support-top { grid-template-columns: 1fr; }

  .sp-layout { grid-template-columns: 1fr; }
  .sp-priority-grid { grid-template-columns: repeat(2, 1fr); }

  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-lower { grid-column: 1; grid-template-columns: 1fr; }

  .sp-ticket-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ----------------------------------------------------------------
   23. RESPONSIVE — ≤940px
   ---------------------------------------------------------------- */
@media (max-width: 940px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .nav-center {
    position: static;
    transform: none;
    display: none;
    width: 100%;
    order: 4;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-md);
  }
  .nav-center.open { display: flex; }
  .mobile-toggle { display: flex; }
  .nav-shell { flex-wrap: wrap; padding: 10px 0; }

  .hero-copy h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }

  .feature-grid { grid-template-columns: 1fr; }

  .keys-left-v22, .keys-right-v22 {
    padding: 22px;
    border-radius: var(--radius-lg);
  }

  .login-back { top: 14px; left: 14px; }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-links { flex-wrap: wrap; gap: 14px; }

  .ticket-cta-strip { flex-direction: column; align-items: flex-start; }

  .sp-priority-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------------------------------------------
   24. REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------
   25. FINAL POLISH ADDITIONS
   ---------------------------------------------------------------- */

/* Plan card selected highlight (JS) */
.key-card-v22.selected {
  border-color: rgba(76,142,247,.6);
  box-shadow: 0 0 0 2px rgba(76,142,247,.18), 0 24px 56px rgba(0,0,0,.22);
}
.key-card-v22.featured.selected {
  box-shadow: 0 0 0 2px rgba(115,176,255,.35), 0 24px 56px rgba(0,0,0,.22);
}

/* Section spacing utility */
.section { padding: 24px 0 52px; }

/* Topbar sticky — ensure it's on top always */
.topbar { position: sticky !important; top: 0; z-index: 200; }

/* Feature card icon — also keep solid icons looking right */
.feature-card-icon svg { fill: var(--blue-2); }

/* Support priority — ensure selected radio label readable */
.sp-priority-option input:checked + .sp-priority-label .sp-priority-dot {
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

/* Auth loader — always on top */
.site-loader { z-index: 900; }

/* Ticket CTA strip — ensure it acts as link block */
a.ticket-cta-strip { display: flex; }

/* Smooth hover on all interactive links in nav/footer */
.footer-links a,
.nav-center a {
  will-change: color;
}

/* Keys left panel logo — center it properly in flex parent */
.keys-logo-wrap-v22 img {
  display: block;
  margin: auto;
}

/* Plan features list — tighter on small cards */
@media (max-width: 1400px) {
  .plan-features-v22 li { font-size: .84rem; }
}

/* Dashboard lower panels equal height */
.dash-panel {
  align-self: start;
}

/* Modal / panel scrollbar styling (webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.1);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.18);
}

