:root,
html[data-theme="dark"] {
    --bg-primary: #04060a;
    --bg-secondary: #090d16;
    --bg-card: rgba(13, 20, 38, 0.65);
    --bg-card-hover: rgba(13, 20, 38, 0.9);
    --bg-elevated: rgba(13, 20, 38, 0.5);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(224, 90, 43, 0.5);
    --border-strong: rgba(255, 255, 255, 0.15);
    --accent: #e05a2b;
    --accent-hover: #ff7643;
    --accent-glow: rgba(224, 90, 43, 0.35);
    --steam: #66c0f4;
    --steam-glow: rgba(102, 192, 244, 0.4);
    --text: #f1f4f9;
    --text-muted: #8e98a8;
    --text-dim: #5a6673;
    --text-inverse: #0a0e14;
    --green: #43b581;
    --yellow: #faa61a;
    --red: #f04747;
    --black: #4f545c;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(224, 90, 43, 0.3);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(4, 6, 10, 0.85);
    --footer-bg: rgba(4, 6, 10, 0.6);
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-hover));
    --gradient-steam: linear-gradient(135deg, #1b2838, #2a475e);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-elevated: rgba(255, 255, 255, 0.7);
    --bg-input: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(224, 90, 43, 0.6);
    --border-strong: rgba(0, 0, 0, 0.15);
    --accent: #d94a2f;
    --accent-hover: #c03b22;
    --accent-glow: rgba(217, 74, 47, 0.35);
    --steam: #1b7bbd;
    --steam-glow: rgba(27, 123, 189, 0.35);
    --text: #1a2029;
    --text-muted: #5a6673;
    --text-dim: #8892a0;
    --text-inverse: #ffffff;
    --green: #2ea86b;
    --yellow: #d99414;
    --red: #d93838;
    --black: #6b7280;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 48px rgba(217, 74, 47, 0.2);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
    --header-bg: rgba(255, 255, 255, 0.85);
    --footer-bg: rgba(255, 255, 255, 0.7);
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-hover));
    --gradient-steam: linear-gradient(135deg, #1b7bbd, #4ca9e6);
    color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(224, 90, 43, 0.08), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(95, 168, 45, 0.06), transparent 35%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, var(--bg-primary) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, .page-title, .section-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }

.vlg-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(4, 6, 10, 0.95) 0%, rgba(4, 6, 10, 0) 100%);
    transition: all 0.3s ease;
}

.vlg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
    padding: 0 clamp(20px, 3vw, 40px);
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
}

.vlg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 15px var(--accent-glow);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: #fff; white-space: nowrap; }
.brand-text small { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }

.vlg-nav { display: flex; gap: 24px; flex-shrink: 0; }
.vlg-nav a { color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; position: relative; white-space: nowrap; }
.vlg-nav a:hover, .vlg-nav a.active { color: var(--accent); }
.vlg-nav a.active::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.vlg-auth { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.vlg-coins { background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--border); transition: border-color 0.3s; white-space: nowrap; }
.vlg-coins:hover { border-color: var(--accent); }
.vlg-user { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 600; font-size: 0.9rem; }
.vlg-user img, .vlg-avatar-ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.vlg-avatar-ph { background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.vlg-btn-logout, .vlg-btn-login { padding: 8px 16px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: all 0.3s; white-space: nowrap; }
.vlg-btn-logout:hover { background: rgba(224, 90, 43, 0.2); border-color: var(--accent); }
.vlg-btn-login { background: var(--accent); border-color: var(--accent); }
.vlg-btn-login:hover { background: var(--accent-hover); }

.vlg-btn-panel { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: #fff; cursor: pointer; transition: all 0.3s; padding: 0; margin-left: 4px; }
.vlg-btn-panel:hover { background: rgba(224, 90, 43, 0.2); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.vlg-btn-panel svg { width: 20px; height: 20px; }

.vlg-main { min-height: 100vh; padding-top: 86px; }
.vlg-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s, color 0.3s;
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
    color: var(--text);
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient-accent);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    box-shadow: 0 4px 20px var(--accent-glow);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px var(--accent-glow); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
html[data-theme="light"] .btn-secondary { background: rgba(0, 0, 0, 0.04); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-hover); transform: translateY(-3px); }
html[data-theme="light"] .btn-secondary:hover { background: rgba(0, 0, 0, 0.08); }

.btn-steam { background: var(--gradient-steam); color: #ffffff !important; border: 1px solid rgba(102, 192, 244, 0.4); box-shadow: 0 4px 20px rgba(102, 192, 244, 0.15); }
.btn-steam:hover { transform: translateY(-2px); border-color: var(--steam); box-shadow: 0 8px 32px var(--steam-glow); }

.btn-logout { background: rgba(255, 255, 255, 0.05); color: var(--text-muted) !important; border: 1px solid var(--border); }
html[data-theme="light"] .btn-logout { background: rgba(0, 0, 0, 0.04); }
.btn-logout:hover { background: rgba(240, 71, 71, 0.15); color: var(--red) !important; border-color: rgba(240, 71, 71, 0.4); }

.steam-icon { font-size: 16px; }

.main { flex: 1; padding: 60px 0; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero { text-align: center; padding: 80px 20px; position: relative; }
.hero h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.accent { background: var(--gradient-accent); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-block; }
.hero-subtitle { font-size: clamp(15px, 2vw, 20px); color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 60px 0; }
.card { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-8px); border-color: var(--border-hover); background: var(--bg-card-hover); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 42px; margin-bottom: 16px; display: inline-block; transition: var(--transition); }
.card:hover .card-icon { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent-glow)); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.next-wipe { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 40px; text-align: center; border: 1px solid var(--border); margin-top: 40px; position: relative; overflow: hidden; }
.next-wipe h2 { margin-bottom: 24px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; }
.wipe-title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; position: relative; z-index: 1; }
.wipe-date { font-size: 18px; margin-bottom: 24px; color: var(--text-muted); position: relative; z-index: 1; }
.wipe-countdown { font-size: clamp(24px, 4vw, 42px); font-weight: 800; font-family: 'JetBrains Mono', 'Courier New', monospace; background: linear-gradient(135deg, var(--steam), #a8d8ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 2px; position: relative; z-index: 1; }

.page-title { font-size: clamp(26px, 4vw, 42px); font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; text-align: center; }
.page-subtitle { text-align: center; color: var(--text-muted); font-size: 16px; max-width: 700px; margin: 0 auto 40px; }

.stats-table { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.stats-header, .stats-row { display: grid; grid-template-columns: 80px 1fr 140px; padding: 18px 28px; align-items: center; transition: var(--transition); }
.stats-header { background: rgba(255, 255, 255, 0.03); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; }
html[data-theme="light"] .stats-header { background: rgba(0, 0, 0, 0.03); }
.stats-row { border-top: 1px solid var(--border); position: relative; }
.stats-row:hover { background: rgba(255, 255, 255, 0.03); transform: translateX(4px); }
html[data-theme="light"] .stats-row:hover { background: rgba(0, 0, 0, 0.02); }
.stats-col-rank { color: var(--text-dim); font-weight: 800; font-size: 18px; }
.stats-row:nth-child(2) .stats-col-rank { color: #ffd700; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
.stats-row:nth-child(3) .stats-col-rank { color: #c0c0c0; text-shadow: 0 0 20px rgba(192, 192, 192, 0.5); }
.stats-row:nth-child(4) .stats-col-rank { color: #cd7f32; text-shadow: 0 0 20px rgba(205, 127, 50, 0.5); }
.stats-col-name { font-weight: 500; font-size: 15px; }
.stats-col-hours { text-align: right; color: var(--steam); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.stats-note { text-align: center; color: var(--text-dim); margin-top: 24px; font-size: 14px; }

.schedule-list { display: flex; flex-direction: column; gap: 16px; }
.schedule-item { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 28px 32px; border: 1px solid var(--border); display: grid; grid-template-columns: 220px 160px 1fr; align-items: center; gap: 24px; transition: var(--transition); position: relative; overflow: hidden; }
.schedule-item:hover { transform: translateX(8px); border-color: var(--border-hover); box-shadow: 0 8px 32px rgba(206, 66, 43, 0.2); }
.schedule-day { font-weight: 800; font-size: 20px; }
.schedule-time { color: var(--steam); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 18px; letter-spacing: 1px; }
.schedule-title { color: var(--text-muted); font-weight: 500; }
.schedule-note { text-align: center; color: var(--text-dim); margin-top: 32px; font-size: 14px; }

.profile-header { display: flex; align-items: center; gap: 32px; background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); margin-bottom: 32px; position: relative; overflow: hidden; }
.profile-avatar { width: 120px; height: 120px; border-radius: 24px; border: 3px solid var(--accent); box-shadow: 0 0 40px var(--accent-glow); transition: var(--transition); position: relative; z-index: 1; object-fit: cover; flex-shrink: 0; }
.profile-info { position: relative; z-index: 1; min-width: 0; }
.profile-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; word-break: break-word; }
.profile-steamid { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; word-break: break-all; }
.profile-steamid code { background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--steam); }
html[data-theme="light"] .profile-steamid code { background: rgba(0, 0, 0, 0.05); }
.profile-role { font-size: 15px; color: var(--text-muted); }
.profile-content { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); }
.profile-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.profile-content p { color: var(--text-muted); margin-bottom: 16px; }
.profile-content ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.profile-content li { background: rgba(255, 255, 255, 0.03); padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: var(--transition); font-size: 14px; }
html[data-theme="light"] .profile-content li { background: rgba(0, 0, 0, 0.02); }
.profile-content li:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-hover); transform: translateY(-2px); }

.footer { background: var(--footer-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 28px 0; text-align: center; color: var(--text-dim); font-size: 14px; border-top: 1px solid var(--border); margin-top: 80px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), #8b2a1a); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
::selection { background: var(--accent); color: white; }

@media (max-width: 1024px) {
    .vlg-header-inner { gap: 16px; }
    .vlg-nav a { padding: 8px 12px; font-size: 13px; }
    .user-name { max-width: 100px; }
}

@media (max-width: 768px) {
    .vlg-header-inner { height: 72px; }
    .vlg-nav { display: none; }
    .main { padding: 40px 0; }
    .hero { padding: 40px 16px; }
    .hero h1 { font-size: 32px; }
    .cards { gap: 16px; margin: 40px 0; }
    .card { padding: 24px; }
    .next-wipe { padding: 28px 20px; }
    .stats-header, .stats-row { grid-template-columns: 50px 1fr 90px; padding: 14px 18px; font-size: 13px; }
    .stats-col-rank { font-size: 15px; }
    .stats-col-hours { font-size: 14px; }
    .schedule-item { grid-template-columns: 1fr; gap: 8px; text-align: center; padding: 20px; }
    .schedule-day { font-size: 17px; }
    .schedule-time { font-size: 16px; }
    .profile-header { flex-direction: column; text-align: center; padding: 28px 20px; gap: 20px; }
    .profile-avatar { width: 100px; height: 100px; }
    .profile-content { padding: 24px 20px; }
    .page-title { font-size: 26px; }
    .footer { margin-top: 40px; padding: 20px 0; font-size: 13px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo a { font-size: 16px; }
    .hero h1 { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .card { padding: 20px; }
    .card-icon { font-size: 32px; }
    .card h3 { font-size: 17px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-info h1 { font-size: 22px; }
    .theme-btn { width: 32px; height: 32px; font-size: 14px; }
    .btn-logout, .btn-steam { padding: 8px 14px; font-size: 13px; }
    .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 14px; width: 100%; }
    .hero-buttons { flex-direction: column; width: 100%; }
}

.scroll-animate { opacity: 0; transform: translateY(50px) scale(0.95); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.scroll-animate.visible { opacity: 1; transform: translateY(0) scale(1); }
body.page-exit { opacity: 0; transform: scale(0.98); transition: opacity 0.25s ease, transform 0.25s ease; }

.profile-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.profile-section-title { margin-bottom: 8px; }
.profile-section-desc { color: var(--text-muted); }
.profile-balance-block { text-align: right; }
.profile-balance-label { font-size: 14px; color: var(--text-dim); text-transform: uppercase; }
.profile-balance-value { font-size: 32px; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.profile-actions { margin-top: 20px; }
.profile-history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.profile-history-item { display: flex; justify-content: space-between; padding: 12px; background: rgba(255, 255, 255, 0.02); border-radius: 8px; border: 1px solid var(--border); }
.profile-history-reason { font-weight: 600; }
.profile-history-date { font-size: 12px; color: var(--text-dim); }
.profile-history-amount { font-weight: 800; }
.amount-plus { color: var(--green); }
.amount-minus { color: var(--red); }

#global-roulette-history { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.global-history-item { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: all 0.2s; }
html[data-theme="light"] .global-history-item { background: rgba(0, 0, 0, 0.02); }
.global-history-item:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent); }
.global-history-new { animation: historySlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes historySlideIn { from { opacity: 0; transform: translateX(-15px); background: rgba(212, 175, 55, 0.2); } to { opacity: 1; transform: translateX(0); background: rgba(255, 255, 255, 0.02); } }
.global-history-avatar { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); object-fit: cover; flex-shrink: 0; }
.global-history-avatar-ph { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-accent); color: #0d0b08; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.global-history-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.global-history-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-history-chance { font-size: 11px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.global-history-amount { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 800; white-space: nowrap; }
.global-history-amount.win { color: var(--green); }
.global-history-amount.lose { color: var(--red); }

.stats-grid {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.stats-table {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.stat-card, 
.card, 
.info-card, 
.about-feature, 
.about-stat-card, 
.game-card {
    overflow: hidden !important;
    position: relative;
}

.stat-icon, 
.card-icon, 
.info-card-icon, 
.about-feature-icon, 
.about-stat-icon,
.game-card-icon {
    transform: none !important;
    animation: none !important;
    transition: filter 0.3s ease !important;
}

.stat-card:hover .stat-icon, 
.card:hover .card-icon, 
.info-card:hover .info-card-icon, 
.about-feature:hover .about-feature-icon,
.about-stat-card:hover .about-stat-icon,
.game-card:hover .game-card-icon {
    transform: none !important;
    animation: none !important;
    filter: drop-shadow(0 0 15px var(--accent-glow)) !important;
}

.about-hero {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 48px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.about-hero-text h2 { font-size: 32px; margin-bottom: 20px; color: #fff; }
.about-hero-text p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-hero-text strong { color: var(--accent); font-weight: 700; }

.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 60px; }
.about-stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px 24px; border: 1px solid var(--border); text-align: center; overflow: hidden; }
.about-stat-value { font-size: 32px; font-weight: 800; color: var(--accent); font-family: var(--font-display); margin-bottom: 6px; }
.about-stat-label { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.timeline { position: relative; padding-left: 40px; margin-top: 30px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); }
.timeline-item { position: relative; margin-bottom: 32px; transition: transform 0.3s; }
.timeline-item:hover { transform: translateX(8px); }
.timeline-dot { position: absolute; left: -34px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.timeline-date { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.timeline-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.timeline-content p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.rules-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.rule-category { background: var(--bg-card); backdrop-filter: blur(20px); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.rule-category:hover, .rule-category.open { border-color: var(--border-hover); }
.rule-header { width: 100%; background: transparent; border: none; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 700; text-align: left; }
.rule-header-left { display: flex; align-items: center; gap: 16px; }
.rule-icon { font-size: 24px; }
.rule-count { background: rgba(224, 90, 43, 0.15); color: var(--accent); padding: 2px 10px; border-radius: 100px; font-size: 12px; font-weight: 800; }
.rule-arrow { color: var(--text-muted); transition: transform 0.3s; }
.rule-category.open .rule-arrow { transform: rotate(180deg); color: var(--accent); }
.rule-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.rule-list { list-style: none; padding: 0 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.rule-item { display: flex; gap: 14px; padding: 14px 18px; background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-sm); border-left: 3px solid rgba(224, 90, 43, 0.3); transition: all 0.3s; }
.rule-item:hover { background: rgba(255, 255, 255, 0.05); border-left-color: var(--accent); transform: translateX(4px); }
.rule-bullet { color: var(--accent); font-weight: 700; }
.rule-text { color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.rule-item:hover .rule-text { color: #fff; }

body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input, 
textarea, 
.ticket-message-content, 
.profile-history-reason,
p, 
li,
.rule-text {
    user-select: text !important;
    -webkit-user-select: text !important;
}

h1, h2, h3, h4, h5, h6, 
.page-title, 
.section-title, 
.card, 
.btn, 
.vlg-brand, 
.vlg-nav a {
    cursor: default !important;
}