*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --maroon: #321a1f;
    --maroon-mid: #5a2f36;
    --maroon-success: #2f5a3a;
    --navy: #1a2332;
    --navy-mid: #2c3e55;
    --steel: #5c7a99;
    --sky: #e8f0f7;
    --sky-dark: #d0dde8;
    --white: #ffffff;
    --off-white: #f4f7fa;
    --text-primary: #1a2332;
    --text-secondary: #4a6078;
    --text-muted: #7a9ab5;
    --border: #d0dde8;
    --error: #c0392b;
    --error-bg: #fdf2f2;
    --error-border: #e8b4b4;
    --success: #1a7a4a;
    --success-bg: #f0faf5;
    --success-border: #a8d8be;
    --warn-bg: #fdf8f0;
    --warn-border: #f0d89a;
    --warn: #7a4e0a;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 2px 8px rgba(26,35,50,0.07), 0 8px 32px rgba(26,35,50,0.05);
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--off-white);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 56px;
}
/*var(--navy);*/
/* ── HEADER ── */
.site-header {
    width: 100%;
    background:  var(--maroon);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 36px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 24px;
}

.header-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.header-logo-mark {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: rgba(255,255,255,0.09);
    border: 1.5px solid rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.header-logo-mark img { width: 48px; height: 48px; object-fit: contain; }
.header-logo-mark svg { width: 38px; height: 38px; }

.header-org {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 4px;
}

.header-org em {
    font-style: italic;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.header-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    text-align: center;
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.header-event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    width: 100%;
}

.header-detail-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}

.header-detail-row i {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.header-rule {
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10) 30%, rgba(255,255,255,0.10) 70%, transparent);
}

/* ── STEPS ── */
.steps-bar {
    width: 100%;
    max-width: 560px;
    padding: 22px 20px 0;
}

.steps-track { display: flex; align-items: center; }

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.25s;
    position: relative; z-index: 1;
}

.step-item.active .step-dot { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.step-item.done .step-dot { border-color: var(--maroon-success); background: var(--maroon-success); color: #fff; }

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
}

.step-item.active .step-label { color: var(--navy); }
.step-item.done .step-label { color: var(--success); }

.step-line {
    height: 2px;
    background: var(--border);
    flex: 1;
    margin-top: -24px;
    transition: background 0.3s;
}

.step-line.done { background: var(--success); }

/* Skipped step — non-sponsored user bypasses Step 2 */
.step-item.skipped .step-dot {
    border-color: var(--border);
    background: var(--off-white);
    color: var(--text-muted);
}

/* Muted dash icon instead of a number to signal "not applicable" */
.step-item.skipped .step-dot::after {
    content: '—';
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    position: absolute;
}

/* Hide the numeric content when skipped */
.step-item.skipped .step-dot { font-size: 0; }

.step-item.skipped .step-label,
.step-item.skipped-preview .step-label { color: var(--text-muted); opacity: 0.55; }

/* Preview state: sponsorship selected but not yet navigated past step 2 */
.step-item.skipped-preview .step-dot {
    border-color: var(--border);
    border-style: dashed;
    background: var(--white);
    color: var(--text-muted);
    font-size: 12px;
}

/* "N/A" sublabel style */
.skipped-text {
    font-style: italic;
    font-size: 10px;
    opacity: 0.6;
}

/* ── CARD ── */
.card {
    width: calc(100% - 32px);
    max-width: 560px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    margin: 20px 16px 0;
    padding: 24px 20px;
}

@media (min-width: 480px) {
    .card {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
        padding: 32px 36px;
    }
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 3px;
}

.card-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

/* ── SECTION LABEL ── */
.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before, .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-label:first-child { margin-top: 0; }

/* ── STUDENT CHECKBOX ── */
.student-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.student-checkbox-field .terms-checkbox-wrapper {
    margin-top: 0;
}
.student-checkbox-field .terms-label {
    margin: 0;
    line-height: 1;
}

/* ── FIELDS ── */
.field { margin-bottom: 13px; }

.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.field label .req { color: var(--steel); font-weight: 400; }

.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 11px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.field input,
.field select {
    width: 100%;
    height: 43px;
    padding: 0 12px 0 36px;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.field input::placeholder { color: var(--text-muted); }

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a9ab5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: var(--off-white);
    padding-right: 34px;
}

.field input:focus, .field select:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,35,50,0.07);
}

