/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    background: #f8fafc;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Mobile Top Navigation */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 0.5rem 1rem;
    display: none;
}

@media (max-width: 768px) {
    .top-menu {
        display: block !important;
        position: fixed !important;
        width: 100% !important;
    }
}

.top-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.top-menu-logo img {
    width: 30px;
    height: 30px;
}

.top-menu-title {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.top-menu-items {
    display: flex;
    justify-content: space-around;
    padding-top: 0.25rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem;
    transition: all 0.2s;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.nav-item.active {
    color: #34d399;
}

/* Search Modal & Modals */
.search-modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.search-modal.active {
    display: flex !important;
}

.search-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.team-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.team-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Floating Action Buttons */
.mobile-search-actions {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

@media (min-width: 769px) {
    .mobile-search-actions {
        display: none;
    }
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.floating-btn i {
    width: 24px;
    height: 24px;
}

.splash-logo-container {
    position: relative;
    margin-bottom: 2rem;
    animation: splash-entrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.splash-logo {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(8, 145, 178, 0.4));
    transition: transform 0.5s ease-out;
}

.splash-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.15) 0%, transparent 70%);
    animation: splash-pulse 2s infinite ease-in-out;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: splash-text-up 0.8s 0.4s forwards;
    letter-spacing: -1px;
}

@keyframes splash-entrance {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes splash-text-up {
    to { transform: translateY(0); opacity: 1; }
}

.splash-loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    margin-top: 1.5rem;
    overflow: hidden;
    position: relative;
}

.splash-loader-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0891b2, #059669);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.5);
    animation: splash-progress 4s linear forwards;
}

@keyframes splash-progress {
    to { width: 100%; }
}

/* Base variables */
:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
    --brand-primary: #0891b2; /* Cyan 600 */
    --brand-secondary: #059669; /* Green 600 */
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.match-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

/* Unified Header */
.commercial-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.business-menu {
    display: flex;
    gap: 2.5rem;
    transition: all 0.3s ease;
}

.nav-link {
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--brand-primary);
}

/* Discreet Footer */
.discreet-footer {
    padding: 4rem 0;
    margin-top: 5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

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

.responsible-gaming {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* MSI Indicators In Light Mode */
.msi-indicator-v2 {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

.msi-value-v2 {
    color: var(--brand-secondary) !important;
}

/* Specific Badge colors for Light Mode */
.badge-status-v2.status-live {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.badge-status-v2.status-finished {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
}

/* Filter Summary Bar */
#filter-summary-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.2);
}