/* ============================================================
   WiFex Hotspot v2.2 - Minimal Dark
   ============================================================ */

:root {
    --bg:         #09090b;
    --surface:    #111113;
    --surface-2:  #18181b;
    --border:     rgba(255,255,255,0.06);
    --text:       #fafafa;
    --text-2:     #a1a1aa;
    --text-3:     #52525b;
    --accent:     #17808F;
    --accent-h:   #54AFBC;
    --accent-soft:rgba(23,128,143,0.08);
    --green:      #22c55e;
    --green-soft: rgba(34,197,94,0.08);
    --red:        #ef4444;
    --red-soft:   rgba(239,68,68,0.08);
    --yellow:     #eab308;
    --yellow-soft:rgba(234,179,8,0.06);
    --r:          14px;
    --r-sm:       10px;
    --font:       'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

/* Reset */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
img { max-width: 100%; height: auto; display: block; }

/* ── Loader ─────────────────────────────────────────── */
.wf-loader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity .3s ease;
    animation: wfLoaderFade 0.4s ease 1.5s forwards;
}
.wf-loader.hidden { opacity: 0; pointer-events: none; visibility: hidden; }

@keyframes wfLoaderFade {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

.wf-spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .6s linear infinite;
}
.wf-spinner--sm {
    width: 14px; height: 14px;
    border-width: 1.5px;
    display: inline-block; vertical-align: middle;
    margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ── Page ───────────────────────────────────────────── */
.wf-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    padding-top: 12vh;
}

/* ── Card ───────────────────────────────────────────── */
.wf-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 40px 32px;
}

/* ── Card elements ──────────────────────────────────── */
.wf-card__logo {
    text-align: center;
    margin-bottom: 32px;
}

.wf-logo-isp {
    max-width: 160px;
    max-height: 64px;
    border-radius: 8px;
    background: #fff;
    padding: 10px 16px;
    display: inline-block;
}
.wf-logo-isp--lg {
    max-width: 200px;
    max-height: 80px;
    padding: 12px 20px;
    border-radius: 12px;
}

.wf-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.wf-card__subtitle {
    font-size: 0.85rem;
    color: var(--text-2);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 400;
}

.wf-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wf-card__actions form {
    display: contents;
}
.wf-card__actions form > .wf-btn {
    width: 100%;
}

.wf-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-3);
}

.wf-card__badge {
    text-align: center;
    margin-top: 32px;
    opacity: 0.08;
}
.wf-badge-logo {
    width: 64px;
    display: inline-block;
}

/* ── Buttons ────────────────────────────────────────── */
.wf-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 20px;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    text-align: center;
}
.wf-btn i { font-size: 1.1rem; }
.wf-btn small { font-size: 0.7rem; font-weight: 400; opacity: 0.5; }

/* Botão de uma linha só (ícone ao lado do texto). O .wf-btn empilha em
   coluna porque as opções de acesso têm ícone + título + subtítulo; num
   botão simples de confirmação isso dobra a altura sem motivo. */
.wf-btn--inline {
    flex-direction: row;
    gap: 8px;
    padding: 12px 20px;
}

.wf-btn--primary {
    background: var(--accent);
    color: #fff;
}
.wf-btn--primary:hover:not(:disabled) {
    background: var(--accent-h);
    color: #fff;
}
.wf-btn--primary:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.wf-btn--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e4e4e7;
}
.wf-btn--outline small {
    opacity: 0.65;
}
.wf-btn--outline:hover {
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.wf-btn--secondary {
    background: transparent;
    color: var(--text-3);
}
.wf-btn--secondary:hover {
    color: var(--text-2);
}

/* Form buttons */
.wf-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    align-items: center;
}
.wf-btn--back {
    flex: 0 0 auto;
    padding: 10px 14px;
    flex-direction: row;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-3);
}
.wf-btn--back:hover { color: var(--text-2); }
.wf-btn--back i { font-size: 0.85rem; margin-bottom: 0; }

