/* ========================================
   MEGA-SENA BOLÃO - Design Idêntico ao Original
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 30%, #42A5F5 70%, #64B5F6 100%);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Security: Disable text selection (except inputs) */
body.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body.no-select input,
body.no-select textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ========== SPLASH SCREEN ========== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 30%, #42A5F5 70%, #64B5F6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: splashPulse 1.5s ease-in-out infinite;
}

.splash-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@keyframes splashPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ========== LOGO IMAGE ========== */
.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========== HEADER ========== */
.header {
    background: #0D47A1;
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-icon svg {
    fill: #FFD700;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: white;
    font-size: 0.95rem;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== STEP CARDS ========== */
.step-card {
    display: none;
}

.step-card.active {
    display: block;
}

/* ========== CARD ========== */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: cardEnter 0.5s ease-out 0.2s both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== CARD HEADER (GREEN BANNER) ========== */
.card-banner {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    padding: 18px 25px;
    text-align: center;
    position: relative;
}

.card-banner-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #FFB300;
    stroke: #FFB300;
}

.card-banner h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========== CARD BODY ========== */
.card-body {
    padding: 30px 25px;
}

/* ========== PRIZE DISPLAY ========== */
.prize-display {
    text-align: center;
    margin-bottom: 25px;
}

.prize-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2E7D32;
    margin-bottom: 5px;
}

.prize-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.draw-info {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.draw-date {
    font-weight: 700;
    color: #333;
}

.chances-text {
    color: #2E7D32;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 15px;
}

/* ========== BOLÃO BUTTON WITH CLOVERS ========== */
.bolao-btn-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.btn-bolao {
    width: 100%;
    padding: 18px 60px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #ccc;
    color: #333;
}

.btn-bolao:hover {
    border-color: #2E7D32;
    background: #f8fff8;
}

.clover-left,
.clover-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(46, 125, 50, 0.3);
    animation: cloverPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.clover-left {
    left: 15px;
}

.clover-right {
    right: 15px;
    animation-delay: 1s;
}

@keyframes cloverPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.15);
    }
}

/* ========== APOSTE BUTTON (Green) ========== */
.btn-aposte {
    width: 100%;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-aposte:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(46, 125, 50, 0.4);
}

.aposte-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.aposte-price {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
}

/* ========== BOLÃO PACKAGES (Pixel-Perfect Original) ========== */
.card-full {
    width: 100%;
    max-width: 700px;
    padding: 0;
}

.bolao-header {
    padding: 20px 20px 15px;
}

.link-back {
    background: none;
    border: none;
    color: #1976D2;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.link-back:hover {
    text-decoration: underline;
}

.bolao-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.package-card {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.package-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.package-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976D2;
}

