.auth-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #111318;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.auth-brand-word {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f7f0e7;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.auth-lede {
    margin: -10px 0 0;
    font-size: 0.88rem;
}

.auth-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(220, 60, 60, 0.14);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #ffb3b3;
    font-size: 0.88rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ── Insufficient-credits global banner ──────────────────────────────────── */
.global-credits-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(242,139,60,0.96) 0%, rgba(220,90,30,0.96) 100%);
    color: #111318;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.global-credits-banner span { flex: 1; }
.global-credits-cta {
    background: rgba(0,0,0,0.18);
    color: #111318;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.global-credits-cta:hover { background: rgba(0,0,0,0.28); }
.global-credits-close {
    background: none; border: none; cursor: pointer;
    color: #111318; font-size: 1rem; padding: 2px 6px;
    opacity: 0.7; transition: opacity 0.15s;
}
.global-credits-close:hover { opacity: 1; }

.global-info-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #2a7d4f 0%, #1e6040 100%);
    color: #e8f5ee;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.global-info-banner span { flex: 1; }
.global-info-banner .global-credits-close { color: #e8f5ee; }

/* ── First-login welcome banner ──────────────────────────────────────────── */
.global-welcome-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    background: linear-gradient(90deg, #5b3ddb 0%, #7c3aed 50%, #4f46e5 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 20px rgba(91,61,219,0.45);
}
.global-welcome-banner span { flex: 1; }
.global-welcome-cta {
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.global-welcome-cta:hover { background: rgba(255,255,255,0.28); }
.global-welcome-banner .global-credits-close { color: rgba(255,255,255,0.75); }
.global-welcome-banner .global-credits-close:hover { color: #fff; opacity: 1; }

/* ── Error flash banner ────────────────────────────────────────────────── */
.global-error-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}
.global-error-banner span { flex: 1; }
.global-error-banner .global-credits-close { color: rgba(255,255,255,0.75); }

/* ── Success flash banner ──────────────────────────────────────────────── */
.global-success-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}
.global-success-banner span { flex: 1; }
.global-success-banner .global-credits-close { color: rgba(255,255,255,0.75); }

/* ── AI upsell banner (free tool result pages) ─────────────────────────── */
.ai-upsell-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(242,139,60,0.08) 0%, rgba(242,139,60,0.02) 100%);
    border: 1px solid rgba(242,139,60,0.18);
    border-radius: 16px;
    padding: 18px 22px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.ai-upsell-sparkle { font-size: 1.8rem; flex-shrink: 0; }
.ai-upsell-body { flex: 1; min-width: 200px; }
.ai-upsell-head { margin: 0 0 2px; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.ai-upsell-text { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.ai-upsell-text strong { color: var(--accent); }
.ai-upsell-cta {
    display: inline-block; padding: 8px 20px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 700; text-decoration: none;
    background: var(--accent); color: #111318; white-space: nowrap;
    transition: background 0.15s;
}
.ai-upsell-cta:hover { background: var(--accent-dark); }

/* Sparkle badge on carousel cards for free tools with AI counterparts */
.demo-card-ai-badge {
    position: absolute; top: 6px; right: 6px; z-index: 3;
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 2px 7px; border-radius: 6px;
    background: rgba(242,139,60,0.85); color: #111318;
}

/* ── Plan badge on signup page ───────────────────────────────────────────── */
.auth-plan-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(42,125,79,0.12);
    border: 1px solid rgba(42,125,79,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: var(--ink);
}
.auth-plan-badge .plan-check {
    color: #2a7d4f;
    font-size: 1rem;
    font-weight: 900;
}

.auth-field input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
    transition: border-color 0.15s;
    outline: none;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.auth-field input:focus {
    border-color: rgba(242, 139, 60, 0.6);
    background: rgba(242, 139, 60, 0.04);
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
}

.auth-footer {
    margin: 0;
    font-size: 0.84rem;
    text-align: center;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

