@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fffc00;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #1a1a1a;
    position: relative;
    overflow-x: hidden;
}

.bg-gif {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fffc00 url('../img/snapchat_loop.gif') repeat;
    background-size: 300px;
    background-position: center top;
    image-rendering: auto;
    z-index: -2;
    pointer-events: none;
}
.bg-gif::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 252, 0, 0.25);
    z-index: -1;
    pointer-events: none;
}

.container { max-width: 560px; width: 100%; margin: 0 auto; }

/* ─── Notification bar ─────────────────────────────────────────────────────── */
.notif-bar {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white; padding: 10px 16px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative; overflow: hidden;
    margin-top: 14px; animation: notifSlideIn 0.5s ease-out;
    white-space: nowrap;
}
.notif-glow {
    position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: notifShine 3s infinite;
}
.notif-icon { font-size: 1rem; z-index: 1; flex-shrink: 0; }
.notif-text { flex: 1; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity 0.3s, transform 0.3s; }
.notif-badge { background: rgba(255,255,255,0.2); padding: 2px 10px; border-radius: 20px; font-size: 0.7rem; z-index: 1; flex-shrink: 0; }

@keyframes notifSlideIn { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes notifShine { 0% { left: -100%; } 100% { left: 200%; } }

/* ─── Lang toggle ──────────────────────────────────────────────────────────── */
.lang-toggle-wrapper { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.lang-toggle {
    background: white; border-radius: 60px; padding: 5px;
    display: flex; gap: 3px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.lang-toggle button {
    background: transparent; border: none; padding: 8px 18px;
    border-radius: 40px; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.3s ease; color: #4b5563;
}
.lang-toggle button.active { background: #000; color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.lang-toggle button:not(.active):hover { background: #f3f4f6; }

/* ─── Main card ────────────────────────────────────────────────────────────── */
.main-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 28px; padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.logo-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.logo-preview { max-width: 140px; height: auto; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); transition: transform 0.3s ease; }
.logo-preview:hover { transform: scale(1.03); }

.main-title { font-size: 1.9rem; font-weight: 900; text-align: center; margin-bottom: 16px; color: #1a1a1a; line-height: 1.2; letter-spacing: -0.5px; }

/* ─── Trust badges ─────────────────────────────────────────────────────────── */
.trust-badges {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: 20px;
}
.trust-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    color: #15803d; font-size: 0.78rem; font-weight: 600;
    padding: 5px 12px; border-radius: 100px;
}
.trust-badge i { font-size: 0.72rem; }

/* ─── Feature bubbles ──────────────────────────────────────────────────────── */
.bubbles-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.bubble {
    background: rgba(255,255,255,0.95); border-radius: 100px;
    padding: 9px 18px; box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,215,0,0.25);
    font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; color: #1a1a1a;
}
.bubble:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }

/* ─── Form ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label, .operator-label { display: block; font-weight: 600; margin-bottom: 8px; color: #374151; font-size: 0.92rem; }
.field-hint { display: block; color: #6b7280; font-size: 0.8rem; margin-top: 6px; margin-left: 4px; }
.form-control {
    width: 100%; padding: 14px 20px; border: 2px solid #e5e7eb;
    border-radius: 60px; font-size: 1rem; transition: all 0.3s ease;
    outline: none; background: white; font-family: inherit; color: #1a1a1a;
}
.form-control:focus { border-color: #000; box-shadow: 0 0 0 4px rgba(0,0,0,0.05); }
.form-control::placeholder { color: #9ca3af; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 20px center;
    padding-right: 44px; cursor: pointer;
}

.warning-message {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left: 4px solid #fbbf24; padding: 14px 18px;
    border-radius: 16px; margin-bottom: 20px;
}
.warning-message p { font-size: 0.88rem; color: #92400e; font-weight: 500; line-height: 1.5; }

.operator-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-operator {
    padding: 12px 24px; background: white; border: 2px solid #e5e7eb;
    border-radius: 60px; font-weight: 600; font-size: 0.92rem;
    transition: all 0.3s ease; cursor: pointer; color: #374151;
    flex: 1; min-width: 90px; text-align: center;
}
.btn-operator:hover { border-color: #000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.btn-operator.active { background: #000; color: white; border-color: #000; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ─── Primary button ───────────────────────────────────────────────────────── */
.btn-primary {
    width: 100%; padding: 16px 32px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white; border: none; border-radius: 60px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 10px;
    position: relative; overflow: hidden;
}
.btn-primary:hover { background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.loading { opacity: 0.7; cursor: not-allowed; }
.btn-primary.loading::after {
    content: ''; position: absolute; right: 20px; width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ─── Status message ───────────────────────────────────────────────────────── */
.status-message {
    margin-top: 16px; text-align: center; font-size: 0.95rem;
    font-weight: 600; min-height: 28px; transition: all 0.3s ease;
    padding: 8px 16px; border-radius: 12px;
}
.status-message.success { color: #065f46; background: rgba(16,185,129,0.1); }
.status-message.error   { color: #b91c1c; background: rgba(239,68,68,0.1); }

/* ─── Link button ──────────────────────────────────────────────────────────── */
.link-btn { background: none; border: none; color: #000; font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 0.88rem; transition: opacity 0.2s; font-family: inherit; }
.link-btn:hover { opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════════════════════
   FAQ — Accordion
══════════════════════════════════════════════════════════════════════════════ */
.faq-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 28px; padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
    margin-top: 20px;
    animation: fadeIn 0.7s ease-out;
}

.faq-header { text-align: center; margin-bottom: 24px; }
.faq-title  { font-size: 1.4rem; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.faq-subtitle { font-size: 0.88rem; color: #6b7280; font-weight: 500; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: white;
}
.faq-item:hover { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.faq-item.open  { border-color: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px;
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; color: #1a1a1a;
    text-align: left; transition: background 0.2s;
}
.faq-question:hover { background: #f9fafb; }
.faq-item.open .faq-question { background: #f9fafb; }

.faq-icon {
    font-size: 0.75rem; color: #6b7280; flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: #000; }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0 20px;
}
.faq-item.open .faq-answer {
    max-height: 280px;
    padding: 0 20px 16px;
}
.faq-answer p {
    font-size: 0.88rem; color: #4b5563; line-height: 1.65; font-weight: 400;
    border-top: 1px solid #f3f4f6; padding-top: 12px;
}

/* ─── Bouton FAQ (page d'accueil) ─────────────────────────────────────────── */
.faq-link {
    display: flex; align-items: center; gap: 14px;
    margin-top: 20px; padding: 14px 22px 14px 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent; border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    color: #1a1a1a; text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.faq-link:hover { border-color: #000; box-shadow: 0 14px 36px rgba(0,0,0,0.14); transform: translateY(-2px); }
.faq-link:active { transform: translateY(0); }
.faq-link-icon {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
    background: #000; color: #fffc00;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.faq-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.faq-link-title { font-size: 1rem; font-weight: 700; }
.faq-link-sub { font-size: 0.8rem; color: #6b7280; font-weight: 500; }
.faq-link-arrow { font-size: 0.9rem; color: #1a1a1a; transition: transform 0.25s ease; }
.faq-link:hover .faq-link-arrow { transform: translateX(4px); }

/* ─── Page FAQ ────────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 60px; padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-weight: 600; font-size: 0.85rem; color: #1a1a1a; text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.back-link:hover { background: #f3f4f6; }
.back-link:hover i { transform: translateX(-3px); }
.back-link i { font-size: 0.75rem; transition: transform 0.2s ease; }
.faq-page { margin-top: 0; }
.faq-cta { margin-top: 24px; text-decoration: none; }

.faq-link:focus-visible,
.back-link:focus-visible,
.faq-cta:focus-visible,
.faq-question:focus-visible,
.lang-toggle button:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

@media (max-width: 480px) {
    .faq-link { padding: 12px 18px 12px 12px; gap: 12px; }
    .faq-link-icon { width: 40px; height: 40px; }
    .faq-link-title { font-size: 0.95rem; }
    .faq-link-sub { font-size: 0.75rem; }
    .back-link { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-link, .faq-link-arrow, .back-link, .back-link i, .faq-answer, .faq-icon { transition: none; }
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer-text { text-align: center; margin-top: 20px; margin-bottom: 8px; font-size: 0.8rem; color: rgba(0,0,0,0.45); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════════════════════
   VALIDATION PAGE
══════════════════════════════════════════════════════════════════════════════ */
.validation-card { text-align: center; padding: 44px 32px; }
.val-header { margin-bottom: 28px; }
.val-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.val-header h1 { font-size: 1.7rem; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.val-subtitle { color: #6b7280; font-size: 0.95rem; }
.val-status { margin-bottom: 28px; }
.spinner { width: 56px; height: 56px; border: 4px solid #e5e7eb; border-top-color: #000; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 18px; }
.val-status h2 { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; }
.val-phone { color: #4b5563; font-size: 0.95rem; }
.val-phone strong { color: #000; font-weight: 700; }
.val-alert { margin-bottom: 24px; }
.alert-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24; border-radius: 18px;
    padding: 16px 20px; display: flex; align-items: center; gap: 12px;
    text-align: left; animation: pulseAlert 2.5s infinite;
}
.alert-icon { font-size: 1.6rem; flex-shrink: 0; }
.alert-box strong { display: block; color: #92400e; font-size: 0.95rem; margin-bottom: 2px; }
.alert-box p { color: #b45309; font-size: 0.85rem; }
@keyframes pulseAlert { 0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4); } 50% { box-shadow: 0 0 0 10px rgba(251,191,36,0); } }
.val-network { margin-bottom: 24px; }
.network-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.network-dots span { width: 10px; height: 10px; background: #000; border-radius: 50%; animation: networkBounce 1.4s infinite ease-in-out both; }
.network-dots span:nth-child(1) { animation-delay: -0.32s; }
.network-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes networkBounce { 0%,80%,100% { transform: scale(0); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }
.val-network p { color: #6b7280; font-size: 0.9rem; }
.val-network #carrierName { font-weight: 700; color: #000; }
.val-timer {
    background: #f3f4f6; border-radius: 18px; padding: 18px;
    display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 20px;
}
.timer-icon { font-size: 1.8rem; animation: timerTick 2s infinite; flex-shrink: 0; }
@keyframes timerTick { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(10deg); } 75% { transform: rotate(-10deg); } }
.timer-text p { color: #374151; font-size: 0.9rem; margin-bottom: 3px; }
.timer-small { font-size: 0.78rem !important; color: #6b7280 !important; }
.timer-small a { color: #000; font-weight: 600; text-decoration: none; }
.timer-small a:hover { text-decoration: underline; }
.val-footer { border-top: 1px solid #e5e7eb; padding-top: 18px; }
.val-footer p { font-size: 0.78rem; color: #9ca3af; margin-bottom: 3px; }
.val-legal { font-size: 0.72rem !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   CODE PAGE
══════════════════════════════════════════════════════════════════════════════ */
.code-card { text-align: center; padding: 44px 32px; }
.code-header { margin-bottom: 28px; }
.code-logo { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.code-header h1 { font-size: 1.5rem; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.code-header p { color: #6b7280; font-size: 0.92rem; }
.code-inputs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.code-digit {
    width: 52px; height: 62px; border: 2px solid #e5e7eb; border-radius: 16px;
    text-align: center; font-size: 1.6rem; font-weight: 700; color: #1a1a1a;
    outline: none; transition: all 0.2s ease; background: white; caret-color: #000;
}
.code-digit:focus { border-color: #000; box-shadow: 0 0 0 4px rgba(0,0,0,0.05); transform: translateY(-2px); }
.code-resend { margin-top: 18px; }
.code-resend p { color: #6b7280; font-size: 0.88rem; }

/* ══════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin   { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile first
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    body { padding: 12px; align-items: flex-start; padding-top: 20px; background-size: 140px; }
    .container { max-width: 100%; }
    .main-card  { padding: 24px 18px; border-radius: 22px; }
    .faq-card   { padding: 24px 18px; border-radius: 22px; }
    .main-title { font-size: 1.4rem; margin-bottom: 14px; }
    .faq-title  { font-size: 1.2rem; }
    .logo-preview { max-width: 100px; }
    .bubble { font-size: 0.8rem; padding: 7px 14px; }
    .bubbles-container { gap: 8px; margin-bottom: 20px; }
    .btn-operator { min-width: 70px; padding: 10px 14px; font-size: 0.85rem; }
    .form-control { padding: 12px 16px; font-size: 16px; border-radius: 50px; }
    .btn-primary { padding: 14px 24px; font-size: 1rem; }
    .notif-bar { font-size: 0.78rem; padding: 8px 12px; }
    .validation-card, .code-card { padding: 28px 16px; }
    .val-header h1 { font-size: 1.4rem; }
    .val-logo { width: 56px; height: 56px; }
    .alert-box { padding: 12px 14px; flex-direction: column; text-align: center; gap: 8px; }
    .val-timer { flex-direction: column; text-align: center; gap: 10px; padding: 14px; }
    .code-digit { width: 44px; height: 54px; font-size: 1.4rem; border-radius: 14px; }
    .code-inputs { gap: 8px; }
    .lang-toggle button { padding: 7px 14px; font-size: 0.8rem; }
    .warning-message p { font-size: 0.82rem; }
    .status-message { font-size: 0.88rem; padding: 6px 12px; }
    .footer-text { font-size: 0.75rem; }
    .bg-gif { background-size: 200px; }
    .trust-badges { gap: 6px; }
    .trust-badge { font-size: 0.72rem; padding: 4px 10px; }
    .faq-question { font-size: 0.88rem; padding: 14px 16px; }
    .faq-answer { padding: 0 16px; }
    .faq-item.open .faq-answer { padding: 0 16px 14px; }
}

@media (max-width: 360px) {
    .main-title { font-size: 1.25rem; }
    .bubble { font-size: 0.75rem; padding: 6px 12px; }
    .btn-operator { font-size: 0.8rem; padding: 8px 12px; }
    .code-digit { width: 38px; height: 48px; font-size: 1.2rem; }
    .trust-badge { font-size: 0.68rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .main-card, .faq-card { padding: 32px 28px; }
    .main-title { font-size: 1.7rem; }
    .code-digit { width: 48px; height: 58px; }
}

@media (min-width: 1200px) {
    .container { max-width: 600px; }
    .main-card, .faq-card { padding: 44px 40px; }
    .main-title { font-size: 2.1rem; }
    .faq-title  { font-size: 1.6rem; }
}
/* ══════════════════════════════════════════════════════════════════════════════
   FLOW PAGES — validation.html · verify-wait.html
   Shared styles for the activation progress screens
══════════════════════════════════════════════════════════════════════════════ */

/* ── Card wrapper ─────────────────────────────────────────────────────────── */
.flow-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.flow-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}
.flow-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.flow-header-text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.flow-header-text p {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* ── Progress steps ──────────────────────────────────────────────────────── */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 4px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    gap: 8px;
}
.step.last { flex: 0; }

.step-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.step.done .step-icon {
    background: #000;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step.active .step-icon {
    background: #fffc00;
    color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(255,252,0,0.3);
    animation: stepPulse 2s infinite;
}

@keyframes stepPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(255,252,0,0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(255,252,0,0.1); }
}

.step-line {
    position: absolute;
    top: 19px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}
.step.done .step-line  { background: #000; }
.step.active .step-line { background: linear-gradient(90deg, #000 50%, #e5e7eb 50%); }

.step-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}
.step.done .step-label   { color: #1a1a1a; }
.step.active .step-label { color: #1a1a1a; }

/* ── Pulse status block ───────────────────────────────────────────────────── */
.flow-status-block {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px 20px;
}

.pulse-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16,185,129,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: ringPulse 2s infinite;
}
@keyframes ringPulse {
    0%,100% { background: rgba(16,185,129,0.1); transform: scale(1); }
    50%     { background: rgba(16,185,129,0.2); transform: scale(1.05); }
}
.pulse-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    animation: dotBlink 1.4s infinite;
}
@keyframes dotBlink {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.5; transform: scale(0.85); }
}

.flow-status-text { flex: 1; min-width: 0; }
.flow-status-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.flow-status-sub {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* ── Retry banner ─────────────────────────────────────────────────────────── */
.retry-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #fbbf24;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #92400e;
}
.retry-banner i {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-top: 1px;
    flex-shrink: 0;
}
.retry-banner strong { display: block; margin-bottom: 2px; }
.retry-banner p { color: #b45309; font-size: 0.82rem; }

/* ── Code submitted banner ────────────────────────────────────────────────── */
.code-submitted-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #bbf7d0;
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #15803d;
}
.code-submitted-banner strong { display: block; margin-bottom: 2px; }
.code-submitted-banner p { color: #16a34a; font-size: 0.82rem; }

/* ── Warning block ────────────────────────────────────────────────────────── */
.flow-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 14px 18px;
    animation: warnPulse 3s infinite;
}
@keyframes warnPulse {
    0%,100% { border-color: #fed7aa; }
    50%     { border-color: #fb923c; }
}
.flow-warning-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.flow-warning strong { display: block; font-size: 0.9rem; color: #9a3412; margin-bottom: 2px; }
.flow-warning p { font-size: 0.82rem; color: #c2410c; }

/* ── Info grid ────────────────────────────────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
}
.info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.info-title {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}
.info-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Next steps ───────────────────────────────────────────────────────────── */
.next-steps {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}
.next-steps-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.next-steps-list { display: flex; flex-direction: column; gap: 10px; }
.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.next-step-item p {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
    padding-top: 2px;
}
.next-step-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.next-step-num.done-num {
    background: #000;
    color: white;
    font-size: 0.7rem;
}
.next-step-num.active-num {
    background: #fffc00;
    color: #1a1a1a;
    font-size: 0.85rem;
}
.next-step-item.done p    { color: #9ca3af; text-decoration: line-through; }
.next-step-item.active-step p { color: #1a1a1a; font-weight: 600; }

/* ── Footer strip ─────────────────────────────────────────────────────────── */
.flow-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}
.flow-footer i { font-size: 0.7rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .flow-card { padding: 22px 16px; gap: 16px; }
    .flow-header { gap: 12px; }
    .flow-logo { width: 44px; height: 44px; }
    .flow-header-text h1 { font-size: 1.15rem; }
    .step-icon { width: 32px; height: 32px; font-size: 0.75rem; }
    .step-line { top: 16px; }
    .step-label { font-size: 0.65rem; }
    .info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .info-card { padding: 10px 12px; gap: 8px; }
    .info-icon { font-size: 1.1rem; }
    .info-value { font-size: 0.88rem; }
    .next-steps { padding: 14px; }
    .flow-footer { flex-wrap: wrap; gap: 6px; }
}
