
/* DinoLife AAA+ Global Stylesheet */
:root {
    --bg-dark: #050608;
    --panel-bg: rgba(10, 14, 23, 0.45);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    
    --accent-cyan: #00f0ff;
    --accent-purple: #9d00ff;
    --accent-pink: #ff0055;
    --accent-gold: #ffb800;
    
    --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 50px rgba(0, 240, 255, 0.2);
    --glow-purple: 0 0 25px rgba(157, 0, 255, 0.6);
    
    --text-main: #f0f2f5;
    --text-muted: #8b9bb4;
    
    --font-en: 'Outfit', sans-serif;
    --font-th: 'Prompt', sans-serif;
    
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: var(--font-en);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); box-shadow: var(--glow-cyan); }

/* AAA+ Animated Background */
.aaa-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    background: #030407;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 { width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(157,0,255,0.15), transparent); top: -20%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0,240,255,0.12), transparent); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(255,0,85,0.08), transparent); top: 30%; left: 40%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vh) scale(1.2); }
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03; z-index: -1; pointer-events: none;
}

/* Glass Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-panel:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Sidebar Ultra-Premium */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(6, 8, 12, 0.7);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255,255,255,0.05);
    position: fixed;
    top: 0; left: 0; height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-logo i {
    font-size: 2.8rem;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(157,0,255,0.5));
}

.sidebar-logo h2 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}
.sidebar-logo span {
    color: var(--accent-purple);
    font-weight: 400;
}

.vertical-nav ul { list-style: none; padding: 20px 15px; }
.vertical-nav ul li { margin-bottom: 8px; border-radius: 12px; transition: all 0.3s ease; position: relative; }
.vertical-nav ul a {
    display: flex; align-items: center; padding: 14px 20px;
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
    transition: all 0.3s ease;
}
.vertical-nav ul i { font-size: 1.4rem; margin-right: 15px; transition: all 0.3s ease; }

.vertical-nav ul li:hover { background: rgba(255,255,255,0.03); transform: translateX(5px); }
.vertical-nav ul li:hover a { color: var(--text-main); }
.vertical-nav ul li:hover i { color: var(--accent-cyan); filter: drop-shadow(0 0 10px var(--accent-cyan)); }

.vertical-nav ul li a.active {
    background: linear-gradient(90deg, rgba(157,0,255,0.15) 0%, rgba(0,240,255,0.05) 100%);
    border: 1px solid rgba(157,0,255,0.2);
    box-shadow: inset 3px 0 0 var(--accent-purple);
}
.vertical-nav ul li a.active a { color: var(--text-main); font-weight: 800; }
.vertical-nav ul li a.active i { color: var(--accent-purple); filter: drop-shadow(0 0 10px var(--accent-purple)); }

/* Main Content Wrapper */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: 90px; padding: 0 40px;
    display: flex; justify-content: flex-end; align-items: center;
    background: rgba(4, 5, 8, 0.5);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 0; z-index: 50;
}

/* AAA Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 12px 28px;
    border-radius: 12px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; outline: none; position: relative; overflow: hidden;
    text-transform: uppercase; letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-cyan));
    color: #fff; box-shadow: 0 10px 20px rgba(157,0,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn-primary:hover::before { left: 100%; }

/* Form Controls */
.form-control {
    width: 100%; padding: 16px 24px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: #fff; font-size: 1rem; font-family: inherit;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none; border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0,240,255,0.15), inset 0 0 10px rgba(0,0,0,0.5);
    background: rgba(0,240,255,0.02);
}