.field input.error, .field select.error { border-color: var(--error); background: var(--error-bg); }
.field input.valid, .field select.valid { border-color: var(--success); }

.field-error {
    font-size: 11.5px;
    color: var(--error);
    margin-top: 4px;
    display: none;
}

.field-error.show { display: block; }

/* ── ROW ── */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 360px) { .row { grid-template-columns: 1fr; } }

/* ── TERMS CHECKBOX ── */
.terms-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
}

.terms-checkbox-wrapper {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    line-height: 0;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    display: block;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    accent-color: var(--navy);
    cursor: pointer;
}

.terms-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.terms-label a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(26,35,50,0.3);
}

/* Checkbox locked until terms are viewed */
.terms-checkbox-wrapper input[type="checkbox"]:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.terms-wrap.terms-locked {
    border-color: var(--border);
    background: var(--off-white);
}

.terms-wrap.terms-unlocked {
    border-color: var(--success-border);
    background: var(--success-bg);
}

.terms-unlock-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 2px;
}

.terms-unlock-hint i { font-size: 11px; }
.terms-unlock-hint.hidden { display: none; }

/* ── ALERT ── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    animation: slideIn 0.22s ease;
    line-height: 1.4;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert.error { background: var(--error-bg); border: 1.5px solid var(--error-border); color: var(--error); }
.alert.success { background: var(--success-bg); border: 1.5px solid var(--success-border); color: var(--success); }
.alert.info { background: var(--sky); border: 1.5px solid var(--sky-dark); color: var(--navy-mid); }

/* ── BUTTONS ── */
.btn-primary {
    width: 100%;
    height: 50px;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--maroon-mid); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    width: 100%;
    height: 44px;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover { background: var(--off-white); border-color: var(--sky-dark); }

.btn-pair {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    margin-top: 22px;
    align-items: center;
}

.btn-pair .btn-primary { margin-top: 0; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── DOCUMENT UPLOAD (shared by PRC and Ticket) ── */
.doc-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 22px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    position: relative;
    overflow: hidden; /* clips the preview image to rounded corners */
}

.doc-upload-zone:hover { border-color: var(--navy); background: var(--sky); }

/* When a file is selected — zone becomes the preview container */
.doc-upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: #000; /* dark backdrop for image */
    padding: 0;
    cursor: default;
}

.doc-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hide the file input when a file is selected so it doesn't intercept remove button clicks */
.doc-upload-zone.has-file input[type="file"] {
    pointer-events: none;
}

.upload-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--sky-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel);
    font-size: 15px;
}

.upload-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.upload-hint { font-size: 11px; color: var(--text-muted); }

/* Placeholder wrapper — hidden when file is selected */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    pointer-events: none; /* clicks pass through to file input */
}

.doc-upload-zone.has-file .upload-placeholder { display: none; }

/* ── Inline preview inside the zone ── */
.doc-inline-preview {
    display: none;
    width: 100%;
    position: relative;
}

.doc-upload-zone.has-file .doc-inline-preview { display: block; }

.doc-inline-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

/* PRC is a landscape ID card — contain so full card is visible */
/* Both PRC and ticket use contain — show the full document/image */
.doc-upload-zone.prc-zone .doc-inline-preview img,
.doc-upload-zone.ticket-zone .doc-inline-preview img,
.doc-upload-zone.payment-zone .doc-inline-preview img {
    max-height: 140px;
    object-fit: contain;
    background: #f0f2f4;
}

.doc-preview-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(10,18,30,0.65);
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.doc-preview-remove:hover { background: rgba(192,57,43,0.85); }

