:root {
    /* Paleta da logo: vermelho #ED1B3F, azul-escuro #171A28, branco */
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --card: #ffffff;
    --text: #171a28;
    --text-strong: #0f111c;
    --muted: #5b6076;
    --muted-soft: #858ba3;
    --accent: #ed1b3f;
    --accent2: #c9142f;
    --accent-light: #fdeef1;
    --ok: #16a34a;
    --grad: linear-gradient(135deg, #ed1b3f, #c9142f);
    --radius: 16px;
    --border: rgba(23, 26, 40, 0.12);
    --shadow: 0 4px 24px rgba(23, 26, 40, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }

.container { max-width: 480px; margin: 0 auto; padding: 20px 16px 100px; }

header.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-strong);
}

.logo span.dot {
    color: var(--accent);
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    max-width: min(260px, 62vw);
}

.logo-img.lg { height: 80px; max-width: min(360px, 88vw); margin: 0 auto; }

.logo-img.sm { height: 42px; }

header.app-header .logo-img {
    height: 80px;
    max-width: min(280px, 72vw);
}

.credits-badge {
    background: var(--accent-light);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .85rem;
    color: var(--muted-soft);
}

.credits-badge strong { color: var(--text-strong); }

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.admin-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--text-strong);
    background: #f1f5f9;
    border: 1px solid var(--border);
    text-decoration: none;
    line-height: 1;
}

.admin-shortcut:hover { background: #e2e8f0; color: var(--text-strong); }
.admin-shortcut[hidden] { display: none !important; }

.conta-admin-link {
    display: block;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed var(--border);
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-strong);
    text-decoration: none;
}

.conta-admin-link:hover { background: #f1f5f9; color: var(--accent); }
.conta-admin-link[hidden] { display: none !important; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: var(--bg-soft);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.upload-zone input { display: none; }

.preview-img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    width: 100%;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
}

.btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-strong);
}

.response-card {
    border-left: 4px solid var(--accent);
}

.response-card.neutra { border-left-color: #3b82f6; }
.response-card.deboche { border-left-color: #f59e0b; }

.response-card h3 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.response-card p { margin-bottom: 12px; }

.image-analysis-card {
    margin-bottom: 14px;
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(237, 27, 63, 0.06), rgba(255, 255, 255, 0.98));
}

.image-analysis-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.image-analysis-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.image-analysis-title {
    margin: 0;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent2);
    font-weight: 800;
}

.image-analysis-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--text-strong);
}

.btn-copy {
    padding: 8px 16px;
    font-size: .85rem;
    width: auto;
    background: var(--bg-soft);
    color: var(--text);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}

.nav-bottom a {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 2px 0;
    transition: color .15s;
}

.nav-bottom a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-bottom a.active { color: var(--accent); }
.nav-bottom a:not(.active):hover { color: var(--text-strong); }

/* Icone inline generico (menus, listas) */
.ico {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: -3px;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    transition: .3s;
    z-index: 999;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { border-color: var(--ok); }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
}

.loading-overlay.show { display: flex; }

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--accent-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.planos-grid { display: grid; gap: 12px; }

.plano-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.plano-item.destaque {
    border-color: var(--accent);
    background: rgba(237,27,63,.08);
}

.plano-item h3 { margin-bottom: 4px; }
.plano-item .preco { font-size: 1.5rem; font-weight: 800; margin: 8px 0; }
.plano-item .limite { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }

