/* =====================================================================
   V146 — "Screening room" theme. Loaded after every other stylesheet,
   so it re-skins the whole site without touching page structure.

   Palette  velvet #15111A (aubergine-black of a cinema room)
            curtain #1E1925 / #262030 (surfaces)
            bone #EEE6D8 (text) · smoke #A79EB2 (quiet text)
            marquee gold #E8B64C (the logo's gold: actions, money)
            record red #E4402F (the logo's play red: time, progress — sparingly)
   Type     Lalezar for Persian display, Fraunces for Latin display,
            Estedad for all reading text (no Vazirmatn anywhere).
   ===================================================================== */

/* ---------- fonts (self-hosted; Lalezar declared across weights so
   browsers never fake-bold it) ---------- */
@font-face{font-family:'YMF Display';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('../fonts/lalezar/lalezar-arabic-400-normal.woff2') format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'YMF Display';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('../fonts/fraunces/fraunces-latin-wght-normal.woff2') format('woff2-variations'),url('../fonts/fraunces/fraunces-latin-wght-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:'YMF Text';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('../fonts/estedad/estedad-arabic-wght-normal.woff2') format('woff2-variations'),url('../fonts/estedad/estedad-arabic-wght-normal.woff2') format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'YMF Text';font-style:normal;font-display:swap;font-weight:100 900;
  src:url('../fonts/estedad/estedad-latin-wght-normal.woff2') format('woff2-variations'),url('../fonts/estedad/estedad-latin-wght-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212}

/* ---------- tokens ---------- */
:root{
  --velvet:#15111a;--velvet-2:#110d15;--curtain:#1e1925;--curtain-2:#262030;
  --bone:#eee6d8;--smoke:#a79eb2;--dim:#7d748a;
  --gold:#e8b64c;--gold-2:#f2c766;--gold-ink:#1f1707;
  --record:#e4402f;
  --hair:rgba(238,230,216,.11);--hair-2:rgba(238,230,216,.2);
  /* the old token names, so every existing page follows */
  --bg:var(--velvet);--panel:var(--curtain);--panel2:var(--curtain-2);--text:var(--bone);--muted:var(--smoke);
  --red:var(--record);--red2:#c3301f;--line:var(--hair);--radius:18px;--shadow:0 24px 60px rgba(6,3,10,.5);
  --f-display:'YMF Display','Lalezar',Georgia,serif;
  --f-text:'YMF Text',system-ui,-apple-system,'Segoe UI',sans-serif;
  /* type scale: perfect fourth on a 17px base */
  --t-sm:.85rem;--t-md:1rem;--t-lg:1.333rem;--t-xl:1.777rem;--t-2xl:2.369rem;--t-3xl:3.157rem;--t-4xl:4.209rem;
}
html{font-size:106.25%;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{font-family:var(--f-text);background:var(--velvet);color:var(--bone);line-height:1.85;font-weight:400;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
html[lang="en"] body{line-height:1.65}
h1,h2,h3,.display{font-family:var(--f-display);font-weight:400;letter-spacing:0;line-height:1.3;text-wrap:balance}
html[lang="en"] h1,html[lang="en"] h2,html[lang="en"] h3{font-weight:560;letter-spacing:-.012em;line-height:1.12}
h4,h5{font-family:var(--f-text);font-weight:700}
p{text-wrap:pretty}
a{color:inherit}
::selection{background:var(--gold);color:var(--gold-ink)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}

/* decoration from the old look that costs speed or reads as template */
.site-noise{display:none}
.scroll-progress{height:2px;background:var(--record)}
.hero-orb,.scan-line{display:none}

/* small labels: sentence case, no tracking, no little red bars */
.eyebrow,.cx-kicker,.dash-top,.score-label,.academy-card span,.price-card .tag,.status-pill,.ai-badge,.ticker,.checkout-summary>span{
  text-transform:none!important;letter-spacing:0!important;font-weight:500}
.eyebrow{color:var(--smoke);font-size:var(--t-sm)}
.eyebrow span{display:none}
.hx-arrow{display:none}

/* ---------- buttons ---------- */
.btn{border-radius:12px;padding:.78em 1.35em;font-weight:600;font-size:.95rem;line-height:1.4;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;overflow:visible}
.btn:before{display:none}
.btn:hover{transform:none}
.btn-primary{background:var(--gold);color:var(--gold-ink);box-shadow:none;border-color:var(--gold)}
.btn-primary:hover{background:var(--gold-2);border-color:var(--gold-2)}
.btn-outline{background:transparent;border-color:var(--hair-2);color:var(--bone)}
.btn-outline:hover{border-color:var(--gold);color:var(--gold)}
.btn-large{padding:.95em 1.6em;font-size:1rem}
.btn-small{padding:.55em 1em;font-size:.85rem}

/* ---------- header ---------- */
.topbar,.hx{background:rgba(21,17,26,.94);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--hair)}
.hx-top,.hx-btn-ghost{font-family:var(--f-text)}
.hx-panel-in{background:var(--curtain);border-color:var(--hair)}
.lang-toggle a[lang="en"]{font-family:var(--f-text)}

/* ---------- surfaces: flat curtains, one radius per level ---------- */
.service-card,.price-card,.auth-card,.dashboard-panel,.side-card,.stats-grid>div,.admin-panel,.admin-stats>div,
.checkout-main,.checkout-summary,.scorer-form-card,.score-result,.score-loading,.academy-card,.future-grid>div,
.dash-welcome,.quick-actions a,.roadmap>div,.cta-band,.upsell-box,.ai-report-cta,.ai-summary,.priority-box,
.result-grid>div,.data-strip>div,.scorer-box,.dashboard-card{
  background:var(--curtain)!important;border-color:var(--hair)!important;box-shadow:none!important}
.service-card:hover,.quick-actions a:hover,.dashboard-card:hover{transform:none!important;border-color:var(--hair-2)!important}
.service-card.featured,.price-card.featured{border-color:rgba(232,182,76,.45)!important}
.price-card.featured{transform:none}
.cta-band{border-radius:22px}
.page-hero{background:none}
.page-hero h1,.section h2,.cta-band h2,.dashboard-heading h1,.admin-head h1,.checkout-main h1,.auth-card h1{
  letter-spacing:0;font-weight:400}
html[lang="en"] .page-hero h1,html[lang="en"] .section h2,html[lang="en"] .cta-band h2{font-weight:560;letter-spacing:-.012em}
.hero h1 em,.section h2 em,.page-hero h1 em,.cta-band h2 em{color:inherit}

/* ---------- forms ---------- */
input,textarea,select{background:var(--velvet-2);border:1px solid var(--hair-2);color:var(--bone);border-radius:10px;font-family:var(--f-text)}
input:focus,textarea:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(232,182,76,.14)}
label{color:var(--smoke)}
.alert{border-radius:12px}

/* ---------- footer ---------- */
.footer{background:var(--velvet-2);border-top:1px solid var(--hair)}
.footer-brand{font-family:var(--f-display);font-weight:400;letter-spacing:0;font-size:1.25rem}
.footer h4{color:var(--bone);font-size:.9rem}
.footer a{font-size:.85rem;color:var(--smoke)}
.footer a:hover{color:var(--bone)}
.footer p{font-size:.85rem}
.footer-cta{color:var(--gold)!important}

/* numbers that are data (prices, scores) stay steady */
.price,.checkout-total,.checkout-price,.big-score,.stats-grid b,.admin-stats b{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* header surfaces from nav.css, in the new palette */
:root{--hx-surface:rgba(30,25,37,.98);--hx-line:var(--hair)}
body.scrolled .topbar.hx{background:rgba(21,17,26,.97);box-shadow:none}

/* one colour for a whole headline: no single gold word */
.page-hero h1 span,.page-hero h1 em,.tools-hero h1 span,h1 em{color:inherit;font-style:normal}
.featured-badge{letter-spacing:0!important;text-transform:none!important;font-size:.72rem!important}
