/* ClearVision RTL */
/* =========================================================
   RTL
========================================================= */

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-menu {
    direction: rtl;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 50%;

    transform:
        translate(50%,10px)
        scale(.97);
}

[dir="rtl"] .nav-dropdown.open .dropdown-menu {
    transform:
        translate(50%,0)
        scale(1);
}

[dir="rtl"] .dropdown-item:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .nav-link.active::after {
    left: 14px;
    right: 14px;

    transform-origin: right;
}

[dir="rtl"] .direction-menu {
    right: auto;
    left: 112px;
}

[dir="rtl"] .hero {
    direction: rtl;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .hero-description,
[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-stats {
    justify-content: flex-start;
}

[dir="rtl"] .hero-image-wrap {
    transform: rotate(-3deg);
}

[dir="rtl"] .hero-image-wrap:hover {
    transform: rotate(-1deg);
}

[dir="rtl"] .label-top {
    right: auto;
    left: -25px;
}

[dir="rtl"] .label-bottom {
    left: auto;
    right: -20px;
}

[dir="rtl"] .scroll-indicator {
    left: auto;
    right: max(6vw,35px);
}

[dir="rtl"] .brand-track {
    animation-direction: reverse;
}

[dir="rtl"] .section-intro,
[dir="rtl"] .story-top,
[dir="rtl"] .testimonial-heading {
    text-align: right;
}

[dir="rtl"] .lens-section,
[dir="rtl"] .contact-lens-section,
[dir="rtl"] .eye-test-section,
[dir="rtl"] .offer-section {
    direction: rtl;
}

[dir="rtl"] .lens-image::after {
    background:
        linear-gradient(
            -90deg,
            transparent 50%,
            var(--navy) 100%
        );
}

[dir="rtl"] .contact-lens-image::after {
    background:
        linear-gradient(
            -90deg,
            var(--navy),
            transparent 50%
        );
}

[dir="rtl"] .lens-list a:hover {
    padding-left: 0;
    padding-right: 10px;
}

[dir="rtl"] .story-copy {
    left: auto;
    right: 50%;
}

[dir="rtl"] .footer-inner {
    direction: rtl;
}

[dir="rtl"] .footer-column {
    align-items: flex-start;
}

[dir="rtl"] .footer-contact a,
[dir="rtl"] .footer-contact > span {
    text-align: right;
}

[dir="rtl"] .footer-column a:hover {
    transform: translateX(-4px);
}

[dir="rtl"] .footer-bottom {
    direction: rtl;
}

/* =========================================================
   MERGED UTILITY-PAGE + AUTH STYLES
   Kept here so the project contains only index.css, rtl.css,
   and darkmode.css.
========================================================= */
/* =========================================================
   CLEARVISION — UTILITY PAGES (404 / COMING SOON)
   Reuses the site's real header/footer + theme tokens.
========================================================= */

.util-bar{
  display:flex;align-items:center;
  height:78px;padding:0 clamp(18px,4vw,44px);
  background:var(--header-bg);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:40;
}
.util-bar .brand{filter:none}
[dir="rtl"] .util-bar{justify-content:flex-end}

.util-main{min-height:calc(100svh - 78px);display:flex;align-items:center;position:relative;overflow:hidden;padding:70px 5vw 90px}
.util-orbs{position:absolute;inset:0;pointer-events:none;z-index:0}
.util-orbs span{position:absolute;border-radius:50%;filter:blur(70px);opacity:.4;animation:utFloat 15s ease-in-out infinite}
.util-orbs span:nth-child(1){width:420px;height:420px;left:-140px;top:-60px;background:radial-gradient(circle,rgba(40,103,255,.32),transparent 70%)}
.util-orbs span:nth-child(2){width:380px;height:380px;right:-120px;bottom:-100px;background:radial-gradient(circle,rgba(94,132,255,.24),transparent 70%);animation-duration:18s;animation-direction:reverse}
@keyframes utFloat{0%,100%{transform:translate(0,0)}50%{transform:translate(26px,-20px)}}

.util-grid{position:relative;z-index:1;width:100%;max-width:var(--container);margin:0 auto;display:grid;grid-template-columns:1.1fr .9fr;gap:6vw;align-items:center}

/* ------------ glasses-themed illustration (shared) ------------ */
.util-art{position:relative;display:flex;align-items:center;justify-content:center}
.util-glasses{width:100%;max-width:420px;height:auto;overflow:visible}
.util-glasses .lens{fill:var(--soft);stroke:var(--blue);stroke-width:6}
.util-glasses .bridge,.util-glasses .arm{stroke:var(--blue);stroke-width:6;fill:none;stroke-linecap:round}
.util-glasses .crack{stroke:var(--muted);stroke-width:2.5;fill:none;stroke-linecap:round;opacity:.7}
.util-art-float{animation:utBob 5s ease-in-out infinite}
@keyframes utBob{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-14px) rotate(-2deg)}}
.util-ring{position:absolute;border-radius:50%;border:1px solid var(--border);animation:utSpinSlow 22s linear infinite}
.util-ring.r1{width:340px;height:340px}
.util-ring.r2{width:440px;height:440px;animation-duration:30s;animation-direction:reverse}
@keyframes utSpinSlow{to{transform:rotate(360deg)}}

