/* ============================================
   HOCO Custom - TASARIM 1 (NO SIDEBAR)
   Accent: #bf172f | Background: #0a0b0e
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #bf172f;
    --primary-light: #d91e3a;
    --primary-dark: #9a1225;
    --primary-glow: rgba(191, 23, 47, 0.4);
    --primary-subtle: rgba(191, 23, 47, 0.1);
    --primary-border: rgba(191, 23, 47, 0.35);

    --bg-main: #0a0b0e;
    --bg-card: #111318;
    --bg-card-hover: #191c24;
    --bg-header: #0c0d12;
    --bg-input: #1a1c24;
    --bg-surface: #14161e;
    --bg-nav: #bf172f;

    --text-primary: #ffffff;
    --text-secondary: #8a8d98;
    --text-muted: #5a5d68;

    --border-color: #1e2030;
    --border-light: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(191, 23, 47, 0.3);

    --font-heading: 'Sora', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --header-height: 56px;
    --nav-height: 46px;
    --alert-height: 36px;
    --total-header: calc(var(--alert-height) + var(--header-height) + var(--nav-height));
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

body.alert-hidden {
    --alert-height: 0px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.008) 10px, rgba(255,255,255,0.008) 11px);
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; outline: none; cursor: pointer; font-family: var(--font-body); background: none; color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ ALERT BAR ============ */
.alert-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--alert-height);
    background: #c20000;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.alert-bar-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.alert-bar-content i { color: #ffcc00; }
.alert-bar-content a { color: #ffcc00; text-decoration: underline; font-weight: 700; }

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-200%); }
}

.alert-bar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    z-index: 2;
    padding: 4px;
    transition: color var(--transition-fast);
}
.alert-bar-close:hover { color: #fff; }

body.alert-hidden .alert-bar { display: none; }

/* ============ HEADER TOP BAR ============ */
.header-top {
    position: fixed;
    top: var(--alert-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.header-top-left { display: flex; align-items: center; gap: 14px; }

.logo { height: 36px; width: auto; cursor: pointer; filter: brightness(1.1); }

.theme-toggle { display: flex; align-items: center; gap: 4px; background: var(--bg-card); border-radius: 50px; padding: 3px; }
.theme-toggle-btn { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all var(--transition-fast); color: var(--text-secondary); }
.theme-toggle-btn.active { background: var(--primary); color: #fff; }

.spin-wheel { width: 38px; height: 38px; border-radius: 50%; cursor: pointer; animation: spin 10s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.header-top-center { display: flex; align-items: center; gap: 6px; }
.header-link { display: flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition-fast); font-family: var(--font-heading); white-space: nowrap; }
.header-link:hover { color: var(--primary); background: var(--primary-subtle); }
.header-link i { font-size: 13px; }

.header-top-right { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 20px; font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition-fast); font-family: var(--font-heading); cursor: pointer; white-space: nowrap; }
.btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }
.btn-primary { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-1px); }

.lang-selector { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 600; transition: border-color var(--transition-fast); }
.lang-selector:hover { border-color: var(--primary); }
.lang-flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang-selector i { font-size: 10px; color: var(--text-muted); }

/* ============ NAVIGATION BAR ============ */
.header-nav {
    position: fixed;
    top: calc(var(--alert-height) + var(--header-height));
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--bg-nav);
    z-index: 999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(191, 23, 47, 0.25);
}

