/* ============================================================
   VIKO CHEAT — Graphite theme
   Mid-tone neutral graphite; blue only on buttons and links. No black, no near-black, no white pages.
   Loaded last (after simplify.css). Replaces theme-ocean.css (or theme-steel.css).
   Contrast (white text): 7.8 on page, 9.6 on cards.
   To go back: swap this link for theme-ocean.css (or theme-steel.css) in head-assets.php.
   ============================================================ */

:root {
  --c-void:      #434B5A;
  --c-black:     #3C4452;
  --c-navy-900:  #363D4B;
  --c-navy-800:  #313846;
  --c-navy-700:  #2C3340;

  --surface-0:   #434B5A;
  --surface-1:   #3C4452;
  --surface-2:   #363D4B;
  --surface-3:   #313846;
  --surface-4:   #2C3340;

  --line:        rgba(255, 255, 255, 0.16);
  --line-mid:    rgba(255, 255, 255, 0.26);
  --line-strong: rgba(255, 255, 255, 0.42);
  --line-blue:   rgba(124, 214, 255, 0.60);

  --tx-strong:   #FFFFFF;
  --tx:          #EEF1F6;
  --tx-muted:    #CDD3DE;
  --tx-faint:    #B8C0CE;
  --c-soft:      #EEF1F6;
  --c-muted:     #CDD3DE;
  --tx-accent:   #8ADCFF;
  --tx-on-blue:  #06223A;
  --tx-on-paper: #06223A;

  --c-blue:      #5CC8FF;
  --c-blue-hi:   #8ADCFF;
  --c-cyan:      #7FE0FF;
  --c-cyan-hi:   #A8EBFF;
  --c-green:     #7DF0BE;
  --c-red:       #FF8A98;
  --c-amber:     #FFD87A;
  --c-blue-bg:   rgba(92, 200, 255, 0.16);
  --c-green-bg:  rgba(125, 240, 190, 0.16);
  --c-red-bg:    rgba(255, 138, 152, 0.18);
  --c-amber-bg:  rgba(255, 216, 122, 0.18);

  --glow-red:    0 12px 36px rgba(18, 22, 30, 0.30);
  --glow-red-sm: 0 6px 18px rgba(18, 22, 30, 0.25);
  --header-height: 56px;
}

html, body {
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(92, 200, 255, 0.18), transparent 62%),
    radial-gradient(800px 480px at 100% 0%, rgba(255, 216, 122, 0.08), transparent 60%),
    #434B5A !important;
  color: var(--tx);
}
.viko-scene.is-ready { opacity: 0.22; }
.scene-vignette { background: linear-gradient(180deg, transparent 70%, rgba(54, 61, 75, 0.5)); }