/* Topup Cards & Shop */
.package-card {
    background: rgba(10,14,23,0.5); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; padding: 30px; text-align: center;
    transition: all 0.4s ease;
}
.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}
.package-card h3 { font-size: 1.5rem; color: var(--accent-cyan); margin-bottom: 10px; }
.package-card .currency, .package-card .fos, .package-card .lux, .package-card .pts { font-size: 2.5rem; font-weight: 900; background: linear-gradient(to right, #fff, var(--accent-cyan)); -webkit-background-clip: text; color: transparent; margin: 15px 0; }

/* Grid Layouts */
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Utilities */
.text-cyan { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }
.text-purple { color: var(--accent-purple); text-shadow: 0 0 10px var(--accent-purple); }
.mt-4 { margin-top: 30px; } .mb-4 { margin-bottom: 30px; }

/* Title Glitch Effect */
.glitch-title {
    font-size: 3rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text; color: transparent;
    position: relative; display: inline-block;
}

@media (max-width: 1024px) {
    .sidebar { left: -100%; }
    .main-content { margin-left: 0; }
}

/* Public Specific Enhancements */
.sidebar-bottom {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}

.player-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.player-pts {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(255,184,0,0.4);
    background: rgba(255,184,0,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,184,0,0.2);
}

.btn-steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #171a21, #2a475e);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s;
    border: 1px solid #66c0f4;
    box-shadow: 0 0 15px rgba(102,192,244,0.2);
}
.btn-steam:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(102,192,244,0.5);
    background: linear-gradient(135deg, #2a475e, #66c0f4);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: rgba(255,0,85,0.1);
    color: var(--accent-pink);
    border: 1px solid rgba(255,0,85,0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 15px rgba(255,0,85,0.4);
}

.hud-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hud-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Hero & General Components for Public Site */
.badge-glow {
    background: rgba(0,240,255,0.1);
    color: var(--accent-cyan);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid rgba(0,240,255,0.3);
    box-shadow: var(--glow-cyan);
    text-transform: uppercase;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(157,0,255,0.4);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-buy:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan), 0 15px 30px rgba(157,0,255,0.6);
    border-color: #fff;
}

/* Server Status Bar */
.server-status-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(10,14,23,0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.status-item:last-child {
    border-right: none;
}

.status-icon-blue { color: var(--accent-cyan); font-size: 2rem; filter: drop-shadow(0 0 10px var(--accent-cyan)); }
.status-icon-purple { color: var(--accent-purple); font-size: 2rem; filter: drop-shadow(0 0 10px var(--accent-purple)); }
.status-icon-cyan { color: #00ff9d; font-size: 2rem; filter: drop-shadow(0 0 10px #00ff9d); }
.status-icon-red { color: var(--accent-pink); font-size: 2rem; filter: drop-shadow(0 0 10px var(--accent-pink)); }

.status-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.status-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-main);
}

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@media (max-width: 900px) {
    .server-status-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .status-item:nth-child(2) { border-right: none; }
}
@media (max-width: 500px) {
    .server-status-bar { grid-template-columns: 1fr; }
    .status-item { border-right: none; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .status-item:last-child { border-bottom: none; }
}

/* Explicit Select & Option High-Contrast Dark Styling */
select, select.form-control {
    background-color: #0f1523 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
    outline: none !important;
}

select option {
    background-color: #0c111c !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
}

select option:checked {
    background-color: #1a263d !important;
    color: #00f0ff !important;
    font-weight: 700 !important;
}

select option:hover, select option:focus {
    background-color: #223250 !important;
    color: #38bdf8 !important;
}

/* ========================================================
   WORLD-CLASS AAA+ EXTENSIONS (Valorant / Apex / Rust Style)
   ======================================================== */

/* Top HUD Pill & Badges */
.top-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background: rgba(10, 14, 23, 0.75);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 90;
    margin: -40px -60px 30px -60px;
}

.hud-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-cyan);
    letter-spacing: 0.5px;
}

.hud-currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.35);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.15);
}

.hud-currency-pill.spins {
    background: rgba(157, 0, 255, 0.1);
    border-color: rgba(157, 0, 255, 0.35);
    color: #c77dff;
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.15);
}

