/**
 * Navigation & Layout Styles
 *
 * Core layout, navigation, and landing page styles.
 */

/* =====================================================================
   SITE HEADER
   ===================================================================== */

.site-header {
    padding: 20px 20px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-logo {
    text-align: center;
    padding: 0 0 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.site-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo-link {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.85;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.header h1 {
    font-size: 1.8rem;
}

.header-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 0;
}

/* =====================================================================
   PAGE CONTENT AREA
   ===================================================================== */

.page-content-area {
    padding: 20px 0 60px;
    position: relative;
}

/* =====================================================================
   PAGE CONTAINERS - Show/Hide Pages
   ===================================================================== */

.page-container {
    display: none;
    padding: 0 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.page-container.active {
    display: block;
}

/* =====================================================================
   MOBILE NAVIGATION
   ===================================================================== */

.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.2s;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 150;
}

.mobile-nav-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.mobile-nav-menu {
    background: var(--bg-card);
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.mobile-nav-logo {
    height: 40px;
    width: auto;
}

.mobile-nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255,255,255,0.08);
}

.mobile-nav-footer {
    margin-top: auto;
}

/* Show hamburger, hide desktop nav on mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-tabs {
        display: none !important;
    }

    .header-user-area {
        display: none !important;
    }

    /* Hide the empty nav row so it doesn't add phantom bottom padding */
    .header {
        display: none;
    }

    /* Center logo row and align vertically with hamburger button (top: 20px + ~17px half-height = 37px center) */
    .site-header {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 74px;
        padding: 0 20px;
    }

    .header-logo {
        padding: 0;
    }

    .site-logo {
        margin-right: 0;
    }

    .page-container {
        padding: 0 12px;
    }
}

/* =====================================================================
   NAVIGATION TABS
   ===================================================================== */

.nav-tabs {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
}

.nav-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nav-tab:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-tab.active {
    background: var(--accent);
    color: white;
}

/* Responsive nav labels - show short labels on medium screens */
.nav-label-short {
    display: none;
}

@media (max-width: 900px) {
    .nav-label-full {
        display: none;
    }
    .nav-label-short {
        display: inline;
    }
}

/* =====================================================================
   SIDEBAR
   ===================================================================== */

.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-right: 35px;
}

.sidebar-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.sidebar-close:hover {
    color: var(--accent);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* =====================================================================
   FILTER SECTION (Sidebar)
   ===================================================================== */

.filter-section {
    margin-bottom: 20px;
}

.filter-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.filter-option:hover {
    background: rgba(233, 69, 96, 0.1);
}

.filter-option input {
    accent-color: var(--accent);
}

.filter-option.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.filter-dropdown {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--accent);
}

/* =====================================================================
   ACTIVE FILTERS DISPLAY
   ===================================================================== */

.active-filters-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}

.active-filters-display:empty {
    display: none;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--accent);
}

.filter-tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
}

.filter-tag-remove:hover {
    color: var(--accent);
}

/* =====================================================================
   ADMIN-ONLY ELEMENTS
   ===================================================================== */

.admin-only {
    display: none !important;
}

body.admin-mode .admin-only {
    display: flex !important;
}

body.admin-mode .admin-only.add-btn {
    display: inline-block !important;
}

.add-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.add-btn:hover {
    background: var(--accent-hover);
}

/* =====================================================================
   LANDING PAGE
   ===================================================================== */

.landing-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.landing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.landing-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.landing-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* =====================================================================
   APP TILES GRID - iOS-style Navigation
   ===================================================================== */

.app-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.app-tile {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    position: relative;
}

.app-tile:hover {
    transform: translateY(-4px);
}

.app-tile:active {
    transform: scale(0.96);
}

.app-tile:focus {
    outline: none;
}

.app-tile:focus-visible .app-tile-icon {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* App Icon Container */
.app-tile-icon {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #252540 0%, #1a1a2e 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Color splash overlay */
.app-tile-icon::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 80%;
    height: 80%;
    pointer-events: none;
    filter: blur(20px);
    transition: all 0.3s ease;
}

.app-tile:hover .app-tile-icon::before {
    width: 100%;
    height: 100%;
    bottom: -10%;
    right: -10%;
    filter: blur(25px);
}

.app-tile-icon svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    position: relative;
    stroke-width: 1.75;
}

