* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F4F7F6 0%, #E8EDEB 100%);
    color: #334155;
    min-height: 100vh;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    display: block;
}

/* ==================== FREE TIPS PAGE ==================== */
.free-tips-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05), rgba(245, 166, 35, 0.05));
    border-radius: 24px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1B4D3E, #F5A623);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.page-header h1 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #F5A623;
}

.page-header p {
    color: #64748B;
    font-size: 0.85rem;
}

/* ==================== GAMES CONTAINER ==================== */
.games-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: white;
    flex-wrap: wrap;
    gap: 15px;
}

.title-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 4px;
}

.selected-date {
    font-size: 0.85rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-inline {
    font-weight: 600;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-tabs {
    display: flex;
    gap: 8px;
    background: #F4F7F6;
    padding: 4px;
    border-radius: 48px;
}

.date-tab {
    padding: 8px 24px;
    border: none;
    border-radius: 40px;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.date-tab:hover {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
}

.date-tab.active {
    background: #1B4D3E;
    color: white;
}

.calendar-wrapper {
    position: relative;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-btn:hover {
    border-color: #F5A623;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.05);
}

.calendar-btn i {
    color: #F5A623;
}

/* ==================== GAMES LIST ==================== */
.games-list {
    min-height: 300px;
    width: 100%;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* ==================== GAME ITEMS ==================== */
.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #E2E8F0;
    width: 100%;
    transition: background 0.2s ease;
}

.game-item:last-child {
    border-bottom: none;
}

.game-time {
    min-width: 80px;
    color: #64748B;
    font-weight: 500;
    font-size: 0.85rem;
}

.game-match {
    flex: 1;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
    margin: 0 20px;
}

.game-prediction {
    padding: 6px 18px;
    background: #F4F7F6 !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.game-prediction-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== RESULT ICONS ==================== */
.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.result-icon.won {
    background: #06D6A0;
    color: white;
}

.result-icon.lost {
    background: #E63946;
    color: white;
}

.result-icon.pending {
    background: #F4F7F6;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

/* ==================== MULTI-DAY GAMES LIST ==================== */
.multi-day-games-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

/* Day Section */
.day-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.day-section + .day-section {
    margin-top: 16px;
}

.day-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F8FAFC;
    cursor: pointer;
    border-bottom: 1px solid #E2E8F0;
}

.day-section-header.open .toggle-icon {
    transform: rotate(180deg);
}

.day-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.day-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1B4D3E;
}

.day-date {
    font-size: 0.75rem;
    color: #64748B;
}

.day-stats .stats-record {
    font-weight: 600;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
}

.toggle-icon {
    color: #F5A623;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.day-content {
    display: none;
}

.day-content.open {
    display: block;
}

.day-games-container {
    width: 100%;
}

/* ==================== LOADER ==================== */
.loader-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    padding: 40px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-centered-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #64748B;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 16px;
    color: #64748B;
    font-size: 0.85rem;
}

.no-data-message {
    text-align: center;
    padding: 60px;
    color: #94A3B8;
}

.no-data-message i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #F5A623;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    background: white;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.faq-header {
    text-align: center;
    padding: 24px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.faq-header i {
    font-size: 2rem;
    color: #F5A623;
    margin-bottom: 8px;
}

.faq-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 4px;
}

.faq-header p {
    color: #64748B;
    font-size: 0.8rem;
}

.faq-container {
    padding: 0;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #F8FAFC;
}

.faq-question i:first-child {
    color: #F5A623;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.faq-item.active .faq-question i:first-child {
    transform: rotate(90deg);
}

.faq-question span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1B4D3E;
    flex: 1;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 48px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==================== CALENDAR MODAL ==================== */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.calendar-modal.show {
    display: flex;
}

.calendar-modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.calendar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
}

.calendar-modal-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.calendar-modal-header h3 i {
    color: #F5A623;
    margin-right: 8px;
}

.calendar-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F4F7F6;
}

.calendar-modal-nav-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748B;
}

#calendarModalMonthYear {
    font-weight: 700;
    color: #1B4D3E;
}

.calendar-modal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px;
    background: white;
}

.calendar-modal-weekdays span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748B;
}

.calendar-modal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 16px;
    gap: 4px;
    background: white;
}

