/* ============================================
   BETON — Premium Sports Betting Platform
   WOW UI — Dark Glassmorphism Theme
   ============================================ */

/* Inter загружается через <link> в base.html для устранения блокировки рендера */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #060a14;
    --bg-2: #0a1120;
    --bg-3: #0d1628;
    --panel: rgba(16, 26, 48, 0.85);
    --panel-2: rgba(21, 34, 59, 0.9);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #eef4ff;
    --text-secondary: #9db0d0;
    --muted: #7a8ba8;
    --accent: #d9ff42;
    --accent-glow: rgba(217, 255, 66, 0.25);
    --accent-2: #2dd4bf;
    --accent-2-glow: rgba(45, 212, 191, 0.2);
    --danger: #ff6b6b;
    --danger-glow: rgba(255, 107, 107, 0.3);
    --success: #34c759;
    --success-glow: rgba(52, 199, 89, 0.25);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg-3) 100%);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* clip (не hidden) — не ламає position:sticky, але забороняє горизонтальний скрол */
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(45, 212, 191, 0.06), transparent),
        radial-gradient(ellipse 500px 350px at 85% 15%, rgba(217, 255, 66, 0.07), transparent),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(100, 100, 255, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px rgba(217, 255, 66, 0.1); }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ============================================
   PROMO TICKER
   ============================================ */

.promo-line {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(19, 33, 61, 0.98), rgba(23, 40, 70, 0.98));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    overflow: hidden;
    contain: paint;
    animation: fadeInDown 0.6s ease-out;
}

.promo-track {
    display: flex;
    gap: 40px;
    align-items: center;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   LAYOUT
   ============================================ */

.layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 44px);
}

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

.sidebar {
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 20, 0.99));
    border-right: 1px solid var(--glass-border);
    padding: 20px 14px;
    backdrop-filter: blur(16px);
    animation: slideInLeft 0.5s ease-out;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-strong);
    border-radius: 4px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.logo:hover {
    background: var(--glass);
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
}

.logo-text span {
    background: linear-gradient(135deg, var(--accent), #ffed8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-section-title {
    margin: 24px 0 10px;
    padding: 0 8px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--glass-strong);
    border-color: var(--glass-border);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.12), rgba(217, 255, 66, 0.05));
    border-color: rgba(217, 255, 66, 0.2);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(217, 255, 66, 0.08);
}

/* ============================================
   CONTENT
   ============================================ */

.content {
    padding: 20px 24px;
    min-height: calc(100vh - 44px);
    min-width: 0;
}

/* На странице матча добавляем место для купона */
.match-page ~ .coupon-panel,
.match-page + .coupon-panel {
    /* купон на странице матча */
}

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    animation: fadeInDown 0.5s ease-out;
    position: relative;
    z-index: 200;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.top-link:hover {
    background: var(--glass-strong);
    border-color: var(--glass-border);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.balance-box,
.user-pill {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.08), rgba(217, 255, 66, 0.02));
    border: 1px solid rgba(217, 255, 66, 0.15);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.balance-box:hover,
.user-pill:hover {
    border-color: rgba(217, 255, 66, 0.3);
    box-shadow: 0 0 24px rgba(217, 255, 66, 0.12);
}

.balance-box span,
.user-pill span {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-box strong {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.user-pill strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--panel-2);
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #28a745);
    color: #fff;
    box-shadow: 0 4px 16px var(--success-glow);
}

.btn-success:hover {
    box-shadow: 0 8px 24px var(--success-glow);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #e55353);
    color: #fff;
    box-shadow: 0 4px 16px var(--danger-glow);
}

.full-width {
    width: 100%;
}

/* ============================================
   MESSAGES
   ============================================ */

.messages-wrap {
    margin-bottom: 18px;
}