/* Header and footer */
.site-header, .site-header.is-scrolled, .site-header.scrolled {
  background: rgba(54, 61, 75, 0.96);
  border-bottom: 1px solid var(--line-mid);
}
.main-nav a { color: var(--tx); }
.main-nav a:hover, .main-nav a.active { color: var(--tx-strong); }
.site-footer { background: #363D4B; border-top: 1px solid var(--line-mid); color: var(--tx); }
.site-footer a { color: var(--tx); }
.site-footer a:hover { color: var(--tx-strong); }
.mobile-nav { background: rgba(54, 61, 75, 0.99); }

/* Cards and panels */
.panel, .panel-raised, .content-block, .card, .stat-card, .product-card, .game-card,
.table-wrap, .modal, .license-fact, .buy-box {
  background: var(--surface-2);
  border-color: var(--line-mid);
  color: var(--tx);
}
.buy-box { border-color: var(--line-blue); box-shadow: 0 0 0 1px rgba(92, 200, 255, 0.18), 0 14px 34px rgba(18, 22, 30, 0.30); }
.plan-option { background: var(--surface-3); }
.games-strip { background: var(--surface-2); border-color: var(--line-mid); }
.account-dropdown, .dropdown-menu, .search-panel { background: #363D4B; border: 1px solid var(--line-mid); box-shadow: 0 16px 40px rgba(18, 22, 30, 0.45); color: var(--tx); }

/* Admin and account side menus */
body.is-console .dashboard-sidebar, body.is-account .dashboard-sidebar { background: #363D4B; }
.console-bar { background: rgba(54, 61, 75, 0.96); }
body.is-console { background: #434B5A; }

/* Forms */
.form-control, input, select, textarea {
  background: var(--surface-3);
  color: var(--tx-strong);
  border-color: var(--line-mid);
}
.form-control::placeholder, input::placeholder, textarea::placeholder { color: var(--tx-faint); }
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.28);
}
option { background: #363D4B; color: #FFFFFF; }

/* Tables */
.data-table th { color: var(--tx-muted); border-bottom: 1px solid var(--line-mid); }
.data-table td { color: var(--tx); border-color: var(--line); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.07); }

/* Buttons: one clear bright primary */
.btn-primary, body .btn-primary, body a.btn.btn-primary, body button.btn-primary {
  background: #5CC8FF;
  color: #06223A;
  border-color: #5CC8FF;
  box-shadow: 0 8px 20px rgba(18, 22, 30, 0.30);
}
.btn-primary:hover, body a.btn.btn-primary:hover, body button.btn-primary:hover { background: #8ADCFF; border-color: #8ADCFF; color: #06223A; }
.btn-outline { background: transparent; color: var(--tx-strong); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--c-blue); color: var(--tx-strong); }
.btn-ghost { color: var(--tx); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); color: var(--tx-strong); }

/* Text and links */
h1, h2, h3, h4 { color: var(--tx-strong); }
p, .lede, .lead, .prose { color: var(--tx); }
.muted, .text-muted { color: var(--tx-muted); }
a { color: var(--c-blue-hi); }
a:hover { color: #FFFFFF; }
::selection { background: rgba(92, 200, 255, 0.35); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.pdp-from strong, .plan-price, .selected-price strong { color: #FFD87A; }
.plan-name { color: var(--tx-strong); }

/* Product hero: keep the picture clear, shade only behind the text */
.product-hero-media::after {
  background:
    linear-gradient(90deg, rgba(46, 53, 66, 0.90) 0%, rgba(46, 53, 66, 0.58) 34%, rgba(46, 53, 66, 0) 64%),
    linear-gradient(180deg, rgba(46, 53, 66, 0.30) 0%, transparent 25%, transparent 70%, #434B5A 100%);
}
@media (max-width: 640px) {
  .product-hero-media::after { background: linear-gradient(180deg, rgba(46, 53, 66, 0.55) 0%, rgba(46, 53, 66, 0.80) 55%, #434B5A 100%); }
}
.buy-bar { background: rgba(54, 61, 75, 0.97); border-top: 1px solid var(--line-mid); }

/* Small text that must stay readable on the mid-blue page */
.section-kicker, .eyebrow, .kicker { color: #A8EBFF; }
.pstatus.is-active, .pstatus-pill.is-active { color: #9BF5CC; }
.pstatus.is-updating { color: #A8EBFF; }
.pstatus.is-inactive { color: #FFB0BA; }
.text-accent, .link-arrow { color: #A8EBFF; }
.link-arrow:hover { color: #FFFFFF; }
.pdp-count { color: #E6F7FF; background: rgba(92, 200, 255, 0.28); }
.pstatus.is-inactive, .pstatus-pill.is-inactive { color: #FFC2C9; }

/* Replace the last hard-coded near-black panels */
.auth-main { background: rgba(54, 61, 75, 0.94); border-left: 1px solid var(--line-mid); }
.toast { background: rgba(54, 61, 75, 0.98); }
.trust-band { background: linear-gradient(90deg, rgba(54, 61, 75, 0.7), rgba(60, 68, 82, 0.5)); }
.fm-selection { background: rgba(54, 61, 75, 0.97); }
.form-control { background: var(--surface-3); }