/* Landing vendas */
.landing { max-width: 720px; }
.landing h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
.landing .hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.landing .feature { display: flex; gap: 16px; margin-bottom: 20px; }
.landing .feature-icon { font-size: 1.5rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cta-row .btn { width: auto; flex: 1; min-width: 140px; }

.chat-bubble {
    background: linear-gradient(135deg, rgba(237,27,63,.14), rgba(201,20,47,.08));
    border: 1px solid var(--border);
    border-radius: 18px 18px 18px 4px;
    padding: 14px 16px;
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.response-card.neutra .chat-bubble {
    background: var(--bg-soft);
    border-radius: 18px 18px 4px 18px;
}

.response-card.deboche .chat-bubble {
    background: rgba(23,26,40,.06);
}

.bubble-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bubble-label {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.loading-overlay p {
    position: absolute;
    margin-top: 80px;
    color: var(--muted);
    font-size: .9rem;
}

.bubble-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.btn-action .ico { width: 15px; height: 15px; vertical-align: 0; }

.btn-action.active-like { background: rgba(22,163,74,.12); border-color: var(--ok); color: #15803d; }
.btn-action.active-dislike { background: rgba(237,27,63,.1); border-color: #ed1b3f; color: #c9142f; }

.feedback-chips {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.feedback-chips.show { display: flex; }

.chip {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .7rem;
    cursor: pointer;
}

.chip:hover { border-color: var(--accent); color: var(--text); }

.chat-bubble.editing {
    outline: 2px solid var(--accent);
    min-height: 40px;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.result-actions .btn { flex: 1; font-size: .9rem; padding: 12px; }

/* UX Desenrola-inspired */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

body { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; }

.social-proof {
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(237,27,63,.06);
    border-radius: 999px;
}

.social-proof .avatars { margin-right: 6px; }

.chances-fire { margin-right: 2px; }

.section-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 10px;
}

.tom-chips-scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 2px 2px 10px;
    margin-bottom: 2px;
    cursor: grab;
}

.tom-chips-scroll:active {
    cursor: grabbing;
}

.tom-chips-scroll::-webkit-scrollbar {
    display: none;
}

.modo-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
}

.tom-chip, .modo-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
    scroll-snap-align: start;
    touch-action: pan-x;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tom-chip.active, .modo-chip.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent2);
    font-weight: 700;
}

.modo-chip .ico { width: 16px; height: 16px; vertical-align: 0; }

.ousadia-wrap { margin-top: 8px; }

.ousadia-slider {
    width: 100%;
    accent-color: var(--accent);
    margin: 8px 0;
}

.ousadia-labels {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: var(--muted);
}

.ousadia-atual {
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 4px;
}

.btn-dado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 10px 16px;
    margin-top: 10px;
    background: var(--accent-light);
    border: 1px solid rgba(237,27,63,.35);
    color: var(--accent2);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-dado:hover { background: #fbdde3; }
.btn-dado .ico { width: 17px; height: 17px; vertical-align: 0; }
.btn-dado:active .ico { transform: rotate(-20deg); transition: transform .15s; }

.footer-tag {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    margin-top: 24px;
    font-style: italic;
}

.demo-bubble {
    background: var(--accent-light);
    border: 1px dashed rgba(237,27,63,.35);
    border-radius: 16px;
    padding: 14px;
    margin-top: 12px;
    font-size: .9rem;
    color: var(--text);
    display: none;
}

.demo-bubble.show { display: flex; gap: 10px; align-items: flex-start; }
.demo-bubble .ico { color: var(--accent); margin-top: 2px; }

/* Paywall modal */
.paywall-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.paywall-modal.show { display: flex; }

.paywall-sheet {
    background: #fff;
    color: #171a28;
    border-radius: 24px 24px 16px 16px;
    padding: 28px 20px 24px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp .3s ease;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.paywall-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: #5b6076;
}

.paywall-emoji { font-size: 2.5rem; text-align: center; margin-bottom: 8px; }

.paywall-sheet h2 {
    text-align: center;
    font-size: 1.35rem;
    margin-bottom: 6px;
    color: #171a28;
}

.paywall-sheet .sub {
    text-align: center;
    color: #5b6076;
    font-size: .9rem;
    margin-bottom: 20px;
}

.paywall-card {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: .2s;
}

.paywall-card:hover { border-color: var(--accent); }

.paywall-card.popular {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(237,27,63,.15);
}

.paywall-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.paywall-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.paywall-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(237,27,63,.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.paywall-card strong { display: block; font-size: .95rem; color: #171a28; }
.paywall-card small { color: #5b6076; font-size: .75rem; }

.paywall-preco {
    margin-left: auto;
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    white-space: nowrap;
}

.paywall-preco small { font-size: .7rem; font-weight: 600; color: #858ba3; }

.paywall-dismiss {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    background: none;
    border: none;
    color: #858ba3;
    font-size: .9rem;
    cursor: pointer;
    padding: 12px;
}

.paywall-referral {
    text-align: center;
    font-size: .85rem;
    color: #5b6076;
    margin-top: 8px;
}

.paywall-referral a { color: var(--accent); font-weight: 700; }

.upload-zone .upload-emoji { font-size: 2rem; margin-bottom: 8px; }

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Conta / Perfil */
.conta-page { padding-top: 12px; }

.conta-chances-header {
    text-align: center;
    padding: 20px 0 24px;
}

.conta-chances-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.conta-chances-label {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 4px;
    font-weight: 600;
}

.conta-profile-card { padding: 16px; }

.conta-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.conta-avatar-wrap {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.conta-avatar-wrap:focus-visible .conta-avatar {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.conta-avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    pointer-events: none;
}

.conta-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.conta-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conta-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.conta-profile-plan {
    font-size: .8rem;
    color: var(--muted);
}

.conta-profile-email {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 2px;
}

.conta-bio-wrap {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.conta-bio-wrap label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.conta-bio-input {
    min-height: 56px;
    max-height: 120px;
    resize: vertical;
    line-height: 1.4;
    font-size: .88rem;
}

.conta-bio-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.conta-bio-count {
    margin-right: auto;
    font-size: .72rem;
    color: var(--muted);
}

.conta-bio-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 6px 14px;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text-strong);
    cursor: pointer;
    flex-shrink: 0;
}

.conta-bio-save:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pref-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pref-chip {
    flex: 1;
    min-width: 90px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.pref-chip.active {
    border-color: var(--accent);
    background: rgba(237,27,63,.12);
    color: var(--text);
}

.conta-premium-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(237,27,63,.12), rgba(201,20,47,.06));
    border-color: rgba(237,27,63,.25);
}

.conta-premium-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .85rem;
}

.conta-premium-text strong { font-size: .95rem; }
.conta-premium-text span { color: var(--muted); font-size: .78rem; }

.conta-premium-btn {
    width: auto !important;
    padding: 10px 14px !important;
    font-size: .8rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.conta-assinatura-card {
    padding: 16px;
    margin-bottom: 16px;
}

.conta-assinatura-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.conta-assinatura-head strong {
    font-size: .95rem;
    color: var(--text-strong);
}

.conta-assinatura-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent);
}

.conta-assinatura-badge.is-cancelada {
    background: #f1f5f9;
    color: #64748b;
}

.conta-assinatura-badge.is-pendente {
    background: #fff7ed;
    color: #ea580c;
}

.conta-assinatura-meta {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.conta-assinatura-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    text-align: right;
}

.conta-assinatura-manage,
.conta-cancel-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
}

.conta-assinatura-manage:hover,
.conta-assinatura-manage:focus-visible,
.conta-cancel-link:hover,
.conta-cancel-link:focus-visible {
    color: #64748b;
    text-decoration: underline;
}

.conta-cancel-reveal {
    margin-top: 6px;
}

.plano-item.plano-atual {
    border-color: var(--accent);
    background: var(--accent-light);
}

.plano-item .btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.conta-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.conta-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.conta-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.conta-stat-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 4px;
}

.conta-credits-hint {
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

.conta-plan-card { padding: 14px 16px; }

.conta-plan-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conta-plan-badge {
    background: var(--bg-soft);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
}

.conta-plan-label {
    color: var(--muted);
    font-size: .85rem;
}

.conta-plan-note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: 8px;
}

.conta-menu {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conta-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
}

.conta-menu-item .ico { color: var(--muted); }
.conta-menu-item.conta-menu-danger .ico { color: inherit; }

.conta-menu-item.conta-menu-danger { color: #ed1b3f; }

.conta-legal {
    text-align: center;
    padding: 24px 0 16px;
}

.conta-legal-title {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.conta-legal a {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    padding: 8px 0;
}

.conta-copy {
    margin-top: 16px;
    font-size: .75rem;
    color: var(--muted);
}

/* Modal indicação */
.referral-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.65);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.referral-modal.show { display: flex; }

.referral-sheet {
    background: #fff;
    color: #171a28;
    border-radius: 24px;
    padding: 28px 24px 20px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.referral-emoji { font-size: 2.5rem; margin-bottom: 8px; }

.referral-sheet h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #171a28;
    margin-bottom: 8px;
}

.referral-sub {
    font-size: .85rem;
    color: #5b6076;
    line-height: 1.45;
    margin-bottom: 20px;
}

.referral-code-wrap { margin-bottom: 16px; text-align: left; }

.referral-code-label {
    font-size: .75rem;
    color: #858ba3;
    display: block;
    margin-bottom: 6px;
}

.referral-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border-radius: 12px;
    padding: 12px 14px;
}

.referral-code {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #1e3a8a;
}

.referral-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent-light);
    color: var(--accent);
    cursor: pointer;
    transition: .15s;
}