.wf-btn--submit {
    flex: 1;
    padding: 14px 20px;
    flex-direction: row;
    gap: 0;
    font-size: 0.95rem;
    font-weight: 600;
}
.wf-btn__text, .wf-btn__loading {
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ── Input ──────────────────────────────────────────── */
.wf-input-group { margin-bottom: 16px; }
.wf-input-wrapper { position: relative; }

.wf-input-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-3);
    font-size: 1rem;
    pointer-events: none;
    transition: color .2s ease;
}

.wf-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--r-sm);
    padding: 14px 14px 14px 44px;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    transition: all .2s ease;
    outline: none;
}
.wf-input::placeholder {
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0.1em;
}
.wf-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.wf-input:focus ~ .wf-input-icon { color: var(--accent); }

.wf-input--valid {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 2px var(--green-soft) !important;
}
.wf-input--valid ~ .wf-input-icon { color: var(--green) !important; }

.wf-input--invalid {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 2px var(--red-soft) !important;
}
.wf-input--invalid ~ .wf-input-icon { color: var(--red) !important; }

.wf-input-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 6px;
    text-align: center;
}

/* ── Checkbox ───────────────────────────────────────── */
.wf-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; padding: 10px 0;
}
.wf-checkbox input[type="checkbox"] { display: none; }

.wf-checkbox__mark {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    position: relative;
    transition: all .15s ease;
    margin-top: 1px;
}
.wf-checkbox:hover .wf-checkbox__mark {
    border-color: rgba(255,255,255,0.2);
}
.wf-checkbox input:checked + .wf-checkbox__mark {
    background: var(--accent);
    border-color: var(--accent);
}
.wf-checkbox input:checked + .wf-checkbox__mark::after {
    content: '';
    position: absolute; top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.wf-checkbox__label {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ── Field (label + input + hint) ──────────────────── */
.wf-field {
    margin-bottom: 20px;
}
.wf-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    padding-left: 2px;
}
.wf-field__input-wrap {
    position: relative;
}
.wf-field__icon {
    position: absolute;
    left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-3);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color .2s ease;
}
.wf-input--lg {
    padding: 16px 16px 16px 48px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
}
.wf-input--lg:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.wf-input--lg:focus ~ .wf-field__icon { color: var(--accent); }
.wf-input--lg.wf-input--valid ~ .wf-field__icon { color: var(--green) !important; }
.wf-input--lg.wf-input--invalid ~ .wf-field__icon { color: var(--red) !important; }
.wf-field__hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 8px;
    padding-left: 2px;
}
.wf-field__hint::before {
    content: '\F470';
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    color: var(--green);
}

/* ── Terms Box ─────────────────────────────────────── */
.wf-terms-box {
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 14px 16px;
    margin-bottom: 24px;
    transition: border-color .2s ease, background .2s ease;
}
.wf-terms-box:has(.wf-terms-check:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.wf-terms-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.wf-terms-check {
    display: none;
}
.wf-terms-checkmark {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    position: relative;
    transition: all .15s ease;
}
.wf-terms-label:hover .wf-terms-checkmark {
    border-color: rgba(255,255,255,0.25);
}
.wf-terms-check:checked + .wf-terms-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}
.wf-terms-check:checked + .wf-terms-checkmark::after {
    content: '';
    position: absolute; top: 3px; left: 6px;
    width: 6px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.wf-terms-text {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.4;
}
.wf-terms-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wf-terms-link:hover {
    color: var(--accent-h);
}

/* ── Connect Button ────────────────────────────────── */
.wf-btn--connect {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--r);
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}
.wf-btn--connect i {
    font-size: 1rem;
}

/* ── Back Link ─────────────────────────────────────── */
.wf-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-3);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px;
    transition: color .2s ease;
}
.wf-back-link:hover { color: var(--text-2); }
.wf-back-link i { font-size: 0.85rem; }

/* ── Alerts ─────────────────────────────────────────── */
.wf-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    font-size: 0.82rem;
    margin-bottom: 16px;
    animation: slideIn .25s ease;
}
.wf-alert i { font-size: 0.9rem; flex-shrink: 0; }
.wf-alert .wf-spinner { flex-shrink: 0; }

