/* Dark theme (default). Light theme and high-contrast overrides live below,
   right after this block — every component rule reads these same variable
   names, so switching themes never means touching component CSS. */
:root {
    --bg: #0b1220;
    --surface: #121b2e;
    --gold: #c9a24b;
    --gold-light: #e4c877;
    --text: #e7ebf3;
    --text-muted: #9aa5b8;
    --border: #223049;
    --radius: 10px;
    --max-width: 1120px;
    --font-scale: 1;
}

/* Light theme — activated by data-theme="light" on <html> (set by the
   toggle in the header, persisted in localStorage). Gold accents are kept
   identical across both themes for brand consistency. */
:root[data-theme="light"] {
    --bg: #faf8f3;
    --surface: #ffffff;
    --gold: #b8863a;
    --gold-light: #96692a;
    --text: #1c2430;
    --text-muted: #5b6472;
    --border: #e3ddce;
}

/* High-contrast accessibility mode — layered on top of whichever theme is
   active, via data-contrast="high" on <html>. Maximises text/background
   contrast and thickens focus indication for low-vision readers. */
:root[data-contrast="high"] {
    --text-muted: var(--text);
    --border: var(--text);
}
:root[data-theme="light"][data-contrast="high"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #000000;
}
:root:not([data-theme="light"])[data-contrast="high"] {
    --bg: #000000;
    --surface: #000000;
    --text: #ffffff;
    --gold-light: #ffd76a;
}

* { box-sizing: border-box; }

html { font-size: calc(16px * var(--font-scale)); }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color .2s ease, color .2s ease;
}

:root[data-contrast="high"] a,
:root[data-contrast="high"] .btn,
:root[data-contrast="high"] button {
    text-decoration: underline;
}
:root[data-contrast="high"] *:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 2px;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo-img { height: 52px; max-height: 52px; width: auto; max-width: 220px; object-fit: contain; }

/* Two logo variants — CSS swaps between them the instant the theme toggles,
   with no flash and no extra image request (both are already loaded). */
.brand-logo-dark { display: block; }
.brand-logo-light { display: none; }
:root[data-theme="light"] .brand-logo-dark { display: none; }
:root[data-theme="light"] .brand-logo-light { display: block; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), #8a6d2e);
    color: var(--bg);
    font-weight: 800;
}
.brand-text { color: var(--text); font-size: 1.15rem; }
.brand-text strong { color: var(--gold); }

.main-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.main-nav a { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-light); }

/* Language switcher */
.lang-select { position: relative; }
.lang-select-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.lang-select-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.lang-select-toggle .caret { font-size: .7em; margin-inline-start: 2px; }
.lang-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
    z-index: 20;
}
.lang-select-menu.open { display: block; }
.lang-select-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .88rem;
    color: var(--text-muted);
}
.lang-select-menu a:hover { background: rgba(201,162,75,.1); color: var(--text); }
.lang-select-menu a.active { color: var(--gold-light); font-weight: 700; }

/* Theme toggle — a standalone, always-visible light/dark switch in the main
   nav (separate from the "Aa" accessibility panel, which only handles
   contrast and text size). A two-label pill with a sliding gold thumb, so
   both states stay visible and legible rather than a single icon guessing
   game. */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    cursor: pointer;
}
.theme-toggle-opt {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 999px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .25s ease;
}
.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    right: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 999px;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.theme-toggle:not(.is-light) .theme-toggle-thumb { transform: translateX(100%); }
.theme-toggle.is-light .theme-toggle-thumb { transform: translateX(0); }
.theme-toggle.is-light .theme-toggle-opt-light,
.theme-toggle:not(.is-light) .theme-toggle-opt-dark { color: #1a1408; }
/* RTL flexbox reverses which physical side each option renders on, so both
   thumb positions (not just the "dark" one) have to swap, not just negate. */
[dir="rtl"] .theme-toggle:not(.is-light) .theme-toggle-thumb { transform: translateX(0); }
[dir="rtl"] .theme-toggle.is-light .theme-toggle-thumb { transform: translateX(100%); }

/* RTL (Arabic) — mirror the layout rather than just flipping text direction */
[dir="rtl"] .main-nav { justify-content: flex-start; }
[dir="rtl"] .btn-outline { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .lang-select-menu { inset-inline-end: auto; inset-inline-start: 0; }
[dir="rtl"] .toc-sticky ul { border-left: none; border-right: 2px solid var(--border); }
[dir="rtl"] .toc-sticky li a { padding: 6px 16px 6px 0; margin-left: 0; margin-right: -2px; border-left: none; border-right: 2px solid transparent; }
[dir="rtl"] .toc-sticky li a.active { border-right-color: var(--gold); }
[dir="rtl"] .assist-card, [dir="rtl"] .promo-code-row { direction: rtl; }

/* Narrow phones: the logo + 5 nav links don't fit one row — wrap onto a
   second line instead of overflowing horizontally. Pure CSS, no JS menu. */
@media (max-width: 480px) {
    .header-inner { flex-wrap: wrap; justify-content: center; height: auto; padding: 10px 0; row-gap: 8px; }
    .main-nav { justify-content: center; gap: 8px 14px; font-size: .82rem; }
    .brand-logo-img { height: 40px; max-height: 40px; max-width: 160px; }
    .theme-toggle-opt { padding: 5px 8px; }
    .theme-toggle-txt { display: none; }
}

/* Hero */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(201,162,75,0.12), transparent 60%);
}
.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 16px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: transform .15s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg);
}
.btn-primary:hover { color: var(--bg); transform: translateY(-2px); }
.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    margin-left: 12px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* Cards grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 24px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.card h3 { margin-top: 0; color: var(--gold-light); }

