* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    color: #1e293b;
    min-height: 100vh;
    padding-top: 0;
    margin: 0;
}

/* ==================== DESKTOP HEADER ==================== */
.desktop-header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: auto;
    min-height: 70px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: #f2a83a;
}

.desktop-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 60px;
}

.nav-link {
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-login {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.btn-login:hover {
    border-color: #f2a83a;
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
}

.btn-register {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.3);
}

/* ==================== USER DROPDOWN ==================== */
.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    border: 1px solid rgba(242, 168, 58, 0.2);
}

.user-avatar:hover {
    background: rgba(242, 168, 58, 0.15);
    border-color: rgba(242, 168, 58, 0.4);
}

.user-avatar i:first-child {
    font-size: 1.2rem;
    color: #f2a83a;
}

.user-avatar span {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.user-avatar i:last-child {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.2s;
}

.user-avatar:hover i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    min-width: 240px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid rgba(242, 168, 58, 0.2);
    backdrop-filter: blur(10px);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(242, 168, 58, 0.15);
    color: #f2a83a;
    padding-left: 26px;
}

.dropdown-item i {
    width: 20px;
    color: #f2a83a;
    font-size: 1rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

.logout-item {
    color: #ef4444 !important;
}

.logout-item i {
    color: #ef4444 !important;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .user-dropdown {
        position: fixed;
        top: auto;
        bottom: 80px;
        right: 16px;
        left: auto;
        min-width: 220px;
        margin-top: 0;
        margin-bottom: 8px;
    }
    
    .user-dropdown.show {
        transform: translateY(0);
    }
}

/* ==================== MOBILE HEADER ==================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.2);
    padding: 12px 16px;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.mobile-logo .accent {
    color: #f2a83a;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn i {
    font-size: 1.2rem;
    color: white;
}

/* ==================== MOBILE SIDEBAR ==================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(242, 168, 58, 0.2);
}

.mobile-sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(242, 168, 58, 0.2);
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
}

.sidebar-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    letter-spacing: -0.5px;
}

.sidebar-logo .accent {
    color: #f2a83a;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.sidebar-menu {
    padding: 16px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border-radius: 12px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(242, 168, 58, 0.05);
}

.sidebar-link:hover {
    background: rgba(242, 168, 58, 0.1);
    color: #f2a83a;
    transform: translateX(5px);
    border-color: rgba(242, 168, 58, 0.2);
}

.sidebar-link:active {
    transform: scale(0.98);
}

.sidebar-link i {
    width: 24px;
    font-size: 1.1rem;
    color: #f2a83a;
    transition: transform 0.2s;
}

.sidebar-link:hover i {
    transform: scale(1.1);
}

.sidebar-link span {
    flex: 1;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(242, 168, 58, 0.15), rgba(229, 152, 43, 0.1));
    border-color: rgba(242, 168, 58, 0.3);
    color: #f2a83a;
}

.sidebar-link.active i {
    color: #f2a83a;
}

.sidebar-divider {
    margin: 16px 12px;
    border-top: 1px solid rgba(242, 168, 58, 0.15);
}

.sidebar-link.login-link {
    margin-top: 8px;
}

.sidebar-link.login-link i {
    color: #f2a83a;
}

.sidebar-link.register-link {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
    margin-top: 8px;
    border: none;
}

.sidebar-link.register-link i {
    color: #1f2a44;
}

.sidebar-link.register-link:hover {
    background: linear-gradient(135deg, #f5b84a, #e8a32e);
    transform: translateX(5px);
    color: #1f2a44;
}

.sidebar-link.register-link:hover i {
    color: #1f2a44;
}

.sidebar-user-info {
    padding: 20px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
    margin-bottom: 16px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(242, 168, 58, 0.3);
}

.sidebar-avatar i {
    font-size: 1.8rem;
    color: white;
}

.sidebar-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.sidebar-user-email {
    font-size: 0.7rem;
    color: #94a3b8;
    word-break: break-all;
}

.mobile-sidebar::-webkit-scrollbar {
    width: 4px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #f2a83a;
    border-radius: 10px;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}


.predictions-page {
    width: 100%;
    display: block;
    position: relative;
    z-index: 0;
}

.predictions-page.hide {
    display: none;
}

/* ==================== PILLS ==================== */
.pills-container {
    margin-bottom: 20px;
    padding: 10px 0;
}