.package-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Qty Control - Blue border, white background */
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #1565C0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-minus,
.qty-plus {
    width: 34px;
    height: 34px;
    background: #1565C0;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-minus:hover,
.qty-plus:hover {
    background: #0D47A1;
}

.qty-input {
    width: 50px;
    height: 34px;
    background: white;
    border: none;
    color: #333;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
}

.link-numbers {
    background: none;
    border: none;
    color: #1976D2;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-numbers:hover {
    text-decoration: underline;
}

/* Expanded Numbers Section */
.package-numbers {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.package-numbers p {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 2px;
}

/* ========== BOLÃO FOOTER (Original Style) ========== */
.bolao-footer {
    background: #37474F;
    padding: 20px;
    margin: 0 20px 20px;
    border-radius: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.total-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.btn-full {
    width: 100%;
    padding: 16px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

/* ========== FORM ELEMENTS (Estilo Caixa) ========== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-group label .icon {
    color: #F57C00;
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #F57C00;
}

.form-group input::placeholder {
    color: #bbb;
}

.form-group input.error {
    border-bottom-color: #e53935;
}

.error-message {
    color: #e53935;
    font-size: 0.75rem;
    margin-top: 5px;
    min-height: 16px;
}

/* ========== BUTTONS (Estilo Caixa) ========== */
.btn {
    width: 100%;
    padding: 16px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 124, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: white;
    border: 2px solid #F57C00;
    color: #F57C00;
}

.btn-outline:hover {
    background: rgba(245, 124, 0, 0.05);
}

.btn-back {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 25px;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: #666;
    padding: 10px;
}

/* ========== QUANTITY SELECTOR ========== */
.numbers-quantity-section {
    text-align: center;
    margin-bottom: 25px;
}

.section-label {
    color: #2E7D32;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.quantity-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: white;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.qty-btn.selected {
    background: #2E7D32;
    border-color: #2E7D32;
    color: white;
}

.price-display {
    color: #2E7D32;
    font-size: 1rem;
}

.price-display strong {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ========== GAME OPTIONS ========== */
.game-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.game-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-option:hover {
    border-color: #2E7D32;
    background: #f0f7f0;
}

.game-option.selected {
    border-color: #2E7D32;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08) 0%, rgba(56, 142, 60, 0.05) 100%);
}

.game-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-option.selected .game-option-radio {
    border-color: #2E7D32;
    background: #2E7D32;
}

.game-option.selected .game-option-radio::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.game-option-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.game-option-info p {
    font-size: 0.8rem;
    color: #888;
}

.game-option-price {
    text-align: right;
}

.game-option-price .original {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.game-option-price .current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2E7D32;
}

.game-option-price .discount {
    display: inline-block;
    background: #ff5722;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

/* ========== NUMBERS GRID ========== */
.numbers-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 0.9rem;
    color: #666;
}

.section-title span {
    font-weight: 700;
    color: #2E7D32;
    font-size: 1.1rem;
}

.btn-surprise {
    padding: 8px 15px;
    background: white;
    border: 1px solid #2E7D32;
    color: #2E7D32;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-surprise:hover {
    background: #2E7D32;
    color: white;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.number-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    border-color: #2E7D32;
    background: #e8f5e9;
}

.number-btn.selected {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    border-color: #2E7D32;
    color: white;
    animation: numberPop 0.2s ease;
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ========== GAME PROGRESS ========== */
.game-progress {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.game-progress-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.game-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.game-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.game-dot.active {
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.game-dot.completed {
    background: #FFD700;
}

/* ========== SELECTED NUMBERS ========== */
.selected-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 50px;
}

.selected-numbers-label {
    color: #666;
    font-size: 0.85rem;
    white-space: nowrap;
}

.selected-numbers-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.number-pill {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== TOTAL VALUE ========== */
.total-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(56, 142, 60, 0.05) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.total-value .label {
    color: #666;
    font-size: 0.95rem;
}

.total-value .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2E7D32;
}

/* ========== BUTTON GROUP ========== */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn-back {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-back:hover {
    background: #f5f5f5;
}

/* ========== PAYMENT SECTION ========== */
.payment-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    color: #666;
}

.summary-row .value {
    font-weight: 600;
    color: #333;
}

.summary-row.total {
    padding-top: 12px;
    margin-top: 5px;
    border-top: 2px solid #2E7D32;
}

.summary-row.total .value {
    font-size: 1.3rem;
    color: #2E7D32;
}

.games-list {
    max-height: 120px;
    overflow-y: auto;
    margin: 10px 0;
}

.game-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.8rem;
    color: #666;
}

.game-item .numbers {
    font-family: monospace;
    color: #2E7D32;
    font-weight: 600;
}

/* ========== QR CODE ========== */
.qr-section {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code {
    display: inline-block;
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    padding: 10px 20px;
    border-radius: 20px;
    color: #e65100;
    font-weight: 600;
}

/* ========== PIX CODE ========== */
.pix-code-section {
    margin-bottom: 20px;
}

.pix-code-section label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.pix-code-input {
    display: flex;
    gap: 8px;
}

.pix-code-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    background: #f8f9fa;
}

.btn-copy {
    padding: 12px 18px;
    background: #2E7D32;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #1B5E20;
}

.copy-feedback {
    display: none;
    color: #2E7D32;
    font-size: 0.8rem;
    margin-top: 5px;
}

.copy-feedback.show {
    display: block;
}

/* ========== INFO BOX ========== */
.info-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box p {
    color: #2E7D32;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ========== DIVIDER ========== */
.divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 500px) {
    .header {
        padding: 15px 20px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .card {
        border-radius: 12px;
    }

    .card-body {
        padding: 20px 18px;
    }

    .numbers-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }

    .number-btn {
        font-size: 0.75rem;
    }

    .prize-amount {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .pix-code-input {
        flex-direction: column;
    }

    .game-option {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .game-option-left {
        flex-direction: column;
    }

    .game-option-price {
        text-align: center;
    }
}

/* ========== SUCCESS MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-header {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    padding: 30px;
    text-align: center;
    color: white;
    border-radius: 16px 16px 0 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 15px;
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

.success-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 30px 25px;
}

.congrats-text {
    text-align: center;
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 25px;
}

.purchase-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.purchase-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #666;
    font-size: 0.95rem;
}

.summary-item .value {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.success-price {
    color: #2E7D32 !important;
    font-size: 1.3rem !important;
}

.numbers-display {
    background: white;
    border: 2px solid #2E7D32;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.numbers-display h4 {
    color: #2E7D32;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.numbers-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.number-badge {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.confirmation-note {
    background: #E3F2FD;
    border-left: 4px solid #1976D2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.confirmation-note p {
    margin: 5px 0;
    color: #333;
    font-size: 0.9rem;
}

.email-highlight {
    color: #1976D2;
    font-weight: 600;
    text-align: center;
}

.good-luck {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2E7D32;
    margin: 20px 0 0;
}

.modal-footer {
    padding: 0 25px 25px;
}

/* ========== MULTIPLE BETS FEATURE ========== */
.saved-bets-container {
    margin: 15px 0;
}

.saved-bets-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Premium Bet Card */
.bet-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.bet-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1976D2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #209869;
}

/* Number Pills Grid */
.bet-numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-number-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #209869;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(32, 152, 105, 0.3);
}

/* Remove Button */
.bet-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-remove-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* Bet Action Buttons */
.bet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.btn-add-bet {
    background: #1976D2;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-add-bet:hover:not(:disabled) {
    background: #1565C0;
    transform: translateY(-1px);
}

.btn-add-bet:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.btn-finish-bets {
    background: white;
    color: #1976D2;
    border: 2px solid #1976D2;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-finish-bets:hover {
    background: #1976D2;
    color: white;
}

/* ========== NOTIFICATION MODAL ========== */
.notification-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.notification-overlay.show {
    display: flex;
}

.notification-box {
    background: white;
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: notificationSlideIn 0.3s ease;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.notification-message {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 20px;
}

.notification-btn {
    background: #1976D2;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.notification-btn:hover {
    background: #1565C0;
    transform: translateY(-1px);
}

.notification-btn.error {
    background: #dc2626;
}

.notification-btn.success {
    background: #209869;
}

/* ========== CONFIRMATION PAGE (STEP 5) ========== */
.confirmation-page {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.confirmation-header {
    background: linear-gradient(135deg, #0056a0 0%, #003d7a 100%);
    padding: 30px 20px;
    text-align: center;
}

.caixa-logo {
    height: 50px;
    margin-bottom: 20px;
    /* No filter - preserve original logo colors */
}

.confirmation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #209869;
    color: white;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.confirmation-section {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.confirmation-section .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0056a0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.data-row.highlight {
    background: #f8f9fa;
    margin: 10px -15px 0;
    padding: 12px 15px;
    border-radius: 8px;
}

.data-label {
    color: #666;
}

.data-value {
    font-weight: 600;
    color: #333;
}

.success-color {
    color: #209869 !important;
    font-size: 1.2rem !important;
}

/* Numbers Section */
.numbers-section {
    background: linear-gradient(135deg, #f8fdf9 0%, #e8f5e9 100%);
}

.confirmation-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.conf-number-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(46, 125, 50, 0.3);
}

/* Lottery Info */
.sorteo-info {
    background: #f8f9fa;
}

.sorteo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.sorteo-row+.sorteo-row {
    border-top: 1px solid #e0e0e0;
}

.sorteo-icon {
    font-size: 1.5rem;
}

.sorteo-row div {
    display: flex;
    flex-direction: column;
}

.sorteo-row strong {
    font-size: 0.9rem;
    color: #333;
}

.sorteo-row span {
    font-size: 0.85rem;
    color: #666;
}

/* Luck Message */
.luck-message {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.luck-icon {
    font-size: 2rem;
}

.luck-message p {
    margin: 10px 0 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Action Buttons */
.confirmation-actions {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-print,
.btn-save,
.btn-new-bet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-print {
    background: #0056a0;
    color: white;
}

.btn-print:hover {
    background: #003d7a;
}

.btn-save {
    background: white;
    color: #0056a0;
    border: 2px solid #0056a0;
}

.btn-save:hover {
    background: #f0f7ff;
}

.btn-new-bet {
    background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%);
    color: white;
}

.btn-new-bet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Footer */
.confirmation-footer {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
}

.confirmation-footer p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.confirmation-footer .small {
    font-size: 0.8rem;
    color: #999;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    .confirmation-page,
    .confirmation-page * {
        visibility: visible;
    }

    .confirmation-page {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }

    .confirmation-actions {
        display: none;
    }

    .header,
    .footer {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 500px) {
    .confirmation-header {
        padding: 25px 15px;
    }

    .caixa-logo {
        height: 40px;
    }

    .confirmation-section {
        padding: 15px 18px;
    }

    .conf-number-pill {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .confirmation-actions {
        padding: 20px 15px;
    }
}

/* ========== CPF ENTRY MODAL ========== */
.cpf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 30%, #42A5F5 70%, #64B5F6 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 20px;
}

.cpf-modal.show {
    display: flex;
}

.cpf-modal-content {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalEnter 0.4s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cpf-modal-title {
    color: #1976D2;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cpf-input-group {
    position: relative;
    margin-bottom: 8px;
}

.cpf-input-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: #9e9e9e;
}

.cpf-input-label {
    display: block;
    color: #9e9e9e;
    font-size: 0.85rem;
    margin-bottom: 4px;
    padding-left: 30px;
}

.cpf-input {
    width: 100%;
    padding: 12px 0 12px 30px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.1rem;
    font-family: inherit;
    color: #333;
    background: transparent;
    transition: border-color 0.3s ease;
}

.cpf-input:focus {
    outline: none;
    border-bottom-color: #f7941d;
}

.cpf-input::placeholder {
    color: #bdbdbd;
}

.cpf-input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f7941d;
    transition: width 0.3s ease;
}

.cpf-input:focus+.cpf-input-line {
    width: 100%;
}

.cpf-error {
    display: block;
    color: #e53935;
    font-size: 0.75rem;
    min-height: 20px;
    margin-bottom: 15px;
}

.cpf-btn-proximo {
    width: 100%;
    padding: 16px 30px;
    border-radius: 8px;
    border: none;
    background: #e0e0e0;
    color: #9e9e9e;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.cpf-btn-proximo:not(:disabled) {
    background: #1565C0;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.cpf-btn-proximo:not(:disabled):hover {
    background: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.cpf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: #1976D2;
    font-size: 0.95rem;
}

.cpf-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #1976D2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== HEADER USER SECTION ========== */
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-greeting {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-user-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ========== CONFIRMATION SCREEN (Step 4) ========== */
.confirm-card {
    padding: 0;
    overflow: hidden;
}

.confirm-valor-data {
    display: flex;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    color: white;
}

.confirm-col {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirm-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.confirm-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.confirm-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.confirm-success svg {
    color: #2e7d32;
}

.confirm-section {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-section:last-of-type {
    border-bottom: none;
}

.confirm-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.confirm-field {
    margin-bottom: 8px;
}

.confirm-field:last-child {
    margin-bottom: 0;
}

.confirm-field-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.confirm-field-value {
    display: block;
    font-size: 0.95rem;
    color: #1976D2;
    font-weight: 500;
}

.confirm-resumo {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.confirm-resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.confirm-resumo-item:last-child {
    border-bottom: none;
}

.confirm-resumo-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.confirm-resumo-value {
    font-size: 0.85rem;
    color: #1976D2;
}

.confirm-cta {
    padding: 20px 24px 30px;
    text-align: center;
}

.confirm-cta-text {
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.confirm-btn-pagar {
    width: 100%;
    padding: 16px 30px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    margin-bottom: 12px;
}

.confirm-btn-pagar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(21, 101, 192, 0.4);
}

.confirm-btn-voltar {
    width: 100%;
    padding: 12px 30px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background: transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn-voltar:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Mobile adjustments for confirmation */
@media (max-width: 500px) {
    .confirm-section {
        padding: 16px 18px;
    }

    .confirm-cta {
        padding: 16px 18px 24px;
    }
}