.message-box {
    background: rgba(217, 255, 66, 0.08);
    border: 1px solid rgba(217, 255, 66, 0.2);
    color: #ffe289;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    animation: fadeInUp 0.4s ease-out;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-block {
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.section-block:nth-child(2) {
    animation-delay: 0.1s;
}

.section-block:nth-child(3) {
    animation-delay: 0.2s;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-kicker {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(217, 255, 66, 0.08);
    border: 1px solid rgba(217, 255, 66, 0.18);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ============================================
   LANDING HERO
   ============================================ */

.landing-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
    animation: fadeInUp 0.7s ease-out;
}

.landing-hero-main {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(16, 30, 60, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.landing-hero-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.landing-hero-main::after {
    content: '⚽';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 80px;
    opacity: 0.15;
    animation: float 4s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(217, 255, 66, 0.1);
    border: 1px solid rgba(217, 255, 66, 0.2);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.landing-hero-main h1 {
    margin: 0 0 14px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.landing-hero-main p {
    margin: 0;
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.landing-hero-side {
    display: grid;
    gap: 16px;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-mini-card,
.side-stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.hero-mini-card:hover,
.side-stat-card:hover {
    border-color: rgba(217, 255, 66, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero-mini-card strong,
.side-stat-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}

.hero-mini-card span,
.side-stat-card p {
    color: var(--text-secondary);
    font-size: 12px;
}

.side-stat-card strong {
    font-size: 28px;
}

/* ============================================
   MATCH CARDS
   ============================================ */

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.match-card {
    position: relative;
    background: var(--panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    animation: scaleIn 0.4s ease-out both;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 255, 66, 0.15);
    box-shadow: var(--shadow);
}

.match-card:hover::before {
    opacity: 1;
}

.match-card:nth-child(1) { animation-delay: 0.05s; }
.match-card:nth-child(2) { animation-delay: 0.1s; }
.match-card:nth-child(3) { animation-delay: 0.15s; }
.match-card:nth-child(4) { animation-delay: 0.2s; }
.match-card:nth-child(5) { animation-delay: 0.25s; }
.match-card:nth-child(6) { animation-delay: 0.3s; }

.match-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.match-card-top,
.match-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.league-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    white-space: nowrap;
}

.state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.state-live {
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.25);
    background: rgba(255, 59, 48, 0.1);
    animation: livePulse 2s infinite;
}

.state-soon {
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
    background: rgba(52, 199, 89, 0.08);
}

.state-finished {
    color: var(--muted);
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

.match-meta-line {
    color: var(--muted);
    font-size: 12px;
}

.match-card-center {
    position: relative;
    z-index: 2;
}

.teams-col {
    display: grid;
    gap: 10px;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.team-row:hover {
    background: var(--glass-strong);
    border-color: var(--glass-border);
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.team-score {
    min-width: 30px;
    text-align: right;
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Inter', monospace;
}

.teams-no-score .team-score {
    display: none;
}

/* ============================================
   ODDS PANEL
   ============================================ */

.odds-panel {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.odd-tile {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 8px;
    background: linear-gradient(135deg, rgba(33, 52, 86, 0.4), rgba(24, 40, 68, 0.6));
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    overflow: hidden;
}

.odd-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.08), transparent);
    opacity: 0;
    transition: var(--transition);
}

.odd-tile:hover {
    border-color: rgba(217, 255, 66, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(217, 255, 66, 0.12);
}

.odd-tile:hover::before {
    opacity: 1;
}

.odd-market {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.odd-num {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

/* ============================================
   VERIFIED BANNER
   ============================================ */

.verified-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(45, 212, 191, 0.06));
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #75f0a8;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease-out;
}

.btn-deposit-inline {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-deposit-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   FREEBET / MODAL OVERLAY
   ============================================ */

.freebet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.freebet-modal {
    width: 100%;
    max-width: 500px;
    position: relative;
    background: linear-gradient(160deg, rgba(20, 35, 63, 0.98), rgba(15, 26, 46, 0.98));
    border: 1px solid var(--glass-strong);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(217, 255, 66, 0.08);
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.freebet-modal::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.freebet-modal::after {
    content: '🎁';
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}

.freebet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    background: var(--glass);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.freebet-close:hover {
    background: var(--glass-strong);
    transform: rotate(90deg);
}

.freebet-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.12), rgba(217, 255, 66, 0.04));
    border: 1px solid rgba(217, 255, 66, 0.2);
    color: var(--accent);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.freebet-modal h2 {
    margin: 12px 0 8px;
    font-size: 28px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.freebet-modal p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.freebet-amount {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #fff5cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: glow 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

/* ============================================
   AUTH FORMS
   ============================================ */

.auth-shell {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    animation: scaleIn 0.5s ease-out;
}

.wide-card {
    max-width: 800px;
}

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.auth-header h1 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
}

.auth-header p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    min-height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: rgba(217, 255, 66, 0.4);
    box-shadow: 0 0 0 3px rgba(217, 255, 66, 0.1);
    background: var(--glass-strong);
}

.form-help {
    color: var(--muted);
    font-size: 12px;
}

.form-error {
    color: #ff8d8d;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   STATUS / BADGES
   ============================================ */

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.status-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    gap: 6px;
    transition: var(--transition);
}

.status-box:hover {
    border-color: rgba(217, 255, 66, 0.15);
    transform: translateY(-2px);
}

.status-box span {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    width: fit-content;
}

.badge-success {
    background: rgba(52, 199, 89, 0.12);
    color: #75f0a8;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.badge-warning {
    background: rgba(217, 255, 66, 0.1);
    color: #f3d56d;
    border: 1px solid rgba(217, 255, 66, 0.2);
}

.badge-danger {
    background: rgba(255, 107, 107, 0.1);
    color: #ff9b9b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.badge-neutral {
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

/* ============================================
   INFO PANELS
   ============================================ */

.info-panel {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(80, 184, 255, 0.06);
    border: 1px solid rgba(80, 184, 255, 0.12);
    color: #cfe9ff;
}

.profile-actions,
.verify-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* ============================================
   DEPOSIT CTA
   ============================================ */

.deposit-cta {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(45, 212, 191, 0.04));
    border: 1px solid rgba(39, 208, 81, 0.15);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.deposit-cta p {
    margin: 0 0 14px;
    color: #75f0a8;
    font-weight: 600;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   COUPON PANEL
   ============================================ */

.coupon-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 340px;
    max-height: 80vh;
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
    transition: var(--transition);
}

/* На мобильных — не fixed */
@media (max-width: 1400px) {
    .coupon-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-height: none;
        margin: 20px 0;
    }
}

.coupon-panel:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(217, 255, 66, 0.05);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass);
}

.coupon-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.coupon-badge {
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    min-width: 26px;
    text-align: center;
}

.coupon-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    max-height: 300px;
}

.coupon-items::-webkit-scrollbar {
    width: 4px;
}

.coupon-items::-webkit-scrollbar-thumb {
    background: var(--glass-strong);
    border-radius: 4px;
}

.coupon-empty-msg {
    text-align: center;
    color: var(--muted);
    padding: 40px 10px;
    font-size: 13px;
}

.coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    animation: fadeInUp 0.3s ease-out;
}

.coupon-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.coupon-item-remove {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: var(--transition);
}

.coupon-item-remove:hover {
    background: #ff3b30;
    color: #fff;
    transform: scale(1.1);
}

.coupon-match-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.coupon-market {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.coupon-item-odd {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent);
}

.coupon-footer {
    border-top: 1px solid var(--glass-border);
    padding: 14px;
    background: rgba(0, 0, 0, 0.15);
}

.coupon-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-row strong {
    color: var(--accent);
    font-size: 15px;
    font-weight: 900;
}

.summary-row.highlight strong {
    color: var(--success);
    font-size: 17px;
}

.stake-input {
    width: 100px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
    outline: none;
    transition: var(--transition);
}

.stake-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.coupon-actions {
    display: flex;
    gap: 8px;
}

.btn-clear {
    flex: 1;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: var(--glass);
}

.btn-place-bet {
    flex: 2;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-place-bet:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-place-bet:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   MATCH DETAIL PAGE
   ============================================ */

.match-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.match-hero-banner {
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.match-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 255, 66, 0.06), transparent 70%);
    pointer-events: none;
}

.match-league {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.match-time-live,
.match-time-soon,
.match-time-finished {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.match-time-live {
    color: #ff3b30;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff3b30;
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s infinite;
}

.match-minute {
    color: var(--text-secondary);
    font-weight: 600;
}

.match-hero-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-team {
    text-align: center;
}

.team-logo {
    font-size: 48px;
    margin-bottom: 8px;
}

.team-name-big {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.hero-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-big {
    font-size: 52px;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Inter', monospace;
}

.score-sep {
    font-size: 32px;
    color: var(--muted);
}

.score-vs {
    font-size: 32px;
    font-weight: 900;
    color: var(--muted);
}

/* Markets */
.markets-container {
    background: var(--panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.market-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.market-tabs::-webkit-scrollbar {
    height: 3px;
}

.market-tabs::-webkit-scrollbar-thumb {
    background: var(--glass-strong);
    border-radius: 3px;
}

.market-tab {
    flex-shrink: 0;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.market-tab:hover {
    color: #fff;
    background: var(--glass-strong);
}

.market-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(217, 255, 66, 0.04);
}

.market-panel {
    display: none;
    padding: 24px;
}

.market-panel.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.market-header {
    margin-bottom: 20px;
}

.market-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.market-desc {
    font-size: 13px;
    color: var(--muted);
}

.market-odds-grid {
    display: grid;
    gap: 10px;
}

.market-odds-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.market-odds-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.odd-btn-market {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(33, 52, 86, 0.3), rgba(24, 40, 68, 0.5));
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.odd-btn-market:hover {
    border-color: rgba(217, 255, 66, 0.3);
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.06), rgba(240, 186, 17, 0.04));
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(217, 255, 66, 0.08);
}

.odd-btn-market.selected {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(52, 199, 89, 0.06));
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

.odd-btn-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.odd-btn-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--accent);
}

/* ============================================
   BET RESULT MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(160deg, rgba(20, 35, 63, 0.98), rgba(15, 26, 46, 0.98));
    border: 1px solid var(--glass-strong);
    border-radius: 28px;
    padding: 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--glass-strong);
    transform: rotate(90deg);
}

#bet-result-icon {
    font-size: 52px;
    margin-bottom: 12px;
}

#bet-result-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #fff;
}

#bet-result-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-row strong {
    color: var(--accent);
    font-weight: 800;
}

.detail-row.highlight strong {
    color: var(--success);
    font-size: 16px;
}

/* ============================================
   QUICK ACTION BUTTONS (Deposit/Withdraw)
   ============================================ */

.quick-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease-out;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(217, 255, 66, 0.2);
}

.quick-action-btn .btn-icon {
    font-size: 22px;
}

.quick-action-btn.deposit {
    border-color: rgba(52, 199, 89, 0.2);
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.06), transparent);
}

.quick-action-btn.deposit:hover {
    border-color: rgba(52, 199, 89, 0.4);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.12);
}

.quick-action-btn.withdraw {
    border-color: rgba(100, 150, 255, 0.2);
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.06), transparent);
}