.pills-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 4px 12px;
}

.pill {
    padding: 10px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill:hover {
    border-color: #f2a83a;
    color: #f2a83a;
    transform: translateY(-2px);
    background: #fef9f0;
}

.pill.active {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border-color: #f2a83a;
    color: white;
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.25);
}

/* ==================== GAMES CONTAINER ==================== */
.games-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.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.5rem;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 5px;
}

.selected-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-tabs {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    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: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
}

.date-tab.active {
    background: #1f2a44;
    color: white;
}

.calendar-wrapper {
    position: relative;
}

.games-list {
    min-height: 300px;
    width: 100%;
}

/* ==================== DESKTOP GAME ITEMS ==================== */
.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.game-time {
    min-width: 80px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

.game-match {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    margin: 0 20px;
}

.game-prediction {
    padding: 6px 18px;
    background: #f2a83a;
    color: #0f172a;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.game-prediction.won {
    background: #10b981 !important;
    color: white !important;
}

.game-prediction.lost {
    background: #ef4444 !important;
    color: white !important;
}

/* ==================== ODDS GROUPS ==================== */
.odds-groups {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px;
}

.odds-group {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    width: 100%;
}

.odds-header {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.slip-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.slip-status.won {
    background: #d1fae5;
    color: #059669;
}

.slip-status.lost {
    background: #fee2e2;
    color: #dc2626;
}

.slip-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.odds-games {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ==================== DESKTOP ODDS GAME ROW ==================== */
.odds-game-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.odds-game-row:last-child {
    border-bottom: none;
}

.odds-game-time {
    min-width: 70px;
    width: 70px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    font-family: monospace;
}

.odds-game-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    margin: 0 20px;
    text-align: left;
}

.odds-game-tip {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.odds-game-tip.won {
    background: #10b981;
    color: white;
}

.odds-game-tip.lost {
    background: #ef4444;
    color: white;
}

.odds-game-tip.pending {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* ==================== LOADING & EMPTY STATES ==================== */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
    color: #f2a83a;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-data-message {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.no-data-message i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #f2a83a;
}

/* ==================== STATUS MESSAGE CARD ==================== */
.status-message-card {
    max-width: 500px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    color: white;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2a44;
    margin-bottom: 12px;
}

.status-message {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.status-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.status-btn.primary {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.status-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* ==================== 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;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@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;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
}

.calendar-modal-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.calendar-modal-header h3 i {
    color: #f2a83a;
    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%;
    transition: all 0.2s;
}

.calendar-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-modal-nav-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s;
}

.calendar-modal-nav-btn:hover {
    background: #fef9f0;
    color: #f2a83a;
}

#calendarModalMonthYear {
    font-weight: 700;
    color: #1f2a44;
    font-size: 1rem;
}

.calendar-modal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-modal-weekdays span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.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: #fef9f0;
    color: #f2a83a;
    transform: scale(1.05);
}

.calendar-modal-day.empty {
    visibility: hidden;
    cursor: default;
}

.calendar-modal-day.selected {
    background: #f2a83a;
    color: #1f2a44;
    font-weight: 700;
}

.calendar-modal-day.today {
    border: 2px solid #f2a83a;
    font-weight: 700;
}

.calendar-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.calendar-modal-today,
.calendar-modal-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.calendar-modal-today {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.calendar-modal-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.3);
}