.referral-copy-btn:hover { background: var(--accent); color: #fff; }
.referral-copy-btn .ico { width: 17px; height: 17px; vertical-align: 0; }

.referral-sheet .btn-primary { margin-bottom: 16px; }

.referral-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #858ba3;
    font-size: .8rem;
}

.referral-divider::before,
.referral-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.referral-redeem-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.referral-redeem-hint {
    margin: -8px 0 10px;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4;
    text-align: center;
}

.referral-redeem-done {
    margin: 0 0 8px;
    font-size: .82rem;
    color: #15803d;
    text-align: center;
    font-weight: 600;
}

.referral-input {
    flex: 1;
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
    color: #171a28 !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
}

.referral-redeem-btn {
    width: auto !important;
    padding: 12px 16px !important;
    font-size: .85rem !important;
    background: rgba(237,27,63,.15) !important;
    color: var(--accent) !important;
    border: 1px solid rgba(237,27,63,.3) !important;
}

.referral-soon {
    font-size: .72rem;
    color: #858ba3;
    margin-bottom: 8px;
}

.referral-close {
    background: none;
    border: none;
    color: #5b6076;
    font-size: .9rem;
    cursor: pointer;
    padding: 12px;
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: .8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-alt-signup {
    text-align: center;
    margin-top: 16px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.auth-alt-signup a {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

/* === Tema Cantada.app: vermelho + branco === */
.form-input { background: #fff; border: 1px solid var(--border); color: var(--text-strong); }
.btn-copy, .btn-action { background: var(--accent-light); border: 1px solid var(--border); color: var(--text-strong); }
.nav-bottom { background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(220,38,38,.06); }
.toast { background: #fff; border: 1px solid var(--border); color: var(--text-strong); box-shadow: var(--shadow); }
.loading-overlay { background: rgba(255,255,255,.88); }
.spinner { border-color: var(--accent-light); border-top-color: var(--accent); }
.plano-item { border: 1px solid var(--border); background: #fff; }
.plano-item.destaque { border-color: var(--accent); background: var(--accent-light); }
.chat-bubble { background: var(--accent-light); border: 1px solid var(--border); color: var(--text-strong); }
.paywall-modal .paywall-sheet, .referral-modal .referral-sheet { background: #fff; color: var(--text-strong); }

/* Checkout transparente (PIX + cartão) */
.checkout-sheet { max-width: 440px; position: relative; max-height: 92vh; overflow-y: auto; }
.checkout-close {
    position: absolute; top: 12px; right: 14px; border: none; background: none;
    font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.checkout-preco { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.checkout-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.checkout-tab {
    flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--border);
    background: #fff; font-weight: 700; cursor: pointer; color: var(--text);
}
.checkout-tab.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.checkout-panel label { display: block; font-size: .82rem; color: var(--muted); margin: 10px 0 4px; }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-hint { color: var(--muted); font-size: .85rem; margin: 10px 0; line-height: 1.4; }
.checkout-pix-area { margin-top: 12px; text-align: center; }
.checkout-qr { width: 200px; max-width: 100%; border-radius: 12px; margin: 0 auto 10px; display: block; }
.checkout-pix-copy { font-size: .78rem; margin-bottom: 8px; }
.checkout-seguro {
    text-align: center;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.checkout-seguro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: #15803d;
}
.checkout-seguro-ico {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.checkout-seguro-sub {
    display: block;
    margin-top: 4px;
    font-size: .72rem;
    color: var(--muted);
    line-height: 1.35;
}

.planos-seguro {
    margin-top: 24px;
    border-top: none;
    padding-top: 0;
}
.paywall-card { background: #fff; border: 1px solid var(--border); }
.paywall-card.popular { border-color: var(--accent); background: var(--accent-light); }
.conta-header, .conta-card, .premium-card, .referral-code-wrap { background: #fff; border-color: var(--border); }
.auth-divider::before, .auth-divider::after { background: var(--border); }

/* Páginas legais / suporte / feedback */
.legal-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.legal-top a.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
}

.legal-top .logo-img { height: 28px; }

.legal-hero {
    margin-bottom: 20px;
}

.legal-hero h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}

.legal-hero p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

.legal-doc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
}

.legal-doc h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-strong);
    margin: 22px 0 8px;
}

.legal-doc h2:first-child { margin-top: 0; }

.legal-doc p,
.legal-doc li {
    color: var(--text);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0 0 10px;
}

.legal-doc ul {
    margin: 0 0 12px;
    padding-left: 1.15rem;
}

.legal-doc a { font-weight: 600; }

.legal-meta {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.faq-item:first-child { border-top: 0; padding-top: 0; }

.faq-item strong {
    display: block;
    font-size: .95rem;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

/* Suporte — chamados e conversa */
.support-panel { margin-bottom: 16px; }

.support-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.support-panel-head h2 { margin: 0; font-size: 1.05rem; }

.support-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
    padding: 0;
    cursor: pointer;
}

.support-back-btn .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-sm {
    padding: 8px 14px;
    font-size: .85rem;
    width: auto;
    min-height: auto;
}

.support-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-ticket-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.support-ticket-card:active,
.support-ticket-card:hover {
    border-color: rgba(237, 27, 63, .35);
    box-shadow: 0 4px 14px rgba(23, 26, 40, .06);
}

.support-ticket-card strong {
    display: block;
    font-size: .95rem;
    color: var(--text-strong);
    margin: 6px 0 4px;
}

.support-ticket-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-ticket-date {
    font-size: .78rem;
    color: var(--muted);
}

.support-status-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(237, 27, 63, .1);
    color: var(--accent);
}

.support-status-badge.is-andamento { background: rgba(59, 130, 246, .12); color: #2563eb; }
.support-status-badge.is-resolvido { background: rgba(34, 197, 94, .12); color: #16a34a; }
.support-status-badge.is-fechado { background: rgba(100, 116, 139, .15); color: #64748b; }

.support-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.support-empty {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
    padding: 20px 8px;
}

.support-ticket-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
    color: var(--text-strong);
}

.support-ticket-meta {
    margin: 0 0 16px;
    font-size: .8rem;
    color: var(--muted);
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 340px;
    overflow-y: auto;
    padding: 4px 2px 12px;
    margin-bottom: 16px;
}

.support-msg {
    border-radius: 14px;
    padding: 12px 14px;
    max-width: 92%;
}

.support-msg.is-user {
    align-self: flex-end;
    background: rgba(237, 27, 63, .08);
    border: 1px solid rgba(237, 27, 63, .12);
}

.support-msg.is-admin {
    align-self: flex-start;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.support-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
}

.support-msg-head time { font-weight: 500; }

.support-msg-body {
    font-size: .92rem;
    line-height: 1.45;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.support-reply label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.support-reply .btn { margin-top: 10px; }

.support-closed-hint {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.support-faq { margin-bottom: 24px; }

.support-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-strong);
    list-style: none;
    padding: 4px 0;
}

.support-faq summary::-webkit-details-marker { display: none; }

.support-faq summary::after {
    content: '+';
    float: right;
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 400;
}

.support-faq[open] summary::after { content: '−'; }

.support-faq .faq-item:first-child { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; }

.hidden { display: none !important; }

/* Prompt de notificações ao entrar no app */
.push-prompt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(23, 26, 40, 0.55);
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.push-prompt-modal.show { display: flex; }

.push-prompt-sheet {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px 20px 16px 16px;
    padding: 24px 20px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: pushPromptIn .28s ease;
}

@keyframes pushPromptIn {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.push-prompt-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.push-prompt-ico .ico { width: 26px; height: 26px; }

.push-prompt-sheet h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-strong);
}

.push-prompt-sheet p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.push-prompt-sheet .btn { margin-bottom: 8px; }
.push-prompt-sheet .btn:last-child { margin-bottom: 0; }

/* Histórico de respostas */
.historico-page { padding-top: 8px; }

.historico-header { margin-bottom: 12px; }

.historico-banner {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: .95rem;
    font-weight: 600;
    color: #9f1239;
    margin-bottom: 18px;
    text-align: center;
}

.historico-banner strong { color: #be123c; }

.historico-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.historico-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 8px;
}

.historico-title .ico { color: var(--accent); width: 20px; height: 20px; }

.historico-clear {
    background: none;
    border: none;
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
}

.historico-clear:hover { color: var(--accent); }

.historico-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hist-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(220, 38, 38, .06);
    overflow: hidden;
}

.hist-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 8px;
}

.hist-card-meta,
.hist-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.hist-card-meta {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-strong);
    padding: 0;
    text-align: left;
}

.hist-fire { margin-right: 2px; }

.hist-toggle {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 700;
    padding: 4px 0;
    white-space: nowrap;
}

.hist-card-body {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 8px;
}

.hist-card-body.open { display: flex; }

.hist-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 12px 12px 14px;
}

.hist-bubble p {
    margin: 0;
    flex: 1;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--text-strong);
    word-break: break-word;
}

.hist-copy,
.hist-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hist-copy:hover,
.hist-delete:hover { color: var(--accent); }

.hist-copy .ico,
.hist-delete .ico { width: 18px; height: 18px; }

.hist-card-foot {
    display: flex;
    justify-content: flex-end;
    padding: 4px 12px 10px;
}

.historico-empty {
    text-align: center;
    padding: 48px 16px 24px;
}

.historico-empty p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1rem;
}

/* —— Minhas aquisições —— */
.aquisicoes-page { padding-top: 8px; padding-bottom: 24px; }

.aquisicoes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.aquisicoes-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--text-strong);
    text-decoration: none;
    flex-shrink: 0;
}

