:root {
    /* ЦВЕТОВА ПАЛИТРА */
    --betano-bg: #171e24;
    --betano-panel: #232b32;
    --betano-header: #2b323b;
    --betano-orange: #ff4b1f;
    --betano-orange-hover: #ff6842;
    --betano-text: #ffffff;
    --betano-text-muted: #b6c1ce;
    --betano-border: #36414b;
    --danger: #e74c3c;
    --success: #2ecc71;
    --gold: #f1c40f;
    
    /* РАНГОВЕ */
    --rank-newbie: #bdc3c7;
    --rank-player: #3498db;
    --rank-beginner: #2980b9;
    --rank-inter: #1abc9c;
    --rank-adv: #16a085;
    --rank-expert: #9b59b6;
    --rank-pro: #8e44ad;
    --rank-tipster: #e67e22;
    --rank-vip: #f1c40f;
    --rank-admin: #e74c3c;
}

/* СКРОЛБАР */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--betano-bg); }
::-webkit-scrollbar-thumb { background: var(--betano-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--betano-orange-hover); }

/* ОСНОВНИ */
body {
    background-color: var(--betano-bg);
    color: var(--betano-text);
    font-family: 'Roboto', sans-serif;
    margin: 0; padding: 0;
    padding-top: 80px; /* Място за хедъра */
    display: flex; flex-direction: column; min-height: 100vh;
    text-align: center;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button:active { transform: scale(0.95); }

/* SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, #232b32 25%, #2f3842 50%, #232b32 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* TOAST NOTIFICATIONS */
#toast-container { position: fixed; top: 90px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--betano-panel); color: white; padding: 15px 20px; border-radius: 8px;
    border-left: 5px solid var(--betano-orange); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease-out;
    min-width: 250px; text-align: left;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* NEWS */
.news-item {
    background: #1f2730; border-left: 3px solid var(--betano-orange);
    padding: 15px; margin-bottom: 10px; text-align: left; border-radius: 0 4px 4px 0;
    font-size: 0.9rem; color: #ddd;
}
.news-date { font-size: 0.75rem; color: #777; margin-bottom: 5px; display: block; }

/* РАНГОВЕ & BADGES */
.text-rank-newbie { color: var(--rank-newbie) !important; }
.text-rank-player { color: var(--rank-player) !important; }
.text-rank-beginner { color: var(--rank-beginner) !important; }
.text-rank-inter, .text-rank-intermediate { color: var(--rank-inter) !important; }
.text-rank-adv, .text-rank-advanced { color: var(--rank-adv) !important; }
.text-rank-expert { color: var(--rank-expert) !important; }
.text-rank-pro { color: var(--rank-pro) !important; }
.text-rank-tipster { color: var(--rank-tipster) !important; }
.text-rank-vip { color: var(--rank-vip) !important; text-shadow: 0 0 5px rgba(241, 196, 15, 0.5); }
.text-rank-admin { color: var(--rank-admin) !important; text-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }

.badge {
    padding: 3px 8px; border-radius: 4px; font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; display: inline-block; color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); vertical-align: middle;
}
.bg-newbie { background-color: var(--rank-newbie); }
.bg-player { background-color: var(--rank-player); }
.bg-beginner { background-color: var(--rank-beginner); }
.bg-inter, .bg-intermediate { background-color: var(--rank-inter); }
.bg-adv, .bg-advanced { background-color: var(--rank-adv); }
.bg-expert { background-color: var(--rank-expert); }
.bg-pro { background-color: var(--rank-pro); }
.bg-tipster { background-color: var(--rank-tipster); }
.bg-vip { background-color: var(--rank-vip); color: #000; text-shadow: none; }
.bg-admin { background-color: var(--rank-admin); }

/* HEADER */
.betano-header {
    background-color: var(--betano-header);
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 60px; }
.brand-logo { font-weight: 900; font-size: 1.5rem; letter-spacing: 1px; color: white; font-style: italic; display: flex; align-items: center; gap: 10px; }
/* BETA TAG STYLE */
.beta-tag {
    font-size: 0.7rem; background: var(--danger); color: white; padding: 2px 6px; 
    border-radius: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 0;
    vertical-align: middle;
}

.btn-login {
    background: transparent; border: 1px solid white; color: white; padding: 6px 15px;
    border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.btn-login:hover { background: rgba(255,255,255,0.1); }
.user-balance-fake {
    display: flex; align-items: center; gap: 8px; background: #1f2730;
    padding: 5px 10px; border-radius: 20px; cursor: pointer; border: 1px solid #444;
}

/* Nav */
.nav-scroller { background: #323b44; overflow-x: auto; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.1); }
.nav-scroller::-webkit-scrollbar { display: none; }
.desktop-nav { text-align: center; width: 100%; display: inline-block; }
.desktop-nav a.nav-item {
    display: inline-block; padding: 12px 20px; color: var(--betano-text-muted);
    text-decoration: none; font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
    border-bottom: 3px solid transparent; cursor: pointer; transition: color 0.2s;
}
.desktop-nav a.nav-item:hover { color: white; }
.desktop-nav a.nav-item.active { color: white; border-bottom-color: var(--betano-orange); }

/* LAYOUT & HERO */
.main-layout { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; text-align: center; }
section { margin-top: 20px; padding-top: 10px; }

.hero-banner {
    background: linear-gradient(90deg, #1f2730 0%, #171e24 100%);
    border-radius: 8px; padding: 30px; margin-bottom: 20px;
    border: 1px solid var(--betano-border); display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden; 
    flex-direction: column; text-align: center;
}
.hero-content { z-index: 2; text-align: center; width: 100%; }
.hero-content h1 { margin: 0; font-size: 2rem; font-style: italic; line-height: 1.2; }
.text-orange { color: var(--betano-orange); }
.btn-hero {
    background: var(--betano-orange); color: white; border: none; padding: 10px 25px;
    font-weight: bold; border-radius: 4px; margin-top: 15px; cursor: pointer; transition: background 0.2s; display: inline-block;
}
.btn-hero:hover { background: var(--betano-orange-hover); }
.hero-image i { font-size: 6rem; opacity: 0.1; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

/* INFO BAR (User stats in game) */
.user-info-bar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; 
    background: #1a1a1a; padding: 10px; border-radius: 4px; border: 1px solid #333;
    font-size: 0.9rem; color: #ddd; margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-left: 4px solid var(--gold);
}
.user-info-item { padding: 0 5px; }
.ui-val-green { color: var(--success); font-weight: bold; }
.ui-val-blue { color: #3498db; font-weight: bold; }
.ui-val-red { color: var(--danger); font-weight: bold; }
.ui-val-gold { color: var(--gold); font-weight: bold; }

/* GAME CARDS (GRID) */
#active-matches-container, #vip-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}
.game-card {
    width: 100%; margin-bottom: 0; display: flex; flex-direction: column; justify-content: space-between;
    min-height: 250px; background: #2f3842; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--betano-border);
}
.vip-card { border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(241,196,15,0.2); }

.game-header { background: #232b32; padding: 8px; font-size: 0.8rem; color: #aaa; text-align: center; }
.pitch-visual { padding: 15px; background: radial-gradient(circle, #2c3e50 0%, #232b32 100%); flex-grow: 1; display:flex; flex-direction:column; justify-content:center;}

.teams-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; width: 100%; }
.team-column { display: flex; flex-direction: column; align-items: center; width: 40%; text-align: center; }
.team-logo { width: 50px; height: 50px; object-fit: contain; margin-bottom: 5px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.team-name { font-size: 0.9rem; font-weight: bold; line-height: 1.2; }
.vs-badge { font-size: 1.2rem; color: var(--betano-orange); font-style: italic; font-weight: 900; margin-top: 15px; }

.score-controls { display: flex; justify-content: center; gap: 5px; align-items: center; }
.ctrl-group { background: #151a21; border: 1px solid #333; padding: 3px; border-radius: 4px; display: flex; }
.score-btn { background: #36414b; border: none; color: white; width: 25px; height: 25px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.score-display { width: 30px; text-align: center; font-weight: bold; }
.game-footer { padding: 10px; background: #232b32; margin-top: auto; text-align: center; }
.submit-game-btn { width: 100%; background: var(--betano-orange); border: none; padding: 10px; color: white; font-weight: bold; border-radius: 4px; cursor: pointer; }
.submit-game-btn:disabled { background: #555; }

/* MODALS */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.modal.hidden { display: none !important; }
.modal-content { background: var(--betano-panel); width: 90%; max-width: 400px; border-radius: 8px; padding: 25px; border: 1px solid var(--betano-border); position: relative; text-align: center; }
.profile-content { padding: 0; overflow: hidden; }

/* FORMS */
.input-group { background: #151a21; border: 1px solid #444; margin-bottom: 15px; position: relative; border-radius: 4px; }
.auth-inp { width: 100%; background: transparent; border: none; padding: 22px 10px 6px; color: white; outline: none; box-sizing: border-box; font-size: 1rem; text-align: center; }
.input-group label { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: #777; font-size: 0.8rem; pointer-events: none; transition: 0.2s; }
.auth-inp:focus + label, .auth-inp:not(:placeholder-shown) + label { top: 4px; font-size: 0.65rem; color: var(--betano-orange); }
.action-btn { background: var(--betano-orange); color: white; border: none; width: 100%; padding: 14px; font-weight: bold; border-radius: 4px; cursor: pointer; }
.switch-auth { cursor: pointer; color: #aaa; text-align: center; }
.switch-auth span { color: var(--betano-orange); font-weight: bold; }
.close-modal, .close-modal-white { position: absolute; right: 15px; top: 10px; font-size: 1.8rem; cursor: pointer; z-index: 10; }
.close-modal { color: #777; } .close-modal-white { color: white; }

/* PROFILE SPECIFIC */
.profile-header-betano { background: #2f3842; padding: 30px 20px 20px; text-align: center; }
.user-avatar-placeholder { width: 60px; height: 60px; background: var(--betano-orange); border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.profile-stats-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--betano-border); }
.stat-box { padding: 15px; text-align: center; border-right: 1px solid var(--betano-border); }
.stat-box:last-child { border-right: none; }
.stat-value { font-size: 1.3rem; font-weight: 900; display: block; margin-top: 5px; }
.btn-logout { width: 100%; background: #c0392b; color: white; border: none; padding: 15px; font-weight: bold; cursor: pointer; margin-top: 10px; }

/* XP */
.xp-section { padding: 20px; text-align: center; }
.xp-bar-container { background: #111; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 5px; border: 1px solid #444; }
.xp-bar-fill { background: var(--betano-orange); height: 100%; width: 0%; transition: width 0.5s; }

/* TABLES (Centralized) */
.table-responsive { overflow-x: auto; width: 100%; }
.betano-table, .pro-table { width: 100%; border-collapse: collapse; background: var(--betano-panel); margin: 0 auto; max-width: 800px; }
.betano-table th, .betano-table td, .pro-table th, .pro-table td { padding: 12px; text-align: center; border-bottom: 1px solid var(--betano-border); }
.betano-table th { background: #2f3842; font-size: 0.8rem; color: #aaa; text-transform: uppercase; }
.locked-state { text-align: center; padding: 40px 20px; background: rgba(0,0,0,0.2); border: 1px dashed var(--betano-border); border-radius: 8px; }
.lock-icon-circle { width: 60px; height: 60px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 1.5rem; color: var(--betano-orange); }

/* MOBILE NAV */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--betano-header); border-top: 1px solid #444; display: flex; height: 60px; z-index: 1000; overflow-x: auto; justify-content: space-around; white-space: nowrap; }
.mobile-bottom-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .mobile-bottom-nav { display: none !important; } }
.btm-nav-item { flex: 0 0 auto; min-width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #888; text-decoration: none; font-size: 0.7rem; cursor: pointer; padding: 0 5px; }
.btm-nav-item.active { color: white; }
.btm-nav-item i { font-size: 1.2rem; margin-bottom: 4px; }

/* FOOTER */
footer { background-color: #12161a; border-top: 1px solid var(--betano-border); padding: 30px 20px; text-align: center; margin-top: 50px; }
@media(max-width: 900px) { footer { padding-bottom: 90px; } }
.social-links { margin-top: 15px; display: flex; gap: 20px; justify-content: center; }
.soc-btn { color: #b6c1ce; font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* SHOP & PACKAGES */
.packages-grid, .shop-grid { display: grid; gap: 15px; justify-content: center; }
.packages-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.shop-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.package-card, .shop-item { 
    background: linear-gradient(145deg, #232b32, #1f2730);
    border: 1px solid var(--betano-border); border-radius: 12px; padding: 20px; 
    text-align: center; position: relative; display: flex; flex-direction: column; 
    align-items: center; overflow: hidden; /* Важно за Ribbon */
    text-decoration: none;
}
.package-title { font-weight: bold; text-transform: uppercase; margin-bottom: 10px; font-size: 1.1rem; color:white; }
.package-price { font-size: 1.5rem; color: var(--betano-orange); font-weight: 900; margin-bottom: 10px; }
.package-btn { background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 6px; margin-top: auto; display: block; color: white; text-decoration: none; width: 80%; cursor: pointer; border:none; text-align: center;}
.package-btn:hover { background: var(--betano-orange); color: black; }

/* RIBBONS FIX */
.package-ribbon {
    position: absolute; top: 20px; right: -35px; background: var(--danger); color: white;
    font-weight: bold; font-size: 0.7rem; padding: 5px 40px; transform: rotate(45deg); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 2; text-transform: uppercase; width: 100px; pointer-events: none;
}
.ribbon-new { background: #3498db !important; }
.ribbon-best { background: var(--gold) !important; color: black !important; }

.shop-icon { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.coin-display { background: rgba(241, 196, 15, 0.1); color: var(--gold); padding: 5px 10px; border-radius: 15px; font-weight: bold; display: inline-flex; align-items: center; gap: 5px; }

/* CHAT */
#chat-container { height: 400px; display: flex; flex-direction: column; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; margin: 0 auto; max-width: 800px; }
#chat-messages { flex: 1; overflow-y: auto; padding: 10px; text-align: left; }
.chat-msg { margin-bottom: 8px; padding: 8px; background: #2a2a2a; border-radius: 4px; font-size: 0.9rem; }
.chat-msg b { color: var(--betano-orange); }

/* CHAT RANK COLORS */
.chat-user-newbie { color: var(--rank-newbie) !important; }
.chat-user-player { color: var(--rank-player) !important; }
.chat-user-beginner { color: var(--rank-beginner) !important; }
.chat-user-inter { color: var(--rank-inter) !important; }
.chat-user-adv { color: var(--rank-adv) !important; }
.chat-user-expert { color: var(--rank-expert) !important; }
.chat-user-pro { color: var(--rank-pro) !important; }
.chat-user-tipster { color: var(--rank-tipster) !important; }
.chat-user-vip { color: var(--rank-vip) !important; }
.chat-user-admin { color: var(--rank-admin) !important; }

.chat-input-area { display: flex; border-top: 1px solid #333; }
#chat-input { flex: 1; padding: 10px; background: #000; color: white; border: none; outline: none; }
#chat-send { background: var(--betano-orange); border: none; color: white; padding: 0 20px; cursor: pointer; }

/* HELPERS */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; } .mt-20 { margin-top: 20px; } .text-gold { color: gold; }
#prof-vip-status div { background: rgba(0,0,0,0.3); padding: 5px 10px; border-radius: 4px; margin-bottom: 5px; border: 1px solid #333; }

/* RULES LIST */
.rules-list { list-style: none; padding: 0; text-align: left; }
.rules-list li { margin-bottom: 15px; padding-left: 10px; border-left: 3px solid var(--betano-orange); }
.rules-list h3 { margin: 0 0 5px 0; font-size: 1rem; color: var(--betano-orange); }
.rules-list p { margin: 0; font-size: 0.9rem; color: #ccc; }


/* --- MODERNISED PROFILE (BOTTOM SHEET & SCROLL FIX) --- */

/* 1. Контейнерът на модала */
.profile-content-modern {
    background: #1f2730; /* Тъмен фон */
    width: 90%;
    max-width: 400px;
    max-height: 85vh; /* Никога не по-висок от 85% на екрана */
    border-radius: 12px;
    position: relative; /* За да позиционираме Х-а */
    display: flex;
    flex-direction: column; /* Вертикална подредба */
    overflow: hidden; /* Скриваме всичко, което излиза */
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    padding: 0 !important; /* Махаме старите падинги */
}

/* 2. Зоната за скролване (Вътрешността) */
.profile-scroll-area {
    overflow-y: auto; /* Скрол само тук! */
    flex: 1; /* Заема цялото свободно място */
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Гладък скрол за iOS */
}

/* 3. Фиксираният Х бутон */
.close-profile-fixed {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100; /* Най-отгоре */
    border: 1px solid #555;
    transition: 0.2s;
}
.close-profile-fixed:hover { background: #e74c3c; border-color: #e74c3c; }

/* 4. Компактни стилове (Сбиване на информацията) */
.prof-compact-header {
    background: linear-gradient(to bottom, #2c3e50, #1f2730);
    padding: 20px 10px 10px;
    text-align: center;
}
.compact-avatar {
    width: 50px; height: 50px; /* По-малък аватар */
    margin: 0 auto 5px;
    font-size: 1.2rem;
}
.compact-actions {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    background: #151a21;
}
.compact-btn {
    flex: 1; /* Бутоните взима по равно място */
    padding: 10px;
    font-size: 0.8rem;
    margin: 0 !important; /* Махаме старите разстояния */
}

/* 5. МОБИЛНА ВЕРСИЯ (Bottom Sheet ефект) */
@media (max-width: 600px) {
    /* Модалът се подравнява долу */
    .modal {
        align-items: flex-end !important; 
        padding-bottom: 0;
    }
    
    /* Контентът излиза отдолу */
    .profile-content-modern {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0; /* Заобляме само горе */
        border-bottom: none;
        max-height: 80vh; /* 80% от екрана на мобилен */
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}




/* Табове */
.game-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.game-tab {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.game-tab.active {
    background: #ff4b1f; /* Твоят оранжев цвят */
    color: white;
    border-color: #ff4b1f;
    box-shadow: 0 0 10px rgba(255, 75, 31, 0.4);
}

.game-tab:hover {
    filter: brightness(1.2);
}

/* Контроли за резултати */
.results-controls {
    text-align: center;
    margin-bottom: 20px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
}

.results-controls label {
    color: #eee;
    margin-right: 10px;
}

.results-controls input[type="date"] {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

/* Стил за крайния резултат в картата */
.final-score-badge {
    background: #111;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}
.final-score-val {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff88; /* Зелено за краен резултат */
    letter-spacing: 2px;
}


/* Добави най-отдолу в styles.css */

#results-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Уверяваме се, че картите вътре запълват клетката */
#results-list-container .game-card {
    width: 100%; 
    margin: 0 auto; 
}


/* Етикет за Boost в класирането */
.boost-badge {
    background-color: #ff0000; /* Ярко червено */
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.6); /* Червено сияние */
    display: inline-block;
    vertical-align: middle;
}



.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
    line-height: 1;
    border: 1px solid #121212;
    display: none;
    z-index: 100;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}


/* Ако екранът е по-малък от 768 пиксела (мобилен) */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}


.site-logo {
  font-size: 48px;
  font-weight: 800;
  color: #ff9f1a;
  position: relative;
}

.logo-letter {
  position: relative;
  display: inline-block;
}

.logo-letter::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -18px;
  width: 55px;
  height: 55px;
  background: url("/logos/santa-hat.png") no-repeat center;
  background-size: contain;
  transform: rotate(-18deg);
  pointer-events: none;
  opacity: 0.95;
}



/* TUTORIAL STYLES - IMPROVED FOR MOBILE */
.tutorial-btn {
    background: linear-gradient(135deg, #ff4b1f, #ff8a00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.4);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-height: 44px; /* За лесни докосвания на мобилни */
}

.tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 31, 0.5);
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* По-тъмен за по-добър контраст */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px); /* Леко размазване на фона */
}

.tutorial-content {
    position: absolute;
    background: rgba(35, 43, 50, 0.95); /* Полупрозрачност */
    border: 2px solid var(--betano-orange);
    border-radius: 12px;
    padding: 20px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    animation: tutorialSlideIn 0.3s ease-out;
    z-index: 10000;
    /* Гладък скрол за iOS */
    -webkit-overflow-scrolling: touch;
}

@keyframes tutorialSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tutorial-header h3 {
    margin: 0;
    color: var(--betano-orange);
    font-size: 1.3rem;
    font-weight: 700;
}

.tutorial-skip {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tutorial-skip:hover {
    background: rgba(255, 75, 31, 0.2);
    color: white;
}

.tutorial-body {
    margin-bottom: 20px;
    min-height: 80px; /* За постоянна височина */
}

.tutorial-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #f0f0f0; /* По-светъл текст */
    font-size: 1rem;
}

.tutorial-progress {
    text-align: center;
    color: var(--betano-orange);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-top: 10px;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.tutorial-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-height: 44px; /* За лесни докосвания */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tutorial-prev {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tutorial-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tutorial-next {
    background: var(--betano-orange);
    color: white;
    border: 1px solid var(--betano-orange);
}

.tutorial-prev:hover:not(:disabled),
.tutorial-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Highlight ефект за елементите от tutorial - ПО-ВИДИМ */
.tutorial-highlight {
    position: relative;
    z-index: 9998;
    animation: highlightPulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 0 4px var(--betano-orange), 
                0 0 0 6px rgba(255, 75, 31, 0.7),
                0 0 30px rgba(255, 75, 31, 0.8);
    border-radius: 6px !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--betano-orange), 
                    0 0 0 6px rgba(255, 75, 31, 0.7),
                    0 0 30px rgba(255, 75, 31, 0.8);
    }
    50% {
        box-shadow: 0 0 0 4px var(--betano-orange), 
                    0 0 0 8px rgba(255, 75, 31, 0.9),
                    0 0 40px rgba(255, 75, 31, 1);
    }
}

/* Стил за стрелка сочеща към елемента */
.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 9999;
}

/* МОБИЛНА ВЕРСИЯ */
@media (max-width: 768px) {
    .tutorial-content {
        max-width: 90%;
        width: 90%;
        padding: 15px;
        margin: 10px;
    }
    
    .tutorial-header h3 {
        font-size: 1.2rem;
    }
    
    .tutorial-body p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tutorial-footer button {
        padding: 14px 10px;
        font-size: 0.9rem;
    }
    
    /* По-силен highlight за мобилни */
    .tutorial-highlight {
        box-shadow: 0 0 0 3px var(--betano-orange), 
                    0 0 0 5px rgba(255, 75, 31, 0.8),
                    0 0 25px rgba(255, 75, 31, 0.9) !important;
    }
    
    @keyframes highlightPulse {
        0%, 100% {
            box-shadow: 0 0 0 3px var(--betano-orange), 
                        0 0 0 5px rgba(255, 75, 31, 0.8),
                        0 0 25px rgba(255, 75, 31, 0.9);
        }
        50% {
            box-shadow: 0 0 0 3px var(--betano-orange), 
                        0 0 0 7px rgba(255, 75, 31, 1),
                        0 0 35px rgba(255, 75, 31, 1);
        }
    }
}

/* Много малки екрани (iPhone SE и подобни) */
@media (max-width: 375px) {
    .tutorial-content {
        padding: 12px;
        margin: 5px;
    }
    
    .tutorial-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .tutorial-footer {
        flex-direction: column;
    }
    
    .tutorial-footer button {
        width: 100%;
    }
}

/* Добавяме в края на styles.css */

/* Анимация за пулсиращ ефект */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 75, 31, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 75, 31, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 75, 31, 0);
    }
}

/* Стил за tutorial таб бутона */
.game-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.game-tab {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.game-tab.active {
    background: #ff4b1f;
    color: white;
    border-color: #ff4b1f;
    box-shadow: 0 0 10px rgba(255, 75, 31, 0.4);
}

.game-tab:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Специален стил за tutorial таба */
#tab-tutorial {
    background: linear-gradient(135deg, #232b32, #2c3e50);
    border-color: #3498db;
}

#tab-tutorial:hover {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    border-color: #2980b9;
}

/* За мобилни устройства - по-компактно */
@media (max-width: 768px) {
    .game-tabs-container {
        gap: 8px;
        margin: 15px 0;
    }
    
    .game-tab {
        padding: 8px 15px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .game-tab i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-tabs-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-tab {
        width: 90%;
        max-width: 250px;
    }
}







/* --- SEASON 1 PAGE STYLES --- */

/* Hero Section Updates */
.season-hero-section .hero-banner {
    padding: 40px 20px;
    background: linear-gradient(135deg, #ff4b1f 0%, #a32a0b 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Countdown */
.countdown-container {
    background: rgba(0, 0, 0, 0.25);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}
.countdown-title {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.countdown-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    color: white;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}
.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}
.countdown-separator {
    font-size: 1.5rem;
    margin-top: 5px;
    opacity: 0.5;
}

/* Progress Bar */
.season-progress-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: bold;
}
.progress-bar {
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}
.progress-fill {
    height: 100%;
    background: #00ff88;
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.progress-dates {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* PODIUM (TOP 3) */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin: 40px 0;
    padding-bottom: 20px;
}
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border-radius: 12px 12px 0 0;
    padding: 15px;
    width: 100px;
    text-align: center;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}
.podium-place.gold {
    height: 180px;
    background: linear-gradient(to top, #d4af37, #f1c40f);
    border: 2px solid #ffd700;
    z-index: 2;
}
.podium-place.silver {
    height: 140px;
    background: linear-gradient(to top, #7f8c8d, #bdc3c7);
    border: 2px solid #ecf0f1;
}
.podium-place.bronze {
    height: 120px;
    background: linear-gradient(to top, #a0522d, #cd7f32);
    border: 2px solid #d2691e;
}
.podium-medal {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}
.podium-rank {
    font-weight: bold;
    color: rgba(0,0,0,0.6);
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
}
.podium-prize {
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

/* OTHER PRIZES GRID */
.other-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.prize-card {
    background: #232b32;
    border: 1px solid #36414b;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}
.prize-card:hover {
    transform: translateY(-3px);
    border-color: var(--betano-orange);
}
.prize-rank {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.prize-amount {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* SCORING RULES */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.scoring-card {
    background: #1f2730;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
}
.scoring-header {
    background: #2c3e50;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}
.scoring-header h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: white; }
.scoring-points { padding: 15px; }
.point-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.point-item:last-child { border: none; margin: 0; padding: 0; }
.point-type { color: #ccc; font-size: 0.9rem; }
.point-value { font-weight: bold; color: var(--success); }
.point-value.negative { color: var(--danger); }

/* VIP Card Highlight */
.vip-card { border: 1px solid gold; box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
.vip-card .scoring-header { background: linear-gradient(135deg, #000, #333); }
.vip-card h3 { color: gold; }

/* TIMELINE (Vertical) */
.timeline-container {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
    padding-left: 20px;
}
.timeline {
    border-left: 3px solid #333;
    margin-left: 20px;
    padding: 20px 0;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date {
    position: absolute;
    left: -120px;
    top: 0;
    width: 80px;
    text-align: right;
    color: var(--betano-orange);
    font-weight: bold;
    font-size: 0.9rem;
}
.timeline-dot {
    position: absolute;
    left: -26px; /* Adjust based on border width */
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #333;
    border: 3px solid #1a1a1a;
    box-shadow: 0 0 0 3px #333;
}
.gold-dot { background: gold; box-shadow: 0 0 10px gold; }
.orange-dot { background: var(--betano-orange); box-shadow: 0 0 10px var(--betano-orange); }
.green-dot { background: var(--success); box-shadow: 0 0 10px var(--success); }

.timeline-text h4 { margin: 0 0 5px 0; color: white; }
.timeline-text p { margin: 0; color: #aaa; font-size: 0.9rem; }

/* COINS INFO */
.coins-info {
    background: rgba(241, 196, 15, 0.05);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}
.coins-info h3 { color: gold; margin-top: 0; border-bottom: 1px solid rgba(241, 196, 15, 0.2); padding-bottom: 10px; }
.coins-content { display: flex; flex-wrap: wrap; gap: 20px; }
.coin-item { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 200px; }
.coin-icon { color: gold; font-size: 1.5rem; margin-top: 5px; }
.coin-text strong { color: white; display: block; margin-bottom: 3px; }
.coin-text p { margin: 0; color: #ccc; font-size: 0.9rem; }

/* MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
    .podium-container {
        align-items: center;
        gap: 10px;
    }
    .podium-place { width: 30%; padding: 10px 5px; }
    .podium-medal { font-size: 1.8rem; }
    .podium-prize { font-size: 1rem; }
    
    .timeline { margin-left: 10px; }
    .timeline-date {
        position: relative;
        left: 0;
        text-align: left;
        margin-bottom: 5px;
        display: block;
    }
    .timeline-item { padding-left: 25px; }
    .timeline-dot { left: -19px; }
}


.game-hero {
    background: linear-gradient(135deg, #1f2730 0%, #171e24 100%);
    border: 1px solid var(--betano-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    /* ПРОМЯНА: Увеличаваме разстоянието тук */
    margin-top: 60px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.game-hero::before {
    content: '\f1e3'; /* fa-futbol icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.05;
    color: white;
    transform: rotate(15deg);
}


.shop-hero {
    background: linear-gradient(135deg, #1f2730 0%, #171e24 100%);
    border: 1px solid var(--betano-border);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    /* ВАЖНО: 60px предпазва от влизане под менюто */
    margin-top: 60px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.shop-hero::before {
    content: '\f290'; /* fa-shopping-bag icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.05;
    color: white;
    transform: rotate(-15deg);
}


/* Червен пулсиращ бадж за "LIVE" статус */
.badge-live { 
    background: linear-gradient(45deg, #ff416c, #ff4b2b); /* Ярко червено */
    font-size: 0.7rem; 
    padding: 2px 8px; 
    border-radius: 4px; 
    color: white; 
    font-weight: 900; 
    letter-spacing: 1px;
    vertical-align: middle; 
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.5);
    animation: livePulse 1.5s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 65, 108, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 65, 108, 1); } /* Свети силно */
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 65, 108, 0.5); }
}



/* UPDATED GOLD PREMIUM - LUXURY VERSION */
.derby-match {
    /* Златна рамка с метален отблясък */
    border: 2px solid #ffd700 !important;
    
    /* Комбинация от външно сияние и вътрешна сянка за 3D ефект */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 
                inset 0 0 15px rgba(255, 215, 0, 0.1);
    
    position: relative;
    overflow: hidden; /* Важно за блясъка */
    
    /* Диагонален, леко златист тъмен фон */
    background: linear-gradient(135deg, rgba(50, 40, 0, 0.6) 0%, #1e1e1e 100%);
    
    animation: gold-pulse 3s infinite ease-in-out;
}

@keyframes gold-pulse {
    0% { border-color: #b8860b; box-shadow: 0 0 10px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.1); }
    50% { border-color: #ffe066; box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.2); }
    100% { border-color: #b8860b; box-shadow: 0 0 10px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.1); }
}

.derby-badge {
    position: relative;
    /* Луксозен златен градиент */
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 200% auto;
    
    color: #2c1e0b; /* Тъмно кафяво за контраст и четимост */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-left: 8px;
    border: 1px solid #fff; /* Тънък бял кант за фокус */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Анимация на самия фон на баджа (метален отблясък) */
    animation: shine-badge 3s linear infinite;
}

@keyframes shine-badge {
    to {
        background-position: 200% center;
    }
}
