:root {
    --c1: #667eea;
    --c2: #764ba2;
    --ok: #48bb78;
    --wrn: #f6ad55;
    --err: #fc8181;
    --tx: #2d3748;
    --tx2: #718096;
    --bg: #f3f4f6;
    --card: #ffffff;
    --brd: #e5e7eb;
    --r: 20px;
    --sh: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --gr: linear-gradient(135deg, var(--c1), var(--c2));
    --gold: #FFD700
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px
}

html {
    scroll-behavior: smooth;
}

/* LOADER */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .98);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--brd);
    border-top: 4px solid var(--c1);
    border-radius: 50%;
    animation: spin .8s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, .04);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nav-logo {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--c1);
    text-decoration: none
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gr);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: .3s
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, .35)
}

/* HERO GERAL */
.hero,
.lhero {
    background: var(--gr);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden
}

.lhero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px
}

/* HERO PREMIO (Menor) */
.hero-premio {
    background: var(--gr);
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero::before,
.lhero::before,
.hero-premio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .1), transparent 60%)
}

.hero-inner,
.lhero-inner {
    position: relative;
    max-width: 720px;
    margin: auto;
    z-index: 2
}

.badge,
.lhero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(5px);
    padding: 6px 18px;
    border-radius: 50px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 15px;
    text-transform: uppercase
}

.hero h1,
.lhero h1,
.hero-premio h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1)
}

.hero h1 span,
.lhero h1 span,
.hero-premio h1 span {
    display: block;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-sub,
.lhero-text {
    color: rgba(255, 255, 255, .95);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto
}

/* HERO COMPACTO (RIFA) */
.hero-compact {
    background: var(--gr);
    padding: 100px 20px 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.hero-compact h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-compact p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.stats-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #fff;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-c-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-c-item span {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-c-item small {
    font-size: 0.65rem;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.prog-compact {
    width: 100%;
    max-width: 320px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.prog-bar-c {
    height: 100%;
    background: #4ade80;
    width: 0;
    transition: 1s;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* BOTOES */
.btn-prize-gold,
.btn-prize-hero {
    background: var(--gold);
    color: #5a4a00;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-prize-gold:hover,
.btn-prize-hero:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.btn-donate,
.btn-outline {
    background: transparent;
    color: var(--c1);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: .3s;
    cursor: pointer;
    border: 2px solid var(--c1);
    display: inline-block;
}

.btn-donate:hover,
.btn-outline:hover {
    background: var(--c1);
    color: #fff;
}

.btn-big {
    display: inline-block;
    padding: 18px 48px;
    background: var(--gr);
    color: #fff;
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 8px 30px rgba(102, 126, 234, .25);
    border: none;
    cursor: pointer;
}

.btn-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, .35);
}

.action-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    width: 100%;
}

/* PREMIO CARDS */
.prize-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.prize-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    transition: .3s;
    border: 1px solid #fff;
}

.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -10px rgba(102, 126, 234, 0.2);
    border-color: var(--c1);
}

.prize-img {
    height: 260px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.prize-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    z-index: 1;
    transition: .3s;
}

.prize-card:hover .prize-img img {
    transform: scale(1.05);
}

.prize-info {
    padding: 35px 25px;
}

.prize-info h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--tx);
    font-weight: 800;
}

.prize-info p {
    color: var(--tx2);
    font-size: 1rem;
    line-height: 1.5;
}

.vs-badge {
    background: var(--tx);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid #fff;
}

.prize-note {
    text-align: center;
    margin: 40px auto;
    font-size: 1.1rem;
    color: var(--c1);
    font-weight: 600;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* GERAIS */
.section {
    padding: 80px 24px;
}

.container {
    max-width: 960px;
    margin: auto;
}

.sec-title {
    text-align: center;
    margin-bottom: 48px;
}

.sec-title h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--tx);
}