.aquisicoes-back .ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.aquisicoes-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-strong);
}

.aquisicoes-resumo {
    padding: 16px;
    margin-bottom: 20px;
}

.aquisicoes-resumo-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.aquisicoes-resumo-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.aquisicoes-resumo-label {
    font-size: .82rem;
    color: var(--muted);
    margin-top: 4px;
}

.aquisicoes-resumo-split {
    text-align: right;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
}

.aquisicoes-resumo-split strong { color: var(--text-strong); }

.aquisicoes-validade {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: .84rem;
    color: var(--text-strong);
    line-height: 1.4;
}

.aquisicoes-validade.is-bonus { color: var(--muted); }

.aquisicoes-section { margin-bottom: 22px; }

.aquisicoes-section-title {
    margin: 0 0 10px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aquisicoes-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aquis-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, .04);
}

.aquis-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.aquis-item-info strong {
    display: block;
    font-size: .92rem;
    color: var(--text-strong);
}

.aquis-item-data {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    margin-top: 2px;
}

.aquis-item-badge {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.aquis-item-badge.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.aquis-item-badge.is-pendente {
    background: #fff7ed;
    color: #c2410c;
}

.aquis-item-badge.is-refund {
    background: #fef2f2;
    color: #b91c1c;
}

.aquis-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: .82rem;
}

