:root {
  --primary-blue: #3b82f6;
  --primary-blue-hover: #60a5fa;
  --accent-blue: #93c5fd; 
  --glass-bg: rgba(15, 23, 42, 0.65); 
  --glass-border: rgba(147, 197, 253, 0.15);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --background: #0b1120;
  --nav-height: 80px;
}

body.oled-theme {
    --background: #000000;
    --glass-bg: rgba(20, 30, 40, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: var(--background);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    animation: pageEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

main {
    flex-grow: 1; 
    padding-bottom: 20px !important;
    position: relative;
    z-index: 1;
}

/* --- NAVIGATION FIX --- */
/* Теперь навигация это просто блок в конце flex-контейнера body */
.bottom-nav-fixed {
    position: sticky; /* Можно sticky bottom:0, если хочешь чтобы прилипало к низу экрана, когда контента мало */
    bottom: 0;
    width: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95); /* Чуть менее прозрачный, чтобы не сливался при скролле */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    margin-top: auto; /* Прижимает к низу, если контента мало */
}

/* Снег и гирлянды */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    user-select: none;
    z-index: 0; 
    pointer-events: none;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes snowfall {
    0% { transform: translateY(0); opacity: 0.8; }
    100% { transform: translateY(100vh); opacity: 0; }
}

#global-aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15), transparent 50%), 
        radial-gradient(circle at 80% 80%, rgba(192, 132, 252, 0.1), transparent 50%), 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 60%); 
    animation: auroraDeepBreath 15s ease-in-out infinite alternate;
}
@keyframes auroraDeepBreath {
    0% { transform: scale(1.0); filter: hue-rotate(0deg); }
    100% { transform: scale(1.05) rotate(1deg); filter: hue-rotate(-5deg); }
}

/* Animations */
@keyframes pageEnter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Cards */
.glass-card, .stat-card, .misc-card, .container-card, .shop-card, .admin-card, .user-card, .form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.glass-card:hover { transform: translateY(-2px); }

/* Utils */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.center-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding: 2rem;
    min-height: 50vh;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.info-badge.success { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.info-badge.warning { background: rgba(234, 179, 8, 0.15); color: #fde047; }