: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; } }

/* 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 */
.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-flex;
    align-items: center;
    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;
    vertical-align: middle;
}
.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% !important; 
    background: var(--betano-header); 
    border-top: 1px solid #444; 
    display: flex !important; 
    height: 60px; 
    z-index: 1000;
    justify-content: stretch !important;
}

.btm-nav-item { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: #888; 
    text-decoration: none; 
    font-size: 0.7rem; 
    cursor: pointer; 
    padding: 0;
    min-width: 0;
}

.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;
    }
}



/* --- ФИКСИРАНА ДИАГОНАЛНА ЛЕНТА --- */
.game-card {
    position: relative;
    overflow: hidden; /* Изрязва излишната част от лентата */
}

.bet-ribbon {
    position: absolute;
    top: 15px;        /* Леко свалена надолу, за да не се застъпва с ръба */
    right: -40px;     /* По-голямо изместване за по-дълга лента */
    width: 150px;     /* Увеличена ширина, за да не се реже текстът */
    transform: rotate(45deg); 
    text-align: center;
    padding: 4px 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bet-ribbon span {
    color: #ffffff;
    font-weight: 900;
    font-size: 0.62rem; /* Една идея по-малък шрифт за по-добра видимост */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Предотвратява пренасянето на нов ред */
    width: 100%;
    display: block;
}




/* =========================================
   💎 ADMIN DIAMOND SHIMMER STYLE
   (Сложи най-долу в styles.css)
   ========================================= */

/* 1. АНИМАЦИЯТА (Светлината, която минава) */
@keyframes adminShineMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 2. СТИЛИЗИРАНЕ НА ИМЕТО (Електриков Текст) */
.text-rank-admin {
    /* Градиент: Тюркоаз -> Бяло (светлината) -> Тюркоаз */
    background: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff);
    background-size: 200% auto; /* Увеличаваме фона, за да може да се движи */
    
    /* Магията: Фона става самия текст */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    font-weight: 900 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    
    /* Лека синя сянка за четимост и сияние */
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
    
    /* Пускаме анимацията: 3 секунди, безкрайно */
    animation: adminShineMove 3s linear infinite !important;
}

/* 3. СТИЛИЗИРАНЕ НА БАДЖА (Диамантен ефект) */
.bg-admin {
    /* Тъмен тюркоаз -> Ярък тюркоаз -> Тъмен тюркоаз */
    background: linear-gradient(90deg, #005f73, #0abde3, #005f73) !important;
    background-size: 200% auto !important;
    
    color: white !important;
    
    /* Рамка, която свети */
    border: 1px solid #00d2ff !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    min-width: 80px !important;
    
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    
    /* Сияние около баджа */
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.4) !important;
    
    /* Същата анимация на светлината */
    animation: adminShineMove 3s linear infinite !important;
    
    display: inline-block;
    vertical-align: middle;
}


/* =========================================
   👑 VIP LIQUID GOLD STYLE
   (Сложи най-долу в styles.css)
   ========================================= */

/* АНИМАЦИЯТА (Същата като на админа, но може да ползваме нея) */
@keyframes vipShineMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 1. ИМЕТО (Златен Текст) */
.text-rank-vip {
    /* Градиент: Тъмно злато -> Ярко Злато -> Бяло -> Ярко Злато -> Тъмно злато */
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #ffffff, #fcf6ba, #bf953f);
    background-size: 200% auto;
    
    /* Текстът става прозрачен, за да се вижда фона */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    font-weight: 900 !important;
    text-transform: none !important; /* Запазваме малките букви */
    
    /* Златна сянка около буквите */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    
    animation: vipShineMove 3s linear infinite !important;
}