.calendar-modal-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* ==================== ACCOUNT BOTTOM SHEET ==================== */
.account-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
    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(242, 168, 58, 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, #1f2a44, #2d3a5e);
    border-radius: 32px 32px 0 0;
    border-bottom: 1px solid rgba(242, 168, 58, 0.3);
}

.account-sheet-header h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.account-sheet-header h3 i {
    color: #f2a83a;
    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;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-sheet-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.account-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.account-sheet-content::-webkit-scrollbar {
    width: 4px;
}

.account-sheet-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.account-sheet-content::-webkit-scrollbar-thumb {
    background: #f2a83a;
    border-radius: 10px;
}

.profile-section {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #1a1f2e, #151a28);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(242, 168, 58, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.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;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.85rem;
    color: #94a3b8;
    word-break: break-all;
}

.menu-items {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: #0f1419;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #151a28;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 14px;
    margin-bottom: 6px;
    border: 1px solid rgba(242, 168, 58, 0.08);
}

.menu-item:hover {
    background: linear-gradient(135deg, #1a2035, #151a28);
    transform: translateX(4px);
    border-color: rgba(242, 168, 58, 0.2);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item i:first-child {
    width: 24px;
    font-size: 1.1rem;
    color: #f2a83a;
    transition: transform 0.2s;
}

.menu-item:hover i:first-child {
    transform: scale(1.1);
}

.menu-item span {
    flex: 1;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.menu-item .arrow {
    color: #4a5568;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.menu-item:hover .arrow {
    color: #f2a83a;
    transform: translateX(3px);
}

.logout-item {
    margin-top: 12px;
    border-top: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
}

.logout-item i:first-child {
    color: #ef4444;
}

.logout-item span {
    color: #ef4444;
}

.logout-item:hover {
    background: linear-gradient(135deg, #2a1a1a, #201515);
    border-color: rgba(239, 68, 68, 0.3);
}

.auth-buttons-section {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
}

.welcome-message {
    margin-bottom: 32px;
}

.welcome-message i {
    font-size: 3.5rem;
    color: #f2a83a;
    margin-bottom: 16px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(242, 168, 58, 0.3));
}

.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;
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.btn-login-sheet {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 168, 58, 0.3);
}

.btn-login-sheet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 168, 58, 0.4);
}

.btn-register-sheet {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(242, 168, 58, 0.3);
    backdrop-filter: blur(10px);
}

.btn-register-sheet:hover {
    border-color: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
    color: #f2a83a;
    transform: translateY(-2px);
}

.loading-account {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
}

.loading-account i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
    color: #f2a83a;
}

/* ==================== MOBILE FOOTER ==================== */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1f2e, #0f1419);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(242, 168, 58, 0.2);
    padding: 8px 16px;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

.footer-nav-item,
a.footer-nav-item {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    flex: 1;
}

.footer-nav-item.active,
a.footer-nav-item.active {
    color: #f2a83a;
}

.footer-nav-item:hover,
a.footer-nav-item:hover {
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
}

a.footer-nav-item:focus {
    outline: none;
}

/* ==================== VIEW CONTAINERS ==================== */
[class*="-view-container"] {
    will-change: opacity;
    background: transparent;
}

.pricing-view-container,
.contact-view-container,
.auth-view-container {
    display: block;
    position: relative;
    z-index: 1;
}

/* Make sure predictions are hidden when other views load */
.contact-view-container ~ .predictions-page,
.predictions-page.hide {
    display: none;
}

/* Contact view container fixes */
.contact-view-container {
    margin-top: 0;
    padding-top: 0;
}

.contact-view-container .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Remove any embedded headers from contact page */
.contact-view-container header,
.contact-view-container .mobile-header,
.contact-view-container .desktop-header,
.contact-view-container nav:not(.contact-nav),
.contact-view-container .mobile-footer {
    display: none !important;
}

/* Override body styles when loaded dynamically */
.contact-view-container body,
.contact-view-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Error message styling */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 500px;
}