.wf-alert--danger {
    background: var(--red-soft);
    color: #fca5a5;
}
.wf-alert--success {
    background: var(--green-soft);
    color: #86efac;
}
.wf-alert--upgrade {
    background: rgba(23,128,143,0.10);
    color: #93c5fd;
    border: 1px solid rgba(23,128,143,0.15);
    flex-direction: row;
    align-items: flex-start;
}
.wf-alert--upgrade i {
    color: var(--accent);
    margin-top: 2px;
}
.wf-alert--upgrade strong {
    color: #fff;
    font-weight: 600;
}
.wf-alert--hours {
    background: rgba(245,158,11,0.10);
    color: #fcd34d;
    border: 1px solid rgba(245,158,11,0.18);
    flex-direction: row;
    align-items: flex-start;
}
.wf-alert--hours i {
    color: #f59e0b;
    margin-top: 2px;
}
.wf-alert--hours strong {
    color: #fbbf24;
    font-weight: 600;
}

/* ── Espera de aprovação (timer) ────────────────────── */
.wf-wait {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: 14px;
}
.wf-wait__spinner { width: 26px; height: 26px; margin-bottom: 8px; }
.wf-wait__timer {
    font-size: 2rem; font-weight: 600; line-height: 1;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.wf-wait__label {
    font-size: 0.7rem; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Passos "como funciona" (choose, opção única) ───── */
.wf-steps {
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.wf-steps__title {
    font-size: 0.7rem; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.wf-step {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--text-2);
}
.wf-step > span:not(.wf-step__num) { flex: 1; }
.wf-step__num {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 0.7rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.wf-step i { color: var(--accent); font-size: 0.95rem; flex-shrink: 0; }

/* Promoted button (upgrade CTA — pulsing highlight) */
.wf-btn--promoted {
    animation: promotedPulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(23,128,143,0.3);
}
@keyframes promotedPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(23,128,143,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(23,128,143,0); }
}
.wf-btn__sublabel {
    display: block;
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.7rem;
    margin-top: 2px;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Divider ────────────────────────────────────────── */
.wf-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 16px 0;
    color: var(--text-3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.wf-divider::before, .wf-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Link ───────────────────────────────────────────── */
.wf-link { color: var(--accent); font-weight: 500; }
.wf-link:hover { text-decoration: underline; }

/* ── Splash ─────────────────────────────────────────── */
.wf-body--splash { overflow: hidden; }

.wf-splash {
    position: fixed; inset: 0;
    background: #000;
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
}
.wf-splash__ad {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.wf-splash__link {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.wf-splash__media {
    width: 100%; height: 100%;
    object-fit: contain;
}

.wf-splash__controls {
    position: fixed; top: 16px; right: 16px; z-index: 110;
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.wf-splash__countdown {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.7);
    padding: 5px 14px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}
.wf-splash__sound {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.85);
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.wf-splash__sound:active { transform: scale(0.92); }
.wf-splash__sound:hover { background: rgba(0,0,0,0.7); color: #fff; }
.wf-splash__sound--active {
    background: rgba(23,128,143,0.85);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(23,128,143,0.35);
}
.wf-splash__sound--active:hover { background: rgba(37,99,235,0.9); }
.wf-splash__skip {
    position: fixed;
    bottom: 24px; right: 16px;
    z-index: 110;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease, background .15s ease;
    border: 1px solid rgba(255,255,255,0.15);
}
.wf-splash__skip:hover {
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}
.wf-splash__skip.wf-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    animation: skipPulse 2s ease-in-out infinite;
}
@keyframes skipPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* ── Barra de progresso do anúncio (estilo YouTube) ──── */
.wf-splash__progress {
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 4px;
    z-index: 111;
    background: rgba(255,255,255,0.25);
    transition: opacity .3s ease;
}
.wf-splash__progress-fill {
    width: 0; height: 100%;
    background: #facc15;
    transition: width .3s linear;
}

.wf-splash__video-wrap {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.wf-splash__video-wrap video {
    width: 100%; height: 100%;
    object-fit: contain;
}
.wf-splash__play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 105;
    background: rgba(0,0,0,0.45);
    cursor: pointer;
    transition: opacity .3s ease;
}
.wf-splash__play-overlay.wf-hidden {
    opacity: 0;
    pointer-events: none;
}
.wf-splash__play-center {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
}
.wf-splash__play-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 76px; height: 76px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    backdrop-filter: blur(8px);
    animation: playPulse 2s ease-in-out infinite;
}
.wf-splash__play-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
}
@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
.wf-splash__play-hint {
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* Alterna ícones e textos do overlay entre modo play e modo unmute.
   JS troca [data-mode="play"] ↔ [data-mode="unmute"] no #wf-play-overlay. */
.wf-splash__play-overlay[data-mode="play"]   .wf-splash__unmute-ico,
.wf-splash__play-overlay[data-mode="play"]   .wf-splash__hint-unmute,
.wf-splash__play-overlay[data-mode="unmute"] .wf-splash__play-ico,
.wf-splash__play-overlay[data-mode="unmute"] .wf-splash__hint-play {
    display: none;
}
/* Modo unmute: fundo mais sutil (vídeo já está tocando, só precisa do som) */
.wf-splash__play-overlay[data-mode="unmute"] {
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
}
.wf-splash__play-overlay[data-mode="unmute"] .wf-splash__play-center {
    margin-bottom: 24px;
    align-self: flex-end;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.wf-splash__branding {
    position: fixed;
    bottom: 16px; left: 50%; transform: translateX(-50%);
    z-index: 110; opacity: 0.1;
}
.wf-splash__logo { width: 48px; }

/* ── Error ──────────────────────────────────────────── */
.wf-card--error { text-align: center; }

.wf-error-visual {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
}
.wf-error-visual__circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--text-2);
}

.wf-error-code {
    font-size: 2.5rem; font-weight: 700;
    line-height: 1; letter-spacing: -0.04em;
    color: var(--text-3);
    margin-bottom: 4px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .wf-page { padding: 16px; padding-top: 28px; }
    .wf-card { max-width: 100%; border-radius: 16px; }
}

@media (max-width: 480px) {
    .wf-card { padding: 32px 24px; }
    .wf-card__title { font-size: 1.1rem; }
    .wf-card__subtitle { font-size: 0.8rem; margin-bottom: 24px; }
    .wf-btn { padding: 12px 16px; font-size: 0.85rem; }
    .wf-input { font-size: 0.95rem; padding: 12px 12px 12px 40px; }
    .wf-input--lg { font-size: 1.05rem; padding: 14px 14px 14px 44px; }
    .wf-input-icon { left: 12px; font-size: 0.9rem; }
    .wf-logo-isp { max-width: 140px; padding: 8px 14px; }
    .wf-logo-isp--lg { max-width: 180px; max-height: 72px; padding: 10px 16px; }
    .wf-form-actions { flex-direction: column; }
    .wf-btn--back { order: 2; justify-content: center; width: 100%; }
    .wf-btn--submit { order: 1; }
    .wf-btn--connect { padding: 14px 18px; font-size: 0.95rem; }
    .wf-terms-box { padding: 12px 14px; }

    .wf-splash__controls { top: 10px; right: 10px; }
    .wf-splash__skip { bottom: 20px; right: 10px; }
}

@media (max-width: 360px) {
    .wf-card { padding: 24px 18px; border-radius: 14px; }
    .wf-card__title { font-size: 1rem; }
    .wf-logo-isp { max-width: 120px; padding: 6px 12px; }
    .wf-logo-isp--lg { max-width: 150px; max-height: 60px; padding: 8px 14px; }
    .wf-btn { padding: 11px 14px; font-size: 0.82rem; }
    .wf-input { font-size: 0.9rem; padding: 11px 11px 11px 36px; }
    .wf-input--lg { font-size: 0.95rem; padding: 13px 13px 13px 40px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .wf-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .wf-splash__branding { bottom: calc(16px + env(safe-area-inset-bottom)); }
    .wf-splash__skip { bottom: calc(24px + env(safe-area-inset-bottom)); }
    .wf-splash__controls { top: calc(16px + env(safe-area-inset-top)); }
}
