/* ============================================================
   VIKO CHEAT — Simplify layer (loaded last)
   Lighter theme, slim header, clearer product page.
   Remove this file from head-assets.php to go back to the old look.
   ============================================================ */

:root {
  /* Lighter, softer surfaces (was near-black) */
  --c-void:      #0D141F;
  --c-black:     #101826;
  --surface-0:   #0D141F;
  --surface-1:   #131C2A;
  --surface-2:   #192435;
  --surface-3:   #202D42;
  --surface-4:   #283750;
  --line:        rgba(200, 215, 235, 0.12);
  --line-mid:    rgba(200, 215, 235, 0.22);
  --line-strong: rgba(200, 215, 235, 0.38);
  --tx:          #D9E2EE;
  --tx-muted:    #9FADBF;
  --tx-faint:    #7F8DA0;
  --c-soft:      #D9E2EE;
  --c-muted:     #9FADBF;
  --header-height: 56px;
}
body { background: var(--surface-0); }
.scene-vignette { background: linear-gradient(180deg, transparent 70%, rgba(13, 20, 31, 0.5)); }
.viko-scene.is-ready { opacity: 0.4; }
body.is-console { --header-height: 56px; }

/* ── Header: slim, solid, three links ───────────────────── */
.site-header, .site-header.is-scrolled, .site-header.scrolled {
  background: rgba(13, 20, 31, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { display: none; }
.site-header .container { gap: var(--space-5); }
.viko-brand img.viko-mark { height: 28px; }
.viko-wordmark b { font-size: 1rem; letter-spacing: 0.12em; }
.main-nav a { font-size: 0.9375rem; padding: 0 14px; }
.header-actions { gap: 2px; }
.header-auth { margin-left: 8px; }
.account-trigger .name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Drawers match the lighter theme ────────────────────── */
body.is-console .dashboard-sidebar, body.is-account .dashboard-sidebar { background: var(--surface-1); }
.mobile-nav { background: rgba(13, 20, 31, 0.98); }
.mobile-nav-links a { font-size: 1.125rem; }

/* ── Product page ───────────────────────────────────────── */
.product-hero {
  min-height: 0;
  padding: calc(var(--header-height) + 28px) 0 32px;
  align-items: flex-start;
}
.product-hero { min-height: clamp(340px, 34vw, 440px); }
.product-hero-media img { filter: none; transform: none; object-position: center 30%; }
.product-hero-media::after {
  background:
    linear-gradient(90deg, rgba(13, 20, 31, 0.88) 0%, rgba(13, 20, 31, 0.6) 32%, rgba(13, 20, 31, 0) 62%),
    linear-gradient(180deg, rgba(13, 20, 31, 0.35) 0%, transparent 25%, transparent 70%, var(--surface-0) 100%);
}
.product-hero h1, .product-hero .product-lead { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
.product-hero h1 {
  max-width: none;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
}
.product-hero .product-lead { max-width: 62ch; margin-top: var(--space-3); font-size: 1.0625rem; color: var(--tx); }
.product-hero-tags { margin-bottom: var(--space-3); }
.product-hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-5); }
.pdp-from { display: flex; align-items: baseline; gap: 8px; }
.pdp-from span { font-size: var(--fs-small); color: var(--tx-muted); }
.pdp-from strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.75rem; font-weight: 800; color: var(--tx-strong); font-variant-numeric: tabular-nums; }

.product-layout { padding-top: var(--space-6); }
.pdp-block { margin-bottom: var(--space-7); scroll-margin-top: calc(var(--header-height) + 16px); }
.pdp-block h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-4); font-size: 1.25rem; font-stretch: 105%; color: var(--tx-strong); }
.pdp-count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--c-blue-bg); color: var(--c-blue); font-size: var(--fs-meta); font-weight: 700; }
.feature-list.is-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
@media (max-width: 640px) { .feature-list.is-columns { grid-template-columns: 1fr; } }

/* Buy box: the one obvious place to act */
.buy-box {
  border-color: var(--line-blue);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(0, 175, 255, 0.12), var(--shadow-2);
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.buy-box-head h2 { font-size: 1.125rem; font-weight: 700; color: var(--tx-strong); }
.plan-option { min-height: 60px; background: var(--surface-1); }
.plan-name { font-size: 1rem; }
.plan-price { font-size: 1.0625rem; }
.buy-step { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 650; color: var(--tx-strong); }
.buy-actions .btn-block + .btn-block { margin-top: 0; }

/* Mobile: sticky price + buy bar */
@media (max-width: 960px) {
  .buy-bar { display: flex; background: rgba(13, 20, 31, 0.96); }
  body:has(#buy-bar) .site-footer { padding-bottom: 88px; }
}
@media (max-width: 640px) {
  .product-hero-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .product-hero-media::after {
    background: linear-gradient(180deg, rgba(13, 20, 31, 0.5) 0%, rgba(13, 20, 31, 0.78) 55%, var(--surface-0) 100%);
  }
}