.nav-items { display: flex; align-items: center; gap: 0; width: 100%; overflow-x: auto; padding: 0 16px; }
.nav-item { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); white-space: nowrap; transition: all var(--transition-fast); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.3px; position: relative; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav-item.active { color: #fff; background: rgba(0,0,0,0.15); }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 70%; height: 3px; background: #fff; border-radius: 3px 3px 0 0; }
.nav-item i { font-size: 14px; }
.nav-badge { font-size: 9px; font-weight: 800; background: #2ecc40; color: #fff; padding: 1px 5px; border-radius: 3px; position: relative; top: -6px; }
.nav-items::-webkit-scrollbar { height: 0; }

/* ============ MAIN CONTENT ============ */
.main-content { margin-top: var(--total-header); min-height: calc(100vh - var(--total-header)); }

/* ============ HERO BANNER ============ */
.hero-banner { width: 100%; overflow: hidden; background: var(--bg-card); }
.hero-banner img { width: 100%; height: auto; display: block; }

/* ============ CATEGORY CARDS ============ */
.category-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-lg); padding: 24px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; transition: all var(--transition-normal); position: relative; overflow: hidden; text-align: center; }
.category-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary); opacity: 0.6; }
.category-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center bottom, var(--primary-subtle) 0%, transparent 70%); opacity: 0; transition: opacity var(--transition-normal); }
.category-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(191,23,47,0.15); }
.category-card:hover::after { opacity: 1; }
.category-card-icon { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; z-index: 1; color: var(--primary); }
.category-card-icon i { filter: drop-shadow(0 4px 20px var(--primary-glow)); }
.category-card-name { font-family: var(--font-heading); font-size: 15px; font-weight: 800; color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; z-index: 1; }
.category-badge { position: absolute; top: 8px; right: 8px; background: #2ecc40; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; z-index: 2; }

/* ============ SECTIONS ============ */
.section { padding: 30px 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text-primary); }
.section-title span { color: var(--primary); }
.section-action { display: flex; align-items: center; gap: 8px; }
.section-action .count-badge { background: var(--primary); color: #fff; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }
.btn-show-all { padding: 6px 16px; font-size: 12px; font-weight: 600; color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); transition: all var(--transition-fast); font-family: var(--font-heading); }
.btn-show-all:hover { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }
.section-divider { height: 3px; background: linear-gradient(to right, var(--primary), transparent); border-radius: 10px; margin: 0 40px; }

/* ============ SPORTS GRID ============ */
.sports-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.sport-card { min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; scroll-snap-align: start; transition: transform var(--transition-fast); }
.sport-card:hover { transform: translateY(-4px); }
.sport-icon-wrapper { width: 68px; height: 68px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: all var(--transition-normal); }
.sport-card:hover .sport-icon-wrapper { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px var(--primary-subtle); }
.sport-icon-wrapper img { width: 34px; height: 34px; filter: brightness(0) invert(1); z-index: 1; }
.sport-card-name { font-size: 11px; font-weight: 500; color: var(--text-secondary); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 86px; }
.sport-card:hover .sport-card-name { color: var(--text-primary); }

/* ============ MATCHES ============ */
.matches-sport-filter { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 16px; margin-bottom: 8px; }
.match-sport-btn { min-width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: all var(--transition-fast); cursor: pointer; white-space: nowrap; }
.match-sport-btn img { width: 20px; height: 20px; filter: brightness(0) invert(0.6); }
.match-sport-btn.active, .match-sport-btn:hover { background: var(--bg-card-hover); border-color: var(--primary-border); color: var(--text-primary); }
.match-sport-btn.active { background: var(--bg-surface); border-color: var(--primary); }
.match-sport-btn.active img { filter: brightness(0) invert(1); }

.match-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.match-tab { padding: 8px 18px; font-size: 13px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition-fast); cursor: pointer; font-family: var(--font-heading); }
.match-tab.active { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); }

.matches-carousel { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
.match-card { min-width: 320px; max-width: 360px; background: var(--bg-card); border: 1px solid var(--border-accent); border-radius: var(--radius-md); overflow: hidden; scroll-snap-align: start; transition: all var(--transition-normal); position: relative; }
.match-card:hover { border-color: var(--primary); box-shadow: 0 4px 24px rgba(191,23,47,0.15); }
.match-card-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 12px; color: var(--text-secondary); }
.match-league { display: flex; align-items: center; gap: 6px; font-weight: 500; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-league i { color: var(--text-muted); }
.match-time { display: flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 11px; }
.match-body { padding: 24px 16px; text-align: center; position: relative; z-index: 1; }
.match-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.match-stats-icon { color: var(--text-muted); font-size: 14px; cursor: pointer; }
.match-count { font-size: 12px; color: var(--primary); font-weight: 600; }
.match-teams { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.match-team-name { font-size: 14px; font-weight: 600; color: var(--text-primary); max-width: 120px; text-align: center; }
.match-vs { font-size: 16px; font-weight: 700; color: var(--primary); font-style: italic; }
.match-odds { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border-color); }
.match-odd-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); }
.match-odd-btn:hover { border-color: var(--primary); background: var(--primary-subtle); }
.match-odd-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.match-odd-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.matches-nav-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.matches-nav { display: flex; gap: 8px; }
.matches-nav-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all var(--transition-fast); }
.matches-nav-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.matches-progress { flex: 1; height: 3px; background: var(--border-color); border-radius: 10px; overflow: hidden; }
.matches-progress-bar { height: 100%; width: 40%; background: var(--primary); border-radius: 10px; transition: width var(--transition-normal); }