.sec-title .line {
    width: 60px;
    height: 4px;
    background: var(--gr);
    border-radius: 4px;
    margin: 16px auto 0;
}

.draw-rules {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    max-width: 500px;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.draw-rule-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.btn-story-anim {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: pulse-glow 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: .3s;
}

.btn-story-anim:hover {
    background: #fff;
    color: var(--c1);
    transform: translateY(-3px);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}

.story-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--c1);
}

.highlight {
    background: linear-gradient(135deg, #f0f4ff, #faf5ff);
    border-left: 4px solid var(--c1);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
    font-style: italic;
    color: var(--tx);
}

.numbers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.num-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.num-val {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gr);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 28px 16px;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gr);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cta-section {
    background: var(--gr);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08), transparent 60%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: auto;
}

.cta-inner h2 {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-btn {
    display: inline-block;
    padding: 18px 52px;
    background: #fff;
    color: var(--c1);
    border-radius: 60px;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .2);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.cta-trust span {
    color: rgba(255, 255, 255, .75);
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: .3s;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
}

.qr-donation {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    border: 1px solid #eee;
    border-radius: 10px;
}

.copy-area {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.copy-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    background: #f9f9f9;
}

.copy-area button {
    padding: 10px 20px;
    background: var(--c1);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--tx);
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
}

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--tx);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    z-index: 90;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    color: var(--c1);
}

.toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    animation: tsIn .3s ease;
    max-width: 350px;
}

.t-ok {
    background: var(--ok);
}

.t-err {
    background: var(--err);
}

.t-info {
    background: var(--c1);
}

@keyframes tsIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .story {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .story-img {
        order: -1;
    }

    .numbers-row {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .nav {
        padding: 12px 16px;
    }

    .section {
        padding: 56px 16px;
    }
}

@media (max-width: 640px) {
    .hero-compact {
        padding: 80px 15px 120px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
        gap: 4px;
    }

    .g {
        font-size: .7rem;
    }

    .check-form-row {
        flex-direction: column;
    }

    .cozy-wrapper {
        padding: 0 15px;
    }

    .prize-vs {
        flex-direction: column;
    }

    .lhero,
    .hero-premio {
        padding: 90px 16px 48px;
    }

    .copy-area {
        flex-direction: column;
    }
}

/* RIFA */
.cozy-wrapper {
    max-width: 800px;
    margin: -100px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cozy-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #fff;
}

.check-section {
    margin-bottom: 30px;
}

.check-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.check-card h3 {
    font-size: 1.2rem;
    color: var(--tx);
    margin: 0;
}

.check-card p {
    font-size: 0.9rem;
    color: var(--tx2);
    margin: 0;
}

.check-form-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.check-form-row input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--brd);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: .2s;
    background: #f9fafb;
    color: var(--tx);
}

.check-form-row input:focus {
    background: #fff;
    border-color: var(--c1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.check-form-row button {
    padding: 12px 24px;
    background: var(--tx);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.check-form-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rifa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--brd);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.rifa-info {
    font-size: 0.95rem;
    color: var(--tx2);
    display: flex;
    gap: 15px;
}

.rifa-info strong {
    color: var(--c1);
    font-size: 1.2rem;
}

.rifa-actions {
    display: flex;
    gap: 8px;
}

.btn-tool {
    background: #fff;
    border: 1px solid var(--brd);
    color: var(--tx);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-size: 0.85rem;
}

.btn-tool:hover {
    border-color: var(--c1);
    color: var(--c1);
    background: #f5f7ff;
}

.btn-rand {
    background: var(--c1);
    color: #fff;
    border: none;
}

.btn-rand:hover {
    background: var(--c2);
    color: #fff;
}

.legend {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--tx2);
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-mini {
    margin-bottom: 20px;
    text-align: center;
}

.search-mini input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--brd);
    font-size: 0.95rem;
    outline: none;
    background: #f9fafb;
    text-align: center;
}

