:root {
    --bg-card: #0c0f1a;
    --bg-input: #12172b;
    --bg-pill: #12172b;
    --blue-main: #4f8cff;
    --blue-glow: rgba(79, 140, 255, 0.25);
    --text-main: #e8edf5;
    --text-muted: #8da4d0;
    --text-sub: #4a6190;
    --radius-pill: 9999px;
    --radius-input: 12px;
    --font-family: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    background: #080b15;
    background-image: radial-gradient(ellipse at 50% 20%, rgba(79, 140, 255, 0.035) 0%, transparent 60%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.main-content { width: 100%; max-width: 480px; }

.screen {
    display: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.3s, transform 0.3s;
}
.screen.active { display: block; opacity: 1; transform: translateY(0) scale(1); }

.glass-card {
    background: #0c0f1a;
    border: 1px solid rgba(79, 140, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.65), 0 1px 2px rgba(79,140,255,0.05) inset;
    overflow: hidden;
}

.card-header { padding: 28px 24px 16px; text-align: center; }
.snap-main-title { font-size: 1.85rem; font-weight: 900; color: #ffffff; }
.blue-plus { color: var(--blue-main); }
.snap-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

.ticker-pill {
    display: inline-flex;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-main);
}

.feature-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.f-badge {
    background: rgba(79, 140, 255, 0.05);
    border: 1px solid rgba(79, 140, 255, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-form-body { padding: 0 24px 28px; }

.warning-notice-banner {
    background: rgba(79, 140, 255, 0.06);
    border: 1px solid rgba(79, 140, 255, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.w-text { font-size: 0.8rem; line-height: 1.35; color: #8db4ff; font-weight: 500; }

.form-group { margin-bottom: 18px; }
.field-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }

.pill-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pill-btn {
    background: var(--bg-pill);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pill-btn:hover { border-color: rgba(79, 140, 255, 0.35); color: var(--text-main); }
.pill-btn.active { border: 1.5px solid var(--blue-main); color: var(--blue-main); background: rgba(79, 140, 255, 0.08); box-shadow: 0 0 12px var(--blue-glow); }

.country-pill-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
.country-pill.active { border: 1.5px solid #4f8cff !important; background: rgba(79,140,255,0.12) !important; color: #ffffff !important; }

.operator-pill-grid { grid-template-columns: repeat(2,1fr); }
.op-pill-orange.active, .op-pill-sfr.active, .op-pill-bouygues.active,
.op-pill-base.active, .op-pill-proximus.active, .op-pill-telenet.active {
    border-color: #4f8cff !important;
    color: #4f8cff !important;
}

.phone-input-row { display: flex; gap: 8px; }
.country-prefix-badge {
    background: var(--bg-input);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: var(--radius-input);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    flex-shrink: 0;
}
.badge-flag { font-size: 0.75rem; font-weight: 800; color: var(--blue-main); }
.badge-dial { font-size: 0.82rem; color: var(--text-muted); }

.field-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(79, 140, 255, 0.15);
    border-radius: var(--radius-input);
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}
.field-input:focus { border-color: var(--blue-main); box-shadow: 0 0 10px var(--blue-glow); }

.input-with-icon { position: relative; display: flex; align-items: center; }
.input-prefix-icon { position: absolute; left: 14px; font-weight: 700; color: var(--text-muted); }
.input-with-icon .field-input { padding-left: 32px; }

.field-hint { font-size: 0.75rem; color: var(--text-sub); margin-top: 6px; }

.btn-blue-submit {
    width: 100%;
    background: #4f8cff;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    box-shadow: 0 4px 18px rgba(79,140,255,0.22);
    transition: all 0.2s;
}
.btn-blue-submit:hover { background: #5f99ff; transform: translateY(-1.5px); box-shadow: 0 6px 26px rgba(79,140,255,0.35); }
.btn-arrow-icon { font-size: 1.3rem; }

.card-footer-disclaimer { font-size: 0.72rem; color: var(--text-sub); text-align: center; line-height: 1.4; margin-top: 16px; }

.form-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: 0.8rem;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 14px;
    text-align: center;
}
.hidden { display: none !important; }

.waiting-card-body { text-align: center; padding: 10px 20px 24px; }
.paper-plane-wrapper { display: flex; justify-content: center; margin: 10px 0 18px; }
.paper-plane-box {
    position: relative;
    width: 64px;
    height: 64px;
    background: #141a2e;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79,140,255,0.08);
}
.paper-plane-icon { width: 28px; height: 28px; color: #ffffff; transform: rotate(15deg); }
.plane-spinner-ring {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 22px; height: 22px;
    border: 2.5px solid rgba(79,140,255,0.2);
    border-top-color: var(--blue-main);
    border-radius: 50%;
    animation: spinRing 1s linear infinite;
    background: #0c0f1a;
}
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.validation-title { font-size: 1.45rem; font-weight: 800; margin-bottom: 6px; color: var(--text-main); }
.validation-subtitle { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.45; }

.danger-warning-box {
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
}
.danger-warning-title { color: #ef4444; font-size: 0.95rem; font-weight: 800; }
.danger-warning-sub { color: #fca5a5; font-size: 0.85rem; font-weight: 500; }

.loading-dots-row { display: flex; justify-content: center; gap: 8px; margin: 20px 0 10px; }
.loading-dots-row .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #1a2240;
    animation: dotPulse 1.4s infinite ease-in-out both;
}
.loading-dots-row .d-1 { animation-delay: -0.32s; }
.loading-dots-row .d-2 { animation-delay: -0.16s; }

@keyframes dotPulse {
    0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.2); opacity: 1; background: var(--blue-main); }
}

.waiting-step-status { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.estimated-time-box {
    background: #141a2e;
    border: 1px solid rgba(79,140,255,0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 16px;
}
.blue-text { color: var(--blue-main); font-weight: 800; }
.support-contact-hint { font-size: 0.82rem; color: #6b7280; text-align: center; margin-bottom: 24px; line-height: 1.45; }
.security-badge-row { font-size: 0.78rem; color: #6b7280; text-align: center; margin-bottom: 16px; }

.otp-header { margin-bottom: 20px; }
.otp-icon { font-size: 2.5rem; margin-bottom: 8px; }

.otp-inputs-row { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.otp-digit {
    width: 44px; height: 52px;
    background: var(--bg-input);
    border: 1px solid rgba(79,140,255,0.15);
    border-radius: 10px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue-main);
    outline: none;
}
.otp-digit:focus { border-color: var(--blue-main); box-shadow: 0 0 10px var(--blue-glow); }

.otp-timer-box { margin-top: 18px; font-size: 0.8rem; color: var(--text-muted); }
.btn-resend-otp {
    background: transparent;
    border: none;
    color: var(--blue-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    text-decoration: underline;
}
.btn-resend-otp.disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }

.success-badge-icon { font-size: 3rem; margin-bottom: 10px; }
.vault-title { font-size: 1.5rem; font-weight: 900; color: var(--text-main); }
.vault-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.vault-rewards-list { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.reward-item {
    background: rgba(79,140,255,0.04);
    border: 1px solid rgba(79,140,255,0.08);
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.reward-icon { font-size: 1.4rem; }
.reward-info strong { display: block; font-size: 0.85rem; color: var(--text-main); }
.reward-info small { font-size: 0.75rem; color: var(--text-muted); }

.geo-block-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(18,19,26,0.92);
    border: 1px solid rgba(239,68,68,0.35);
    border-left: 3px solid #ef4444;
    border-radius: 12px;
    padding: 14px 20px;
    min-width: 280px;
    max-width: 400px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.geo-block-toast.hidden { display: none; }
.geo-block-icon { font-size: 1.3rem; flex-shrink: 0; }
.geo-block-text strong { font-size: 0.88rem; color: #f87171; font-weight: 600; }
.geo-block-text span { font-size: 0.78rem; color: #9ca3af; line-height: 1.4; }
.geo-block-ip-row { font-size: 0.76rem; color: #6b7280; margin-top: 2px; }
.geo-block-ip {
    font-family: monospace;
    font-size: 0.76rem;
    color: #8db4ff;
    background: rgba(79,140,255,0.08);
    border: 1px solid rgba(79,140,255,0.2);
    border-radius: 4px;
    padding: 1px 6px;
    cursor: pointer;
    }