.quick-action-btn.withdraw:hover {
    border-color: rgba(100, 150, 255, 0.4);
    box-shadow: 0 8px 24px rgba(100, 150, 255, 0.12);
}

.quick-action-btn.bet-history {
    border-color: rgba(217, 255, 66, 0.2);
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.06), transparent);
}

.quick-action-btn.bet-history:hover {
    border-color: rgba(217, 255, 66, 0.4);
    box-shadow: 0 8px 24px rgba(217, 255, 66, 0.12);
}

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

@media (max-width: 1200px) and (min-width: 769px) {
    .layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        border-right: 1px solid var(--glass-border);
        border-bottom: none;
    }

    .content {
        padding: 16px;
    }
}

@media (max-width: 980px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-hero-main h1 {
        font-size: 28px;
    }

    .hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .match-hero-teams {
        gap: 24px;
    }

    .score-big {
        font-size: 40px;
    }

    .team-name-big {
        font-size: 15px;
    }

    .market-odds-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 16px;
    }

    .match-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .hero-cta-row .btn {
        width: 100%;
    }

    .quick-actions-row {
        flex-direction: column;
    }

    .quick-action-btn {
        width: 100%;
        justify-content: center;
    }

    .freebet-modal {
        padding: 28px 20px;
    }

    .freebet-amount {
        font-size: 44px;
    }

    .coupon-panel {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .market-odds-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .market-odds-grid.grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   WALLET
   ============================================ */

.wallet-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.wallet-tx-card {
    margin-bottom: 15px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.wallet-tx-card:hover {
    border-color: rgba(217, 255, 66, 0.15);
    transform: translateY(-2px);
}

/* ============================================
   EVENT EMPTY
   ============================================ */

.event-empty {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px dashed var(--glass-strong);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

/* ============================================
   DECORATIVE IMAGES / SVGs
   ============================================ */

.decorative-sport-icon {
    font-size: 64px;
    opacity: 0.12;
    position: absolute;
    bottom: 16px;
    right: 16px;
    animation: float 5s ease-in-out infinite;
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.08;
}

.hero-decoration-1 {
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-2 {
    bottom: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-2);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: float 4s ease-in-out infinite reverse;
}

/* ============================================
   QUICK BALANCE DISPLAY
   ============================================ */

.balance-display {
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.08), rgba(217, 255, 66, 0.02));
    border: 1px solid rgba(217, 255, 66, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease-out;
}

.balance-display .balance-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
}

.balance-display .balance-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-display .balance-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */

.shimmer {
    background: linear-gradient(
        90deg,
        var(--glass) 0%,
        var(--glass-strong) 50%,
        var(--glass) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   ENHANCED UI — MODERN BOOKMAKER DESIGN
   ============================================ */

/* Enhanced match card hover effects */
.match-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.match-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 255, 66, 0.03), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.match-card:hover::after {
    left: 100%;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(217, 255, 66, 0.15);
}

/* Enhanced odds tiles with gradient and glow */
.odd-tile {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.odd-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.odd-tile:hover::before {
    opacity: 1;
}

.odd-tile:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.odd-tile .odd-num {
    font-weight: 900;
    font-size: 15px;
    transition: color 0.3s ease;
}

.odd-tile:hover .odd-num {
    color: var(--accent);
}

/* Enhanced league pill */
.league-pill {
    position: relative;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(45, 212, 191, 0.05));
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.league-pill:hover {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0.08));
    border-color: var(--accent-2);
}

/* Enhanced state pills */
.state-pill {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.state-live {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 59, 48, 0.08));
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--danger);
    animation: livePulse 2s ease-in-out infinite;
}