.aquis-item-creditos { color: var(--accent); font-weight: 700; }

.aquis-item-valor { color: var(--text-strong); font-weight: 600; }

.aquisicoes-empty {
    text-align: center;
    padding: 32px 16px;
}

.aquisicoes-empty p {
    margin: 0 0 16px;
    color: var(--muted);
}

.aquisicoes-foot {
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
    margin: 8px 0 0;
}

.aquisicoes-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* —— Quiz funnel (tráfego pago) —— */
.quiz-body {
    background: #0f111c;
    min-height: 100dvh;
    overflow-x: hidden;
    --quiz-pad-x: 32px;
    --quiz-pad-y: 28px;
}

.quiz-shell {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    isolation: isolate;
}

.quiz-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(237, 27, 63, .35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(237, 27, 63, .12), transparent 50%),
        linear-gradient(180deg, #1a1d2e 0%, #0f111c 45%, #12141f 100%);
}

.quiz-shell--welcome .quiz-bg {
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(237, 27, 63, .4), transparent 58%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(237, 27, 63, .15), transparent 50%),
        linear-gradient(175deg, #1e2236 0%, #0f111c 50%, #0a0b12 100%);
}

.quiz-stage {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
}

.quiz-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    animation: quizFade .4s ease;
    padding-top: max(var(--quiz-pad-y), env(safe-area-inset-top));
    padding-right: max(var(--quiz-pad-x), env(safe-area-inset-right));
    padding-bottom: max(var(--quiz-pad-y), env(safe-area-inset-bottom));
    padding-left: max(var(--quiz-pad-x), env(safe-area-inset-left));
}