/* ------------ copy ------------ */
.util-copy{position:relative;z-index:2}
.util-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--border);background:var(--soft);border-radius:999px;font:800 12px/1 "DM Sans",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin-bottom:22px}
.util-kicker i{width:7px;height:7px;border-radius:50%;background:var(--blue);animation:utPulse 1.8s infinite}
@keyframes utPulse{0%,100%{transform:scale(.75);opacity:.6}50%{transform:scale(1.4);opacity:1}}
.util-copy h1{margin:0 0 18px;font:800 clamp(40px,5.5vw,78px)/.98 "Space Grotesk",sans-serif;letter-spacing:-.03em;color:var(--text)}
.util-copy h1 span{color:var(--blue)}
.util-copy p{margin:0 0 34px;max-width:480px;font:500 16px/1.75 "DM Sans",sans-serif;color:var(--muted)}
.util-actions{display:flex;flex-wrap:wrap;gap:14px}
.util-btn{display:inline-flex;align-items:center;gap:10px;padding:15px 26px;border-radius:14px;font:800 13px/1 "DM Sans",sans-serif;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.util-btn.primary{background:linear-gradient(100deg,var(--blue-dark),var(--blue),var(--blue-light));background-size:200% 100%;color:#fff;box-shadow:0 14px 30px rgba(40,103,255,.26);animation:utGradient 6s linear infinite}
.util-btn.primary:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(40,103,255,.34)}
@keyframes utGradient{to{background-position:200% 50%}}
.util-btn.ghost{border:1.5px solid var(--border);color:var(--text);background:transparent}
.util-btn.ghost:hover{transform:translateY(-3px);border-color:var(--blue);color:var(--blue)}
.util-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}

/* ------------ 404 code type ------------ */
.util-code{display:flex;align-items:center;gap:14px;margin-bottom:14px;font:800 clamp(46px,7vw,88px)/1 "Space Grotesk",sans-serif;color:var(--text);letter-spacing:-.02em}
.util-code .util-code-glass{display:inline-flex;align-items:center}
.util-code svg{width:.85em;height:.85em;overflow:visible}
/* Keep the 0 in the 404 code visible in dark mode. */
.util-code svg .lens{fill:var(--soft);stroke:var(--blue);stroke-width:5;vector-effect:non-scaling-stroke}
.util-code svg .bridge{stroke:var(--blue);stroke-width:5;fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke}
.util-code svg .crack{stroke:var(--muted);stroke-width:2.5;fill:none;stroke-linecap:round;opacity:.75;vector-effect:non-scaling-stroke}

/* Leave enough space below the fixed clickable logo on Coming Soon. */
.coming-soon-page{padding-top:150px}

