* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #fe2c55;
    --secondary: #25f4ee;
    --dark: #ffffff;
    --gray: #f5f5f5;
    --light-gray: #666666;
    --white: #1a1a1a;
    --gradient: #fe2c55;
    --shadow: 0 8px 32px rgba(254, 44, 85, 0.3);
    --border-color: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: #ffffff;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
}

.menu-btn,
.wallet-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.menu-btn:active,
.wallet-btn:active {
    background: var(--gray);
}

.wallet-btn {
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 90%;
    width: 400px;
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #fe2c55;
}

.toast-notification.show {
    top: 20px;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.toast-close:active {
    background: var(--gray);
}

.balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--gray);
    margin: 0 16px;
    padding: 12px;
    border-radius: 12px;
    gap: 12px;
}

.balance-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.balance-label {
    font-size: 12px;
    color: var(--light-gray);
    font-weight: 500;
}

.balance-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.balance-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-menu.active {
    pointer-events: all;
    opacity: 1;
}

.dropdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dropdown-content {
    position: absolute;
    top: 70px;
    left: 16px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    min-width: 200px;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown-menu.active .dropdown-content {
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--gray);
}

.dropdown-item:active {
    background: #e8e8e8;
    transform: scale(0.98);
}

.dropdown-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* Main Content */
.main-content {
    padding: 24px 16px;
}

/* Store Screen */
.store-screen {
    animation: fadeIn 0.5s ease-out;
}

.welcome-section {
    text-align: center;
    margin-bottom: 32px;
}

.free-ticket-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(255, 170, 0, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(255, 170, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 48px rgba(255, 170, 0, 0.6);
    }
}

.badge-icon {
    font-size: 56px;
    animation: bounce 2s infinite;
}

.badge-content {
    flex: 1;
    text-align: left;
}

.badge-content h3 {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 4px;
}