@keyframes quizFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Welcome */
.quiz-welcome {
    justify-content: space-between;
    gap: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.quiz-welcome-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.quiz-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.quiz-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
}

.quiz-brand-accent {
    color: var(--accent);
}

.quiz-logo {
    height: 36px;
    width: auto;
}

.quiz-pill {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.quiz-welcome-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 8px 0;
}

.quiz-phone {
    width: min(100%, 280px);
    background: linear-gradient(145deg, #2a2f45, #1a1d2e);
    border-radius: 28px;
    padding: 10px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 255, 255, .08),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    margin-bottom: 4px;
}

.quiz-phone-notch {
    width: 72px;
    height: 5px;
    background: rgba(255, 255, 255, .15);
    border-radius: 999px;
    margin: 4px auto 10px;
}

.quiz-phone-screen {
    background: #fff;
    border-radius: 20px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    text-align: left;
}

.quiz-bubble {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: .78rem;
    line-height: 1.35;
    color: var(--text-strong);
}

.quiz-bubble-them {
    align-self: flex-start;
    background: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.quiz-bubble-you {
    align-self: flex-end;
    background: var(--accent-light);
    border: 1px solid rgba(237, 27, 63, .15);
    border-bottom-right-radius: 4px;
}

.quiz-bubble-you.is-ai {
    background: linear-gradient(135deg, #fff0f3, #fdeef1);
    border-color: rgba(237, 27, 63, .25);
}

.quiz-bubble-tag {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--accent);
    margin-bottom: 3px;
}

.quiz-title {
    font-size: clamp(1.55rem, 5vw, 1.85rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.quiz-title span {
    color: #ff6b8a;
    text-shadow: 0 0 40px rgba(237, 27, 63, .5);
}

.quiz-sub {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.5;
    margin: 0;
    max-width: 340px;
}

.quiz-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.quiz-chip {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 12px;
    border-radius: 999px;
}

.quiz-steps-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    text-align: left;
    max-width: 340px;
}

.quiz-steps-list li {
    position: relative;
    padding: 0 0 12px 28px;
    font-size: .82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .78);
}

.quiz-steps-list li:last-child {
    padding-bottom: 0;
}

.quiz-steps-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff6b8a;
    box-shadow: 0 0 10px rgba(237, 27, 63, .55);
}

.quiz-steps-list strong {
    color: #fff;
}

.quiz-dual-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    max-width: 340px;
}

.quiz-dual-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}

.quiz-dual-emoji {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.quiz-dual-card strong {
    display: block;
    font-size: .82rem;
    color: #fff;
    margin-bottom: 2px;
}

.quiz-dual-card small {
    display: block;
    font-size: .72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, .65);
}

.quiz-sub-step {
    max-width: none;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .88rem;
}

.quiz-dual-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(237, 27, 63, .08);
    border: 1px solid rgba(237, 27, 63, .15);
}

.quiz-dual-note p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    color: var(--text);
}

.quiz-welcome-foot {
    flex-shrink: 0;
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.quiz-welcome-foot .quiz-cta-lg {
    width: 100%;
    box-shadow: 0 8px 28px rgba(237, 27, 63, .45);
}

.quiz-welcome .quiz-step-foot {
    background: transparent;
}

.quiz-foot {
    text-align: center;
    margin-top: 12px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
}

.quiz-cta-lg {
    padding: 15px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-radius: 14px;
    line-height: 1.25;
    transition: transform .15s ease, box-shadow .15s ease;
}

.quiz-step .quiz-cta-lg,
.quiz-signup-inline .quiz-cta-lg {
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(23, 26, 40, .06), 0 6px 16px rgba(237, 27, 63, .18);
}

.quiz-step .quiz-cta-lg:active,
.quiz-signup-inline .quiz-cta-lg:active {
    transform: scale(.985);
    box-shadow: 0 1px 2px rgba(23, 26, 40, .08), 0 3px 10px rgba(237, 27, 63, .14);
}

/* Steps — sheet branco; padding interno (NÃO usar padding:0 — zera a margem lateral) */
.quiz-page.quiz-step,
.quiz-page.quiz-signup,
.quiz-page.quiz-result {
    padding-top: max(28px, env(safe-area-inset-top));
    padding-right: max(var(--quiz-pad-x), env(safe-area-inset-right));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    padding-left: max(var(--quiz-pad-x), env(safe-area-inset-left));
}

.quiz-step,
.quiz-signup {
    background: #fff;
    margin: 0;
    border-radius: 24px 24px 0 0;
    min-height: 100dvh;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
}

.quiz-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 28px;
    flex-shrink: 0;
}