.sfx-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.sfx-toggle-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: scale(1.08);
}
.sfx-toggle-btn.muted {
    color: #64748b;
    border-color: rgba(255, 255, 255, 0.08);
}

/* Apex Dinosaur Showcase Cards */
.apex-card {
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.8) 0%, rgba(10, 14, 23, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
}
.apex-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.2);
}
.apex-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.apex-badge.carnivore { background: rgba(255, 0, 85, 0.15); color: #ff3366; border: 1px solid #ff3366; }
.apex-badge.herbivore { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid #00ff88; }

.dino-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.82rem;
}
.dino-stat-label { color: #8fa0b5; font-weight: 600; }
.dino-stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.dino-stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

/* Leaderboard Hall of Fame Podium */
.podium-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 20px;
    align-items: end;
    margin: 40px auto;
    max-width: 900px;
}
.podium-card {
    background: rgba(16, 24, 40, 0.75);
    border-radius: 20px 20px 14px 14px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.podium-rank-1 {
    order: 2;
    padding-top: 45px;
    background: linear-gradient(180deg, rgba(255, 184, 0, 0.12) 0%, rgba(16, 24, 40, 0.85) 100%);
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 0 40px rgba(255, 184, 0, 0.25);
}
.podium-rank-2 {
    order: 1;
    background: linear-gradient(180deg, rgba(200, 215, 235, 0.08) 0%, rgba(16, 24, 40, 0.85) 100%);
    border-top: 3px solid #cbd5e1;
    box-shadow: 0 0 25px rgba(203, 213, 225, 0.15);
}
.podium-rank-3 {
    order: 3;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.08) 0%, rgba(16, 24, 40, 0.85) 100%);
    border-top: 3px solid #cd7f32;
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.15);
}
.podium-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
    object-fit: cover;
}
.podium-rank-2 .podium-avatar {
    width: 66px;
    height: 66px;
    border-color: #cbd5e1;
    box-shadow: 0 0 15px rgba(203, 213, 225, 0.3);
}
.podium-rank-3 .podium-avatar {
    width: 66px;
    height: 66px;
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3);
}

.podium-crown {
    font-size: 2.2rem;
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 15px var(--accent-gold));
}

@media (max-width: 768px) {
    .top-hud-bar {
        position: sticky;
        top: 65px;
        z-index: 85;
        margin: -5px -16px 20px -16px;
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .podium-container {
        grid-template-columns: 1fr;
    }
    .podium-rank-1 { order: 1; }
    .podium-rank-2 { order: 2; }
    .podium-rank-3 { order: 3; }
}

/* ==========================================================
   UNIVERSAL LEADERBOARD & MARKET TABS (.lb-tabs & .lb-tab)
   ========================================================== */
.lb-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lb-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #8fa0b5);
    font-family: var(--font-th, 'Prompt', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.lb-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.lb-tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(157, 0, 255, 0.2));
    border: 1px solid var(--accent-cyan, #00f0ff);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
    font-weight: 700;
}

/* Specific Gold Leaderboard Tab Glow */
#leaderboard-tabs .lb-tab.active {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 120, 0, 0.2));
    border: 1px solid var(--accent-gold, #ffb800);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.4);
    color: #ffffff;
}

/* ==========================================================
   UNIVERSAL SEARCH BOX COMPONENT (.news-search-box)
   ========================================================== */
.news-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 7px 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.news-search-box:focus-within {
    border-color: var(--accent-cyan, #00f0ff);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
    background: rgba(5, 10, 20, 0.7);
}

.news-search-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-family: var(--font-th, 'Prompt', sans-serif);
    font-size: 0.9rem;
    width: 100%;
    box-shadow: none !important;
}

.news-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================
   AAA+ GLOBAL POLISH: SMOOTH TRANSITIONS & MICRO-INTERACTIONS
   ========================================================== */

/* Universal Tactile Button Feedback */
button:active, 
.btn:active, 
.btn-buy:active, 
.hud-btn:active, 
.lb-tab:active,
.active-cmd-btn:active {
    transform: scale(0.97) !important;
}

/* Smooth Card Hover Lift across All Pages */
.glass-panel, 
.vault-dino-card, 
.store-card, 
.apex-card, 
.feature-card,
.package-card,
.perk-slot-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease !important;
}

