/* Royal Limbo — minimal checkout */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Royal Limbo — brand tokens */
    --bg-base: #06060A;
    --bg-surface: #0C0C12;
    --bg-muted: #14141C;
    --bg-elevated: #1A1A24;
    --border: #2A2A38;
    --border-subtle: #1E1E28;

    --gold: #C9A227;
    --gold-light: #E4C76A;
    --gold-soft: rgba(201, 162, 39, 0.14);
    --gold-glow: rgba(228, 199, 106, 0.18);

    --signal: #8B7EE8;
    --signal-soft: rgba(139, 126, 232, 0.12);

    --accent: var(--gold);
    --accent-light: var(--gold-light);
    --accent-soft: var(--gold-soft);

    --text-primary: #F0EDE6;
    --text-secondary: #A8A4B8;
    --text-muted: #6B6778;

    --success: #3DD68C;
    --success-soft: rgba(61, 214, 140, 0.12);
    --danger: #F07070;

    --font-display: 'Cinzel', 'Times New Roman', Georgia, serif;
    --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius-lg: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 40px rgba(0, 0, 0, 0.35);
    --glass-bg: rgba(12, 12, 18, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --max-width: 1120px;
    --page-x: max(16px, env(safe-area-inset-left));
    --page-y: max(20px, env(safe-area-inset-top));
}

html {
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
}

/* Frosted background scene */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(88px);
}

.bg-orb--gold {
    width: min(380px, 75vw);
    height: min(380px, 75vw);
    top: -10%;
    right: -6%;
    background: rgba(201, 162, 39, 0.18);
}

.bg-orb--signal {
    width: min(340px, 70vw);
    height: min(340px, 70vw);
    bottom: 6%;
    left: -10%;
    background: rgba(139, 126, 232, 0.14);
}

.bg-watermark {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    user-select: none;
    white-space: nowrap;
    opacity: 0.55;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bg-watermark--rl {
    top: 14%;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    font-size: clamp(140px, 28vw, 320px);
    color: rgba(201, 162, 39, 0.045);
    -webkit-text-stroke: 1px rgba(228, 199, 106, 0.06);
}

.bg-watermark--limbo {
    bottom: 18%;
    right: -4%;
    transform: rotate(6deg);
    font-size: clamp(72px, 14vw, 160px);
    color: rgba(139, 126, 232, 0.05);
    -webkit-text-stroke: 1px rgba(139, 126, 232, 0.07);
}

.bg-watermark--predictor {
    top: 42%;
    left: -6%;
    transform: rotate(-90deg);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: var(--font-display);
    color: rgba(240, 237, 230, 0.025);
}

@media (max-width: 959px) {
    .bg-watermark--predictor {
        display: none;
    }

    .bg-watermark--rl {
        top: 6%;
        font-size: clamp(100px, 32vw, 200px);
    }
}

/* Icons */
[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    flex-shrink: 0;
}

.btn-icon { width: 16px; height: 16px; }
.field-icon { color: var(--text-muted); }
.trust-lock, .note-icon { color: var(--gold-light); }

/* Layout */
.main-wrapper {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--page-y) var(--page-x) max(32px, env(safe-area-inset-bottom));
}

.grid-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

.checkout-section {
    width: 100%;
}

@media (min-width: 640px) {
    .main-wrapper {
        padding: 36px 24px 48px;
    }

    .grid-layout {
        gap: 40px;
    }
}

@media (min-width: 960px) {
    .main-wrapper {
        padding: 48px 24px 64px;
    }

    .grid-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 64px;
        align-items: center;
    }

    .checkout-section {
        position: sticky;
        top: 32px;
    }
}

/* Hero */
.hero-label {
    font-family: var(--font-display);
    font-size: clamp(26px, 6.5vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--gold-light);
}

.hero-title {
    font-family: var(--font-ui);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-title .accent {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .hero-label {
        margin-bottom: 16px;
    }

    .hero-title {
        margin-bottom: 20px;
    }

    .hero-desc {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 8px;
    }
}

@media (min-width: 960px) {
    .hero-desc {
        margin-bottom: 32px;
    }
}

/* Hide hero on mobile during pay/success to focus checkout */
@media (max-width: 959px) {
    body.checkout-active .hero-section {
        display: none;
    }

    body.checkout-active .grid-layout {
        gap: 0;
    }
}

/* Checkout card */
.checkout-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        0 8px 32px rgba(0, 0, 0, 0.35);
    padding: 20px 16px 18px;
}

@media (min-width: 640px) {
    .checkout-card {
        padding: 28px 24px 24px;
    }
}

@media (min-width: 960px) {
    .checkout-card {
        padding: 32px 28px 24px;
    }
}

/* Price strip */
.price-strip {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .price-strip {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}

.price-main {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 8px;
}

.price-currency {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 6px;
}

@media (min-width: 640px) {
    .price-currency {
        font-size: 22px;
        margin-top: 8px;
    }
}

.price-amount {
    font-family: var(--font-display);
    font-size: clamp(40px, 12vw, 52px);
    font-weight: 600;
    line-height: 1;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.price-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 6px;
}

.price-was {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-save {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--success);
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--success-soft);
    letter-spacing: 0.02em;
}

.price-caption {
    font-size: 13px;
    color: var(--text-muted);
}

/* Stepper */
.stepper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 2px 0;
    width: 100%;
}