.badge-highlight {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

/* Info Notice (após bilhete grátis) */
.info-notice {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 3px solid rgba(79, 172, 254, 0.5);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-notice:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 48px rgba(79, 172, 254, 0.6);
}

.info-notice:active {
    transform: scale(0.98);
}

.info-notice.warning {
    background: linear-gradient(135deg, #fe2c55 0%, #fe2c55 100%);
    border: 3px solid rgba(254, 44, 85, 0.3);
    box-shadow: 0 8px 32px rgba(254, 44, 85, 0.3);
}

.info-notice.warning:hover {
    box-shadow: 0 12px 48px rgba(254, 44, 85, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 48px rgba(79, 172, 254, 0.6);
    }
}

.notice-icon {
    font-size: 48px;
}

.notice-content {
    flex: 1;
    text-align: left;
}

.notice-content h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
    font-weight: 700;
}

.notice-content p {
    font-size: 14px;
    color: var(--light-gray);
    margin: 0;
}

.badge-subtitle {
    font-size: 13px;
    color: var(--secondary);
    font-weight: 600;
}

.welcome-title {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Packages */
.packages-section {
    margin-bottom: 32px;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.package-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.package-card:active {
    transform: scale(0.98);
}

.package-card.popular {
    border-color: var(--secondary);
    box-shadow: 0 8px 32px rgba(37, 244, 238, 0.3);
}

.package-card.best-deal {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(254, 44, 85, 0.3);
    background: #ffffff;
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.package-badge.best {
    background: var(--primary);
    color: white;
}

.package-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.package-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-quantity {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #FE2C55;
    text-shadow: 0 2px 4px rgba(254, 44, 85, 0.1);
}

.package-price {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.package-save {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.package-btn {
    width: 100%;
    background: #FE2C55;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.package-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow);
}

/* Add Balance */
.add-balance-section {
    margin-bottom: 20px;
}

.add-balance-section.top-section {
    padding-top: 0;
    margin-top: -8px;
    margin-bottom: 16px;
}

/* Withdraw Notice */
.withdraw-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffc107;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    animation: pulse-notice 2s ease-in-out infinite;
}

.withdraw-notice.success {
    background: linear-gradient(135deg, rgba(0, 208, 132, 0.15) 0%, rgba(0, 168, 107, 0.15) 100%);
    border-left-color: #00d084;
    color: #00d084;
}

.withdraw-notice svg {
    flex-shrink: 0;
}

@keyframes pulse-notice {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.add-balance-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #ff1744 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}

.add-balance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(254, 44, 85, 0.5);
}

.add-balance-btn:active {
    transform: scale(0.98);
    border-color: var(--secondary);
}

/* Withdraw Button */
.withdraw-section {
    margin-bottom: 32px;
}

.withdraw-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d084 0%, #00a86b 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 208, 132, 0.3);
}

.withdraw-btn:disabled {
    background: var(--gray);
    color: var(--light-gray);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.withdraw-btn:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 8px 24px rgba(0, 208, 132, 0.4);
}

/* Play Button */
.play-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    font-size: 20px;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.play-btn:not(:disabled) {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(254, 44, 85, 0.3), 0 0 0 0 rgba(254, 44, 85, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 12px 48px rgba(254, 44, 85, 0.5), 0 0 0 15px rgba(254, 44, 85, 0);
    }
}

.play-btn:disabled {
    background: var(--gray);
    color: var(--light-gray);
    box-shadow: none;
    cursor: not-allowed;
    animation: none;
}

.play-btn:not(:disabled):active {
    transform: scale(0.98);
    animation: none;
}

.play-icon {
    font-size: 28px;
    animation: bounce 1s infinite;
}

/* Game Screen */
.game-screen {
    animation: fadeIn 0.5s ease-out;
}

/* Prize Section */
.prize-section {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-hot {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #fe2c55 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.prize-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--light-gray);
    margin-bottom: 8px;
}

.prize-amount {
    font-size: 56px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.prize-subtitle {
    font-size: 16px;
    color: var(--light-gray);
}

/* Scratch Card */
.scratch-card-wrapper {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scratch-card {
    position: relative;
    background: linear-gradient(135deg, var(--gray) 0%, #1a1a1a 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1.5;
}

.scratch-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scratch-instruction.hidden {
    opacity: 0;
}

.hand-icon {
    font-size: 48px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scratch-instruction p {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 12px;
}

#scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 3;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    display: block;
}

.prize-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 1;
}

.confetti {
    position: absolute;
    font-size: 32px;
    animation: confettiFall 3s infinite;
}

.confetti:first-child {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.confetti:last-child {
    top: 15%;
    right: 20%;
    animation-delay: 0.5s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

.prize-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: prizeZoom 0.6s ease-out;
}

@keyframes prizeZoom {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.prize-text {
    text-align: center;
}

#prizeTitle {
    font-size: 28px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.prize-value {
    font-size: 40px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 8px;
}

.prize-description {
    font-size: 14px;
    color: var(--light-gray);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.action-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn.secondary {
    background: var(--gradient);
    box-shadow: var(--shadow);
}

.action-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--gray);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.info-card:active {
    transform: scale(0.95);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.info-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-text p {
    font-size: 12px;
    color: var(--light-gray);
}

/* Products Section */
.products-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--gray);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.product-placeholder {
    font-size: 48px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    padding-bottom: 8px;
}

.product-price {
    padding: 0 12px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-old {
    font-size: 12px;
    color: var(--light-gray);
    text-decoration: line-through;
}

.price-new {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}

/* Withdraw Info */
.withdraw-info {
    background: var(--gray);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--light-gray);
    font-size: 14px;
}

.info-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    background: var(--gray);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(254, 44, 85, 0.05);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    color: var(--light-gray);
    font-weight: 600;
    pointer-events: none;
}

.input-wrapper .form-input {
    padding-left: 45px;
}

.form-hint {
    display: block;
    color: var(--light-gray);
    font-size: 12px;
    margin-top: 6px;
}

.quick-amount-btn {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background: rgba(254, 44, 85, 0.1);
}

.quick-amount-btn:active {
    transform: scale(0.98);
}

.withdraw-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffc107;
    font-size: 12px;
    margin-top: 20px;
}

.withdraw-warning svg {
    flex-shrink: 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary,
.btn-primary {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #ff1744 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(254, 44, 85, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:not(:disabled):active {
    transform: scale(0.98);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

/* Bloquear scroll do body quando modal estiver ativo */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    pointer-events: all; /* Bloquear cliques no fundo */
    cursor: default;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    animation: modalSlideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 24px;
}

.balance-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.balance-option {
    background: var(--dark);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.balance-option:active,
.balance-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
}

.custom-amount {
    margin-bottom: 24px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 8px;
}

.amount-input {
    width: 100%;
    background: var(--dark);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    transition: border-color 0.2s;
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-btn {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    padding: 16px;
    text-align: center;
    color: var(--light-gray);
    font-size: 12px;
    line-height: 1.5;
    border-top: 1px solid var(--gray);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* PIX Payment Modal */
.pix-modal-content {
    max-width: 420px;
}

.pix-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0;
}

.pix-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.pix-label {
    font-size: 14px;
    color: var(--light-gray);
    font-weight: 600;
}

.pix-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.pix-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    padding: 20px;
}

.qr-placeholder {
    text-align: center;
    color: var(--light-gray);
}

.loading-spinner {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pix-qrcode img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pix-code-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pix-code-box {
    display: flex;
    gap: 8px;
}

.pix-code-input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: var(--gray);
    color: var(--text-primary);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-icon {
    font-size: 18px;
}

.pix-status {
    padding: 16px;
    background: var(--gray);
    border-radius: 12px;
    text-align: center;
}

.status-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 32px;
}

.status-pending p {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.status-pending small {
    color: var(--light-gray);
    font-size: 12px;
}

.status-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-success .status-icon {
    font-size: 48px;
}

.status-success p {
    font-weight: 700;
    color: #10b981;
    font-size: 18px;
    margin: 0;
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(254, 44, 85, 0.1);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
}

.timer-icon {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 320px) {
    .prize-amount {
        font-size: 48px;
    }
    
    .action-btn {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .pix-code-box {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== NOVO DESIGN PIX MODAL ===== */
.pix-modal-content {
    max-width: 440px !important;
    width: 100% !important;
    max-height: 95vh;
    overflow-y: auto;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Header Modal */
.payment-header-modal {
    background: white;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo-modal {
    max-width: 200px;
    height: auto;
}

/* Modal Body */
.modal-body-new {
    background: #F5F6F8;
    padding-bottom: 0;
}

/* Status Section */
.status-section-modal {
    background: #F5F6F8;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 10px;
}

.status-title-modal {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.status-subtitle-modal {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.status-illustration-modal {
    width: 98%;
    max-width: 480px;
    height: 380px;
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-illustration-modal img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.status-waiting-modal {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* PIX Section Modal */
.pix-section-modal {
    background: white;
    padding: 20px;
    margin: 10px 16px 140px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pix-section-modal .pix-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    background: #F5F6F8;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 16px;
}

.pix-section-modal .pix-qrcode img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pix-section-modal .qr-placeholder {
    text-align: center;
    color: #666;
}

.pix-section-modal .loading-spinner {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    animation: spin 2s linear infinite;
}

.pix-title-modal {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pix-subtitle-modal {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pix-code-wrapper-modal {
    background: #F5F6F8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #333;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn-modal {
    width: 100%;
    background: #fe2c55;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.copy-btn-modal:hover {
    background: #e0254a;
}

.copy-btn-modal:active {
    transform: scale(0.98);
}

.copy-icon-modal {
    font-size: 16px;
}

.pix-help-text-modal {
    text-align: center;
    font-size: 13px;
    color: #10b981;
    margin-top: 12px;
}


/* Footer Modal */
.payment-footer-modal {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 440px;
    width: 100%;
    z-index: 101;
}

.footer-total-modal {
    background: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e5e5;
}

.total-label-modal {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.total-value-modal {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

.footer-timer-modal {
    background: #fe2c55;
    padding: 14px 20px;
    text-align: center;
    font-size: 15px;
    color: white;
    font-weight: 500;
}

.timer-value-modal {
    font-weight: 600;
}

/* Spacer entre PIX e Footer */
.pix-spacer-modal {
    background: #fe2c55;
    height: 60px;
}