/* ------------ coming soon: notify form + countdown ------------ */
.util-countdown{display:flex;gap:14px;margin:8px 0 30px;flex-wrap:wrap}
.util-countdown div{min-width:78px;padding:14px 10px;border:1px solid var(--border);background:var(--soft);border-radius:14px;text-align:center}
.util-countdown b{display:block;font:800 26px/1 "Space Grotesk",sans-serif;color:var(--blue)}
.util-countdown span{display:block;margin-top:4px;font:700 12px/1 "DM Sans",sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.util-notify{display:flex;gap:10px;max-width:420px;margin-bottom:16px;flex-wrap:wrap}
.util-notify input{flex:1;min-width:200px;height:52px;border-radius:13px;padding:0 16px;border:1.5px solid var(--border);background:var(--soft);color:var(--text);font:600 14px/1 "DM Sans",sans-serif;outline:none;transition:border-color .25s ease,box-shadow .25s ease}
.util-notify input::placeholder{color:var(--muted)}
.util-notify input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(40,103,255,.14)}
.util-notify button{height:52px;padding:0 22px;border:0;border-radius:13px;background:linear-gradient(100deg,var(--blue-dark),var(--blue),var(--blue-light));background-size:200% 100%;color:#fff;font:800 13px/1 "DM Sans",sans-serif;cursor:pointer;animation:utGradient 6s linear infinite;box-shadow:0 12px 26px rgba(40,103,255,.24)}
.util-notify button:hover{transform:translateY(-2px)}
.util-note{margin:0;font-size:12px;color:var(--muted)}

@media(max-width:900px){
  .coming-soon-page{padding-top:135px}
  .util-grid{grid-template-columns:1fr;text-align:center}
  .util-copy p{margin-left:auto;margin-right:auto}
  .util-actions,.util-notify,.util-countdown{justify-content:center}
  .util-art{order:-1;margin-bottom:20px}
  .util-glasses{max-width:300px}
}
@media(max-width:600px){
  .coming-soon-page{padding-top:112px}
  .coming-soon-page .util-art{margin-top:8px}
}

@media(prefers-reduced-motion:reduce){
  .util-art-float,.util-ring,.util-orbs span,.util-btn.primary,.util-notify button,.util-kicker i{animation:none!important}
}

/* =========================================================
   MERGED AUTHENTICATION STYLES
========================================================= */
/* =========================================================
   CLEARVISION — AUTH PAGES (LOGIN / SIGNUP)
   Restructured: uses the SAME theme tokens as the rest of the
   site (--text, --muted, --border, --soft, --blue, --white,
   --off-white, --footer) so light/dark mode is automatic and
   never drifts out of sync with every other page.
========================================================= */

.authpage{
  position:relative;
  min-height:100svh;
  width:100%;
  overflow-x:hidden;
  background:var(--off-white);
  color:var(--text);
  isolation:isolate;
}

/* ---------- floating ambient orbs (background animation) ---------- */
.authpage-orbs{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.authpage-orbs span{position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;animation:apFloat 16s ease-in-out infinite}
.authpage-orbs span:nth-child(1){width:420px;height:420px;left:-140px;top:-80px;background:radial-gradient(circle,rgba(40,103,255,.35),transparent 70%)}
.authpage-orbs span:nth-child(2){width:380px;height:380px;right:-120px;bottom:-100px;background:radial-gradient(circle,rgba(94,132,255,.28),transparent 70%);animation-duration:19s;animation-direction:reverse}
.authpage-orbs span:nth-child(3){width:260px;height:260px;left:45%;top:60%;background:radial-gradient(circle,rgba(16,43,104,.16),transparent 70%);animation-duration:13s}
@keyframes apFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(28px,-22px) scale(1.06)}}

/* ---------- top bar: logo left, controls pinned top-right ---------- */
.authpage-bar{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  height:78px;padding:0 clamp(18px,4vw,44px);
  background:var(--header-bg);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.authpage-bar .brand{filter:none}
.authpage-controls{display:flex;align-items:center;gap:8px}
[dir="rtl"] .authpage-bar{flex-direction:row-reverse}

/* ---------- two-panel layout, small breathing gap between panels ---------- */
.authpage-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.05fr 1fr;
  gap:22px;
  min-height:calc(100svh - 78px);
  padding:22px clamp(16px,3vw,32px);
  background:var(--off-white);
  box-sizing:border-box;
}
[dir="rtl"] .authpage-grid{direction:rtl}