.state-soon {
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.1), rgba(217, 255, 66, 0.05));
    border: 1px solid rgba(217, 255, 66, 0.2);
    color: var(--accent);
}

.state-finished {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

/* Enhanced team names */
.team-name {
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s ease;
}

.match-card:hover .team-name {
    color: #fff;
}

.team-score {
    font-weight: 900;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

/* Enhanced section titles */
.section-block {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out both;
}

.section-block:nth-child(2) { animation-delay: 0.1s; }
.section-block:nth-child(3) { animation-delay: 0.2s; }

.section-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-2);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.section-block h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced quick action buttons */
.quick-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease-out both;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-btn:hover::before {
    opacity: 1;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quick-action-btn.deposit {
    border-color: rgba(52, 199, 89, 0.3);
}

.quick-action-btn.deposit:hover {
    border-color: var(--success);
    box-shadow: 0 8px 24px var(--success-glow);
}

.quick-action-btn.withdraw {
    border-color: rgba(255, 107, 107, 0.3);
}

.quick-action-btn.withdraw:hover {
    border-color: var(--danger);
    box-shadow: 0 8px 24px var(--danger-glow);
}

.quick-action-btn .btn-icon {
    font-size: 18px;
}

/* Enhanced verified banner */
.verified-banner {
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(52, 199, 89, 0.03));
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #75f0a8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInDown 0.5s ease-out;
}

.btn-deposit-inline {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--success), #28a745);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-deposit-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--success-glow);
}