.search-mini input:focus {
    border-color: var(--c1);
    background: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 6px;
}

.g {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    border: 1px solid transparent;
}

.g:active {
    transform: scale(0.9);
}

.g-a {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.g-a:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-2px);
}

.g-s {
    background: var(--c1);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.g-r {
    background: #fffbeb;
    color: #d97706;
    border-color: #fcd34d;
    opacity: 0.7;
    cursor: not-allowed;
}

.g-d {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.float-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 24px;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideUp 0.4s ease;
    border: 1px solid var(--brd);
}

.float-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.float-info small {
    font-size: 0.75rem;
    color: var(--tx2);
}

.float-info b {
    font-size: 1.1rem;
    color: var(--tx);
}

.btn-float {
    background: var(--gr);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: .2s;
}

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

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
    }

    to {
        transform: translate(-50%, 0);
    }
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--tx);
}

.field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--brd);
    border-radius: 14px;
    font-size: 1rem;
    background: #f9fafb;
    outline: none;
    transition: .2s;
}

.field input:focus {
    background: #fff;
    border-color: var(--c1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.phone-wrap {
    display: flex;
    border: 2px solid var(--brd);
    border-radius: 14px;
    background: #f9fafb;
    overflow: hidden;
    transition: .2s;
}

.phone-wrap:focus-within {
    border-color: var(--c1);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.flag {
    padding: 0 15px;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-right: 1px solid var(--brd);
    font-weight: 600;
    color: var(--tx2);
}

.phone-wrap input {
    border: none !important;
    padding: 14px 16px !important;
}

.btn-full {
    width: 100%;
    padding: 16px;
    background: var(--gr);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pix-card {
    text-align: center;
}

.pix-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ok);
    margin: 10px 0 20px;
}

.qr-frame {
    background: #fff;
    padding: 15px;
    border: 2px solid var(--brd);
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-loading {
    position: absolute;
    width: 100%;
    text-align: center;
    color: var(--tx2);
    font-size: 0.9rem;
    font-weight: 600;
}

.copy-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.copy-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--brd);
    border-radius: 10px;
    background: #f9fafb;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--tx);
}

.copy-box button {
    background: var(--c1);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.chosen-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid var(--brd);
}

.chosen-box h3 {
    font-size: .95rem;
    color: var(--tx2);
    margin-bottom: 12px;
}

.nums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 15px;
}

.nb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 34px;
    background: var(--c1);
    color: #fff;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    font-family: monospace;
}

.summary {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid var(--brd);
}

.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: .95rem;
    padding: 5px 0;
}

.sum-total {
    border-top: 1px solid var(--brd);
    padding-top: 10px;
    margin-top: 5px;
    font-weight: 700;
    color: var(--c1);
    font-size: 1.2rem;
}

.warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 16px;
    border-radius: 12px;
    font-size: .9rem;
    margin: 25px 0;
    text-align: left;
    line-height: 1.5;
}

.res-card {
    background: #fff;
    border: 1px solid var(--brd);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    text-align: left
}

.res-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.res-head b {
    font-size: 1.1rem;
    color: var(--tx)
}

.tag {
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px
}

.bg-ok {
    background: #dcfce7;
    color: #166534
}

.bg-wait {
    background: #fef9c3;
    color: #854d0e
}

.bg-cn {
    background: #f1f5f9;
    color: #64748b
}

.nums-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9
}

.nb-sm {
    background: #f1f5f9;
    font-family: monospace;
    font-size: .8rem;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569;
    font-weight: 600
}

.btn-sm-pay {
    background: var(--ok);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .8rem;
    cursor: pointer;
    font-weight: 700;
    margin-left: auto
}

.success-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    text-align: center
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275)
}

.success-card h2 {
    color: var(--ok);
    margin-bottom: 10px
}

.success-info {
    background: #f0fdf4;
    color: #166534;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: .9rem
}