/* ---------- visual / brand panel ---------- */
.authpage-visual{
  position:relative;overflow:hidden;
  border-radius:26px;
  padding:clamp(40px,5vw,72px) clamp(32px,5vw,72px);
  display:flex;flex-direction:column;justify-content:center;gap:34px;
  color:#eef4ff;
  background:
    radial-gradient(circle at 78% 18%,rgba(94,132,255,.35),transparent 40%),
    linear-gradient(160deg,#040d22 0%,#0a2359 55%,#031336 100%);
}
.authpage-visual-glow{position:absolute;inset:-20%;background:conic-gradient(from 140deg,transparent 0 55%,rgba(94,164,255,.14) 62%,transparent 70%);animation:apSpin 10s linear infinite;pointer-events:none}
@keyframes apSpin{to{transform:rotate(360deg)}}
.authpage-visual-content{position:relative;z-index:2;animation:apRise .8s cubic-bezier(.16,1,.3,1) both}
.authpage-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid rgba(120,180,255,.32);background:rgba(94,132,255,.1);border-radius:999px;font:800 12px/1 "DM Sans",sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#a9d3ff;width:fit-content}
.authpage-kicker i{width:7px;height:7px;border-radius:50%;background:#5fc2ff;box-shadow:0 0 12px #5fc2ff;animation:apPulse 1.8s infinite}
@keyframes apPulse{0%,100%{transform:scale(.75);opacity:.6}50%{transform:scale(1.4);opacity:1}}
.authpage-visual h1{margin:0;font:800 clamp(34px,4vw,56px)/1.04 "Space Grotesk",sans-serif;letter-spacing:-.03em}
.authpage-visual h1 span{color:#5fc2ff}
.authpage-visual > p{margin:0;max-width:400px;font:500 15px/1.7 "DM Sans",sans-serif;color:rgba(230,240,255,.8)}

.authpage-photo{position:relative;z-index:2;height:clamp(180px,26vh,260px);border-radius:26px;overflow:hidden;box-shadow:0 24px 50px rgba(0,0,0,.35);animation:apRise .9s .1s cubic-bezier(.16,1,.3,1) both}
.authpage-photo img{width:100%;height:100%;object-fit:cover;transform:scale(1.02)}
.authpage-photo-shine{position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);background-size:220% 220%;animation:apShine 5s ease-in-out infinite}
@keyframes apShine{0%{background-position:120% -20%}100%{background-position:-20% 120%}}

.authpage-benefits{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;animation:apRise 1s .18s cubic-bezier(.16,1,.3,1) both}
.authpage-benefit{padding:14px 10px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:14px;text-align:center;backdrop-filter:blur(6px);transition:transform .3s ease,background .3s ease}
.authpage-benefit:hover{transform:translateY(-4px);background:rgba(255,255,255,.1)}
.authpage-benefit b{display:block;font:800 12px/1 "Space Grotesk",sans-serif;color:#5fc2ff;margin-bottom:6px}
.authpage-benefit span{display:block;font:600 12px/1.3 "DM Sans",sans-serif;color:rgba(230,240,255,.85)}

@keyframes apRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* ---------- form panel ---------- */
.authpage-form{
  position:relative;display:flex;align-items:center;justify-content:center;
  border-radius:26px;
  padding:clamp(32px,5vw,60px) clamp(24px,5vw,64px);
  background:var(--white);
  border:1px solid var(--border);
  box-shadow:0 20px 50px rgba(17,37,70,.06);
}
.authpage-form-inner{width:100%;max-width:420px;animation:apRise .8s .1s cubic-bezier(.16,1,.3,1) both}
.authpage-form-head small{display:block;color:var(--blue);font:900 12px/1 "DM Sans",sans-serif;letter-spacing:.16em;text-transform:uppercase;margin-bottom:10px}
.authpage-form-head h2{margin:0 0 8px;font:800 clamp(28px,3.2vw,38px)/1.08 "Space Grotesk",sans-serif;letter-spacing:-.02em;color:var(--text)}
.authpage-form-head p{margin:0 0 28px;color:var(--muted);font:500 14px/1.6 "DM Sans",sans-serif}

.authpage-fields{display:grid;gap:16px}
.authpage-field{
  position:relative;opacity:0;transform:translateY(10px);
  animation:apFieldIn .55s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay:calc(var(--d,0) * 70ms + .12s);
}
@keyframes apFieldIn{to{opacity:1;transform:none}}
.authpage-field label{display:block;margin-bottom:7px;font:800 12px/1 "DM Sans",sans-serif;color:var(--text)}
.authpage-field input{
  width:100%;height:52px;border-radius:13px;padding:0 16px;
  border:1.5px solid var(--border);background:var(--soft);color:var(--text);
  font:600 14px/1 "DM Sans",sans-serif;outline:none;
  transition:border-color .25s ease,box-shadow .25s ease,background .25s ease,transform .2s ease;
}
.authpage-field input::placeholder{color:var(--muted);opacity:1}
.authpage-field input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(40,103,255,.14);background:var(--white);transform:translateY(-1px)}
.authpage-field.has-eye input{padding-right:48px}
[dir="rtl"] .authpage-field.has-eye input{padding-right:16px;padding-left:48px}
.authpage-eye{position:absolute;right:6px;bottom:6px;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;font-size:16px;transition:background .2s ease,color .2s ease}
[dir="rtl"] .authpage-eye{right:auto;left:6px}
.authpage-eye:hover{background:var(--soft);color:var(--blue)}

.authpage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;opacity:0;transform:translateY(10px);animation:apFieldIn .55s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--d,0) * 70ms + .12s)}
.authpage-check{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}
.authpage-check input{accent-color:var(--blue)}
.authpage-link{color:var(--blue);font-weight:800;text-decoration:none}
.authpage-link:hover{text-decoration:underline}

