/*/assets/css/main.css*/
/* ═══════════ RESET & BASE ═══════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131836;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-amber: #f59e0b;
    
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: 0.2s ease;
}

html, body {
    height: 100%;
    font-family: 'Manrope', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* ═══════════ BACKGROUND EFFECTS ═══════════ */
.bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
}

.bg-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent);
    background-size: 200% 200%;
    opacity: 0.3;
    animation: twinkle 10s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ═══════════ HEADER ═══════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 39, 0.7);
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
}

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

.nav {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-glass);
    color: var(--accent-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}
.user-menu-wrapper {
    position: relative;
}
.user-menu {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--bg-glass-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-level {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem; /* Увеличенный правый отступ */
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 240px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-glass);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

/* Если экран узкий, меню не будет вылезать за пределы */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    .user-dropdown {
        right: -1rem; /* Компенсация отступа на мобильных */
        min-width: 200px;
    }
}
.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--bg-glass);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-glass);
    margin: 0.5rem 0;
}

/* ═══════════ MAIN ═══════════ */
.main {
    min-height: calc(100vh - 80px);
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

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

.page-fade-out {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.page-fade-in {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* ═══════════ КНОПКИ ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ═══════════ HERO ═══════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: 15px!important;
    left: 15px!important;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: 15px!important;
    left: 15px!important;
}

/* ═══════════ SECTIONS ═══════════ */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ═══════════ MODES GRID ═══════════ */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.mode-card {
    padding: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mode-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ═══════════ STEPS ═══════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.step {
    padding: 2rem;
    text-align: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ═══════════ STATS ═══════════ */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ═══════════ TOAST ═══════════ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid var(--accent-amber); }
.toast-info { border-left: 4px solid var(--accent-cyan); }

.toast-close {
    margin-left: auto;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
}

/* ═══════════ LOADER ═══════════ */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.page-loader-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ═══════════ ERROR PAGE ═══════════ */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .page-container {
        padding: 1rem;
    }
}
/* ═══════════ GLASSMORPHISM COMPONENTS ═══════════ */
.glass-card {
    background: rgba(19, 24, 54, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-container {
    max-width: 440px;
    margin: 4rem auto;
    padding: 2.5rem;
    text-align: center;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Стеклянные инпуты */
.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-glass {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.input-glass::placeholder {
    color: var(--text-muted);
}

.input-glass:focus {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

/* ═══════════ ИГРОВОЙ ЭКРАН ═══════════ */
.game-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.panorama-container {
    flex: 1;
    width: 100%;
    background: #000;
}

.game-hud {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    z-index: 60;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hud-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hud-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.minimap-wrapper {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    z-index: 60;
}

.minimap {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-glass);
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

.minimap-confirm {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.minimap-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* ═══════════ ПРОФИЛЬ / DASHBOARD ═══════════ */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.1);
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.xp-bar-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-card .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.daily-city-badge strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .daily-city-badge {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}/* ═══════════ FIX: Тёмные выпадающие списки ═══════════ */
select.input-glass {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    /* Убираем стандартную стрелку ОС и добавляем свою */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
}

select.input-glass:focus {
    border-color: var(--accent-purple);
    outline: none;
    background-color: rgba(124, 58, 237, 0.05);
}

/* Принудительно красим сами опции внутри списка */
select.input-glass option {
    background-color: #131836; /* Тёмный фон */
    color: #ffffff;            /* Белый текст */
    padding: 10px;
}

/* Для браузеров на движке WebKit (Chrome, Safari, Яндекс) */
select.input-glass::-webkit-scrollbar {
    width: 8px;
}
select.input-glass::-webkit-scrollbar-track {
    background: #131836;
}
select.input-glass::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}
/* ═══════════ STREAK WIDGET ═══════════ */
.streak-widget {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.streak-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.streak-info {
    flex: 1;
}

.streak-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange, #ff6b35);
    margin-bottom: 0.25rem;
}

.streak-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.streak-best {
    text-align: right;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.streak-best-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-amber, #f59e0b);
    margin-bottom: 0.25rem;
}

.streak-best-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .streak-widget {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .streak-best {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
}
/* ═══════════ DAILY REWARDS ═══════════ */
#daily-rewards-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.daily-rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.daily-rewards-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.rewards-progress {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.reward-day {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.reward-day.claimed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    opacity: 0.7;
}

.reward-day.available {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-purple);
    animation: pulse 2s ease-in-out infinite;
}

.reward-day.current {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.reward-day.locked {
    opacity: 0.4;
}

.day-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.reward-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.reward-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.xp-amount {
    color: var(--accent-amber);
    font-weight: 600;
}

.coins-amount {
    color: var(--accent-cyan);
    font-weight: 600;
}

.claimed-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
}

.claim-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feedback-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.feedback-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

.feedback-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.feedback-ticket-item {
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-ticket-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.feedback-ticket-item.unread {
    border-left: 3px solid var(--accent-cyan);
}
.notif-bell-wrapper {
    position: relative;
}

.notif-bell-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.notif-bell-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: pulse 2s ease-in-out infinite;
}

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

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notif-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.notif-read-all {
    background: none;
    border: none;
    color: var(--accent-cyan);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.notif-read-all:hover {
    background: rgba(6, 182, 212, 0.1);
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    max-height: 400px;
}

.notif-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(6, 182, 212, 0.05);
    border-left: 3px solid var(--accent-cyan);
}

.notif-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notif-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .notif-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}
/* ═══════════ DAILY QUESTS ═══════════ */
#daily-quests-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quests-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.quests-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-completed {
    font-weight: 700;
    color: var(--accent-cyan);
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quest-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quest-item.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.quest-item.claimed {
    opacity: 0.6;
}

.quest-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quest-content {
    flex: 1;
    min-width: 0;
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.quest-name {
    font-weight: 600;
    font-size: 1rem;
}

.quest-difficulty {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quest-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.quest-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.quest-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.quest-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.quest-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
    font-size: 0.85rem;
    font-weight: 600;
}

.reward-coins {
    color: var(--accent-amber);
}

.reward-xp {
    color: var(--accent-cyan);
}

.btn-claim {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.quest-claimed-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

@media (max-width: 768px) {
    .quest-item {
        flex-wrap: wrap;
    }
    
    .quest-rewards {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}
.game-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    background: var(--bg-primary);
}

.panorama-container {
    flex: 1;
    width: 100%;
    min-height: 0;
    background: #000;
}
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;   /* <-- ВЫШЕ, чем .game-container (у него 50) */
}

.hidden {
    display: none;
}
.minimap-wrapper {
    width: 350px;
    height: 350px;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 60;
}

.minimap-wrapper.zoomed {
    width: 525px;   /* 350 * 1.5 */
    height: 525px;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
/* ═══════════ HERO BACKGROUND FULL-WIDTH FIX ═══════════ */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Фон на всю ширину через псевдоэлемент */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    /* Затемняющий градиент поверх картинки */
    filter: brightness(0.35);
    z-index: 0;
    pointer-events: none;
}

/* Контент поверх фона */
.hero > * {
    position: relative;
    z-index: 1;
}

/* Если нет картинки — оставляем как было */
.hero:not([style*="--hero-bg"])::before {
    display: none;
}

/* Обёртка виджетов */
.home-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.daily-city-badge {           /* замените на реальный класс элемента */
  position: absolute;
  top: 16px;                   /* отступ сверху */
  right: 16px;                 /* отступ справа */
  z-index: 2;
  text-align: right;
}
.hero-title {
    margin-left: 35px!important;
    left: 35px!important;
}
.city-card.daily-city {
    position: relative;
    border: 2px solid #ffd700;
    box-shadow: 
        0 0 0 2px rgba(255, 215, 0, 0.25),
        0 0 30px rgba(255, 215, 0, 0.45),
        0 12px 32px rgba(0, 0, 0, 0.5);
    animation: dailyCityPulse 3s ease-in-out infinite;
}

@keyframes dailyCityPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 2px rgba(255, 215, 0, 0.25),
            0 0 30px rgba(255, 215, 0, 0.45),
            0 12px 32px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(255, 215, 0, 0.6),
            0 0 55px rgba(255, 215, 0, 0.8),
            0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

.daily-city-badge-card {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.city-card.daily-city .city-card-badge {
    top: 3.5rem;
}