/* Qanoun V9.8.2 — mobile registration selector, auth contrast, advertiser discovery, reader-gate hotfix */
:root{
  --v981-auth-text:#172a38;
  --v981-auth-muted:#5f7280;
  --v981-auth-link:#0b5a7c;
  --v981-auth-surface:#ffffff;
  --v981-auth-soft:#f5f8fa;
  --v981-auth-border:#dce5ea;
  --v981-focus:rgba(213,160,33,.24);
}
[data-bs-theme="dark"]{
  --v981-auth-text:#f2f7f9;
  --v981-auth-muted:#b8c6ce;
  --v981-auth-link:#f2c85c;
  --v981-auth-surface:#111c26;
  --v981-auth-soft:#172630;
  --v981-auth-border:#334650;
  --v981-focus:rgba(242,200,92,.25);
}

/* Authentication: explicit foregrounds so old light-only rules can never hide copy. */
.auth-surface-v73 .auth-modern-card,
.auth-surface-v73 .auth-modern-head h1,
.auth-surface-v73 .auth-field-v68 label,
.auth-surface-v73 .form-label,
.auth-surface-v73 .terms-check,
.auth-surface-v73 .terms-check span,
.auth-surface-v73 .auth-switch,
.auth-surface-v73 .auth-advertiser-link-v981{color:var(--v981-auth-text)!important}
.auth-surface-v73 .auth-modern-head p,
.auth-surface-v73 .form-text,
.auth-surface-v73 .auth-divider,
.auth-surface-v73 .account-role-hint-v981{color:var(--v981-auth-muted)!important}
.auth-surface-v73 .auth-switch a,
.auth-surface-v73 .terms-check a,
.auth-surface-v73 .auth-forgot-v68,
.auth-surface-v73 .auth-advertiser-link-v981 a{color:var(--v981-auth-link)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;font-weight:800}
.auth-surface-v73 .auth-switch a:hover,
.auth-surface-v73 .terms-check a:hover,
.auth-surface-v73 .auth-forgot-v68:hover,
.auth-surface-v73 .auth-advertiser-link-v981 a:hover{filter:brightness(1.08)}
.auth-surface-v73 .terms-check{background:var(--v981-auth-soft)!important;border:1px solid var(--v981-auth-border)!important;border-radius:14px;padding:12px 13px;line-height:1.75}
.auth-surface-v73 .terms-check input{flex:0 0 auto;margin-top:.32rem;accent-color:var(--gold,#d5a021)}
.auth-surface-v73 .auth-divider:before,.auth-surface-v73 .auth-divider:after{background:var(--v981-auth-border)!important}
.auth-surface-v73 .auth-input-shell-v68,
.auth-surface-v73 .form-control,
.auth-surface-v73 .form-select{background:var(--v981-auth-surface)!important;border-color:var(--v981-auth-border)!important;color:var(--v981-auth-text)!important}
.auth-surface-v73 .auth-input-shell-v68 input{color:var(--v981-auth-text)!important;background:transparent!important}
.auth-surface-v73 input::placeholder,.auth-surface-v73 textarea::placeholder{color:var(--v981-auth-muted)!important;opacity:.8}
.auth-surface-v73 .auth-input-shell-v68>i,.auth-surface-v73 .password-field button{color:var(--v981-auth-muted)!important}
.auth-surface-v73 .auth-submit-v68,.auth-surface-v73 .btn-gold{min-height:46px;font-weight:800}
.auth-surface-v73 .auth-submit-v68:focus-visible,.auth-surface-v73 .btn:focus-visible,.auth-surface-v73 a:focus-visible,.auth-surface-v73 input:focus-visible,.auth-surface-v73 select:focus-visible{outline:3px solid var(--v981-focus)!important;outline-offset:2px}
.auth-advertiser-link-v981{text-align:center;margin:10px 0 0;font-size:.76rem;line-height:1.7}.auth-advertiser-link-v981 i{margin-inline-end:4px;color:var(--v981-auth-link)}

/* Registration account type: one compact selector, not nine permanently expanded cards. */
.account-role-picker-v981{margin-bottom:1rem}
.account-role-select-shell-v981{position:relative;display:flex;align-items:center}
.account-role-select-shell-v981 .form-select{min-height:58px!important;border-radius:15px!important;padding-inline-start:58px!important;padding-inline-end:48px!important;background-image:none!important;font-weight:800;cursor:pointer}
.account-role-icon-v981{position:absolute;z-index:2;inset-inline-start:12px;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--gold,#d5a021) 16%,var(--v981-auth-surface));color:var(--v981-auth-link);pointer-events:none}
.account-role-chevron-v981{position:absolute;z-index:2;inset-inline-end:17px;color:var(--v981-auth-muted);pointer-events:none}
.account-role-hint-v981{display:block;margin-top:7px;line-height:1.55}

/* Advertiser public landing page. */
.advertise-public-v981{background:var(--bs-body-bg);color:var(--bs-body-color);min-height:70vh}
.advertise-hero-v981{padding:clamp(42px,7vw,86px) 0 38px;background:linear-gradient(145deg,color-mix(in srgb,var(--ink,#0b263d) 96%,#000),color-mix(in srgb,var(--ink,#0b263d) 82%,#184f68));color:#fff;position:relative;overflow:hidden}
.advertise-hero-v981:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;inset-inline-end:-160px;top:-180px;background:rgba(213,160,33,.13);pointer-events:none}
.advertise-hero-v981 .container{position:relative;z-index:1}
.advertise-badge-v981{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font-weight:800;font-size:12px}
.advertise-hero-v981 h1{font-size:clamp(32px,5vw,56px);font-weight:900;line-height:1.15;max-width:780px;margin:18px 0 14px}
.advertise-hero-v981 p{max-width:750px;color:#d9e5eb;font-size:clamp(15px,2vw,18px);line-height:1.9;margin:0}
.advertise-cta-v981{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.advertise-cta-v981 .btn{min-height:48px;padding-inline:20px;border-radius:13px;font-weight:800;display:inline-flex;align-items:center;gap:8px}.advertise-cta-v981 .btn-light{color:#142d3d}.advertise-cta-v981 .btn-outline-light:hover{color:#142d3d}
.advertise-section-v981{padding:38px 0}.advertise-grid-v981{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.advertise-card-v981{background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:20px;padding:22px;height:100%;box-shadow:0 10px 35px rgba(16,40,55,.05)}.advertise-card-v981>i{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--gold,#d5a021) 15%,var(--bs-body-bg));color:#a7730a;font-size:21px}.advertise-card-v981 h2{font-size:18px;font-weight:850;margin:15px 0 7px}.advertise-card-v981 p{color:var(--bs-secondary-color);line-height:1.75;margin:0}
.advertise-flow-v981{background:var(--bs-tertiary-bg);border-block:1px solid var(--bs-border-color)}.advertise-flow-list-v981{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px}.advertise-flow-step-v981{position:relative;padding:18px 15px;border:1px solid var(--bs-border-color);border-radius:17px;background:var(--bs-body-bg)}.advertise-flow-step-v981 b{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:var(--ink,#0b263d);color:#fff;margin-bottom:10px}.advertise-flow-step-v981 strong{display:block;font-size:14px}.advertise-flow-step-v981 small{display:block;color:var(--bs-secondary-color);margin-top:5px;line-height:1.55}.advertise-final-v981{text-align:center;padding:38px 0 54px}.advertise-final-v981 h2{font-weight:850}.advertise-final-v981 p{color:var(--bs-secondary-color);max-width:650px;margin:8px auto 18px}
[data-bs-theme="dark"] .advertise-card-v981{box-shadow:none}.header-advertise-link-v981{font-weight:800!important}.mobile-advertise-link-v981 i{color:#b98515!important}

/* Reader gate: force clear readable action states in both themes. */
.reader-gate-v980{color:var(--v980-text)!important}.reader-gate-v980 .btn-outline-secondary{color:var(--v980-text);border-color:var(--v980-border);background:transparent}.reader-gate-v980 .btn-outline-secondary:hover{background:var(--v980-surface-2);color:var(--v980-text)}
.reader-gate-v980 .text-muted{color:var(--v980-muted)!important}.reader-gate-v980 button:disabled{opacity:.65}

/* Mobile touch/overflow hardening for the affected flows. */
@media(max-width:767.98px){
  .auth-surface-v73 .auth-modern-card{padding:18px 14px!important;border-radius:20px!important}
  .auth-surface-v73 .auth-modern-head{align-items:flex-start}.auth-surface-v73 .auth-modern-head h1{font-size:1.25rem!important}.auth-surface-v73 .auth-modern-head p{line-height:1.6}
  .account-role-select-shell-v981 .form-select{min-height:56px!important;font-size:15px}
  .auth-surface-v73 .btn,.auth-surface-v73 button,.auth-surface-v73 .form-control,.auth-surface-v73 .form-select{min-height:44px}
  .terms-check{font-size:.78rem!important}
  .advertise-grid-v981{grid-template-columns:1fr}.advertise-flow-list-v981{grid-template-columns:1fr 1fr}.advertise-cta-v981 .btn{flex:1 1 210px;justify-content:center}
}
@media(max-width:479.98px){.advertise-flow-list-v981{grid-template-columns:1fr}.advertise-hero-v981{padding-top:34px}.advertise-cta-v981 .btn{width:100%;flex-basis:100%}}