.error-message i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-message h3 {
    font-size: 24px;
    color: #1f2a44;
    margin-bottom: 12px;
}

.error-message p {
    color: #64748b;
    margin-bottom: 24px;
}

.error-message button {
    padding: 10px 24px;
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border: none;
    border-radius: 40px;
    color: #1f2a44;
    font-weight: 600;
    cursor: pointer;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .mobile-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* CRITICAL FIX: Add proper padding to main content for fixed header/footer */
    .main-content {
        padding: 0 12px;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        min-height: 100vh;
    }
    
    /* Fix for predictions page on mobile */
    .predictions-page {
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Fix for games container on mobile */
    .games-container {
        margin-top: 0;
        overflow-x: hidden;
        border-radius: 20px 20px 0 0;
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .date-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .date-tab {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    /* Fix for view containers on mobile */
    .contact-view-container,
    .pricing-view-container,
    .auth-view-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: calc(100vh - 160px);
    }
    
    .contact-view-container .contact-container {
        padding: 20px 16px !important;
        margin-top: 0;
    }
    
    .account-bottom-sheet {
        max-height: 80vh;
    }
    
    .menu-items {
        padding: 8px 12px;
    }
    
    .menu-item {
        padding: 12px 14px;
    }
    
    .profile-section {
        padding: 24px 20px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-avatar i {
        font-size: 2rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .account-sheet-header {
        padding: 16px 20px;
    }
    
    .account-sheet-header h3 {
        font-size: 1rem;
    }
    
    .account-sheet-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    @media (max-width: 768px) {
    /* MOBILE GAME DISPLAY FIXES - Stacked teams layout */
    .game-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    
    .game-time {
        flex-shrink: 0 !important;
        min-width: 60px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        font-family: monospace !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        margin-right: 1px !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: #1e293b !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .game-match:first-child {
        font-weight: 600 !important;
        color: #0f172a !important;
    }
    
    .game-prediction {
        flex-shrink: 0 !important;
        padding: 4px 12px !important;
        background: #f1f5f9 !important;
        color: #64748b !important;
        border-radius: 30px !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: nowrap !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Odds Game Rows - Mobile stacked teams layout */
    .odds-game-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;  /* Changed from flex-start to center */
        justify-content: space-between !important;
        padding: 12px 16px !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    
    .odds-game-time {
        flex-shrink: 0 !important;
        min-width: 55px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        color: #64748b !important;
        font-family: monospace !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
         margin-left: -16px !important;  /* Space before time */
    }
    
    .odds-game-teams {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    
    .odds-game-name {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: #1e293b !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-word !important;
        margin: 0 !important;
    }
    
    .odds-game-name.away {
        font-weight: 400 !important;
        color: #1e293b !important;
        font-weight: 500 !important;
    }
    
    .odds-game-tip {
        flex-shrink: 0 !important;
        padding: 4px 12px !important;
        border-radius: 30px !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        white-space: nowrap !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}

/* iPad and Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .account-bottom-sheet {
        max-width: 500px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 32px 32px 0 0;
    }
    
    .account-bottom-sheet.open {
        transform: translateX(-50%) translateY(0);
    }
    
    .main-content {
        padding-top: 30px;
    }
}
/* Subscription view container fixes */
.subscription-view-container {
    width: 100%;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
    margin: 0;
    padding: 0;
}

.subscription-view-container .subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Remove any embedded headers from subscription page */
.subscription-view-container header,
.subscription-view-container .mobile-header,
.subscription-view-container .desktop-header,
.subscription-view-container .back-nav,
.subscription-view-container .mobile-subscription-header,
.subscription-view-container nav:not(.subscription-nav),
.subscription-view-container .mobile-footer {
    display: none !important;
}

/* Override body styles when loaded dynamically */
.subscription-view-container body,
.subscription-view-container {
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
}

/* Mobile adjustments for subscription view */
@media (max-width: 768px) {
    .subscription-view-container {
        min-height: calc(100vh - 160px);
        padding: 0 !important;
    }
    
    .subscription-view-container .subscription-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure proper spacing for subscription content on mobile */
    .subscription-view-container .subscription-container > *:not(.mobile-subscription-header) {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .subscription-view-container .main-tabs {
        margin: 20px 16px !important;
        width: calc(100% - 32px) !important;
    }
    
    .subscription-view-container .subscription-history-section,
    .subscription-view-container .payment-history-section,
    .subscription-view-container .upgrade-banner {
        margin: 0 16px 20px 16px !important;
        width: calc(100% - 32px) !important;
    }
}

/* Fix for view containers to maintain proper height */
.account-view-container,
.settings-view-container,
.subscription-view-container,
.contact-view-container,
.pricing-view-container,
.auth-view-container {
    width: 100%;
    min-height: calc(100vh - 80px);
    background: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .main-content {
        min-height: calc(100vh - 160px);
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .account-view-container,
    .settings-view-container,
    .subscription-view-container,
    .contact-view-container,
    .pricing-view-container,
    .auth-view-container {
        min-height: calc(100vh - 160px);
    }
}

/* Ensure settings page doesn't cause header to stretch */
.account-view-container .settings-app,
.settings-view-container .settings-app {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    min-height: auto;
    height: auto;
}

/* Fix the wrapper to not overflow */
.account-view-container .settings-wrapper,
.settings-view-container .settings-wrapper {
    display: flex;
    min-height: auto;
    height: auto;
}

/* Ensure desktop content has proper height */
.account-view-container .desktop-content,
.settings-view-container .desktop-content {
    min-height: auto;
    height: auto;
}

/* Remove any embedded headers from settings page */
.account-view-container .mobile-header,
.account-view-container .desktop-header,
.settings-view-container .mobile-header,
.settings-view-container .desktop-header {
    display: none !important;
}

/* Override body styles when loaded dynamically */
.account-view-container body,
.settings-view-container body {
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
}

/* Mobile adjustments for settings view */
@media (max-width: 768px) {
    .account-view-container,
    .settings-view-container {
        min-height: calc(100vh - 160px);
        padding: 0 !important;
    }
    
    .account-view-container .settings-wrapper,
    .settings-view-container .settings-wrapper {
        display: block !important;
        padding: 20px 16px !important;
        min-height: auto;
    }
}

/* Fix main content to not cause header stretching */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}

/* Ensure desktop header stays fixed height */
.desktop-header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: auto;
    min-height: 70px;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
/* ==================== MOBILE FULL WIDTH FIXES ==================== */
/* Ensure body and main content take full width on mobile */
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
        overflow-x: hidden;
    }
    
    /* Make predictions page full width */
    .predictions-page {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Make games container full width */
    .games-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        overflow-x: hidden;
        border-radius: 28px 28px 0 0;
    }
    
    /* Make pills container full width - WRAP instead of scroll */
    .pills-container {
        width: 100%;
        padding: 10px 12px;
        margin: 0;
        overflow-x: visible;
    }
    
    .pills-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 4px 12px;
        overflow-x: visible;
    }
    
    .pill {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    /* Make games header full width */
    .games-header {
        width: 100%;
        padding: 16px;
        margin: 0;
    }
    
    /* Make games list full width */
    .games-list {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Game items full width */
    .game-item,
    .odds-group,
    .odds-game-row {
        width: 100%;
    }
    
    /* Status message card full width on mobile */
    .status-message-card {
        width: calc(100% - 32px);
        max-width: none;
        margin: 20px 16px;
    }
}
/* ==================== LOADER STYLES ==================== */
.loader-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
}

.loader-centered .loader-text {
    margin-top: 16px;
    color: #64748b;
    font-size: 0.85rem;
}

/* Full page loader overlay */
.full-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
    gap: 16px;
}

.full-page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}