.calendar-modal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.calendar-modal-day:hover:not(.empty) {
    background: rgba(245, 166, 35, 0.1);
    color: #F5A623;
}

.calendar-modal-day.empty {
    visibility: hidden;
}

.calendar-modal-day.selected {
    background: #F5A623;
    color: #1B4D3E;
    font-weight: 700;
}

.calendar-modal-day.today {
    border: 2px solid #F5A623;
    font-weight: 700;
}

.calendar-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #F4F7F6;
}

.calendar-modal-today,
.calendar-modal-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.calendar-modal-today {
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
}

.calendar-modal-cancel {
    background: #F4F7F6;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

/* ==================== ACCOUNT BOTTOM SHEET ==================== */
.account-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-radius: 32px 32px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(245, 166, 35, 0.2);
}

.account-bottom-sheet.open {
    transform: translateY(0);
}

.account-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10001;
}

.account-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

.account-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
}

.account-sheet-header h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.account-sheet-header h3 i {
    color: #F5A623;
    margin-right: 8px;
}

.account-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: #94A3B8;
}

.account-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-bottom: 1px solid rgba(245, 166, 35, 0.15);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F5A623, #E8871E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar i {
    font-size: 2.5rem;
    color: white;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #E2E8F0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.profile-email {
    font-size: 0.85rem;
    color: #94A3B8;
    word-break: break-all;
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #0F2B1F;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    border-radius: 14px;
    margin-bottom: 6px;
    border: 1px solid rgba(245, 166, 35, 0.08);
}

.menu-item i:first-child {
    width: 24px;
    font-size: 1.1rem;
    color: #F5A623;
}

.menu-item span {
    flex: 1;
    font-weight: 500;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.menu-item .arrow {
    color: #4A5568;
    font-size: 0.8rem;
}

.logout-item {
    margin-top: 12px;
    border-top: 1px solid rgba(230, 57, 70, 0.15);
}

.logout-item i:first-child {
    color: #E63946;
}

.logout-item span {
    color: #E63946;
}

/* Auth Buttons Section */
.auth-buttons-section {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
}

.welcome-message {
    margin-bottom: 32px;
}

.welcome-message i {
    font-size: 3.5rem;
    color: #F5A623;
    margin-bottom: 16px;
}

.welcome-message h4 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #E2E8F0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-message p {
    font-size: 0.85rem;
    color: #94A3B8;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.btn-login-sheet {
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-register-sheet {
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0;
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.loading-account {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
}

.loading-account i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #F5A623;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .free-tips-page {
        padding: 0 16px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .games-container {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .title-section h2 {
        font-size: 1.1rem;
    }
    
    .selected-date {
        font-size: 0.75rem;
    }
    
    .date-controls {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    .date-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        background: #F4F7F6;
        padding: 4px;
        border-radius: 48px;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    
    .date-tab {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: auto !important;
        flex: 0 0 auto !important;
    }
    
    .calendar-wrapper {
        flex-shrink: 0 !important;
    }
    
    .calendar-btn {
        justify-content: center !important;
        align-items: center !important;
        padding: 6px 12px !important;
        font-size: 0 !important;
        gap: 0 !important;
        min-width: 38px !important;
    }
    
    .calendar-btn span {
        display: none !important;
    }
    
    .calendar-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        color: #F5A623 !important;
    }
    
    /* Mobile Game Items */
    .game-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        flex-wrap: nowrap !important;
    }
    
    .game-time {
        flex-shrink: 0 !important;
        min-width: 55px !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        color: #64748B !important;
        font-family: monospace !important;
        padding: 0 !important;
        text-align: center !important;
        background: transparent !important;
    }
    
    .game-teams {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    
    .game-match {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: #334155 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    .game-match:first-child {
        font-weight: 600 !important;
        color: #1B4D3E !important;
    }
    
    .game-prediction-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .game-prediction {
        padding: 4px 10px !important;
        font-size: 0.65rem !important;
    }
    
    .result-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
    }
    
    .faq-header {
        padding: 20px 16px;
    }
    
    .faq-header h2 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 12px 16px;
    }
    
    .faq-question span {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        padding: 0 16px 16px 44px;
        font-size: 0.8rem;
    }
    
    .calendar-modal-content {
        width: 95%;
    }
    
    .calendar-modal-day {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}