@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --secondary: #0f172a;
    --accent: #22d3ee;
    --muted: #94a3b8;
    --bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

header,
main,
footer {
    width: 100%;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
}

.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.hero-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.hero-card p {
    color: var(--muted);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.card h3 {
    margin-top: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary);
}

.grid-numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
}

.grid-numeros label {
    display: block;
    text-align: center;
    padding: 0.6rem 0;
    border-radius: 16px;
    background: #f1f5f9;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.grid-numeros input {
    display: none;
}

.grid-numeros input:checked + span {
    background: var(--secondary);
    color: #fff;
}

.grid-numeros label.is-locked span {
    background: #fee2e2;
    color: #b91c1c;
    cursor: not-allowed;
    opacity: 0.8;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1.2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 0;
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--muted);
}

.alert {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #fff;
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}

.pix-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--secondary);
    font-size: 0.9rem;
}

input,
select {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-family: inherit;
    width: 100%;
    background: #eff6ff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: #fff;
}

.auth-card {
    max-width: 420px;
    margin: 2rem auto;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.banner-thumb {
    position: relative;
    display: block;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.banner-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.banner-thumb input[type="checkbox"] {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    transform: scale(1.1);
}

.banner-thumb span {
    position: absolute;
    top: 0.4rem;
    left: 2.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