/* ============ GAME CARDS ============ */
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.game-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition-normal); cursor: pointer; position: relative; }
.game-card:hover { border-color: var(--primary-border); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.game-card-image { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.game-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.game-card:hover .game-card-image img { transform: scale(1.08); }
.game-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); opacity: 0; transition: opacity var(--transition-normal); display: flex; align-items: center; justify-content: center; }
.game-card:hover .game-card-overlay { opacity: 1; }
.game-play-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transform: scale(0.8); transition: all var(--transition-normal); box-shadow: 0 0 30px var(--primary-glow); }
.game-card:hover .game-play-btn { transform: scale(1); }
.game-card-info { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: linear-gradient(to right, rgba(191,23,47,0.05), transparent); border-top: 1px solid var(--border-color); }
.game-card-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.game-card-provider { font-size: 11px; color: var(--text-muted); }
.game-card-play { width: 32px; height: 32px; border-radius: 50%; background: rgba(191,23,47,0.15); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 12px; transition: all var(--transition-fast); flex-shrink: 0; }
.game-card:hover .game-card-play { background: var(--primary); color: #fff; }

/* ============ FOOTER ============ */
.footer { background: linear-gradient(180deg, var(--bg-card) 0%, #060710 100%); border-top: 1px solid var(--border-color); padding: 40px 40px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 30px; margin-bottom: 30px; }
.footer-col-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-link { display: block; padding: 5px 0; font-size: 13px; color: var(--text-secondary); transition: color var(--transition-fast); }
.footer-link:hover { color: var(--primary); }
.footer-designer { text-align: right; }
.footer-designer-title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-logo { height: 40px; opacity: 0.7; transition: opacity var(--transition-fast); }
.footer-logo:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ============ BACK TO TOP ============ */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: all var(--transition-normal); box-shadow: 0 4px 20px var(--primary-glow); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ============ MODAL ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-normal); backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 420px; max-width: 95%; max-height: 90vh; overflow-y: auto; padding: 32px; transform: scale(0.9) translateY(20px); transition: transform var(--transition-normal); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; font-family: var(--font-heading); }
.form-input { width: 100%; padding: 12px 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: var(--font-body); transition: border-color var(--transition-fast); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-subtle); }
.form-input::placeholder { color: var(--text-muted); }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close { color: var(--text-muted); font-size: 20px; cursor: pointer; background: none; border: none; }
.form-error { display: none; color: #ff3c3c; font-size: 12px; font-weight: 600; text-align: center; padding: 10px; background: rgba(255,60,60,0.1); border-radius: var(--radius-sm); margin-bottom: 12px; }

/* ============ AUTH UI ============ */
.user-balance-display { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,200,0,0.08); border: 1px solid rgba(255,200,0,0.2); border-radius: var(--radius-sm); color: #ffc800; font-weight: 700; font-size: 14px; font-family: var(--font-heading); }
.user-balance-display i { font-size: 14px; }
.user-menu-trigger { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; }
.user-menu-trigger:hover { background: rgba(255,255,255,0.05); }
.user-avatar-small { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.user-name-display { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 80px; width: 280px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 16px 48px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s; z-index: 2001; }
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-header { padding: 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border-color); }
.user-avatar-big { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.udd-name { font-weight: 700; font-size: 14px; }
.udd-email { font-size: 11px; color: var(--text-muted); }
.udd-balance { padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,200,0,0.05); }
.udd-balance span:first-child { font-size: 12px; color: var(--text-muted); }
.udd-balance-val { font-weight: 700; color: #ffc800; font-family: var(--font-heading); }
.udd-divider { height: 1px; background: var(--border-color); margin: 2px 0; }
.udd-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.15s; text-decoration: none; border-left: 3px solid transparent; }
.udd-item:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); border-left-color: var(--primary); }
.udd-item i { width: 18px; font-size: 14px; text-align: center; }
.udd-logout { color: #ff3c3c80; }
.udd-logout:hover { color: #ff3c3c; background: rgba(255,60,60,0.06); border-left-color: #ff3c3c; }

/* Toast notifications */
.toast-notification { position: fixed; top: 20px; right: 20px; padding: 14px 24px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 99999; display: flex; align-items: center; gap: 10px; transform: translateX(120%); transition: transform 0.3s cubic-bezier(0.68,-0.55,0.265,1.55); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.toast-notification.show { transform: translateX(0); }
.toast-success { background: linear-gradient(135deg, #00c864, #00a050); color: #fff; }
.toast-error { background: linear-gradient(135deg, #ff3c3c, #cc2020); color: #fff; }
.toast-info { background: linear-gradient(135deg, #3c8cff, #2060cc); color: #fff; }

/* Transaction table */
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-color); }
.tx-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border-color); }
.tx-type { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tx-deposit, .tx-bonus, .tx-spin { background: rgba(0,200,100,0.12); color: #00c864; }
.tx-withdraw, .tx-admin { background: rgba(255,60,60,0.12); color: #ff3c3c; }
.tx-positive { color: #00c864; font-weight: 700; }
.tx-negative { color: #ff3c3c; font-weight: 700; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.section { opacity: 0; transform: translateY(20px); }
.section.visible { animation: fadeInUp 0.6s ease forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1400px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .games-grid { grid-template-columns: repeat(3, 1fr); } .category-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .games-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: repeat(2, 1fr); } .header-top-center { display: none; } .section { padding: 24px 20px; } .section-divider { margin: 0 20px; } }
@media (max-width: 600px) { #cat-live-sport { display: none !important; } .header-top { padding: 0 6px; } .header-top-left { gap: 5px; flex-shrink: 0; } .header-top-right { gap: 4px; flex-shrink: 1; min-width: 0; overflow: hidden; } .btn { padding: 6px 10px; font-size: 11px; } .logo { height: 32px; } .spin-wheel { width: 28px; height: 28px; } .section { padding: 20px 14px; } .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .hero-slider { height: 220px; } .footer-grid { grid-template-columns: 1fr; } .match-card { min-width: 260px; } .category-cards { grid-template-columns: repeat(2, 1fr); } .lang-selector { display: none !important; } .footer { padding: 30px 14px 16px; }
    .alert-bar { height: 26px; } .alert-bar-content { font-size: 9px; gap: 4px; } .alert-bar-close { font-size: 10px; right: 4px; }
    .alert-marquee { font-size: 9px !important; }
    /* Logged-in header compact styles */
    .user-balance-display { padding: 5px 8px; font-size: 11px; gap: 4px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .user-name-display { display: none; }
    .user-menu-trigger { padding: 4px 6px; gap: 4px; }
    .user-menu-trigger .fa-chevron-down { display: none; }
    .user-avatar-small { width: 28px; height: 28px; font-size: 11px; }
    .notif-bell { padding: 6px 8px !important; margin-right: 2px !important; }
}

/* ============ MOBILE SIDEBAR MENU ============ */
.mobile-menu-btn { display: none; background: transparent; border: none; font-size: 20px; color: #fff; cursor: pointer; padding: 0 10px; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; backdrop-filter: blur(5px); }
.nav-overlay.active { display: block; }
@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }
    .header-nav { 
        position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; 
        background: #0a0b0e; flex-direction: column; align-items: flex-start; justify-content: flex-start; 
        padding-top: 20px; z-index: 1001; transition: left 0.3s ease; box-shadow: 5px 0 25px rgba(0,0,0,0.5); 
    }
    .header-nav.active { left: 0; }
    .nav-items { flex-direction: column; width: 100%; align-items: stretch; height: calc(100vh - 40px); overflow-y: auto; padding: 10px 0; }
    .nav-item { padding: 18px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-item.active::after { display: none; }
    .nav-item.active { background: rgba(191,23,47,0.15); border-left: 4px solid var(--primary); }
}

/* Mobile Fixes for Header Auth */
@media (max-width: 768px) {
    .hide-on-mobile { display: none !important; }
    .btn-deposit-header { padding: 0 10px !important; margin-right: 6px !important; }
    .btn-deposit-header i { margin-right: 0 !important; font-size:16px; }
    .user-name-display { display: none !important; }
    .user-balance-display { padding: 0 8px !important; margin-right: 4px !important; font-size: 12px !important; }
    .notif-bell { padding: 8px !important; margin-right: 4px !important; }
    .header-top-right { gap: 0 !important; justify-content: flex-end; }
}

/* ============ MOBILE BOTTOM NAVIGATION ============ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px;
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(191, 23, 47, 0.25);
    z-index: 1500;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item i {
    font-size: 18px;
    transition: all 0.2s ease;
}

.mobile-bottom-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-align: center;
    line-height: 1.2;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: var(--primary);
}

.mobile-bottom-nav-item.active i {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.mobile-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

/* Live support pulse dot */
.mobile-bottom-nav-item .live-dot {
    position: absolute;
    top: 6px;
    right: calc(50% - 14px);
    width: 7px;
    height: 7px;
    background: #00ff81;
    border-radius: 50%;
    border: 1.5px solid rgba(10, 11, 14, 0.96);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .footer {
        padding-bottom: 80px !important;
    }

    .back-to-top {
        bottom: 76px;
    }
}