/* 2. БАДЖЪТ (Златно кюлче) */
.bg-vip {
    /* Градиент за фон */
    background: linear-gradient(90deg, #daa520, #ffd700, #ffffff, #ffd700, #daa520) !important;
    background-size: 200% auto !important;
    
    /* Черен текст за контраст върху златото (или тъмно кафяво) */
    color: #2c1e0b !important; 
    
    border: 1px solid #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
    
    font-weight: 900 !important;
    text-transform: uppercase !important;
    
    animation: vipShineMove 3s linear infinite !important;
    
    display: inline-block;
    vertical-align: middle;
}







/* =========================================
   🏅 COMPLETE RANK SYSTEM REWORK 2.0
   (Сложи най-долу в styles.css и изтрий старите rank кодове)
   ========================================= */

/* --- 1. ГЛОБАЛНИ НАСТРОЙКИ ЗА ИМЕНА --- */
[class^="text-rank-"] {
    text-transform: none !important; /* Само първа буква главна (както са въведени) */
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

/* --- 2. АНИМАЦИИ --- */

/* "Дишащ" ефект за средните рангове (много фин) */
@keyframes softGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); drop-shadow(0 0 2px currentColor); }
}

/* Пулс за PRO */
@keyframes proPulse {
    0% { box-shadow: 0 0 0 rgba(155, 89, 182, 0.4); }
    50% { box-shadow: 0 0 10px rgba(155, 89, 182, 0.8); }
    100% { box-shadow: 0 0 0 rgba(155, 89, 182, 0.4); }
}

/* --- 3. РАНГОВЕ (От нисък към висок) --- */

