:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --accent: #16a34a;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

button:disabled {
    background-color: #a6bff6;
}

button:disabled:hover {
    background-color: #a6bff6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    position: relative;
}

header {
    width: 100%;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.badge-live {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-live::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #15803d;
    border-radius: 50%;
}

main {
    width: 100%;
    max-width: 480px;
    padding: 20px 16px;
    flex: 1;
}

.counter-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto 12px auto;
    display: table;
}

.hero-title {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hero-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* CARD DE BUSCA */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.license-plate-input {
    width: 100%;
    height: 54px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.2s;
}

.license-plate-input:focus {
    border-color: var(--primary);
}

.btn {
    width: 100%;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--accent);
}

.btn-success:hover {
    background: #15803d;
}

/* ETAPAS / MODAL SIMULADO */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* LOADING SPINNER */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PRÉVIA DOS DADOS (RESULTADO) */
.preview-header {
    background: #eff6ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #bfdbfe;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.preview-row:last-child {
    border-bottom: none;
}

.blurred {
    filter: blur(5px);
    user-select: none;
    color: #94a3b8;
}

.status-badge {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-alert {
    background: #fef2f2;
    color: #dc2626;
}

.status-ok {
    background: #f0fdf4;
    color: #16a34a;
}

/* ORDER BUMP SECTION */
.order-bump-container {
    background: #fffbebf3;
    border: 2px dashed #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
}

.order-bump-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bump-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #fef3c7;
    cursor: pointer;
}

.bump-item:last-child {
    border-bottom: none;
}

.bump-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    margin-top: 2px;
    cursor: pointer;
}

.bump-text {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.3;
}

.bump-price {
    font-weight: 800;
    color: var(--accent);
}

/* TIMER DE URGÊNCIA & ESCASSEZ */
.timer-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    color: #c2410c;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.server-alert {
    font-size: 0.75rem;
    color: #b45309;
    margin-bottom: 4px;
    display: block;
    font-weight: 700;
}

/* PIX SECTION */
.pix-container {
    text-align: center;
}

.qr-placeholder {
    width: 100%;
    max-width: 220px;
    min-height: 200px;
    height: auto;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-border-box;
}

.qr-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0;
}

.price-strike {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
}

/* O QUE VOCÊ VAI RECEBER */
.features-section {
    margin-top: 24px;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text);
}

.feature-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* SESSÃO DE SEGURANÇA E GARANTIA */
.security-guarantee-section {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.security-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #166534;
    margin-bottom: 2px;
}

.security-desc {
    font-size: 0.78rem;
    color: #15803d;
    line-height: 1.35;
}

.badges-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* PROVA SOCIAL & SELOS */
.social-proof {
    margin-top: 24px;
}

.proof-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.proof-author {
    font-weight: 700;
    color: var(--text);
    display: flex;
    justify-content: space-between;
}

.stars {
    color: #f59e0b;
}

/* FAQ ACCORDION */
.faq-section {
    margin-top: 24px;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    padding: 0 14px 12px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: none;
    line-height: 1.4;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-toggle {
    transition: transform 0.2s;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* NOTIFICAÇÃO FLUTUANTE DE PROVA SOCIAL */
.social-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99;
    transform: translateY(150%);
    transition: transform 0.4s ease-in-out;
    max-width: 300px;
}

.social-toast.show {
    transform: translateY(0);
}

/* MODAIS / OVERLAYS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* BOTÃO WHATSAPP FLUTUANTE */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    font-size: 1.6rem;
    z-index: 98;
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
}

footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
    width: 100%;
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
}