.authpage-submit{
  position:relative;height:54px;border:0;border-radius:14px;cursor:pointer;overflow:hidden;
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(100deg,var(--blue-dark),var(--blue),var(--blue-light),var(--blue));
  background-size:250% 100%;color:#fff;font:800 14px/1 "DM Sans",sans-serif;
  box-shadow:0 14px 30px rgba(40,103,255,.28);
  animation:apFieldIn .55s cubic-bezier(.16,1,.3,1) forwards,apGradient 6s linear infinite;
  animation-delay:calc(var(--d,0) * 70ms + .12s),0s;
  transition:transform .25s ease,box-shadow .25s ease;
}
.authpage-submit:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(40,103,255,.36)}
.authpage-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .3s ease}
.authpage-submit:hover svg{transform:translateX(4px)}
[dir="rtl"] .authpage-submit:hover svg{transform:translateX(-4px) rotate(180deg)}
@keyframes apGradient{to{background-position:250% 50%}}

.authpage-message{min-height:16px;margin:4px 0 0;color:var(--muted);font-size:12px}
.authpage-divider{display:flex;align-items:center;gap:10px;margin:6px 0;color:var(--muted);font:800 12px/1 "DM Sans",sans-serif;text-transform:uppercase;letter-spacing:.14em}
.authpage-divider::before,.authpage-divider::after{content:"";flex:1;height:1px;background:var(--border)}
.authpage-switch{margin:0;text-align:center;color:var(--muted);font-size:13px}
.authpage-switch a{color:var(--blue);font-weight:800;text-decoration:none}
.authpage-switch a:hover{text-decoration:underline}
.authpage-back{display:block;margin-top:10px;text-align:center;color:var(--muted);font-size:12px;font-weight:700;text-decoration:none;transition:color .2s ease}
.authpage-back:hover{color:var(--blue)}

/* ---------- page transition (card exit before navigating) ---------- */
.authpage-grid.exit{animation:apExit .4s ease forwards}
@keyframes apExit{to{opacity:0;transform:scale(.98)}}