.quiz-topbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.quiz-topbar-track {
    flex: 1;
    height: 6px;
    background: #fecdd3;
    border-radius: 999px;
    overflow: hidden;
}

.quiz-topbar-fill {
    height: 100%;
    background: var(--grad);
    border-radius: 999px;
    transition: width .4s ease;
}

.quiz-step-body {
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 8px 0 16px;
}

.quiz-step:has(.quiz-step-foot) .quiz-step-body {
    flex: 1 1 auto;
    min-height: 0;
}

.quiz-step-foot {
    flex-shrink: 0;
    padding-top: 24px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, #fff 30%);
}

.quiz-step-foot--sticky {
    margin-top: auto;
}

.quiz-kicker {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin: 0 0 8px;
}

.quiz-kicker-ok { color: #047857; }

.quiz-step-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 12px;
}

.quiz-q {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 24px;
    color: var(--text-strong);
    padding-right: 4px;
}

.quiz-hint {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
    margin: -16px 0 24px;
}

.quiz-cta {
    width: 100%;
}

.quiz-opts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 4px;
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8ecf2;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s, transform .12s;
}

.quiz-opt:active { transform: scale(.985); }

.quiz-opt.is-selected {
    border-color: var(--accent);
    background: #fff8f9;
    box-shadow: 0 6px 20px rgba(237, 27, 63, .14);
}

.quiz-opt-emoji {
    font-size: 1.45rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 12px;
}

.quiz-opt.is-selected .quiz-opt-emoji {
    background: var(--accent-light);
}

.quiz-opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quiz-opt-text strong {
    font-size: .95rem;
    color: var(--text-strong);
}

.quiz-opt-text small {
    font-size: .78rem;
    color: var(--muted);
}

.quiz-opt-textonly .quiz-opt-text strong {
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.4;
}

.quiz-slider-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
    margin: 8px 0 28px;
}

.quiz-slider-label {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-strong);
    margin-bottom: 20px;
}

.quiz-slider {
    width: 100%;
    accent-color: var(--accent);
    height: 8px;
}

.quiz-slider-ends {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: .72rem;
    color: var(--muted);
    font-weight: 600;
}

/* Loading */
.quiz-loading {
    align-items: center;
    justify-content: center;
    background: transparent;
}

.quiz-loading-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    max-width: 300px;
}

.quiz-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: #ff6b8a;
    border-radius: 50%;
    animation: quizSpin .75s linear infinite;
    margin: 0 auto 20px;
}

@keyframes quizSpin { to { transform: rotate(360deg); } }

.quiz-loading-text {
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

.quiz-loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.quiz-loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: quizDot 1.2s ease-in-out infinite;
}

.quiz-loading-dots span:nth-child(2) { animation-delay: .15s; }
.quiz-loading-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes quizDot {
    0%, 80%, 100% { opacity: .3; transform: scale(.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* Result */
.quiz-result {
    background: #fff;
    margin: 0;
    border-radius: 24px 24px 0 0;
    min-height: 100dvh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-result-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(237, 27, 63, .2), transparent 70%);
    pointer-events: none;
}

.quiz-result-badge {
    font-size: 4rem;
    margin: 12px 0 8px;
    line-height: 1;
    position: relative;
}

.quiz-result-name {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-strong);
    position: relative;
}

.quiz-result-tag {
    color: var(--muted);
    font-size: .95rem;
    margin: 0 0 20px;
    line-height: 1.4;
    position: relative;
}

.quiz-result-card {
    text-align: left;
    padding: 20px 22px;
    margin-bottom: 20px;
    font-size: .9rem;
    line-height: 1.5;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
}

.quiz-result-card p { margin: 0 0 10px; }
.quiz-result-card p:last-child { margin: 0; }

.quiz-result-sit {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    font-size: .85rem;
    color: var(--muted);
}

/* Signup */
.quiz-signup .quiz-sub {
    text-align: left;
    margin-bottom: 16px;
}

.quiz-google-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.quiz-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: .78rem;
}

.quiz-divider::before,
.quiz-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.quiz-signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-legal {
    text-align: center;
    font-size: .72rem;
    color: var(--muted);
    margin: 14px 0 0;
    line-height: 1.4;
}

.quiz-legal a { color: var(--accent); }

.quiz-inline-emoji { font-style: normal; }

