﻿/* Bottom Sheet Container */
.bottom-sheet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bottom-sheet-container.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    background: #0f0f0f;
    background: linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 20px 24px 34px 24px;
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-sheet.active {
    transform: translateY(0);
}

/* Drag Handle */
.sheet-handle-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px auto;
}

/* Header */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sheet-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sheet-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.sheet-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-close-sheet {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-sheet:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Mode Tabs */
.mode-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.mode-tabs::-webkit-scrollbar {
    display: none;
}

.mode-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.mode-tab.locked {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
    border-style: dashed;
}

.mode-tab i {
    font-size: 1rem;
}

.special-tag-mini {
    font-size: 0.6rem;
    background: #f5c542;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grids */
.numbers-grid-container {
    margin-bottom: 28px;
}

.grid-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.ball {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.ball:active {
    transform: scale(0.8);
}

/* Selected States */
.ball.selected-white {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    z-index: 1;
}

.ball.selected-red {
    background: #ff3b30;
    color: #fff;
    border-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.4);
    transform: scale(1.1);
    z-index: 1;
}

/* === TEMA MEGA MILLIONS OURO (Bottom Sheet) === */
.tema-mega-ouro .ball.selected-red {
    background: linear-gradient(135deg, #F5C542 0%, #B8860B 100%);
    color: #000;
    border-color: #F5C542;
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.5);
}

/* Balance Bar */
.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.balance-value {
    font-size: 0.95rem;
    font-weight: 900;
    color: #10b981;
}

/* Footer / Actions */
.sheet-footer {
    position: sticky;
    bottom: 0;
    background: linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 100%);
    padding-top: 20px;
    z-index: 10;
}

.action-btn {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    border: none;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-confirm {
    background: #10b981;
    color: #000;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-confirm:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-confirm:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