.app-tile:hover .app-tile-icon {
    transform: scale(1.05);
}

.app-tile-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0;
    letter-spacing: -0.01em;
    position: relative;
}

.app-tile-desc {
    display: none;
}

/* Color Variants */
.app-tile--learn .app-tile-icon { color: #60A5FA; }
.app-tile--learn .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(59, 130, 246, 0.5) 100%);
}

.app-tile--hands .app-tile-icon { color: #FBBF24; }
.app-tile--hands .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(251, 191, 36, 0.45) 100%);
}

.app-tile--odds .app-tile-icon { color: #A78BFA; }
.app-tile--odds .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(167, 139, 250, 0.5) 100%);
}

.app-tile--ranges .app-tile-icon { color: #F472B6; }
.app-tile--ranges .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(244, 114, 182, 0.5) 100%);
}

.app-tile--bankroll .app-tile-icon { color: #34D399; }
.app-tile--bankroll .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(52, 211, 153, 0.45) 100%);
}

.app-tile--terms .app-tile-icon { color: #22D3EE; }
.app-tile--terms .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(34, 211, 238, 0.45) 100%);
}

.app-tile--clock .app-tile-icon { color: #FB7185; }
.app-tile--clock .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(251, 113, 133, 0.45) 100%);
}

/* Coming Soon Tiles */
.app-tile--coming-soon {
    cursor: default;
    opacity: 0.55;
}

.app-tile--coming-soon:hover {
    transform: none;
}

.app-tile--coming-soon:active {
    transform: none;
}

.app-tile--coming-soon .app-tile-icon {
    color: #64748B;
}

.app-tile--coming-soon .app-tile-icon::before {
    background: linear-gradient(135deg, transparent 30%, rgba(100, 116, 139, 0.25) 100%);
}

.app-tile--coming-soon:hover .app-tile-icon {
    transform: none;
}

.app-tile--coming-soon:hover .app-tile-icon::before {
    width: 70%;
    height: 70%;
    bottom: -20%;
    right: -20%;
}