/* Brand cards */
.brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand-card .status {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    width: fit-content;
}
.status.live { background: rgba(70, 190, 120, .15); color: #6fdc9a; }
.status.coming_soon { background: rgba(201,162,75,.15); color: var(--gold-light); }

/* Content pages (legal etc.) */
.prose { max-width: 780px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { color: var(--gold-light); margin-top: 40px; }
.prose p, .prose li { color: var(--text-muted); }
.prose .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .main-nav { gap: 16px; font-size: .9rem; }
}

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: .9rem; }
input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.alert-success { background: rgba(70,190,120,.15); border: 1px solid rgba(70,190,120,.4); color: #6fdc9a; }
.alert-error { background: rgba(220,90,90,.15); border: 1px solid rgba(220,90,90,.4); color: #e88; }

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 48px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--text); margin: 0 0 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { color: var(--text-muted); }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   Blog
   ───────────────────────────────────────────────────────────── */

.blog-hero { padding: 88px 0 56px; text-align: center; }
.blog-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 14px; }
.blog-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.post-card .post-thumb {
    height: 190px;
    background-size: cover;
    background-position: center;
}
.post-card .post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .post-meta { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; color: var(--text); }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--gold-light); }
.post-card p.post-excerpt { color: var(--text-muted); font-size: .92rem; flex: 1; margin: 0; }
.post-card .read-more { font-size: .88rem; font-weight: 600; color: var(--gold-light); }

/* Article page */
.article-header { padding: 72px 0 0; }
.article-header .container { max-width: 780px; }
.article-meta-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 20px; }
.article-hero-img {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-body { padding: 48px 0 24px; }
.article-body .container { max-width: 780px; }
.article-body .prose h2 { font-size: 1.5rem; margin-top: 44px; }
.article-body .prose h3 { color: var(--gold-light); font-size: 1.15rem; margin-top: 32px; }
.article-body .prose p, .article-body .prose li { font-size: 1.02rem; line-height: 1.8; }
.article-body .prose ul { padding-left: 1.3rem; }
.article-body .prose a { text-decoration: underline; text-decoration-color: rgba(228,200,119,.4); }

/* Language switcher pills */
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switch a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}
.lang-switch a:hover { border-color: var(--gold); color: var(--gold-light); }
.lang-switch a.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }

/* Assistance CTA card shown on every article */
.assist-card {
    max-width: 780px;
    margin: 48px auto 0;
    background: linear-gradient(135deg, rgba(201,162,75,.10), rgba(201,162,75,.03));
    border: 1px solid rgba(201,162,75,.35);
    border-radius: 14px;
    padding: 26px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.assist-card .assist-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(201,162,75,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.assist-card h4 { margin: 0 0 6px; color: var(--gold-light); font-size: 1.02rem; }
.assist-card p { margin: 0 0 10px; color: var(--text-muted); font-size: .92rem; }
.assist-card a.btn { padding: 8px 18px; font-size: .85rem; }

.related-posts { max-width: 780px; margin: 56px auto 0; }
.related-posts h3 { font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 20px; }

@media (max-width: 640px) {
    .assist-card { flex-direction: column; }
}

/* Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: transparent; }
.reading-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .1s linear; }

/* Article two-column layout with sticky table of contents */
.article-body .container.article-layout { max-width: 1040px; display: grid; grid-template-columns: 1fr; gap: 40px; }
.article-main { max-width: 780px; width: 100%; margin: 0 auto; }
@media (min-width: 1050px) {
    .article-body .container.article-layout { grid-template-columns: 780px 220px; justify-content: center; }
    .article-main { margin: 0; }
    .article-toc { display: block; }
}
.article-toc { display: none; }
.toc-sticky { position: sticky; top: 96px; }
.toc-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; }
.toc-sticky ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc-sticky li a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.toc-sticky li a:hover { color: var(--gold-light); }
.toc-sticky li a.active { color: var(--gold-light); border-left-color: var(--gold); font-weight: 600; }

/* Share row */
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-label { font-size: .82rem; color: var(--text-muted); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* Back-to-top button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 40;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { filter: brightness(1.1); }

/* Scroll-reveal entrance animation for cards */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────────
   Accessibility toolbar (theme, text size, contrast) — site-wide
   ───────────────────────────────────────────────────────────── */

.a11y-toggle {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    z-index: 41;
    display: flex; align-items: center; justify-content: center;
}
.a11y-toggle:hover { border-color: var(--gold); color: var(--gold-light); }

.a11y-panel {
    position: fixed;
    bottom: 82px;
    left: 28px;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    padding: 18px;
    z-index: 41;
    display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h5 {
    margin: 0 0 14px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}
.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-row:last-child { margin-bottom: 0; }
.a11y-row-label { font-size: .88rem; color: var(--text); }

.a11y-seg { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.a11y-seg button {
    background: transparent;
    border: none;
    color: var(--text);
    width: 30px; height: 30px;
    cursor: pointer;
    font-size: .9rem;
    border-left: 1px solid var(--border);
}
.a11y-seg button:first-child { border-left: none; }
.a11y-seg button:hover { background: rgba(201,162,75,.15); }

.a11y-switch {
    position: relative;
    width: 40px; height: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
}
.a11y-switch .knob {
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform .2s ease, background .2s ease;
}
.a11y-switch.on { border-color: var(--gold); }
.a11y-switch.on .knob { transform: translateX(18px); background: var(--gold); }

.a11y-reset {
    width: 100%;
    margin-top: 16px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .82rem;
    cursor: pointer;
}
.a11y-reset:hover { border-color: var(--gold); color: var(--gold-light); }

@media (max-width: 480px) {
    .a11y-panel { left: 16px; right: 16px; width: auto; }
    .a11y-toggle { left: 16px; }
}

/* ─────────────────────────────────────────────────────────────
   Egypt X Diving backlink card + discount popup
   ───────────────────────────────────────────────────────────── */

.diving-promo-card {
    max-width: 780px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
}
.diving-promo-img { background-size: cover; background-position: center; min-height: 160px; }
.diving-promo-body { padding: 24px 28px; }
.diving-promo-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gold-light);
    background: rgba(201,162,75,.12);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.diving-promo-body h4 { margin: 0 0 8px; font-size: 1.15rem; }
.diving-promo-body p { margin: 0 0 16px; color: var(--text-muted); font-size: .92rem; }
@media (max-width: 600px) {
    .diving-promo-card { grid-template-columns: 1fr; }
    .diving-promo-img { min-height: 140px; }
}

.promo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    padding: 20px;
}
.promo-popup-overlay.open { opacity: 1; pointer-events: auto; }
.promo-popup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    transform: translateY(10px);
    transition: transform .25s ease;
}
.promo-popup-overlay.open .promo-popup { transform: translateY(0); }
.promo-popup-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.promo-popup-close:hover { border-color: var(--gold); color: var(--gold-light); }
.promo-popup-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gold-light);
    margin-bottom: 10px;
}
.promo-popup h3 { margin: 0 0 10px; font-size: 1.3rem; }
.promo-popup p { color: var(--text-muted); font-size: .9rem; margin: 0 0 18px; }
.promo-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px dashed var(--gold);
    border-radius: 10px;
    padding: 10px 14px;
}
.promo-code-row code { flex: 1; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-light); }
.promo-code-row .btn { padding: 6px 14px; font-size: .8rem; }