/* Onboarding — primeira visita */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 17, 28, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    backdrop-filter: blur(6px);
}

.onboarding-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.onboarding-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 22px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.onboarding-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.onboarding-card h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--text-strong);
}

.onboarding-lead {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
    margin-bottom: 18px;
}

.onboarding-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: left;
}

.onboarding-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.onboarding-steps li:last-child { border-bottom: 0; }

.onboarding-steps li span {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 800;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-cta {
    width: 100%;
    margin-bottom: 10px;
}

.onboarding-skip {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: .85rem;
    cursor: pointer;
    padding: 8px;
}

.onboarding-skip:hover { color: var(--text); }

.onboarding-pulse {
    animation: onboardingPulse 1.1s ease 2;
    box-shadow: 0 0 0 0 rgba(237, 27, 63, 0.45);
}

@keyframes onboardingPulse {
    0% { box-shadow: 0 0 0 0 rgba(237, 27, 63, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(237, 27, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(237, 27, 63, 0); }
}

.onboarding-demo-banner {
    background: linear-gradient(135deg, #fdeef1, #fff5f7);
    border: 1px solid rgba(237, 27, 63, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: .88rem;
    color: var(--text);
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.onboarding-demo-banner strong { color: var(--accent); }

.onboarding-demo-dismiss {
    background: #fff;
    border: 1px solid rgba(237, 27, 63, 0.35);
    color: var(--accent);
    font-weight: 700;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
}

.quiz-result-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 20px;
    padding: 12px 14px;
    background: rgba(255,255,255,.06);
    border-radius: 14px;
}

.quiz-upload-zone {
    border: 2px dashed rgba(0, 0, 0, .15);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 12px;
    background: #fafafa;
}

.quiz-upload-hint {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
    margin: 0 0 8px;
}

.quiz-upload-warn {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .82rem;
    line-height: 1.4;
    margin: 0 0 12px;
}

.quiz-upload-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.quiz-upload-tags span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-strong);
    background: #f1f5f9;
    border-radius: 999px;
    padding: 5px 10px;
}

.upload-warn {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .82rem;
    line-height: 1.4;
    margin: 0 0 14px;
}

.upload-warn-ok {
    color: #047857;
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.hist-tipo-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    vertical-align: middle;
}

.nav-bottom:has(a:nth-child(5)) a { font-size: .64rem; }
.nav-bottom:has(a:nth-child(5)) a svg { width: 20px; height: 20px; }
.nav-bottom:has(a:nth-child(6)) a { font-size: .58rem; }
.nav-bottom:has(a:nth-child(6)) a svg { width: 18px; height: 18px; }
.nav-bottom:has(a:nth-child(7)) a { font-size: .54rem; }
.nav-bottom:has(a:nth-child(7)) a svg { width: 17px; height: 17px; }
.nav-bottom.nav-bottom--compact a { font-size: .56rem; padding: 2px 0; }
.nav-bottom.nav-bottom--compact a svg { width: 18px; height: 18px; }

.legenda-bubble { white-space: pre-wrap; line-height: 1.45; }

.quiz-upload-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
}

.quiz-signup-inline {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quiz-signup-inline.is-visible { display: block; }

.quiz-step .quiz-sub,
.quiz-signup-inline .quiz-sub {
    color: var(--muted);
}

.quiz-signup-title {
    font-size: 1.1rem;
    margin: 8px 0;
}

.onboarding-hint {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    pointer-events: none;
}

.onboarding-hint-inner {
    pointer-events: auto;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    max-width: 420px;
    margin: 0 auto;
}

.onboarding-hint-steps {
    margin: 8px 0 12px;
    padding-left: 18px;
    color: var(--muted);
    font-size: .88rem;
}

.onboarding-hint-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.onboarding-hint-link,
.onboarding-hint-dismiss {
    background: none;
    border: none;
    color: var(--muted);
    font-size: .82rem;
    cursor: pointer;
}

.onboarding-hint-dismiss {
    margin-left: auto;
    font-size: 1rem;
    line-height: 1;
}

/* Home hub — escolha Conversas vs Legendas */
.home-page { padding-bottom: 100px; }

.home-greeting {
    margin-bottom: 22px;
}

.home-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
    color: var(--text-strong);
}

.home-sub {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.45;
}

.home-hub {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-hub-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .12s, border-color .12s, box-shadow .12s;
}

.home-hub-card:active {
    transform: scale(.98);
}

.home-hub-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(237, 27, 63, .12);
}

.home-hub-legenda {
    border-color: #fecdd3;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.home-hub-emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.home-hub-body {
    flex: 1;
    min-width: 0;
}

.home-hub-body h2 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-strong);
}

.home-hub-body p {
    margin: 0;
    font-size: .84rem;
    line-height: 1.4;
    color: var(--muted);
}

.home-hub-arrow {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.home-hub-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #f97316);
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(237, 27, 63, .35);
}

.home-foot {
    margin-top: 24px;
    text-align: center;
    font-size: .82rem;
    color: var(--muted);
}