.coming-soon-badge {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

/* =====================================================================
   MOBILE RESPONSIVE
   ===================================================================== */

/* App tiles - Mobile (2 columns) */
@media (max-width: 700px) {
    .app-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .app-tile-icon {
        max-width: none;
        width: 100%;
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
        gap: 0.75rem;
    }

    .app-tile-icon svg {
        width: 48px;
        height: 48px;
    }

    .app-tile-label {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .coming-soon-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet breakpoint */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }

    .sidebar.open {
        transform: translateX(0);
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .site-header {
        padding: 0 12px;
    }

    .page-content-area {
        padding: 12px 12px 20px;
    }

    .header-logo {
        padding: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .site-logo {
        height: 36px;
        margin-right: 0;
    }

    .header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding-bottom: 12px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .header-buttons {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        order: 3;
        width: 100%;
        margin-top: 4px;
        justify-content: center;
    }

    .nav-tabs {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    .filters-toggle, .add-btn, .quiz-toggle {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Mobile small */
@media (max-width: 400px) {
    .app-tiles-grid {
        gap: 1rem;
    }

    .app-tile-icon {
        padding: 1rem 0.75rem;
        border-radius: 1rem;
        gap: 0.625rem;
    }

    .app-tile-icon svg {
        width: 36px;
        height: 36px;
    }

    .app-tile-label {
        font-size: 0.95rem;
    }
}

/* =====================================================================
   GLOBAL FOOTER
   ===================================================================== */

.global-footer {
    margin-top: auto;
    padding: 40px 20px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--text);
}

.footer-link.accent {
    color: var(--accent);
}

.footer-link.accent:hover {
    color: var(--accent-hover);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-report-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    transition: border-color 0.2s, color 0.2s;
}

.footer-report-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--text);
}

.mobile-nav-report-btn {
    display: block;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.2s, color 0.2s;
}

.mobile-nav-report-btn:hover {
    border-color: rgba(255,255,255,0.4);
    color: var(--text);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =====================================================================
   PAGE TITLE STYLES (common across pages)
   ===================================================================== */

.odds-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.odds-page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 24px;
}

/* =====================================================================
   AUTH BUTTONS & USER AREA
   ===================================================================== */

.btn-signin {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--accent);
    color: white;
}

.header-user-area {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.user-profile-btn:hover {
    background: rgba(255,255,255,0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-name {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.user-dropdown-arrow {
    color: var(--text-muted);
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 0.75rem;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active,
.user-dropdown.open {
    display: block;
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.user-email-unverified {
    font-size: 0.6875rem;
    color: #f59e0b;
    margin-top: 0.25rem;
}

.user-dropdown-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 1rem;
    text-transform: uppercase;
    line-height: 1;
}

.user-dropdown-tier.free {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.user-dropdown-tier.pro {
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: white;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

.user-dropdown-item.upgrade {
    color: var(--accent);
}

.user-dropdown-item.logout {
    color: #f87171;
}

.user-dropdown-item.danger {
    color: var(--accent);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* =====================================================================
   SPINNER / LOADING
   ===================================================================== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

/* =====================================================================
   ADDITIONAL NAVIGATION & LAYOUT STYLES
   ===================================================================== */

.filter-section-divider {
    border-top: 1px solid var(--border);
    margin: 15px 0;
}

.clear-filters {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: var(--accent);
    color: white;
}

.main {
    flex: 1;
    overflow-y: auto;
}

.active-filter-clear {
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 4px;
    text-decoration: underline;
    transition: color 0.2s;
}

.active-filter-clear:hover {
    color: var(--accent);
}

.btn-icon-danger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background: rgba(244, 67, 54, 0.15);
    border-color: #f44336;
    color: #f44336;
}

.filters-toggle {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.filters-toggle:hover {
    border-color: var(--text);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translate(0, 6px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translate(0, -6px) rotate(-45deg);
}

.mobile-nav-overlay.active .mobile-nav-menu {
    transform: translateX(0);
}

.mobile-nav-item.active {
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1rem;
}

.mobile-nav-auth {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-auth .btn-signin {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.mobile-nav-user {
    padding: 0.875rem 0.75rem 0.5rem;
    border-top: 1px solid var(--border);
}

.mobile-nav-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mobile-nav-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav-user-info {
    flex: 1;
}

.mobile-nav-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.mobile-nav-user-name .user-dropdown-tier {
    margin-top: 0;
    flex-shrink: 0;
}

.mobile-nav-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.mobile-nav-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-nav-user-btn:hover {
    color: var(--text);
    opacity: 0.8;
}

.mobile-nav-user-btn.upgrade {
    color: var(--accent);
}

.mobile-nav-user-btn.logout {
    color: #ef4444;
}

.page-actions {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    padding: 16px;
}

.confirm-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: var(--bg-sidebar);
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 24px;
    text-align: center;
}

.confirm-modal-message {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-modal-btn.cancel {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.confirm-modal-btn.cancel:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.confirm-modal-btn.confirm {
    background: var(--accent);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    background: var(--accent-hover);
}

@media (max-width: 480px) {
    .confirm-modal {
        max-width: 100%;
        margin: 8px;
        padding: 20px;
    }
    .confirm-modal-buttons {
        flex-direction: column;
    }
    .confirm-modal-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .result-cell.hero-result,
    .result-cell.villain-result {
        flex: 1;
    }
    .modal-content h2 {
        font-size: 1.2rem;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    .hand-actions button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

.clickable-stat::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s;
    pointer-events: none;
}

.filter-badge {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.filter-add-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-add-row input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .filter-toggle-arrow {
        font-size: 0.6rem;
        transition: transform 0.2s;
        color: var(--text-muted);
    }
    .desktop-only-filter {
        display: none !important;
    }
}

.footer-legal .footer-link {
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-legal .footer-link:hover {
    opacity: 1;
}


input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}