/* NEWBIE (Сив - Базов) */
.bg-newbie {
    background: linear-gradient(145deg, #7f8c8d, #95a5a6) !important;
    border: 1px solid #555 !important;
    color: #eee !important;
    opacity: 0.8;
}
.text-rank-newbie { color: #bdc3c7 !important; }

/* PLAYER (Бронз/Кафяв - Топъл) */
.bg-player {
    background: linear-gradient(145deg, #d35400, #e67e22) !important;
    border: 1px solid #a04000 !important;
    color: #fff !important;
}
.text-rank-player { color: #e67e22 !important; }

/* BEGINNER (Lime - НОВ ЦВЯТ) */
/* Сменен от жълто на Лайм, за да не бие на VIP */
.bg-beginner {
    background: linear-gradient(145deg, #82c91e, #a9e34b) !important; 
    border: 1px solid #66a80f !important;
    color: #000 !important; /* Черен текст за контраст */
    font-weight: 800 !important;
}
.text-rank-beginner { 
    color: #a9e34b !important; 
    filter: drop-shadow(0 0 2px rgba(130, 201, 30, 0.3)); /* Лек детайл */
}

/* INTERMEDIATE (Тюркоаз - Лек живот) */
.bg-inter, .bg-intermediate, {
    background: linear-gradient(145deg, #009688, #1abc9c) !important;
    border: 1px solid #00695c !important;
    color: #fff !important;
    /* Лек ефект */
    box-shadow: 0 2px 5px rgba(26, 188, 156, 0.3) !important;
}
.text-rank-inter, .text-rank-intermediate { 
    color: #1abc9c !important;
    animation: softGlow 4s infinite ease-in-out !important; 
}

/* ADVANCED (Зелен - Изумруд) */
.bg-adv, .bg-advanced {
    background: linear-gradient(145deg, #27ae60, #2ecc71) !important;
    border: 1px solid #1e8449 !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3) !important;
}
.text-rank-adv, .text-rank-advanced { 
    color: #2ecc71 !important;
    animation: softGlow 4s infinite ease-in-out !important;
}

/* EXPERT (Син - Кралски) */
.bg-expert {
    background: linear-gradient(145deg, #2980b9, #3498db) !important;
    border: 1px solid #1a5276 !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5) !important; /* По-силно сияние */
}
.text-rank-expert { 
    color: #3498db !important;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.4);
    animation: softGlow 3s infinite ease-in-out !important;
}

/* PRO (Лилав - Елитен) */
.bg-pro {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    animation: proPulse 2s infinite ease-in-out !important;
}
.text-rank-pro { 
    color: #d2b4de !important;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.7);
    animation: softGlow 2s infinite alternate !important;
}

/* TIPSTER (Розов - Върхов) */
.bg-tipster {
    /* Розов Shimmer */
    background: linear-gradient(90deg, #c2185b 0%, #e91e63 40%, #ff80ab 50%, #e91e63 60%, #c2185b 100%) !important;
    background-size: 200% auto !important;
    border: 1px solid #ff4081 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.6) !important;
    animation: adminShineMove 3s linear infinite !important;
}
.text-rank-tipster {
    background: linear-gradient(90deg, #ff4081, #fff, #ff4081);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(233, 30, 99, 0.8));
    animation: adminShineMove 3s linear infinite !important;
}


/* =========================================
   🎨 ЦВЕТОВЕ НА ИМЕНАТА (GLOBAL NAME COLORS)
   (Сложи най-долу в styles.css)
   ========================================= */

/* NEWBIE (Сиво) */
.name-newbie { color: #bdc3c7 !important; }

/* PLAYER (Оранжево) */
.name-player { color: #e67e22 !important; font-weight: bold; }

/* BEGINNER (Лайм) */
.name-beginner { 
    color: #a9e34b !important; 
    font-weight: bold; 
    text-shadow: 0 0 5px rgba(169, 227, 75, 0.2);
}

/* INTERMEDIATE (Тюркоаз) - Добавихме и двете имена за сигурност */
.name-intermediate, .name-inter { 
    color: #1abc9c !important; 
    font-weight: bold; 
    text-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
}

/* ADVANCED (Зелено) */
.name-advanced, .name-adv { 
    color: #2ecc71 !important; 
    font-weight: bold; 
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

/* EXPERT (Синьо) */
.name-expert { 
    color: #3498db !important; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

/* PRO (Лилаво) */
.name-pro { 
    color: #d2b4de !important; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.6);
}

/* TIPSTER (Розово - Shimmer) */
.name-tipster { 
    background: linear-gradient(90deg, #ff4081, #fff, #ff4081);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
    animation: adminShineMove 3s linear infinite;
}

/* VIP (Златно) */
.name-vip { 
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #ffffff, #fcf6ba, #bf953f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    animation: vipShineMove 3s linear infinite;
}

/* ADMIN (Диамант) */
.name-admin { 
    background: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
    animation: adminShineMove 3s linear infinite;
}



/* --- БУТОН ЗА ИНСТАЛАЦИЯ (ПОЗИЦИОНИРАН В ХЕДЪРА) --- */
#install-app-btn {
    display: none; /* Скрит по подразбиране */
    
    /* Махаме fixed позицията, за да си застане нормално */
    position: relative; 
    margin-top: 15px; /* Разстояние от горния бутон */
    
    /* Стилизация */
    background: linear-gradient(90deg, #ff4b1f, #ff9068);
    color: white;
    padding: 12px 30px; /* Малко по-широк */
    border-radius: 30px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.4); /* По-мека сянка */
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid rgba(255,255,255,0.1);
    
    /* Центриране (ако е нужно) */
    margin-left: auto;
    margin-right: auto;
}

#install-app-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 75, 31, 0.6);
}









/* =========================================================
   💎 ГЛОБАЛЕН ФИКС ЗА СВЕТЕЩИ БАДЖОВЕ (ОТ CHAT.HTML) 💎
   ========================================================= */

/* 1. АНИМАЦИЯТА ЗА ДВИЖЕНИЕ НА СВЕТЛИНАТА */
@keyframes globalShineMove { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 200% 50%; } 
}

/* 2. АДМИН БАДЖ (ДИАМАНТЕН ЕФЕКТ) */
.bg-admin { 
    background-image: linear-gradient(90deg, #005f73 0%, #00d2ff 40%, #ffffff 50%, #00d2ff 60%, #005f73 100%) !important; 
    background-size: 200% auto !important; 
    color: white !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important; 
    border: 1px solid #00d2ff !important; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6) !important; 
    font-weight: 900 !important; 
    animation: globalShineMove 3s linear infinite !important; 
    background-color: transparent !important;
}

/* 3. VIP БАДЖ (ЗЛАТЕН ЕФЕКТ) */
.bg-vip { 
    background-image: linear-gradient(90deg, #daa520, #ffd700, #ffffff, #ffd700, #daa520) !important; 
    background-size: 200% auto !important; 
    color: #2c1e0b !important; 
    border: 1px solid #ffd700 !important; 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important; 
    font-weight: 900 !important; 
    animation: globalShineMove 3s linear infinite !important; 
    background-color: transparent !important;
    text-shadow: none !important;
}

/* 4. TIPSTER БАДЖ (РОЗОВ ЕФЕКТ) */
.bg-tipster { 
    background-image: linear-gradient(90deg, #c2185b 0%, #e91e63 40%, #ffffff 50%, #e91e63 60%, #c2185b 100%) !important; 
    background-size: 200% auto !important; 
    color: white !important; 
    border: 1px solid #ff4081 !important; 
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.5) !important; 
    animation: globalShineMove 3s linear infinite !important; 
    background-color: transparent !important;
}

/* 5. ФИКС ЗА ИМЕНАТА (ДА СВЕТЯТ И ТЕ) */
.text-rank-admin {
    background-image: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: globalShineMove 3s linear infinite !important;
}

.text-rank-vip {
    background-image: linear-gradient(90deg, #bf953f, #fcf6ba, #ffffff, #fcf6ba, #bf953f) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: globalShineMove 3s linear infinite !important;
}






/* --- СТАТУС ИНДИКАТОР ЗА МАЧОВЕ (v2 - Професионален) --- */

/* Основен стил на контейнера */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center; /* Центрира съдържанието */
  padding: 7px 15px; /* Леко променен padding */
  margin: 5px auto 12px auto; /* Повече разстояние отдолу */
  border-radius: 50px; /* По-заоблени краища, като хапче */
  font-size: 0.9em;
  font-weight: 600; /* Малко по-плътен, но не прекалено */
  transition: all 0.4s ease-in-out; /* По-плавна анимация за всичко */
  width: fit-content;
  min-width: 180px; /* Минимална ширина за консистентност */
  box-sizing: border-box;
  letter-spacing: 0.5px; /* Леко разстояние между буквите */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Фина сянка на текста */
}

/* Стил на мигащата точка */
.indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor; /* Сянка в цвета на точката, създава "неон" ефект */
  transition: all 0.4s ease-in-out;
}


/* --- СТАТУСИ --- */

/* 1. Предстои (Кехлибар / Жълт) */
.status-indicator.upcoming {
  background: linear-gradient(145deg, #3c3010, #2e240c); /* Тъмен градиент */
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
}
.status-indicator.upcoming .indicator-dot {
  background-color: #ffc107;
  animation: blink-animation 1.8s infinite ease-in-out;
}

/* 2. На живо (Тревисто / Зелен) */
.status-indicator.live {
  background: linear-gradient(145deg, #103419, #0c2613); /* Тъмен градиент */
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
}
.status-indicator.live .indicator-dot {
  background-color: #28a745;
  animation: blink-animation 0.9s infinite; /* По-бърза анимация за "live" */
}

/* 3. Очаква резултат (Небесно / Син) */
.status-indicator.pending {
  background: linear-gradient(145deg, #112a40, #0d2030); /* Тъмен градиент */
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.4);
}
.status-indicator.pending .indicator-dot {
  background-color: #3498db;
  /* Няма анимация тук, но има сянка от основния стил */
}

/* По-плавна и "дишаща" анимация за мигане */
@keyframes blink-animation {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
















/* Badge background colors */
.bg-admin { background-color: #e74c3c; color: white; }
.bg-vip { background-color: #f39c12; color: white; }
.bg-tipster { background-color: #9b59b6; color: white; }
.bg-pro { background-color: #3498db; color: white; }
.bg-expert { background-color: #1abc9c; color: white; }
.bg-adv { background-color: #2ecc71; color: white; }
.bg-inter { background-color: #e67e22; color: white; }
.bg-beginner { background-color: #34495e; color: white; }
.bg-player { background-color: #7f8c8d; color: white; }
.bg-newbie { background-color: #95a5a6; color: white; }

/* Text colors for ranks */
.text-rank-admin { color: #e74c3c; }
.text-rank-vip { color: #f39c12; }
.text-rank-tipster { color: #9b59b6; }
.text-rank-pro { color: #3498db; }
.text-rank-expert { color: #1abc9c; }
.text-rank-adv { color: #2ecc71; }
.text-rank-inter { color: #e67e22; }
.text-rank-beginner { color: #34495e; }
.text-rank-player { color: #7f8c8d; }
.text-rank-newbie { color: #95a5a6; }

/* Badge base styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Следните класове са в chat, но не са в referral: */

/* АДМИНИСТРАТОРИ */
.name-admin { 
    background: linear-gradient(90deg, #00d2ff, #ffffff, #00d2ff); 
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    font-weight: 900; 
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6)); 
    animation: chatShineMove 3s linear infinite !important; 
}

/* VIP */
.name-vip { 
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #ffffff, #fcf6ba, #bf953f); 
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    font-weight: 900; 
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); 
    animation: chatShineMove 3s linear infinite !important; 
}

/* TIPSTER */
.name-tipster { 
    background: linear-gradient(90deg, #ff4081, #fff, #ff4081); 
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
    font-weight: 900; 
    filter: drop-shadow(0 0 5px rgba(233, 30, 99, 0.5)); 
    animation: chatShineMove 3s linear infinite; 
}

/* PRO, EXPERT, ADVANCED, INTERMEDIATE, BEGINNER, PLAYER, NEWBIE */
.name-pro { color: #d2b4de !important; font-weight: bold; text-shadow: 0 0 8px rgba(155, 89, 182, 0.6); animation: chatSoftGlow 2s infinite alternate; }
.name-expert { color: #3498db !important; font-weight: bold; text-shadow: 0 0 5px rgba(52, 152, 219, 0.4); animation: chatSoftGlow 3s infinite; }
.name-adv { color: #2ecc71 !important; font-weight: bold; animation: chatSoftGlow 4s infinite; }
.name-inter { color: #1abc9c !important; font-weight: bold; animation: chatSoftGlow 4s infinite; }
.name-beginner { color: #a9e34b !important; font-weight: bold; filter: drop-shadow(0 0 2px rgba(130, 201, 30, 0.3)); }
.name-player { color: #e67e22 !important; font-weight: bold; }
.name-newbie { color: #bdc3c7 !important; }

/* СПЕЦИАЛНИ РАНГОВЕ (moderator, sponsor, partner, legend, media) */
.name-moderator { background-image: linear-gradient(90deg, #2980b9, #6dd5fa, #ffffff, #6dd5fa, #2980b9) !important; background-size: 200% auto !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; font-weight: 900 !important; animation: shineMove 3s linear infinite !important; }
.name-sponsor { background-image: linear-gradient(90deg, #00bfa5, #ffd700, #ffffff, #ffd700, #00bfa5) !important; background-size: 200% auto !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; font-weight: 900 !important; animation: shineMove 4s linear infinite !important; }
.name-partner { background-image: linear-gradient(90deg, #8e44ad, #ff00cc, #ffffff, #ff00cc, #8e44ad) !important; background-size: 200% auto !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; font-weight: 900 !important; animation: shineMove 3s linear infinite !important; }
.name-legend { background-image: linear-gradient(90deg, #7f8c8d, #ffffff, #cfcfcf, #ffffff, #7f8c8d) !important; background-size: 200% auto !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; font-weight: 900 !important; text-transform: uppercase !important; animation: shineMove 5s linear infinite !important; }
.name-media { color: #ff512f !important; font-weight: 800 !important; }

/* АНИМИРАНИ БАДЖОВЕ ОТ CHAT.HTML: */

/* ADMIN бадж с анимация */
.rank-badge-admin { 
    background-image: linear-gradient(90deg, #005f73 0%, #00d2ff 40%, #ffffff 50%, #00d2ff 60%, #005f73 100%) !important; 
    background-size: 200% auto !important; 
    color: white !important; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); 
    border: 1px solid #00d2ff !important; 
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6) !important; 
    font-weight: 900; 
    animation: chatShineMove 3s linear infinite !important; 
}

/* VIP бадж с анимация */
.rank-badge-vip { 
    background-image: linear-gradient(90deg, #daa520, #ffd700, #ffffff, #ffd700, #daa520) !important; 
    background-size: 200% auto !important; 
    color: #2c1e0b !important; 
    border: 1px solid #ffd700 !important; 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important; 
    font-weight: 900; 
    animation: chatShineMove 3s linear infinite !important; 
}

/* TIPSTER бадж с анимация */
.rank-badge-tipster { 
    background-image: linear-gradient(90deg, #c2185b 0%, #e91e63 40%, #ffffff 50%, #e91e63 60%, #c2185b 100%) !important; 
    background-size: 200% auto !important; 
    color: white !important; 
    border: 1px solid #ff4081 !important; 
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.5) !important; 
    animation: chatShineMove 3s linear infinite !important; 
}

/* СПЕЦИАЛНИ БАДЖОВЕ (moderator, sponsor, partner, legend, media) */
.rank-badge-moderator { background-image: linear-gradient(90deg, #0f0c29, #302b63, #6dd5fa, #302b63, #0f0c29) !important; background-size: 200% auto !important; border: 1px solid #6dd5fa !important; color: #6dd5fa !important; animation: shineMove 3s linear infinite !important; }
.rank-badge-sponsor { background-image: linear-gradient(90deg, #004d40, #00bfa5, #ffd700, #00bfa5, #004d40) !important; background-size: 200% auto !important; border: 1px solid #ffd700 !important; color: #ffffff !important; animation: shineMove 4s linear infinite !important; }
.rank-badge-partner { background-image: linear-gradient(90deg, #240b36, #4a148c, #ff00cc, #4a148c, #240b36) !important; background-size: 200% auto !important; border: 1px solid #ff00cc !important; color: #ff00cc !important; animation: shineMove 3s linear infinite !important; }
.rank-badge-legend { background-image: linear-gradient(90deg, #000000, #434343, #ffffff, #434343, #000000) !important; background-size: 200% auto !important; border: 1px solid #ffffff !important; color: #ffffff !important; animation: shineMove 5s linear infinite !important; }
.rank-badge-media { background-image: linear-gradient(90deg, #ff512f, #dd2476, #ff512f) !important; background-size: 200% auto !important; border: 1px solid #fff !important; animation: shineMove 3s linear infinite !important; }

/* АНИМАЦИИ ОТ CHAT.HTML КОИТО ЛИПСВАТ В REFERRAL.HTML: */

@keyframes chatShineMove { 
    0% { background-position: 0% 50%; } 
    100% { background-position: 200% 50%; } 
}

@keyframes shineMove { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

@keyframes chatSoftGlow { 
    0% { text-shadow: 0 0 5px currentColor; } 
    50% { text-shadow: 0 0 15px currentColor; } 
    100% { text-shadow: 0 0 5px currentColor; } 
}

/* PRO бадж анимация */
@keyframes chatProPulse { 
    0% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.4); } 
    50% { box-shadow: 0 0 15px rgba(155, 89, 182, 0.8); } 
    100% { box-shadow: 0 0 5px rgba(155, 89, 182, 0.4); } 
}

/* СТИЛОВЕ ЗА ЦВЕТ НА ТЕКСТ В СЪОБЩЕНИЯТА: */
.msg-style-admin { color: #00d2ff !important; text-shadow: 0 0 10px rgba(0, 210, 255, 0.3); font-weight: 500; }
.msg-style-vip { color: #ffd700 !important; text-shadow: 0 0 8px rgba(255, 215, 0, 0.3); font-weight: 500; }
.msg-style-tipster { color: #ff4081 !important; text-shadow: 0 0 8px rgba(255, 64, 129, 0.3); }
.msg-style-pro { color: #d2b4de !important; text-shadow: 0 0 5px rgba(155, 89, 182, 0.4); }
.msg-style-expert { color: #3498db !important; }
.msg-style-adv { color: #2ecc71 !important; }
.msg-style-inter { color: #1abc9c !important; }
.msg-style-beginner { color: #a9e34b !important; text-shadow: 0 0 5px rgba(169, 227, 75, 0.2); }
.msg-style-player { color: #e67e22 !important; }
.msg-style-newbie { color: #b0b3b8 !important; }

/* СПЕЦИАЛНИ */
.msg-style-moderator { color: #6dd5fa !important; font-weight: 500; text-shadow: 0 0 5px rgba(109, 213, 250, 0.3); }
.msg-style-sponsor { color: #2ecc71 !important; font-weight: bold; text-shadow: 0 0 5px rgba(46, 204, 113, 0.3); }
.msg-style-partner { color: #ff00cc !important; font-weight: 500; text-shadow: 0 0 5px rgba(255, 0, 204, 0.3); }
.msg-style-legend { color: #ffffff !important; font-style: italic; text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
.msg-style-media { color: #ff512f !important; font-weight: bold; }

.bg-moderator { 
    background-image: linear-gradient(90deg, #0f0c29, #302b63, #6dd5fa, #302b63, #0f0c29) !important;
    background-size: 200% auto !important;
    border: 1px solid #6dd5fa !important;
    color: #6dd5fa !important;
    animation: shineMove 3s linear infinite !important;
}

@keyframes shineMove { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}


/* Специален цвят за Owner */
.text-rank-owner { 
    color: #8b00ff !important; 
    font-weight: 900 !important; 
    text-shadow: 0 0 10px rgba(139, 0, 255, 0.6) !important;
    display: inline-flex !important;
    align-items: center;
}

/* Стил за короната */
.text-rank-owner i.fa-crown {
    color: #ff4b1f !important; /* Оранжева корона за контраст */
    margin-right: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 75, 31, 0.5));
}


/* --- ПЛАВАЩ БУТОН ЗА СЪОБЩЕНИЯ (ДРАГ & ДРОП) --- */
.floating-messages-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4b1f, #ff9068);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: move;
    box-shadow: 0 4px 15px rgba(255, 75, 31, 0.4);
    z-index: 9998;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.2);
    /* ДОБАВИ ТЕЗИ: */
    touch-action: none; /* За да работи добре на мобилни */
    will-change: left, top; /* Оптимизация */
}

.floating-messages-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 75, 31, 0.6);
}

.floating-messages-btn:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.floating-messages-btn.dragging {
    transition: none; /* Премахваме анимацията при драгване */
}

.floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #1f2730;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .floating-messages-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        bottom: 90px;
        right: 15px;
    }
}


@media (max-width: 768px) {
    #admin-messages-modal .modal-content {
        max-height: 90vh !important;
        height: 90vh !important;
        overflow-y: auto !important;
        padding: 15px !important;
    }
    
    #admin-messages-modal .modal-content > * {
        flex-shrink: 0 !important;
    }
    
    #selected-users-container {
        max-height: 120px !important;
    }
    
    #users-list-container {
        max-height: 150px !important;
    }
    
    #message-body {
        min-height: 60px !important;
        max-height: 100px !important;
    }
}











.batch-btn {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px 24px;
    background: #555;
    color: #999;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.batch-btn.active {
    background: linear-gradient(135deg, #ff4b1f, #ff6b3d);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 75, 31, 0.3);
}

.batch-btn.active:hover {
    background: linear-gradient(135deg, #ff6b3d, #ff4b1f);
    transform: translateY(-2px);
}


/* Пълно премахване на долното мобилно меню */
.mobile-bottom-nav {
    display: none !important;
}

/* Ако искаш да върнеш мястото, което заемаше най-отдолу на екрана */
body {
    padding-bottom: 0 !important;
}