/* ---------- dark mode: relies on shared tokens; only visual-panel tweaks ---------- */
[data-theme="dark"] .authpage{background:var(--off-white)}
[data-theme="dark"] .authpage-visual{background:radial-gradient(circle at 78% 18%,rgba(94,132,255,.28),transparent 40%),linear-gradient(160deg,#02060f 0%,#071a3f 55%,#020a1f 100%)}
[data-theme="dark"] .authpage-field input{background:var(--off-white);border-color:var(--border)}
[data-theme="dark"] .authpage-field input:focus{background:var(--white)}
[data-theme="dark"] .authpage-form{box-shadow:0 20px 50px rgba(0,0,0,.35)}

/* ---------- responsive ---------- */
@media(max-width:960px){
  .authpage-grid{grid-template-columns:1fr;gap:16px;padding:16px}
  .authpage-visual{min-height:340px;padding:34px 26px}
  .authpage-benefits{display:none}
  .authpage-photo{height:150px}
}
@media(max-width:560px){
  .authpage-bar{height:66px;padding:0 16px}
  .authpage-grid{padding:10px;gap:10px}
  .authpage-visual{min-height:230px;padding:26px 20px;gap:20px;border-radius:20px}
  .authpage-visual h1{font-size:30px}
  .authpage-visual > p{display:none}
  .authpage-photo{display:none}
  .authpage-form{padding:28px 20px 40px;border-radius:20px}
}
@media(prefers-reduced-motion:reduce){
  .authpage *{animation:none!important;transition:none!important}
}

/* =========================================================
   CLEARVISION GLOBAL READABILITY STANDARD
   LIGHT MODE: stronger contrast everywhere
   ALL MODES: minimum readable supporting typography
   BREAKPOINTS: desktop / tablet / mobile
========================================================= */
:root{
  --cv-readable-text:#17263d;
  --cv-readable-muted:#3c4d66;
  --cv-readable-heading:#07142b;
}

/* ---------- Global minimum readable type ---------- */
html body{font-size:16px;}
html body small,
html body .small,
html body .micro,
html body .fine-print,
html body .caption,
html body .meta,
html body .eyebrow,
html body .eyebrow-text,
html body .label,
html body .tag,
html body .badge,
html body .note,
html body .helper-text,
html body .kicker{
  font-size:12px !important;
  line-height:1.5 !important;
}
html body .nav-link,
html body .dropdown-item,
html body .control-btn,
html body .menu-toggle,
html body .language-btn,
html body .theme-toggle{
  font-size:14px !important;
}

/* ---------- LIGHT MODE: darker text across ALL normal light surfaces ---------- */
html[data-theme="light"] body{
  color:var(--cv-readable-text) !important;
}
html[data-theme="light"] body p,
html[data-theme="light"] body li,
html[data-theme="light"] body dt,
html[data-theme="light"] body dd,
html[data-theme="light"] body label,
html[data-theme="light"] body figcaption,
html[data-theme="light"] body blockquote,
html[data-theme="light"] body small,
html[data-theme="light"] body .small,
html[data-theme="light"] body .micro,
html[data-theme="light"] body .fine-print,
html[data-theme="light"] body .caption,
html[data-theme="light"] body .meta,
html[data-theme="light"] body .description,
html[data-theme="light"] body .desc,
html[data-theme="light"] body .subtitle,
html[data-theme="light"] body .body-copy,
html[data-theme="light"] body .card-copy,
html[data-theme="light"] body .card-text,
html[data-theme="light"] body .muted,
html[data-theme="light"] body .secondary,
html[data-theme="light"] body .helper-text,
html[data-theme="light"] body .note{
  color:var(--cv-readable-muted) !important;
  opacity:1 !important;
}
html[data-theme="light"] body h1,
html[data-theme="light"] body h2,
html[data-theme="light"] body h3,
html[data-theme="light"] body h4,
html[data-theme="light"] body h5,
html[data-theme="light"] body h6,
html[data-theme="light"] body strong,
html[data-theme="light"] body b{
  color:var(--cv-readable-heading) !important;
  opacity:1 !important;
}

/* Navigation + dropdowns */
html[data-theme="light"] body .nav-link,
html[data-theme="light"] body .dropdown-item,
html[data-theme="light"] body .control-btn,
html[data-theme="light"] body .menu-toggle,
html[data-theme="light"] body .language-btn,
html[data-theme="light"] body .theme-toggle{
  color:#0b1730 !important;
  opacity:1 !important;
}
html[data-theme="light"] body .dropdown-item small{color:#40516b !important;}

/* Forms / placeholders */
html[data-theme="light"] body input,
html[data-theme="light"] body textarea,
html[data-theme="light"] body select,
html[data-theme="light"] body option{
  color:#12233b !important;
}
html[data-theme="light"] body input::placeholder,
html[data-theme="light"] body textarea::placeholder{
  color:#4a5c75 !important;
  opacity:1 !important;
}

/* ---------- FOOTER: strong readable light-mode contrast ---------- */
html[data-theme="light"] .site-footer,
html[data-theme="light"] footer{
  color:#0a172d !important;
}
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer li,
html[data-theme="light"] .site-footer a,
html[data-theme="light"] .site-footer span,
html[data-theme="light"] .site-footer small,
html[data-theme="light"] .site-footer .footer-bottom{
  color:#26364f !important;
  opacity:1 !important;
}
html[data-theme="light"] .site-footer h3,
html[data-theme="light"] .site-footer strong,
html[data-theme="light"] .site-footer b{
  color:#07142b !important;
}
html[data-theme="light"] .site-footer .footer-logo .brand-text strong,
html[data-theme="light"] .site-footer .footer-logo .brand-text small{
  color:#08152d !important;
}
html[data-theme="light"] .site-footer .footer-bottom{
  border-top-color:rgba(20,42,78,.22) !important;
}
html[data-theme="light"] .site-footer .social-links a{
  color:#203654 !important;
  border-color:rgba(20,42,78,.24) !important;
}
html[data-theme="light"] .site-footer a:hover,
html[data-theme="light"] .site-footer .social-links a:hover{
  color:#1457e8 !important;
}

/* ---------- Keep intentionally dark visual sections white ---------- */
html[data-theme="light"] .hero,
html[data-theme="light"] .final-cta,
html[data-theme="light"] .about-dark,
html[data-theme="light"] .about-hero,
html[data-theme="light"] .quote-copy,
html[data-theme="light"] .h2-dark-section,
html[data-theme="light"] .h2-spotlight,
html[data-theme="light"] .fx-spotlight,
html[data-theme="light"] .ct-hero,
html[data-theme="light"] .authpage-visual{
  color:#f5f8ff !important;
}
html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero h2,
html[data-theme="light"] .hero h3,
html[data-theme="light"] .final-cta h1,
html[data-theme="light"] .final-cta h2,
html[data-theme="light"] .final-cta h3,
html[data-theme="light"] .about-dark h1,
html[data-theme="light"] .about-dark h2,
html[data-theme="light"] .about-dark h3,
html[data-theme="light"] .about-hero h1,
html[data-theme="light"] .about-hero h2,
html[data-theme="light"] .h2-dark-section h1,
html[data-theme="light"] .h2-dark-section h2,
html[data-theme="light"] .h2-dark-section h3,
html[data-theme="light"] .h2-spotlight h1,
html[data-theme="light"] .h2-spotlight h2,
html[data-theme="light"] .ct-hero h1,
html[data-theme="light"] .ct-hero h2,
html[data-theme="light"] .authpage-visual h1,
html[data-theme="light"] .authpage-visual h2{
  color:#f7f9ff !important;
}
html[data-theme="light"] .hero p,
html[data-theme="light"] .final-cta p,
html[data-theme="light"] .about-dark p,
html[data-theme="light"] .about-hero p,
html[data-theme="light"] .h2-dark-section p,
html[data-theme="light"] .h2-spotlight p,
html[data-theme="light"] .ct-hero p,
html[data-theme="light"] .authpage-visual p{
  color:#dbe5f5 !important;
}
html[data-theme="light"] .hero small,
html[data-theme="light"] .hero .small,
html[data-theme="light"] .hero strong,
html[data-theme="light"] .hero b,
html[data-theme="light"] .final-cta small,
html[data-theme="light"] .final-cta strong,
html[data-theme="light"] .final-cta b,
html[data-theme="light"] .about-dark small,
html[data-theme="light"] .about-dark strong,
html[data-theme="light"] .about-dark b,
html[data-theme="light"] .about-hero small,
html[data-theme="light"] .about-hero strong,
html[data-theme="light"] .about-hero b,
html[data-theme="light"] .h2-dark-section small,
html[data-theme="light"] .h2-dark-section strong,
html[data-theme="light"] .h2-dark-section b,
html[data-theme="light"] .h2-spotlight small,
html[data-theme="light"] .h2-spotlight strong,
html[data-theme="light"] .h2-spotlight b,
html[data-theme="light"] .fx-spotlight small,
html[data-theme="light"] .fx-spotlight strong,
html[data-theme="light"] .fx-spotlight b,
html[data-theme="light"] .ct-hero small,
html[data-theme="light"] .ct-hero strong,
html[data-theme="light"] .ct-hero b,
html[data-theme="light"] .authpage-visual small,
html[data-theme="light"] .authpage-visual strong,
html[data-theme="light"] .authpage-visual b{
  color:#f4f7ff !important;
}

/* ---------- Authentication light-mode form readability ---------- */
html[data-theme="light"] .authpage-form,
html[data-theme="light"] .authpage-form label{
  color:#0b1730 !important;
}
html[data-theme="light"] .authpage-form h1,
html[data-theme="light"] .authpage-form h2,
html[data-theme="light"] .authpage-form h3{
  color:#08152d !important;
}
html[data-theme="light"] .authpage-form p,
html[data-theme="light"] .authpage-form .authpage-switch,
html[data-theme="light"] .authpage-form .authpage-back,
html[data-theme="light"] .authpage-form .authpage-check,
html[data-theme="light"] .authpage-form .authpage-message{
  color:#344660 !important;
}
html[data-theme="light"] .authpage-form input{
  color:#10213a !important;
}
html[data-theme="light"] .authpage-form input::placeholder{
  color:#50627b !important;
}

/* ---------- Responsive readability ---------- */
@media (max-width:900px){
  html body{font-size:16px;}
  html body small,
  html body .small,
  html body .micro,
  html body .fine-print,
  html body .caption,
  html body .meta,
  html body .eyebrow,
  html body .label,
  html body .tag,
  html body .badge,
  html body .note,
  html body .helper-text{
    font-size:12px !important;
    line-height:1.5 !important;
  }
}
@media (max-width:600px){
  html body{font-size:16px;}
  html body p{line-height:1.65;}
  html body small,
  html body .small,
  html body .micro,
  html body .fine-print,
  html body .caption,
  html body .meta,
  html body .eyebrow,
  html body .label,
  html body .tag,
  html body .badge,
  html body .note,
  html body .helper-text{
    font-size:12px !important;
    line-height:1.55 !important;
  }
}


/* =========================================================
   404 / COMING SOON - TOP RIGHT CONTROLS
   No navbar; only RTL + light/dark controls.
========================================================= */
.utility-controls{
  position:fixed;
  top:18px;
  right:22px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:8px;
  direction:ltr;
}
.utility-controls .utility-rtl,
.utility-controls .utility-theme{
  width:42px;
  height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:50%;
  background:var(--header-bg);
  color:var(--text);
  box-shadow:0 8px 24px rgba(7,17,38,.10);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.utility-controls .utility-rtl{
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
}
.utility-controls .utility-theme svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.utility-controls .utility-theme .moon-icon{display:none;}
.utility-controls .utility-theme:hover,
.utility-controls .utility-rtl:hover{
  transform:translateY(-2px);
  border-color:var(--blue);
  color:var(--blue);
}
[data-theme="dark"] .utility-controls .utility-theme .sun-icon{display:none;}
[data-theme="dark"] .utility-controls .utility-theme .moon-icon{display:block;}
@media(max-width:600px){
  .utility-controls{top:12px;right:12px;gap:6px;}
  .utility-controls .utility-rtl,
  .utility-controls .utility-theme{width:38px;height:38px;min-width:38px;}
}