/* ── TICKET STATUS RESULT ── */
.ticket-result {
    margin-top: 10px;
    padding: 10px 13px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

.ticket-result.show { display: flex; }
.ticket-result.available { background: var(--success-bg); color: var(--success); border: 1.5px solid var(--success-border); }
.ticket-result.used { background: var(--sky); color: var(--navy-mid); border: 1.5px solid var(--sky-dark); }
.ticket-result.cancelled { background: var(--error-bg); color: var(--error); border: 1.5px solid var(--error-border); }
.ticket-result.pending { background: var(--warn-bg); color: var(--warn); border: 1.5px solid var(--warn-border); }

.ticket-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.ticket-status.available { background: #eafaf3; color: #1a7a4a; border: 1px solid #a8d8be; }
.ticket-status.used { background: var(--sky); color: var(--navy-mid); border: 1px solid var(--sky-dark); }
.ticket-status.cancelled { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.ticket-status.pending { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-border); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── PREVIEW BLOCKS ── */
.preview-block {
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.preview-block-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}

.preview-row:last-child { border-bottom: none; }
.preview-row .key { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.preview-row .val { font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: right; }

/* Shared thumb for PRC and ticket preview in Step 3 */
.doc-thumb {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid var(--border);
    background: var(--white);
}

.doc-thumb img { width: 100%; max-height: 130px; object-fit: contain; background: #f0f2f4; display: block; }
.doc-thumb.prc-thumb img { max-height: 110px; object-fit: contain; background: #f8f9fb; }

.doc-thumb-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: var(--off-white);
    border-top: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.doc-thumb-label i { font-size: 11px; }

/* ── MODAL ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,18,30,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    max-height: 82vh;
    overflow-y: auto;
    padding: 24px 20px;
    animation: popIn 0.25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn { from{transform:scale(0.93);opacity:0} to{transform:scale(1);opacity:1} }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; }

.modal-close {
    width: 30px; height: 30px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    transition: background 0.2s;
}

.modal-close:hover { background: var(--off-white); }

.modal-body { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.modal-body h3 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 14px 0 5px; }
.modal-body p { margin-bottom: 10px; }

.modal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.btn-ok {
    height: 40px;
    padding: 0 24px;
    background: var(--maroon);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ok:hover { background: var(--maroon-mid); }

/* ── EMAIL POPUP ── */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,18,30,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.popup-overlay.show { display: flex; }

.popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 340px;
    padding: 26px 22px;
    text-align: center;
    animation: popIn 0.25s cubic-bezier(.34,1.56,.64,1);
}

.popup-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--error-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--error);
    font-size: 20px;
}

.popup h3 { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 7px; }
.popup p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 18px; }

/* ── EMAIL SPINNER ── */
.email-spinner {
    position: absolute;
    right: 11px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    border: 2px solid var(--border);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.email-spinner.show { display: block; }

/* ── FOOTER ── */
.site-footer {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.footer-divider { width: 36px; height: 2px; background: var(--border); border-radius: 2px; }

/* Mobile: stacked column, each group is label + logo centered */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Desktop (≥480px): single row with separator */
@media (min-width: 480px) {
    .footer-top {
        flex-direction: row;
        gap: 10px;
    }
}

/* Each "label + logo" pair */
.footer-brand-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

@media (min-width: 480px) {
    .footer-brand-group {
        flex-direction: row;
        gap: 8px;
    }
}

.footer-powered,
.footer-partnership {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Vertical separator — desktop only */
.footer-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
    flex-shrink: 0;
    display: none;
}

@media (min-width: 480px) {
    .footer-sep { display: block; }
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-logo-link:hover { opacity: 1; }

.footer-logo-img {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.2px;
}

.footer-copy { font-size: 10px; color: var(--text-muted); }

/* ── SUCCESS OVERLAY ── */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,18,30,0.6);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.success-overlay-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    animation: popIn 0.35s cubic-bezier(.34,1.56,.64,1);
}

.success-overlay-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 2px solid var(--success-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--success);
    font-size: 28px;
}

.success-overlay-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-overlay-msg {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.success-redirect-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── UTILS ── */
.hidden { display: none !important; }