/* Enhanced empty state */
.event-empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    animation: fadeIn 0.5s ease;
}

/* Enhanced match meta line */
.match-meta-line {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Enhanced balance box */
.balance-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.balance-box span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.balance-box strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* Enhanced user pill */
.user-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-pill span {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.user-pill strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Top links */
.top-link {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.top-link:hover {
    background: var(--glass-strong);
    color: var(--accent);
}

/* Enhanced sidebar */
.sidebar {
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.sidebar-menu a {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sidebar-menu a:hover {
    background: var(--glass-strong);
    color: var(--accent);
    transform: translateX(4px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.1), rgba(217, 255, 66, 0.05));
    border: 1px solid rgba(217, 255, 66, 0.2);
    color: var(--accent);
}

/* Status grid in profile */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.status-box {
    padding: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.status-box span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Deposit CTA */
.deposit-cta {
    padding: 16px;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.06), rgba(217, 255, 66, 0.02));
    border: 1px solid rgba(217, 255, 66, 0.15);
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.deposit-cta p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Profile actions */
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Landing hero enhancements */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.landing-hero-main {
    padding: 40px;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.04), rgba(45, 212, 191, 0.03));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.landing-hero-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 255, 66, 0.08), transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.landing-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(217, 255, 66, 0.15), rgba(217, 255, 66, 0.08));
    border: 1px solid rgba(217, 255, 66, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.landing-hero-main h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.landing-hero-main p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-mini-card {
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-mini-card:hover {
    border-color: rgba(217, 255, 66, 0.2);
    transform: translateY(-2px);
}

.hero-mini-card strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
}

.hero-mini-card span {
    font-size: 11px;
    color: var(--muted);
}

.landing-hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-stat-card {
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.side-stat-card:hover {
    border-color: rgba(217, 255, 66, 0.2);
    transform: translateX(-4px);
}

.side-stat-card strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.side-stat-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* Verified banner animation */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced messages */
.messages-wrap {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-box {
    padding: 12px 20px;
    background: var(--panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: slideInRight 0.4s ease-out;
    max-width: 350px;
}

/* Promo line enhancements */
.promo-line {
    background: linear-gradient(90deg, rgba(217, 255, 66, 0.08), rgba(45, 212, 191, 0.06), rgba(217, 255, 66, 0.08));
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    overflow: hidden;
    contain: paint;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.promo-track {
    display: flex;
    gap: 60px;
    animation: scrollPromo 60s linear infinite;
    white-space: nowrap;
}

.promo-track span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.promo-track strong {
    color: var(--accent);
}

@keyframes scrollPromo {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive enhancements */
@media (max-width: 1200px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .landing-hero-side {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .landing-hero-main { padding: 24px; }
    .landing-hero-main h1 { font-size: 26px; }
    .status-grid { grid-template-columns: 1fr; }
    .hero-mini-grid { grid-template-columns: 1fr; }
    .landing-hero-side { flex-direction: column; }
    .quick-actions-row { flex-direction: column; }
    .quick-action-btn { width: 100%; justify-content: center; }
    .verified-banner { flex-direction: column; text-align: center; }
}

/* ============================================
   LIVE HERO BANNER
   ============================================ */

.live-section { margin-bottom: 40px; }

.live-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #1a0a2e, #16213e, #0f3460);
    border-radius: 24px;
    padding: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 59, 48, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.live-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.live-pulse {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15), transparent 70%);
    animation: livePulseRing 3s ease-in-out infinite;
}

.live-pulse-1 { width: 300px; height: 300px; top: -100px; right: -50px; animation-delay: 0s; }
.live-pulse-2 { width: 200px; height: 200px; bottom: -80px; left: 10%; animation-delay: 1s; }
.live-pulse-3 { width: 150px; height: 150px; top: 20%; left: 50%; animation-delay: 2s; }

@keyframes livePulseRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.live-content { position: relative; z-index: 1; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
    color: #ff6b6b;
    letter-spacing: 1px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    50% { opacity: 0.5; box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
}

.live-hero-banner h2 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.live-scores-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.live-scores-row::-webkit-scrollbar { height: 4px; }
.live-scores-row::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 2px; }
.live-scores-row::-webkit-scrollbar-thumb { background: rgba(255, 59, 48, 0.3); border-radius: 2px; }

.live-score-card {
    flex-shrink: 0;
    min-width: 280px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

.live-score-card:hover {
    border-color: rgba(255, 59, 48, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 59, 48, 0.15);
}

.live-league {
    font-size: 11px;
    font-weight: 700;
    color: #7a8ba8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.live-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.live-team {
    font-size: 15px;
    font-weight: 700;
    color: #eef4ff;
}

.live-score {
    font-size: 28px;
    font-weight: 900;
    color: #d9ff42;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 4px;
}

.live-bet-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.live-bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.3);
}

/* League icon in pill */
.league-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-user-select: none;
    user-select: none;
}

.league-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    /* Запретить изменение цвета при выделении и hover */
    -webkit-filter: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* При hover на match-card иконка лиги не должна менять цвет */
.match-card:hover .league-icon,
.match-card:hover .league-pill .league-icon {
    -webkit-filter: none !important;
    filter: none !important;
    background: none !important;
}

/* Исправить выделение текста — иконки не должны становиться белыми */
.match-card ::selection {
    background: rgba(217, 255, 66, 0.3);
}
.match-card ::-moz-selection {
    background: rgba(217, 255, 66, 0.3);
}

/* Finished card style */
.finished-card { opacity: 0.7; }
.finished-card:hover { opacity: 1; }
.finished-card .team-score { color: var(--accent); }

@media (max-width: 768px) {
    .live-hero-banner { padding: 24px; }
    .live-hero-banner h2 { font-size: 22px; }
    .live-score-card { min-width: 240px; }
    .live-scores-row { flex-direction: column; }
}

/* ============================================
   LOGO — main screen style
   ============================================ */

.logo-text {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--accent);
    text-shadow: 0 3px 10px rgba(217, 255, 66, 0.35);
}

/* ============================================
   SIDEBAR AUTH BUTTONS
   ============================================ */

.sidebar-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.sidebar-btn-login,
.sidebar-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.sidebar-btn-login {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.sidebar-btn-register {
    background: linear-gradient(135deg, #e8ff70, #9fd11f);
    color: #0a0a0a;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(217, 255, 66, 0.3);
}

.sidebar-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 255, 66, 0.4);
}

/* ============================================
   MISSING ANIMATIONS
   ============================================ */

@keyframes floatDecor {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

/* ============================================
   STATIC CONTENT PAGES (FAQ, Help, Rules, Contacts)
   ============================================ */

.profile-card {
    max-width: 860px;
    margin: 32px auto 60px;
    padding: 40px 48px;
    background: var(--panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(217, 255, 66, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.profile-card h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: -0.5px;
}

.profile-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 8px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}

.profile-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-card p strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-card {
        padding: 24px 20px;
        margin: 16px 0 40px;
        border-radius: var(--radius);
    }
    .profile-card h1 {
        font-size: 22px;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: #060c18;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 32px 24px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 32px;
}
.footer-brand-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 12px;
    max-width: 240px;
}
.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy {
    font-size: 12px;
    color: var(--muted);
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-badge-18 {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    background: #c0392b;
    border-radius: 6px;
    padding: 3px 7px;
    letter-spacing: .03em;
}
.footer-badge-demo {
    font-size: 11px;
    color: var(--muted);
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 3px 8px;
}
.footer-responsible {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-resp-badge {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: #c0392b;
    border-radius: 6px;
    padding: 4px 9px;
    flex-shrink: 0;
}
.footer-resp-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
    min-width: 200px;
}
.footer-resp-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.footer-resp-links a {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 3px 8px;
    transition: color .15s, border-color .15s;
}
.footer-resp-links a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer { padding: 36px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-responsible { gap: 12px; }
}

/* ============================================
   GLOBAL BET SLIP PANEL
   ============================================ */

/* Panel — hidden by default, fixed on right side */
.betslip-panel {
    position: fixed;
    right: -360px;
    bottom: 0;
    top: 0;
    width: 320px;
    background: var(--card, #111827);
    border-left: 1px solid rgba(255,255,255,.08);
    box-shadow: -8px 0 32px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    z-index: 400;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.betslip-panel.open {
    right: 0;
}

.betslip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.betslip-badge {
    background: var(--lime, #d9ff42);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 900;
    padding: 1px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
.betslip-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--muted, #8899aa);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.betslip-close:hover { color: var(--text, #fff); background: rgba(255,255,255,.07); }

.betslip-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}
.betslip-empty {
    font-size: 12px;
    color: var(--muted, #8899aa);
    text-align: center;
    padding: 32px 16px;
    line-height: 1.6;
}

/* Single selection row */
.betslip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.betslip-item:last-child { border-bottom: none; }
.bsi-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bsi-icon { font-size: 15px; flex-shrink: 0; }
.bsi-info { min-width: 0; }
.bsi-teams { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsi-market { font-size: 10px; color: var(--muted, #8899aa); font-weight: 600; margin-top: 1px; }
.bsi-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bsi-odd { font-size: 14px; font-weight: 900; color: var(--lime, #d9ff42); }
.bsi-remove {
    background: none; border: none; color: var(--muted, #8899aa); cursor: pointer;
    font-size: 13px; padding: 2px 5px; border-radius: 5px; transition: color .15s;
}
.bsi-remove:hover { color: #ff5555; }

.betslip-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.betslip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted, #8899aa);
}
.betslip-row strong {
    font-size: 14px;
    font-weight: 900;
    color: var(--text, #fff);
}
.betslip-win-row strong { color: var(--lime, #d9ff42); font-size: 16px; }

.betslip-stake {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text, #fff);
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.betslip-stake:focus { border-color: rgba(217,255,66,.4); }

.betslip-place-btn {
    width: 100%;
    padding: 12px;
    background: var(--lime, #d9ff42);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity .15s;
}
.betslip-place-btn:hover { opacity: .9; }
.betslip-place-btn:disabled { opacity: .5; cursor: not-allowed; }

.betslip-clear-btn {
    width: 100%;
    padding: 8px;
    background: none;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    color: var(--muted, #8899aa);
    cursor: pointer;
    transition: all .15s;
}
.betslip-clear-btn:hover { border-color: rgba(255,85,85,.3); color: #ff5555; }

/* FAB button (mobile/collapsed state) */
.betslip-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 399;
    background: var(--lime, #d9ff42);
    color: #0a0a0a;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: transform .2s, box-shadow .2s;
}
.betslip-fab:hover { transform: scale(1.05); box-shadow: 0 6px 30px rgba(0,0,0,.5); }

/* Confirmation modal */
.betslip-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.betslip-modal-box {
    background: var(--card, #111827);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 380px;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.betslip-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted, #8899aa);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color .15s;
}
.betslip-modal-close:hover { color: var(--text, #fff); }
.bm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.bm-row:last-child { border-bottom: none; }
.bm-row span { color: var(--muted, #8899aa); }
.bm-hl strong { color: var(--lime, #d9ff42); font-size: 16px; }

/* On desktop — shift content when panel is open */
@media (min-width: 1025px) {
    body.betslip-open .layout {
        padding-right: 320px;
        transition: padding-right .3s cubic-bezier(.4,0,.2,1);
    }
    /* Hide FAB on desktop when panel has space */
    .betslip-panel.open ~ .betslip-fab { display: none !important; }
}

/* Mobile — full width slide up from bottom */
@media (max-width: 1024px) {
    .betslip-panel {
        top: auto;
        right: 0;
        left: 0;
        bottom: -100%;
        width: 100%;
        max-height: 80vh;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.08);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,.5);
        transition: bottom .3s cubic-bezier(.4,0,.2,1);
    }
    .betslip-panel.open {
        bottom: 0;
        right: 0;
    }
}

/* ── Touch targets ≥ 44×44px (WCAG 2.5.5) ────────────────── */
.odd-btn,
.featured-odd-btn,
.sport-chip {
    min-height: 44px;
}
.icon-btn,
.bslip-clear,
.bslip-close,
.search-close-btn,
.topbar-search-btn {
    min-height: 44px;
    min-width: 44px;
}
.lock-prompt-box .lp-close {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Скрываем подсказки клавиш на тач-устройствах ─────────── */
@media (hover: none) {
    .kbd-hint,
    .search-kbd,
    .search-footer {
        display: none;
    }
}

/* odds not available placeholder */
.odd-btn--na {
    cursor: default;
    opacity: .4;
    pointer-events: none;
    font-size: 18px;
    letter-spacing: 0;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE DESIGN  ≤ 768px
   Sidebar becomes a slide-in drawer, bottom nav for navigation
══════════════════════════════════════════════════════════════ */

/* --- Drawer overlay --- */
.mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 1200;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    cursor: pointer;
}

/* --- Bottom navigation bar --- */
.mob-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 900;
    background: #0b1120;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav__row {
    display: flex;
    height: 56px;
}
.mob-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: rgba(255,255,255,.4);
    font-size: 10px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color .15s;
    position: relative;
}
.mob-nav__item.active,
.mob-nav__item:hover { color: var(--lime, #d9ff42); }
.mob-nav__icon { font-size: 21px; line-height: 1; }
.mob-nav__live-dot {
    position: absolute;
    top: 5px;
    right: calc(50% - 14px);
    width: 7px; height: 7px;
    background: #e53935;
    border-radius: 50%;
    border: 2px solid #0b1120;
}

/* --- Mobile topbar --- */
.mob-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 800;
    background: rgba(8,14,28,.97);
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 12px;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mob-topbar__left  { display: flex; align-items: center; gap: 10px; }
.mob-topbar__right { display: flex; align-items: center; gap: 6px; }

.mob-burger {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.mob-burger:hover { background: rgba(255,255,255,.1); border-color: rgba(217,255,66,.4); }

.mob-logo {
    display: flex; align-items: center; gap: 7px;
    text-decoration: none;
    font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 1px;
}

.mob-balance {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--lime, #d9ff42);
    white-space: nowrap;
}

.mob-search-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    cursor: pointer;
}

.mob-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--lime, #d9ff42);
    color: #0a0a0a;
    font-weight: 900; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}
.mob-avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    /* Show mobile elements */
    .mob-nav       { display: block; }
    .mob-topbar    { display: flex; }

    /* Hide desktop elements */
    .sidebar       { display: none !important; }
    .topbar        { display: none !important; }
    .promo-line    { display: none; }

    /* Layout: full width, remove stacking context so fixed sidebar escapes it */
    .layout { grid-template-columns: 1fr; min-height: auto; position: static; z-index: auto; }

    /* Content: no top padding (mob-topbar is sticky), pad bottom for nav */
    .content {
        padding: 12px 12px 72px !important;
        min-height: auto;
    }

    /* Sidebar as drawer */
    .sidebar.mob-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0;
        width: min(78vw, 290px);
        height: 100dvh;
        height: 100vh;
        z-index: 1300;
        overflow-y: auto;
        border-right: 1px solid rgba(255,255,255,.1) !important;
        background: linear-gradient(180deg,rgba(8,14,28,.99),rgba(6,10,20,1)) !important;
        animation: slideInLeft .22s cubic-bezier(.4,0,.2,1);
    }
    .mob-overlay.active { display: block; }

    /* Sidebar drawer close button */
    .mob-drawer-close {
        display: flex !important;
    }

    /* Match cards: full width */
    .match-grid { grid-template-columns: 1fr; }

    /* Featured matches: full width cards */
    .featured-grid { grid-template-columns: 1fr; }

    /* KPI stats */
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-page { max-width: 100%; }
    .win-rate-circle { flex-direction: column; text-align: center; }

    /* ROI bar text */
    .roi-bar-label { flex-direction: column; gap: 4px; }
    .roi-bar-label strong { font-size: 22px; }

    /* Footer: single column on mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { padding: 24px 16px; }

    /* Forms full width */
    .auth-card { max-width: 100%; margin: 0; border-radius: 16px; }
}