@media (min-width: 640px) {
    .stepper {
        margin-bottom: 28px;
        padding: 4px 0;
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 52px;
}

@media (min-width: 400px) {
    .step-item {
        min-width: 64px;
        gap: 10px;
    }
}

@media (min-width: 640px) {
    .step-item {
        flex: 0 0 72px;
    }
}

.step-marker {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) {
    .step-marker {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

.step-check {
    display: none;
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

@media (min-width: 640px) {
    .step-check {
        width: 16px;
        height: 16px;
    }
}

.step-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.25s ease;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .step-title {
        font-size: 12px;
    }
}

.step-connector {
    flex: 1;
    min-width: 12px;
    height: 2px;
    margin-top: 15px;
    background: var(--border);
    border-radius: 1px;
    transition: background 0.3s ease;
}

@media (min-width: 640px) {
    .step-connector {
        margin-top: 17px;
    }
}

.step-connector.completed {
    background: var(--gold);
}

.step-item.active .step-marker {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-light);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

.step-item.active .step-title {
    color: var(--gold-light);
    font-weight: 600;
}

.step-item.completed .step-marker {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--bg-base);
}

.step-item.completed .step-num {
    display: none;
}

.step-item.completed .step-check {
    display: block;
}

.step-item.completed .step-title {
    color: var(--text-secondary);
}

/* Form */
.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.field-label:not(:first-of-type) {
    margin-top: 16px;
}

.field-wrap {
    position: relative;
}

.field-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field-input::placeholder {
    color: var(--text-muted);
}

.field-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.field-select {
    cursor: pointer;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--bg-base);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
    .btn-primary {
        margin-top: 24px;
        padding: 14px 20px;
        min-height: 44px;
    }
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-primary:active {
    opacity: 0.85;
}

.btn-ghost {
    width: 100%;
    margin-top: 14px;
    padding: 12px 10px;
    min-height: 44px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-ghost:hover {
    color: var(--text-secondary);
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

.terms-check-wrap {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.terms-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.terms-box {
    position: absolute;
    inset: 0;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(20, 20, 28, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    pointer-events: none;
}

.terms-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    width: 10px;
    height: 5px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.terms-input:checked + .terms-box {
    background: var(--gold-soft);
    border-color: rgba(228, 199, 106, 0.45);
}

.terms-input:checked + .terms-box::after {
    border-color: var(--gold-light);
    transform: rotate(-45deg) scale(1);
}

.terms-input:focus-visible + .terms-box {
    box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        0 0 0 3px var(--gold-soft);
}

.terms-text {
    flex: 1;
}

.terms-row a {
    color: var(--gold-light);
    text-decoration: none;
}

.terms-row a:hover {
    text-decoration: underline;
}

/* Payment step */
.panel-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.panel-email {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    word-break: break-all;
}

.payment-loader {
    padding: 32px 16px;
    text-align: center;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

@media (min-width: 640px) {
    .payment-loader {
        padding: 40px 16px;
    }
}

.loader-ring {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 2px solid var(--border);
    border-top-color: var(--signal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-frame {
    text-align: center;
}

.pay-method-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pay-amount-line {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .pay-amount-line {
        margin-bottom: 18px;
    }
}

.pay-amount-line strong {
    color: var(--gold-light);
    font-family: var(--font-mono);
    font-weight: 600;
    word-break: break-word;
}

.qr-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.qr-wrap {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    min-width: min(188px, 100%);
    min-height: 188px;
    max-width: 100%;
}

#qrContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    min-height: 168px;
}

.qr-loading,
.qr-fallback {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    padding: 24px 12px;
}

.qr-wrap canvas,
.qr-wrap img,
.qr-image {
    display: block;
    width: 168px;
    height: 168px;
    max-width: min(168px, 100%);
}

.pay-address-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}

@media (min-width: 480px) {
    .pay-address-box {
        flex-direction: row;
        align-items: center;
    }
}

.pay-address-box code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    word-break: break-all;
    color: var(--text-primary);
}

@media (min-width: 480px) {
    .pay-address-box code {
        font-size: 12px;
    }
}

.btn-copy {
    flex-shrink: 0;
    padding: 12px 14px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .btn-copy {
        padding: 8px 12px;
        min-height: auto;
        font-size: 12px;
    }
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--gold);
}

.pay-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
    padding: 0 4px;
}

.crypto-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
    padding: 0 4px;
}

/* Success */
.step-success {
    text-align: center;
}

.success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--success-soft);
    border: 1px solid rgba(61, 214, 140, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

@media (min-width: 640px) {
    .success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }
}

.success-icon [data-lucide] {
    width: 24px;
    height: 24px;
}

@media (min-width: 640px) {
    .success-icon [data-lucide] {
        width: 26px;
        height: 26px;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .success-title {
        font-size: 24px;
    }
}

.success-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.success-email {
    display: inline-block;
    max-width: 100%;
    padding: 10px 16px;
    margin-bottom: 18px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.success-note {
    display: flex;
    gap: 12px;
    text-align: left;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .success-note {
        padding: 16px;
        margin-bottom: 24px;
    }
}

.success-note code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold-light);
    word-break: break-all;
}

.card-trust {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 640px) {
    .card-trust {
        align-items: center;
        margin-top: 24px;
        padding-top: 20px;
    }
}

.trust-lock {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (min-width: 640px) {
    .trust-lock {
        margin-top: 0;
    }
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border);
    padding: 24px var(--page-x) max(24px, env(safe-area-inset-bottom));
    text-align: center;
}

@media (min-width: 640px) {
    .site-footer {
        padding: 32px 24px;
    }
}

.site-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.site-footer p + p {
    margin-top: 4px;
}

/* Utils */
.hidden { display: none !important; }

.fade-in {
    animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-notification {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    left: var(--page-x);
    right: var(--page-x);
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 14px;
    z-index: 1000;
    box-shadow: var(--shadow);
    animation: fadeIn 0.25s ease;
    text-align: center;
}

@media (min-width: 640px) {
    .toast-notification {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
    }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(6, 6, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--glass-highlight);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--gold-light);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.btn-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}
.modal-body li strong {
    color: var(--text-primary);
}