.vault-dino-card:hover,
.store-card:hover,
.package-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 25px rgba(0, 240, 255, 0.22) !important;
}

/* Ultra-Clean Modern Scrollbars for All Containers */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.22);
    border-radius: 4px;
    transition: background 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.65);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Modern Text Selection */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #ffffff;
}

/* Subtle Shimmer for High-Priority Action Buttons */
.btn-buy, 
.btn-primary,
.active-cmd-store {
    position: relative;
    overflow: hidden;
}

.btn-buy::after,
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: rotate(25deg);
    transition: none;
    opacity: 0;
}

.btn-buy:hover::after,
.btn-primary:hover::after {
    opacity: 1;
    left: 140%;
    transition: all 0.65s ease-in-out;
}

/* Responsive Touch Optimizations */
@media (max-width: 768px) {
    button, .btn, .btn-buy, a.btn {
        min-height: 42px;
    }
}

/* World-Class Benchmark Matrix & Cyber Card Enhancements */
.cyber-card-glow {
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: linear-gradient(135deg, rgba(14, 22, 36, 0.85) 0%, rgba(8, 12, 22, 0.95) 100%);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card-glow:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
}

/* ==========================================================
   DINOLIFE UI QUALITY LAYER — A11Y + PERFORMANCE + POLISH
   ========================================================== */
:root { color-scheme: dark; }

/* Keyboard focus is always visible, even where legacy rules used outline:none */
:focus-visible {
    outline: 2px solid #00f0ff !important;
    outline-offset: 3px !important;
}
:focus:not(:focus-visible) { outline: none; }

/* Compositor-friendly transitions (never transition layout properties) */
button, a, input, select, textarea,
.btn, .btn-buy, .lb-tab, .hud-btn, .sfx-toggle-btn,
.glass-panel, .apex-card, .podium-card, .news-search-box {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity !important;
    transition-duration: .22s;
    transition-timing-function: ease;
}

/* Touch responsiveness */
button, a, .btn, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 240, 255, 0.16);
}

/* Modals & drawers: contain scroll chaining */
.gameplay-drawer, .settings-modal-backdrop, .codex-modal-backdrop,
[class*="modal-backdrop"], .market-modal, .toast-container {
    overscroll-behavior: contain;
}

/* Typography polish */
h1, h2, h3 { text-wrap: balance; }
h4, h5, h6, p, li { text-wrap: pretty; }
table td, table th, .status-value, .stat-value, .price-display, .hud-currency-pill {
    font-variant-numeric: tabular-nums;
}

/* Media safety */
img, video { max-width: 100%; }
img.dl-img-missing {
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.03);
    opacity: .75;
}

/* Skip link */
.skip-link {
    position: fixed; left: 12px; top: -70px; z-index: 100000;
    background: #00f0ff; color: #001018; padding: 10px 18px;
    border-radius: 10px; font-weight: 800; text-decoration: none;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Screen-reader-only helper */
.sr-only {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Safe areas on notched devices */
@supports (padding: max(0px)) {
    .dl-nav-inner, .top-hud-bar, .hud-action-bar {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* Reduced motion: disable non-essential motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Leaflet 1.9 ships `mix-blend-mode: plus-lighter` on opaque map tiles as a legacy
   Chromium seam workaround. In Chromium 120+ it composites additively against the
   page backdrop and renders the satellite tiles near-black, so normal blending is
   restored for the Gateway tactical map and the Companion Overlay minimap. */
.leaflet-container img.leaflet-tile {
    mix-blend-mode: normal !important;
}



