/* Core CSS variables for premium dark gold glassmorphism aesthetic */
:root {
    --primary: #FFD700;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --accent: #F5A623;
    --accent-grad: linear-gradient(135deg, #FFD700 0%, #F5A623 100%);
    --bg-dark: #070B16;
    --bg-darker: #04060E;
    --charcoal: #121829;
    --charcoal-light: #1D2438;
    --text-light: #F0F4FC;
    --text-gray: #A0AEC0;
    --text-dark: #2D3748;
    --glass-bg: rgba(18, 24, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    --font-heading: 'Outfit', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--charcoal-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.header-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-grad);
    margin: 20px auto;
    border-radius: 2px;
}

.text-center .header-divider {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--charcoal-light);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

.btn-primary:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    color: var(--primary);
}

.btn-gradient {
    background: var(--accent-grad);
    color: var(--bg-darker);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-darker);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Header Navigation */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
    transition: all var(--transition-speed) ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.accent-text {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-grad);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* User Account Area in Navbar */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: var(--charcoal);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.user-menu-container:hover {
    border-color: var(--primary);
}

.user-menu-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darker);
    font-weight: 700;
}

.user-menu-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Flash Messages (Django messages framework) */
.flash-messages {
    position: fixed;
    top: 96px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.3s ease;
}

.flash-message.flash-error {
    border-left-color: #FC8181;
}

.flash-message.flash-success {
    border-left-color: var(--primary);
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    flex-shrink: 0;
}

.flash-close:hover {
    color: var(--text-light);
}

/* Breadcrumb / back link used on detail pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color var(--transition-speed) ease;
}

.back-link:hover {
    color: var(--primary);
}

/* Avatar circle used across person cards/lists */
.person-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.person-avatar-fallback {
    border-radius: 50%;
    background: var(--accent-grad);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Peak detail page */
.peak-detail-hero {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 34px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.peak-detail-cover {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.peak-detail-cover-fallback {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--bg-darker);
}

.peak-detail-info {
    flex-grow: 1;
    min-width: 240px;
}

.peak-detail-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.peak-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: var(--text-gray);
    font-size: 0.92rem;
}

.peak-detail-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.peak-detail-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    max-width: 700px;
}

.climbers-list-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto 20px;
}

.climbers-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.climber-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.climber-row:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.climber-row .person-avatar,
.climber-row .person-avatar-fallback {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
}

.climber-row-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.98rem;
}

.climber-row-sub {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.climber-row-year {
    margin-left: auto;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.empty-state {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

/* Laureate detail page */
.laureate-detail-hero {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    text-align: center;
}

.laureate-detail-avatar,
.laureate-detail-avatar-fallback {
    width: 110px;
    height: 110px;
    font-size: 2.6rem;
    margin: 0 auto 18px;
}

.laureate-detail-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.peaks-climbed-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.peak-climbed-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.peak-climbed-card:hover {
    border-color: var(--primary);
}

.peak-climbed-thumb,
.peak-climbed-thumb-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.peak-climbed-name {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.92rem;
}

.peak-climbed-year {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-image: url("../images/ui_mockup.fe4376333977.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(12, 18, 38, 0.4) 0%, rgba(4, 6, 14, 0.95) 80%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge-container {
    margin-bottom: 25px;
}

.hero-badge-img {
    height: 140px;
    width: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-light);
}

.accent-gradient {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll-down a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: color var(--transition-speed) ease;
}

.hero-scroll-down a:hover {
    color: var(--primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Showcase Section */
.video-section {
    background-color: var(--bg-darker);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
}

.video-placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-grad);
    border: none;
    color: var(--bg-darker);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px var(--primary-glow);
    padding-left: 5px; /* Adjusting icon centering */
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
}

.video-length {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 10 Peaks Section */
.peaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.peak-card {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    text-decoration: none;
    color: inherit;
}

.peak-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.05);
}

.peak-card-header {
    position: relative;
    height: 180px;
    background-color: var(--charcoal);
    background-size: cover;
    background-position: center;
}

/* Fallback background patterns for peak images */
.peak-card:nth-child(1) .peak-card-header { background-image: radial-gradient(circle, var(--charcoal-light) 0%, var(--bg-darker) 100%); }
.peak-card:nth-child(2) .peak-card-header { background-image: linear-gradient(135deg, #1A2035 0%, #0A0F1D 100%); }
.peak-card:nth-child(3) .peak-card-header { background-image: linear-gradient(to bottom, #232B42, #0A0F1D); }
.peak-card:nth-child(n+4) .peak-card-header { background-image: radial-gradient(circle, var(--charcoal-light) 0%, var(--bg-darker) 100%); }

.peak-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(7, 11, 22, 0.9) 100%);
}

.peak-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-grad);
    color: var(--bg-darker);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.peak-elevation {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.peak-elevation span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 2px;
}

.peak-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.peak-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.peak-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
}

.peak-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.peak-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Rules & Guidelines Section Tabs */
.rules-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.rules-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.tab-btn:hover {
    color: var(--text-light);
    background: rgba(255,255,255,0.01);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(255,215,0,0.03);
    box-shadow: inset 0 -3px 0 var(--primary);
}

.rules-tab-content {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rules-tab-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-list {
    list-style: none;
    margin-top: 20px;
}

.rules-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.rules-list li::before {
    content: '\f0da'; /* fontawesome caret-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

.apply-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
}

.step-item {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.01);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
}

.step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.step-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Gear Checklist Section */
.gear-section {
    background-color: var(--bg-darker);
}

.gear-overview {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gear-overview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gear-progress-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-light);
}

.gear-progress-percent {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
}

.gear-overview-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.gear-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.gear-category-card {
    padding: 26px 28px;
}

.gear-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gear-category-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gear-category-title i {
    color: var(--primary);
}

.gear-category-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.gear-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.gear-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.gear-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.01);
}

.gear-item-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--text-gray);
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gear-item.checked .gear-item-checkbox {
    background: var(--accent-grad);
    border-color: transparent;
    color: var(--bg-darker);
}

.gear-item-name {
    flex-grow: 1;
    font-size: 0.92rem;
    font-weight: 600;
}

.gear-item.checked .gear-item-name {
    color: var(--primary);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 215, 0, 0.4);
}

.gear-item-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 8px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-speed) ease, color var(--transition-speed) ease;
}

.gear-item:hover .gear-item-remove {
    opacity: 1;
}

.gear-item-remove:hover {
    color: #FC8181;
}

.gear-add-form {
    display: flex;
    gap: 8px;
}

.gear-add-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.gear-add-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.gear-add-form button {
    flex-shrink: 0;
    width: 40px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
}

.gear-add-form button:hover {
    background: var(--accent-grad);
    color: var(--bg-darker);
}

/* Trip Planner Section */
.planner-section {
    background-color: var(--bg-dark);
}

.planner-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 50px;
}

.planner-stat {
    background: var(--charcoal);
    padding: 18px 16px;
    text-align: center;
}

.planner-stat .label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 6px;
    display: block;
}

.planner-stat .value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

/* Route strip */
.route-strip-wrap {
    overflow-x: auto;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

.route-strip {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0 auto;
    padding: 0 4px;
}

.route-node {
    display: flex;
    align-items: center;
}

.route-pill {
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 18px;
    text-align: center;
    min-width: 118px;
    transition: all var(--transition-speed) ease;
}

.route-pill:hover {
    border-color: var(--primary);
}

.route-pill .rp-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-light);
}

.route-pill .rp-alt {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 3px;
}

.route-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--text-gray);
    white-space: nowrap;
}

.route-arrow i {
    color: var(--primary);
    margin-bottom: 2px;
}

.route-arrow .ra-dist {
    font-size: 0.7rem;
    font-weight: 700;
}

/* Itinerary Accordion */
.itinerary-accordion {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 26px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.accordion-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: var(--bg-darker);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.accordion-title-group {
    flex-grow: 1;
}

.accordion-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
}

.accordion-meta {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-top: 3px;
}

.accordion-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.accordion-chevron {
    flex-shrink: 0;
    color: var(--text-gray);
    transition: transform var(--transition-speed) ease;
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding var(--transition-speed) ease;
    padding: 0 26px;
}

.accordion-item.open .accordion-body {
    padding: 0 26px 24px;
}

.accordion-body p {
    color: var(--text-gray);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

/* Laureates Gallery */
.laureates-section {
    background-color: var(--bg-darker);
}

.laureates-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 12px 12px 45px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover {
    color: var(--text-light);
    border-color: var(--text-gray);
}

.filter-btn.active {
    background: var(--accent-grad);
    color: var(--bg-darker);
    border-color: transparent;
}

.laureates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.laureate-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

.laureate-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.laureate-medal {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.3));
}

.laureate-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 2px solid var(--primary);
}

.laureate-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.laureate-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 215, 0, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.laureate-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.laureate-meta span {
    font-weight: 700;
    color: var(--text-light);
}

/* News Section Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    cursor: pointer;
    padding: 24px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--glass-border);
}

.article-card:hover, .article-card.active {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.02);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color var(--transition-speed) ease;
}

.article-card:hover .article-title, .article-card.active .article-title {
    color: var(--primary);
}

.article-snippet {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
}

.article-footer span i {
    margin-right: 5px;
}

/* Article Detail View */
.article-detail-view {
    padding: 40px;
    min-height: 450px;
    position: sticky;
    top: 100px;
}

.detail-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-gray);
    padding: 40px 0;
}

.detail-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.05);
}

.detail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-light);
}

.detail-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

.detail-content {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    white-space: pre-line; /* preserves newlines in database text */
}

/* Comments section */
.comments-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

.comments-header {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 15px;
}

.comment-user {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.comment-date {
    font-weight: 500;
    color: var(--text-gray);
}

.comment-body {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-form-container {
    margin-top: 20px;
}

.comment-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 12px;
    transition: all var(--transition-speed) ease;
}

.comment-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.comments-login-prompt {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--glass-border);
}

.comments-login-prompt a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Tracker Section dashboard styles */
.tracker-section {
    background-image: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.tracker-layout {
    max-width: 1000px;
    margin: 0 auto;
}

.tracker-login-prompt {
    padding: 60px 40px;
}

.tracker-lock-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.tracker-login-prompt h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tracker-login-prompt p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--text-gray);
}

.prompt-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Tracker Dashboard (Logged in view) */
.tracker-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 30px;
}

.tracker-profile-card {
    padding: 30px;
    text-align: center;
    height: 100%;
}

.tracker-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-darker);
    margin: 0 auto 20px auto;
    font-weight: 800;
    box-shadow: 0 0 20px var(--primary-glow);
}

.tracker-username {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.tracker-title-status {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 215, 0, 0.08);
    padding: 4px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 25px;
}

.progress-radial-container {
    margin-bottom: 25px;
}

.tracker-progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tracker-progress-fill {
    background: var(--accent-grad);
    height: 100%;
    width: 0%; /* Dynamic fill */
    border-radius: 10px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

.tracker-progress-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
}

.tracker-checklist-card {
    padding: 30px;
}

.tracker-checklist-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.checklist-item:hover {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.01);
}

.checklist-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--text-gray);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checklist-item.checked .checklist-checkbox {
    background: var(--accent-grad);
    border-color: transparent;
    color: var(--bg-darker);
}

.checklist-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.checklist-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.checklist-item.checked .checklist-name {
    color: var(--primary);
    text-decoration: none;
}

.checklist-elevation {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
}

.checklist-item.checked .checklist-elevation {
    color: var(--primary);
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 14, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-light);
}

.modal-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-error {
    color: #FC8181;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    background: rgba(252, 129, 129, 0.08);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(252, 129, 129, 0.2);
}

.modal-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Animations */
.animate-rise {
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .animate-rise {
    transform: translateY(0);
}

/* Footer Section */
.app-footer-bar {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 20px;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 1500;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
}

.drawer-link {
    text-decoration: none;
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color var(--transition-speed) ease;
}

.drawer-link:hover {
    color: var(--primary);
}

.drawer-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* Loading Spiner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.loading-spinner i {
    color: var(--primary);
    margin-right: 10px;
}

/* Responsiveness adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .news-layout {
        grid-template-columns: 1fr;
    }
    .article-detail-view {
        position: static;
    }
    .tracker-dashboard {
        grid-template-columns: 1fr;
    }
    .gear-categories {
        grid-template-columns: 1fr;
    }
    .planner-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .accordion-header {
        padding: 16px 18px;
        gap: 12px;
    }
    .accordion-body {
        padding: 0 18px;
    }
    .accordion-item.open .accordion-body {
        padding: 0 18px 20px;
    }
}

@media (max-width: 768px) {
    .main-nav, .user-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .rules-tabs {
        flex-direction: column;
    }
    .tab-btn {
        padding: 15px;
    }
    .rules-tab-content {
        padding: 20px;
    }
    .laureates-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-buttons {
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

/* =====================================================================
   Удирдлага, баталгаажуулалт (Phoenix «Easy Admin» санаагаар)
   ===================================================================== */
:root {
    --ok: #34D399;
    --ok-bg: rgba(52, 211, 153, 0.12);
    --wait: #FBBF24;
    --wait-bg: rgba(251, 191, 36, 0.12);
    --bad: #F87171;
    --bad-bg: rgba(248, 113, 113, 0.12);
}

.stats-grid { grid-template-columns: repeat(4, 1fr); max-width: 820px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

#logoutForm { display: inline-flex; }
a.user-menu-container, button.user-menu-container { text-decoration: none; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }

/* Удирдлагын мөр */
.ai-admin-bar { background: rgba(255, 215, 0, 0.08); border-top: 1px solid rgba(255, 215, 0, 0.18); }
.ai-admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 6px; padding-bottom: 6px; font-size: 0.85rem; }
.ai-admin-label { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }
.ai-admin-link { color: var(--text-light); background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.ai-admin-link:hover, .ai-admin-link.active { border-color: var(--glass-border); background: rgba(255, 255, 255, 0.05); color: var(--primary); }
.ai-admin-hint { color: var(--text-gray); margin-left: auto; font-size: 0.78rem; }
@media (max-width: 768px) { .ai-admin-hint { display: none; } }
.ai-count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--primary); color: var(--bg-darker); font-size: 0.72rem; font-weight: 800; text-align: center; }

/* ✏️ товч, ＋ товч */
.ai-editable { position: relative; }
.ai-edit-btn { position: absolute; top: 10px; right: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 215, 0, 0.5); background: rgba(4, 6, 14, 0.85); color: var(--primary); cursor: pointer; display: grid; place-items: center; transition: transform var(--transition-speed), background var(--transition-speed); }
.ai-edit-btn:hover, .ai-edit-btn:focus-visible { transform: scale(1.08); background: var(--primary); color: var(--bg-darker); }
.ai-add-row { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.ai-add-row:empty { display: none; }
.ai-add-btn { border: 1px dashed rgba(255, 215, 0, 0.6); background: transparent; color: var(--primary); border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.ai-add-btn:hover { background: rgba(255, 215, 0, 0.1); }
.ai-icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.04); color: var(--text-light); cursor: pointer; display: inline-grid; place-items: center; text-decoration: none; }
.ai-icon-btn:hover, .ai-icon-btn:focus-visible { border-color: var(--primary); color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Засах цонх */
.ai-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--charcoal); color: var(--text-light); box-shadow: var(--glass-shadow); }
.ai-dialog::backdrop { background: rgba(4, 6, 14, 0.75); backdrop-filter: blur(4px); }
.ai-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; background: var(--charcoal); z-index: 1; }
.ai-dialog-head h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.05rem; }
.ai-dialog-head .modal-close { position: static; }
.ai-dialog-body { padding: 20px; }

/* Маягт */
.ai-form-title { font-family: var(--font-heading); margin-bottom: 16px; }
.ai-form .form-group input, .ai-form .form-group textarea, .ai-form .form-group select,
.ai-filter input, .ai-filter select, .ai-review-form input, .ai-table select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--glass-border);
    background: rgba(4, 6, 14, 0.6); color: var(--text-light); font: inherit; font-size: 16px;
}
.ai-form .form-group textarea { resize: vertical; }
.ai-form .form-group input[type="file"] { padding: 10px; }
.ai-form .form-group input:focus, .ai-form .form-group textarea:focus { border-color: var(--primary); outline: none; }
.ai-req { color: var(--primary); }
.ai-help { display: block; color: var(--text-gray); font-size: 0.8rem; margin-top: 6px; }
.ai-error { display: block; color: var(--bad); font-size: 0.82rem; margin-top: 6px; }
.ai-field.has-error input, .ai-field.has-error textarea { border-color: var(--bad); }
.ai-form-error { color: var(--bad); margin-bottom: 12px; }
.ai-form-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; }
.ai-btn-danger { background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(248, 113, 113, 0.4); }
.ai-btn-danger:hover { background: var(--bad); color: var(--bg-darker); }
.ai-btn-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.4); }
.ai-btn-ok:hover { background: var(--ok); color: var(--bg-darker); }

/* Төлөвийн чип — өнгө + дүрс + үг */
.ai-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.ai-pill-ok { background: var(--ok-bg); color: var(--ok); }
.ai-pill-wait { background: var(--wait-bg); color: var(--wait); }
.ai-pill-bad { background: var(--bad-bg); color: var(--bad); }
.ai-muted { color: var(--text-gray); }
.ai-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Мэдүүлэг */
.ai-claim-card { padding: 36px; }
.ai-claim-title { font-family: var(--font-heading); font-size: 2rem; margin: 6px 0 18px; }
.ai-claim-title small { display: block; font-size: 0.95rem; color: var(--text-gray); font-weight: 500; }
.ai-steps { margin: 0 0 24px 20px; color: var(--text-gray); display: grid; gap: 6px; font-size: 0.92rem; }
.ai-steps b { color: var(--text-light); }
.ai-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92rem; }
.ai-note i { margin-top: 3px; }
.ai-note-bad { background: var(--bad-bg); color: var(--bad); }
.ai-note-wait { background: var(--wait-bg); color: var(--wait); }
.ai-claim-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 600px) { .ai-claim-card { padding: 22px; } }

/* Ахицын цагираг */
.ai-ring { --p: 0; width: 150px; height: 150px; margin: 20px auto 12px; border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0); display: grid; place-items: center; }
.ai-ring-inner { width: 118px; height: 118px; border-radius: 50%; background: var(--charcoal); display: grid; place-content: center; text-align: center; }
.ai-ring-inner b { font-family: var(--font-heading); font-size: 2.4rem; color: var(--primary); line-height: 1; }
.ai-ring-inner span { color: var(--text-gray); font-size: 0.85rem; }
.ai-legend { display: grid; gap: 4px; font-size: 0.85rem; color: var(--text-gray); justify-items: center; }
.ai-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.ai-dot-ok { background: var(--primary); }
.ai-dot-wait { background: var(--wait); }

.ai-peak-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.02); }
.ai-peak-row .checklist-info { flex: 1; min-width: 0; display: grid; }
.ai-peak-row .checklist-name { color: var(--text-light); text-decoration: none; font-weight: 600; }
.ai-peak-row .checklist-name:hover { color: var(--primary); }
.ai-peak-row.is-ok { border-color: rgba(255, 215, 0, 0.35); background: rgba(255, 215, 0, 0.05); }
.ai-peak-row.is-ok .checklist-checkbox { background: var(--primary); border-color: var(--primary); color: var(--bg-darker); }
.ai-peak-row.is-wait .checklist-checkbox { border-color: var(--wait); color: var(--wait); }
.ai-peak-row.is-bad .checklist-checkbox { border-color: var(--bad); color: var(--bad); }
.ai-peak-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ai-reject-note { color: var(--bad); font-size: 0.8rem; margin-top: 4px; }
@media (max-width: 600px) {
    .ai-peak-row { flex-wrap: wrap; }
    .ai-peak-actions { width: 100%; justify-content: flex-start; }
}

/* Самбар */
.ai-manage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ai-manage-title { font-family: var(--font-heading); font-size: 2.2rem; }
.ai-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.ai-kpi { padding: 18px 20px; display: grid; gap: 4px; text-decoration: none; color: inherit; border-radius: 14px; }
.ai-kpi.is-alert { border-color: rgba(255, 215, 0, 0.5); }
a.ai-kpi:hover { border-color: var(--primary); }
.ai-kpi-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.ai-kpi-lbl { color: var(--text-gray); font-size: 0.85rem; }
.ai-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--glass-border); margin-bottom: 24px; }
.ai-tab { padding: 12px 16px; color: var(--text-gray); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.ai-tab:hover { color: var(--text-light); }
.ai-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.ai-review-list { display: grid; gap: 16px; }
.ai-review { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px; border-radius: 14px; }
.ai-review-proof { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.ai-review-proof img { width: 100%; height: 100%; object-fit: cover; }
.ai-review-noimg { height: 100%; display: grid; place-content: center; color: var(--text-gray); }
.ai-review-body h3 { font-family: var(--font-heading); }
.ai-review-body h3 small { color: var(--text-gray); font-weight: 500; font-size: 0.85rem; }
.ai-review-meta { color: var(--text-gray); font-size: 0.85rem; margin: 4px 0 10px; }
.ai-review-meta a { color: var(--text-light); }
.ai-review-note { font-style: italic; color: var(--text-light); margin-bottom: 12px; }
.ai-review-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-review-form input { flex: 1 1 220px; width: auto; }
@media (max-width: 700px) { .ai-review { grid-template-columns: 1fr; } }
.ai-filter { display: flex; gap: 10px; padding: 14px; margin-bottom: 16px; flex-wrap: wrap; border-radius: 12px; }
.ai-filter input { flex: 1 1 220px; width: auto; }
.ai-filter select { width: auto; }
.ai-table-wrap { overflow-x: auto; border-radius: 14px; padding: 0; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ai-table th { text-align: left; color: var(--text-gray); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 14px; border-bottom: 1px solid var(--glass-border); }
.ai-table td { padding: 12px 14px; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.ai-table tr:last-child td { border-bottom: 0; }
.ai-table a { color: var(--text-light); }
.ai-table a:hover { color: var(--primary); }
.ai-table select { width: auto; padding: 8px 10px; font-size: 0.9rem; }
.ai-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ai-comment { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 12px; }
.ai-comment p { margin-top: 6px; }
.ai-comment a { color: var(--text-gray); }
.ai-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 20px; }

/* Нүүр: сүүлийн авиралт */
.ai-recent { padding-top: 40px; }
.ai-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ai-recent-card { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: inherit; border-radius: 14px; transition: border-color var(--transition-speed); }
.ai-recent-card:hover { border-color: rgba(255, 215, 0, 0.5); }
.ai-recent-card > div:last-child { display: grid; gap: 2px; min-width: 0; }
.ai-recent-card span { color: var(--text-gray); font-size: 0.85rem; }
.ai-recent-card small { color: var(--primary); font-size: 0.78rem; }
.ai-article-cover { width: 100%; border-radius: 12px; margin: 10px 0 20px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Админ мөртэй үед толгой өндөрсөх тул агуулгыг доош түлхэнэ */
.app-header:has(.ai-admin-bar) { height: auto; }
.app-header:has(.ai-admin-bar) .header-container { height: 80px; }
body:has(.ai-admin-bar) main { padding-top: 49px; }
.nav-link { white-space: nowrap; }
@media (max-width: 1240px) {
    .main-nav { gap: 18px; }
    .nav-link { font-size: 0.88rem; }
    .user-menu-name { display: none; }
}
.ai-dot-wait { background: transparent; border: 2px solid var(--wait); }
.ai-dialog { margin: auto; }
.user-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo { flex-shrink: 0; }
.logo-text { white-space: nowrap; }
@media (max-width: 1360px) {
    .main-nav { gap: 18px; }
    .nav-link { font-size: 0.88rem; }
    .user-menu-name { display: none; }
}
.header-container { gap: 24px; }

/* ===================== Газрын зураг ===================== */
.ai-map-wrap { padding: 0; overflow: hidden; border-radius: 16px; margin-bottom: 40px; }
.ai-map { width: 100%; background: var(--bg-darker); }
.ai-map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 18px; font-size: 0.85rem; color: var(--text-gray); border-top: 1px solid var(--glass-border); }
.ai-map-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ai-pin, .ai-pin-mini {
    display: grid; place-items: center; border-radius: 50%; font-family: var(--font-heading); font-weight: 800;
    background: var(--bg-darker); color: var(--primary); border: 2px solid var(--primary);
}
.ai-pin { width: 34px; height: 34px; font-size: 0.9rem; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); transition: transform 0.2s; }
.ai-pin:hover { transform: scale(1.12); }
.ai-pin-mini { width: 22px; height: 22px; font-size: 0.7rem; }
.ai-pin.is-ok, .ai-pin-mini.is-ok { background: var(--primary); color: var(--bg-darker); }
.ai-pin.is-wait, .ai-pin-mini.is-wait { border-color: var(--wait); color: var(--wait); border-style: dashed; }
.ai-pin.is-bad, .ai-pin-mini.is-bad { border-color: var(--bad); color: var(--bad); }
.ai-pin.is-focus { width: 44px; height: 44px; margin: -5px; box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.25), 0 4px 14px rgba(0, 0, 0, 0.6); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--charcoal); color: var(--text-light); border: 1px solid var(--glass-border); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-gray); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { background: rgba(4, 6, 14, 0.7) !important; color: var(--text-gray) !important; }
.leaflet-control-attribution a { color: var(--text-gray) !important; }
.leaflet-bar a { background: var(--charcoal); color: var(--text-light); border-color: var(--glass-border); }
.leaflet-bar a:hover { background: var(--charcoal-light); color: var(--primary); }
.ai-pop { display: grid; gap: 4px; min-width: 170px; }
.ai-pop b { font-family: var(--font-heading); font-size: 1rem; }
.ai-pop span { color: var(--text-gray); font-size: 0.82rem; }
.ai-pop .ai-pop-status { font-weight: 600; }
.ai-pop .ai-pop-status.is-ok { color: var(--ok); }
.ai-pop .ai-pop-status.is-wait { color: var(--wait); }
.ai-pop .ai-pop-status.is-bad { color: var(--bad); }
.ai-pop a { color: var(--primary) !important; font-weight: 600; margin-top: 4px; text-decoration: none; }
.tracker-layout > .ai-map-wrap, .tracker-layout > .climbers-list-title { grid-column: 1 / -1; }

/* ===================== Гэрчилгээ ===================== */
.ai-cert { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border-radius: 18px; margin: 0 0 50px; border-color: rgba(255, 215, 0, 0.35); }
.ai-cert-preview { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); transition: transform var(--transition-speed); }
.ai-cert-preview:hover { transform: translateY(-3px); }
.ai-cert-preview img { display: block; width: 100%; height: auto; }
.ai-cert-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.ai-cert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .ai-cert { grid-template-columns: 1fr; padding: 18px; } }
.leaflet-control-layers { background: var(--charcoal) !important; color: var(--text-light); border: 1px solid var(--glass-border) !important; border-radius: 10px !important; }
.leaflet-control-layers-expanded { padding: 8px 12px; }
.leaflet-control-layers label { display: flex; align-items: center; gap: 6px; min-height: 32px; }

/* ===================== Лого, цолтнууд ===================== */
.logo-img { border-radius: 50%; }
.ai-hero-logo { border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.35), 0 20px 60px rgba(0, 0, 0, 0.6); }
.ai-gold { color: var(--primary); }
.ai-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.ai-link:hover { text-decoration: underline; }
.ai-bio { color: var(--text-gray); max-width: 640px; margin: 14px auto 0; }
.ai-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }
.ai-section-head > span { display: inline-flex; gap: 14px; align-items: center; }
.ai-year-head { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--glass-border); position: relative; }
.ai-year-head h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.ai-year-head h3 small { font-size: 1rem; color: var(--text-gray); font-weight: 500; }
.ai-year-head .ai-edit-btn { top: -4px; }
.ai-laureate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ai-laureate-card { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 14px; border-radius: 14px; text-decoration: none; color: inherit; transition: transform var(--transition-speed), border-color var(--transition-speed); }
.ai-laureate-card:hover { transform: translateY(-3px); border-color: rgba(255, 215, 0, 0.5); }
.ai-laureate-photo, .ai-laureate-initial { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.ai-laureate-initial { display: grid; place-items: center; background: var(--accent-grad); color: var(--bg-darker); font-family: var(--font-heading); font-weight: 800; font-size: 1.8rem; }
.ai-laureate-name { font-weight: 700; line-height: 1.3; }
.ai-laureate-no { font-size: 0.8rem; color: var(--primary); font-variant-numeric: tabular-nums; }
a.laureate-year { text-decoration: none; display: inline-block; margin: 4px; }

/* ===================== Хуваалцах ===================== */
.ai-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-btn-fb { background: #1877F2; color: #fff; border: 1px solid #1877F2; }
.ai-btn-fb:hover { background: #0f63d0; }
.btn-sm[hidden], [data-mobile-only][hidden] { display: none !important; }

/* ===================== Медиа ===================== */
.ai-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 30px; }
.ai-media-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--charcoal); border: 1px solid var(--glass-border); color: var(--text-light); text-decoration: none; }
.ai-media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ai-media-card:hover img { transform: scale(1.05); }
.ai-media-empty { height: 100%; display: grid; place-items: center; font-size: 2rem; color: var(--text-gray); }
.ai-media-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(4, 6, 14, 0.7); border: 2px solid var(--primary); color: var(--primary); font-size: 1.2rem; }
.ai-media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(4, 6, 14, 0.92)); display: grid; gap: 2px; font-size: 0.85rem; }
.ai-media-cap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-media-kind { color: var(--primary); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.ai-gallery-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; }
.ai-gallery-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-gallery-selects select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(4, 6, 14, 0.6); color: var(--text-light); font: inherit; font-size: 16px; }
.ai-media-stage { margin: 0 0 40px; padding: 0; overflow: hidden; border-radius: 16px; position: relative; }
.ai-media-stage > img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
.ai-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ai-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ai-media-info { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 22px; }
.ai-media-info h1 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 4px; }
.ai-media-info .ai-share { margin-top: 0; align-self: flex-start; }
.ai-media-nav { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.ai-media-nav .ai-icon-btn { background: rgba(4, 6, 14, 0.75); }
.ai-viewer { width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text-light); overflow: visible; }
.ai-viewer::backdrop { background: rgba(2, 3, 8, 0.92); }
.ai-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ai-viewer-top .modal-close { position: static; }
.ai-viewer-body img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; border-radius: 10px; }
.ai-video-poster { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.ai-video-poster .video-overlay { position: absolute; inset: 0; display: grid; place-items: center; }

/* ===================== Нүүрний зарлал ===================== */
.ai-banner { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto 26px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.1); color: var(--text-light); text-decoration: none; text-align: left; }
.ai-banner:hover { background: rgba(255, 215, 0, 0.18); }
.ai-banner > i { color: var(--primary); margin-left: auto; }
.ai-announce a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.ai-announce b { color: var(--text-light); }
.ai-banner-notice { position: relative; align-items: flex-start; line-height: 1.55; }
.ai-banner-notice:hover { background: rgba(255, 215, 0, 0.1); }
.ai-banner-notice > i { margin: 3px 0 0; }
.ai-banner-notice a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.ai-purpose { margin: 0 0 34px; padding: 24px 26px; border-radius: 16px; }
.ai-purpose h2 { font-size: 1.15rem; margin: 0 0 10px; }
.ai-purpose ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-gray); }
.ai-peak-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.ai-peak-sets h4 { margin: 0 0 8px; font-size: 0.95rem; }
.ai-peak-sets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ai-peak-sets li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.ai-peak-sets li small { color: var(--text-gray); }
.ai-peak-sets li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-banner-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); flex-shrink: 0; animation: ai-pulse 1.6s infinite; }
@keyframes ai-pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

/* ===================== Анкет ===================== */
.ai-note-ok { background: var(--ok-bg); color: var(--ok); }
.ai-announce { padding: 14px 18px; border-left: 3px solid var(--primary); background: rgba(255, 255, 255, 0.03); border-radius: 8px; margin-bottom: 20px; color: var(--text-gray); }
.ai-fieldset { border: 0; min-width: 0; }
.ai-app-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.ai-app-subtitle { font-family: var(--font-heading); margin: 18px 0 6px; }
.ai-app-rows { display: grid; gap: 10px; }
.ai-app-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) 150px 1fr 1fr; gap: 12px; align-items: end; padding: 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.02); }
.ai-app-row.is-ok { border-color: rgba(52, 211, 153, 0.35); }
.ai-app-row.has-error { border-color: var(--bad); }
.ai-app-row .ai-error { grid-column: 1 / -1; margin: 0; }
.ai-app-peak { display: flex; gap: 10px; align-items: center; align-self: center; }
.ai-app-peak > div { display: grid; gap: 2px; }
.ai-app-peak .ai-muted { font-size: 0.8rem; }
.ai-app-peak .ai-pill { justify-self: start; padding: 2px 8px; font-size: 0.72rem; }
.ai-app-cell { display: grid; gap: 4px; font-size: 0.78rem; color: var(--text-gray); }
.ai-app-cell a { color: var(--primary); }
.ai-app-cell input, .ai-app-cell select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(4, 6, 14, 0.6); color: var(--text-light); font: inherit; font-size: 16px; min-height: 44px; }
.ai-app-cell input[type="file"] { padding: 8px; font-size: 0.85rem; }
@media (max-width: 820px) {
    .ai-app-grid { grid-template-columns: 1fr; }
    .ai-app-row { grid-template-columns: 1fr 1fr; }
    .ai-app-peak { grid-column: 1 / -1; }
}

/* ===================== Удирдлага: анкет, импорт, шалгаруулалт ===================== */
.ai-app-review { padding: 20px; border-radius: 14px; }
.ai-app-review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ai-app-review-head h3 { font-family: var(--font-heading); }
.ai-proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ai-proof { display: grid; gap: 3px; font-size: 0.82rem; }
.ai-proof img, .ai-proof .ai-review-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.ai-import { display: grid; gap: 14px; padding: 20px; border-radius: 14px; margin-bottom: 16px; }
.ai-import h3 { font-family: var(--font-heading); margin-bottom: 4px; }
.ai-import h3 i { color: var(--primary); }
.ai-import-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ai-inline-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ai-inline-upload input[type="file"] { color: var(--text-gray); max-width: 260px; }
.ai-import-errors { margin: 0; padding: 12px 12px 12px 30px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 0.85rem; max-height: 260px; overflow: auto; }
.ai-upload-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.ai-upload-files { grid-column: span 2; }
@media (max-width: 600px) { .ai-upload-files { grid-column: auto; } }
.ai-season { padding: 18px 20px; border-radius: 14px; }
.ai-season h3 { font-family: var(--font-heading); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-right: 44px; }
.ai-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); font-size: 0.8rem; }
.ai-row-actions .ai-edit-btn { position: static; width: 34px; height: 34px; }
.ai-filter .ai-add-btn { margin-left: auto; }

/* Засах цонхны олон сонголт (шалгаруулалтын оргилууд) */
.ai-field div:has(> div > label > input[type="checkbox"]), .ai-field ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; list-style: none; padding: 0; }
.ai-field label:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-light); padding: 8px 10px; border: 1px solid var(--glass-border); border-radius: 8px; cursor: pointer; }
.ai-form .form-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* Хуучин оргилууд */
.ai-retired-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ai-retired { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: inherit; opacity: 0.85; }
.ai-retired > i { color: var(--text-gray); }
.ai-retired div { display: grid; }
.ai-retired:hover { opacity: 1; border-color: var(--glass-border); }

/* Газрын зураг: хуучин оргил, popup зураг */
.ai-pin.is-retired, .ai-pin-mini.is-retired { border-color: var(--text-gray); color: var(--text-gray); border-style: dotted; opacity: 0.85; font-size: 0.75rem; }
.ai-pin.is-retired { width: 28px; height: 28px; margin: 3px; }
.ai-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }

/* Нүүр: англи бичигтэй mockup-ын оронд уулын дүрс; админ онцолсон зураг тавибал түүгээр солигдоно */
.hero-section {
    background-color: var(--bg-darker);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='none'%3E%3Cpath d='M0 600V390l170-120 120 80 210-210 150 130 140-90 230 230 160-150 190 170 230-200v370z' fill='%23141b2e'/%3E%3Cpath d='M0 600V470l230-110 180 90 220-160 200 150 170-80 260 130 190-90 150 60v140z' fill='%230b1020'/%3E%3Cpath d='M500 140l-60 80 40-20 30 30 30-40 30 30zM1340 210l-50 70 35-15 25 25 25-35 25 25z' fill='%23d9dee8' opacity='.55'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 20%, rgba(255, 215, 0, 0.12), transparent 60%),
        linear-gradient(180deg, #0d1426 0%, #04060e 100%);
    background-size: 100% 70%, cover, cover;
    background-position: bottom, center, center;
    background-repeat: no-repeat;
    padding: 130px 0 90px;
}
.hero-section.has-photo { background-size: cover; background-position: center; }
.hero-badge-img.ai-hero-logo { height: 128px; width: 128px; }
.hero-scroll-down { display: none; }
.ai-video-poster.video-container { height: auto; padding-bottom: 0; aspect-ratio: 16 / 9; }
.ai-video-poster .video-placeholder-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-media-grid + .ai-pager { margin-top: 0; }

.text-center { text-align: center; }
.section-header.text-center .section-desc { margin-left: auto; margin-right: auto; }
.ai-laureate-grid + .text-center, .text-center > .btn { margin-left: auto; margin-right: auto; }
.ai-recent .ai-laureate-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 200px)); justify-content: center; }
.text-center > .ai-share { justify-content: center; }
.ai-app-review-head > .ai-pill { align-self: flex-start; }
a.filter-btn { text-decoration: none; }

/* ===================== Тэмдгийн дугаар, гардуулалт ===================== */
.ai-laureate-badge { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.ai-laureate-badge sup { color: var(--text-gray); font-size: 0.7em; margin-left: 2px; }
.ai-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 18px auto 0; }
.ai-facts > div { display: grid; gap: 2px; text-align: center; }
.ai-facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); }
.ai-facts dd { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text-light); display: grid; }
.ai-facts dd small { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--text-gray); }
.ai-ceremonies { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ai-ceremony { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 215, 0, 0.08); border: 1px solid rgba(255, 215, 0, 0.25); font-size: 0.85rem; }
.ai-ceremony i { color: var(--primary); }
.ai-ceremony .ai-edit-btn { position: static; width: 28px; height: 28px; font-size: 0.75rem; }
.ai-ceremonies .ai-add-btn { padding: 6px 12px; font-size: 0.85rem; }
.ai-season .ai-review-meta .ai-pill { margin-right: 6px; }

/* ===================== Замын ангилал ===================== */
.ai-route { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); }
.ai-route > div { display: grid; gap: 2px; font-size: 0.9rem; }
.ai-route-grade { min-width: 56px; height: 56px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-grad); color: var(--bg-darker); font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; }
.ai-grades { padding: 14px 18px; border-radius: 14px; margin-bottom: 24px; }
.ai-grades summary { cursor: pointer; font-weight: 700; color: var(--primary); min-height: 32px; display: flex; align-items: center; gap: 8px; }
.ai-grades > p { margin: 10px 0 14px; }
.ai-grade-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ai-grade-tables h4 { font-family: var(--font-heading); margin-bottom: 8px; }
.ai-grade-tables dl { display: grid; gap: 6px; }
.ai-grade-tables dl > div { display: grid; grid-template-columns: 48px 1fr; gap: 10px; font-size: 0.85rem; }
.ai-grade-tables dt { font-family: var(--font-heading); font-weight: 800; color: var(--primary); }
.ai-grade-tables dd { color: var(--text-gray); }
.ai-pop .ai-pop-grade { color: var(--primary); }

/* =====================================================================
   «Golden Leopard» загвар: оргил, цолтон, болзлын хуудсууд
   ===================================================================== */
:root {
    --gl-card: rgba(15, 23, 42, 0.7);
    --gl-card-solid: #0f172a;
    --gl-deep: #020617;
    --gl-line: rgba(30, 41, 59, 0.9);
    --gl-line-2: #334155;
    --gl-gold: #fbbf24;
    --gl-gold-2: #f59e0b;
    --gl-sky: #38bdf8;
    --gl-text: #cbd5e1;
    --gl-muted: #94a3b8;
}
.gl-gold { color: var(--gl-gold); }
.gl-sky { color: var(--gl-sky); }
.gl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.gl-head { text-align: center; max-width: 760px; margin: 0 auto 40px; display: grid; gap: 14px; }
.gl-eyebrow { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gl-gold); }
.gl-title { font-family: var(--font-heading); font-weight: 900; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; text-transform: uppercase; color: #fff; }
.gl-lead { color: var(--gl-text); font-weight: 300; font-size: 1.02rem; }
.gl-h2 { font-family: var(--font-heading); font-size: 1.5rem; display: flex; gap: 10px; align-items: center; }
.gl-h2 i { color: var(--gl-gold); }

/* --- Чип, товч --- */
.gl-chip { position: absolute; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.02em; }
.gl-chip-dark { left: 14px; background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(51, 65, 85, 0.8); color: #fcd34d; backdrop-filter: blur(6px); }
.gl-chip-dark i { color: var(--gl-sky); }
.gl-chip-gold { right: 14px; background: rgba(245, 158, 11, 0.92); color: var(--gl-deep); text-transform: uppercase; }
.gl-editable-offset .gl-chip-gold { right: 58px; }
.gl-chip.gl-static { position: static; }
.gl-btn-ghost { width: 100%; min-height: 44px; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; border: 1px solid rgba(51, 65, 85, 0.6); background: rgba(30, 41, 59, 0.8); color: #e2e8f0; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: background 0.2s, color 0.2s; }
.gl-btn-ghost:hover, .gl-btn-ghost:focus-visible { background: var(--gl-gold-2); color: var(--gl-deep); }
.gl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-tags span { font-size: 0.7rem; padding: 4px 10px; border-radius: 6px; background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(51, 65, 85, 0.5); color: var(--gl-text); }
.gl-tags-lg span { font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; }
.gl-tags-lg i { color: #fb923c; }
.gl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gl-gold); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

/* --- Оргилын карт --- */
.gl-peak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gl-peak { display: flex; flex-direction: column; background: var(--gl-card); border: 1px solid var(--gl-line); border-radius: 18px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.gl-peak:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.05); }
.gl-peak > .ai-edit-btn { top: 54px; }
.gl-peak-media { position: relative; height: 224px; overflow: hidden; background: linear-gradient(180deg, #1e3a5f 0%, #0b1220 100%); }
.gl-peak-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gl-peak:hover .gl-peak-media img { transform: scale(1.05); }
.gl-peak-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.2) 55%, transparent 100%); }
.gl-peak-media.is-empty::before, .gl-modal-hero.is-empty::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V150l70-55 45 30 75-85 55 50 50-35 105 95v70z' fill='%23334155'/%3E%3Cpath d='M190 40l-22 28 14-6 10 10 10-14 10 10zM70 95l-16 14 10-3 8 7 6-8z' fill='%23e2e8f0' opacity='.7'/%3E%3Cpath d='M0 220v-40l90-30 70 25 80-45 90 40 70-15v65z' fill='%231e293b'/%3E%3C/svg%3E") center bottom / 100% 85% no-repeat;
}
.gl-peak-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; }
.gl-peak-title h3 { font-family: var(--font-heading); font-weight: 900; font-size: 1.3rem; color: #fff; transition: color 0.2s; }
.gl-peak:hover .gl-peak-title h3 { color: #fcd34d; }
.gl-peak-title p { font-size: 0.75rem; color: var(--gl-text); }
.gl-mine { position: absolute; z-index: 2; bottom: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gl-gold-2); color: var(--gl-deep); font-size: 0.8rem; }
.gl-peak-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.gl-clamp { font-size: 0.8rem; color: var(--gl-text); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(2, 6, 23, 0.5); border: 1px solid rgba(30, 41, 59, 0.6); font-size: 0.72rem; }
.gl-meta dt { color: #64748b; }
.gl-meta dd { font-weight: 700; color: var(--gl-text); }
.gl-meta dd.gl-gold { color: var(--gl-gold); }

/* --- Цонх --- */
.gl-modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border-radius: 24px; border: 1px solid rgba(245, 158, 11, 0.3); background: var(--gl-card-solid); color: var(--text-light); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: auto; }
.gl-modal::backdrop { background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(8px); }
.gl-modal[open] { animation: gl-pop 0.22s ease-out; }
@keyframes gl-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.gl-modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(2, 6, 23, 0.8); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.gl-modal-close:hover, .gl-modal-close:focus-visible { background: var(--gl-gold-2); color: #000; }
.gl-modal-hero { position: relative; height: 256px; background: linear-gradient(180deg, #1e3a5f 0%, #0b1220 100%); }
.gl-modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.gl-modal-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--gl-card-solid), transparent 65%); }
.gl-modal-hero-text { position: absolute; left: 24px; bottom: 16px; z-index: 2; display: grid; gap: 4px; justify-items: start; }
.gl-modal-hero-text h2 { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: #fff; }
.gl-modal-hero-text p { font-size: 0.8rem; color: var(--gl-text); }
.gl-modal-body { padding: 24px; display: grid; gap: 18px; font-size: 0.85rem; color: var(--gl-text); line-height: 1.6; }
.gl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gl-stats > div { background: var(--gl-deep); border: 1px solid var(--gl-line); border-radius: 12px; padding: 12px; }
.gl-stats dt { font-size: 0.68rem; color: #64748b; }
.gl-stats dd { font-weight: 800; font-size: 1.05rem; color: #e2e8f0; }
.gl-stats dd.gl-gold { color: #fcd34d; }
.gl-stats dd.gl-sky { color: var(--gl-sky); }
@media (max-width: 520px) { .gl-stats { grid-template-columns: 1fr 1fr; } }
.gl-subhead { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gl-muted); margin-bottom: -8px; }
.gl-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gl-modal-foot { text-align: center; font-size: 0.78rem; color: #64748b; }
.gl-modal-foot b { color: #e2e8f0; }

/* --- Цолтнууд --- */
.gl-filter { max-width: 900px; margin: 0 auto 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 16px; border-radius: 18px; background: rgba(15, 23, 42, 0.8); border: 1px solid var(--gl-line); backdrop-filter: blur(8px); }
.gl-search { position: relative; flex: 1 1 280px; max-width: 360px; }
.gl-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 0.85rem; }
.gl-search input, .gl-year select, .gl-verify-form input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--gl-line); background: var(--gl-deep); color: #fff; font: inherit; font-size: 16px; padding: 8px 14px 8px 38px; }
.gl-search input:focus, .gl-year select:focus, .gl-verify-form input:focus { outline: none; border-color: rgba(245, 158, 11, 0.6); }
.gl-year { display: flex; align-items: center; gap: 8px; color: var(--gl-muted); font-size: 0.8rem; }
.gl-year select { width: auto; padding-left: 12px; }
.gl-year-head { display: flex; align-items: baseline; gap: 14px; margin: 36px 0 16px; position: relative; padding-right: 50px; }
.gl-year-head h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.8rem; color: var(--gl-gold); font-variant-numeric: tabular-nums; }
.gl-year-head > span { color: #64748b; font-size: 0.85rem; }
.gl-year-head abbr { text-decoration: none; }
.gl-year-head .ai-edit-btn { top: 0; right: 0; }
.gl-hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.gl-hall-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 14px; border-radius: 18px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--gl-line); color: inherit; text-decoration: none; transition: transform 0.3s, border-color 0.3s; }
.gl-hall-card:hover, .gl-hall-card:focus-visible { transform: scale(1.02); border-color: rgba(245, 158, 11, 0.5); }
.gl-ring { position: relative; width: 82px; height: 82px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(251, 191, 36, 0.85); padding: 3px; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12); display: block; }
.gl-ring img, .gl-ring-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.gl-ring-initial { background: linear-gradient(135deg, #fcd34d, #b45309); color: var(--gl-deep); font-family: var(--font-heading); font-weight: 900; font-size: 1.9rem; }
.gl-ring-badge { position: absolute; right: -4px; bottom: -2px; padding: 1px 6px; border-radius: 999px; background: var(--gl-gold-2); border: 2px solid var(--gl-deep); color: var(--gl-deep); font-size: 0.6rem; font-weight: 900; }
.gl-ring-lg { width: 86px; height: 86px; }
.gl-hall-card .gl-ring { margin-bottom: 12px; }
.gl-hall-name { color: #fff; font-size: 0.92rem; transition: color 0.2s; }
.gl-hall-card:hover .gl-hall-name { color: #fcd34d; }
.gl-hall-town { font-size: 0.72rem; color: var(--gl-muted); margin-top: 2px; }
.gl-hall-foot { width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gl-line); display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--gl-muted); }
.gl-code { padding: 2px 8px; border-radius: 6px; background: rgba(245, 158, 11, 0.1); color: var(--gl-gold); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; }
.gl-person { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.gl-person h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: #fff; margin-top: 4px; }
.gl-person p { font-size: 0.78rem; }
.gl-quote { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--gl-deep); border: 1px solid var(--gl-line); font-style: italic; color: var(--gl-text); }
.gl-progress-head { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--gl-muted); margin-bottom: -6px; }
.gl-check-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gl-check-grid li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(2, 6, 23, 0.8); border: 1px solid var(--gl-line); font-size: 0.75rem; font-weight: 600; color: var(--gl-text); }
.gl-check-grid li span { display: grid; }
.gl-check-grid small { font-weight: 400; color: #64748b; font-size: 0.68rem; }
.gl-check-grid i { color: #34d399; }
@media (max-width: 480px) { .gl-check-grid { grid-template-columns: 1fr; } }
.gl-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 60px 20px; border-radius: 18px; background: rgba(15, 23, 42, 0.4); border: 1px solid var(--gl-line); color: var(--gl-muted); }
.gl-empty i { font-size: 2rem; color: #475569; }
.gl-empty b { color: var(--gl-muted); }

/* --- Болзол: алхам, батламж шалгах --- */
.gl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 24px; }
.gl-step { padding: 24px; border-radius: 18px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--gl-line); display: grid; gap: 10px; align-content: start; }
.gl-step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gl-step-top span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 900; font-size: 1.9rem; color: var(--gl-gold); }
.gl-step-top i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gl-gold); font-size: 1.2rem; }
.gl-step h3 { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; }
.gl-step p { font-size: 0.82rem; color: var(--gl-muted); line-height: 1.6; }
.gl-actions-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.gl-verify { max-width: none; margin: 0 0 50px; padding: clamp(24px, 4vw, 40px); border-radius: 26px; text-align: center; border: 1px solid rgba(245, 158, 11, 0.3); background: linear-gradient(90deg, #0f172a, #0f172a 50%, #020617); display: grid; gap: 14px; justify-items: center; }
.gl-verify-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gl-gold); font-size: 1.3rem; }
.gl-verify h2 { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; color: #fff; }
.gl-verify > p { max-width: 620px; font-size: 0.85rem; }
.gl-verify-form { width: 100%; max-width: 640px; display: flex; gap: 10px; flex-wrap: wrap; }
.gl-verify-form input { flex: 1 1 260px; width: auto; padding-left: 16px; }
.gl-verify-results { width: 100%; max-width: 640px; display: grid; gap: 10px; text-align: left; }
.gl-verified { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(2, 44, 34, 0.4); border: 1px solid rgba(16, 185, 129, 0.5); color: #a7f3d0; text-decoration: none; }
.gl-verified:hover { border-color: #34d399; }
.gl-verified .gl-ring { width: 64px; height: 64px; border-color: #34d399; }
.gl-verified .gl-ring-initial { font-size: 1.4rem; }
.gl-verified > span:last-child { display: grid; gap: 2px; }
.gl-ok { font-size: 0.75rem; font-weight: 800; color: #34d399; }
.gl-verified b { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; }
.gl-verified small { color: var(--gl-text); font-size: 0.78rem; }
.gl-quote-sm { color: var(--gl-muted); font-size: 0.78rem; }
.gl-unverified { padding: 14px 18px; border-radius: 16px; background: rgba(76, 5, 25, 0.4); border: 1px solid rgba(244, 63, 94, 0.5); color: #fecdd3; font-size: 0.85rem; display: flex; gap: 10px; align-items: center; }
.gl-unverified i { color: #fb7185; }

.gl-code, .gl-mono { font-family: var(--font-heading); letter-spacing: 0.02em; }
.gl-verify { scroll-margin-top: 120px; }
@media (max-width: 560px) {
    .gl-hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gl-hall-card { padding: 14px 10px 12px; }
    .gl-ring { width: 70px; height: 70px; }
    .gl-peak-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { .app-header #logoutForm { display: none; } }

/* ===================== Газрын зураг + дугаарласан жагсаалт, 3D ===================== */
.gm-wrap.has-list { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; margin-bottom: 40px; }
.gm-wrap.has-list .ai-map-wrap { margin-bottom: 0; }
.gm-list { border-radius: 16px; padding: 10px; display: flex; flex-direction: column; max-height: 560px; }
.gm-list ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 4px; flex: 1; align-content: start; }
.gm-item { display: flex; align-items: center; gap: 6px; border-radius: 12px; border: 1px solid transparent; padding: 4px; transition: background 0.2s, border-color 0.2s; }
.gm-item:hover, .gm-item.is-active { background: rgba(255, 215, 0, 0.07); border-color: rgba(255, 215, 0, 0.3); }
.gm-focus { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; min-height: 44px; }
.gm-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-darker); border: 2px solid var(--primary); color: var(--primary); font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; }
.gm-item.is-active .gm-num { background: var(--primary); color: var(--bg-darker); }
.gm-text { display: grid; min-width: 0; }
.gm-text b { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-text small { color: var(--text-gray); font-size: 0.75rem; line-height: 1.35; }
.gm-actions { display: flex; gap: 4px; flex-shrink: 0; }
.gm-act { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03); color: var(--text-gray); font: inherit; font-size: 0.8rem; cursor: pointer; text-decoration: none; }
.gm-act:hover, .gm-act:focus-visible { border-color: var(--primary); color: var(--primary); }
.gm-act-3d { font-weight: 800; font-size: 0.72rem; color: var(--primary); }
.gm-downloads { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 12px 8px 4px; margin-top: 8px; border-top: 1px solid var(--glass-border); font-size: 0.78rem; color: var(--text-gray); }
.gm-downloads a { color: var(--primary); text-decoration: none; font-weight: 600; }
.gm-downloads a:hover { text-decoration: underline; }
@media (max-width: 900px) {
    .gm-wrap.has-list { grid-template-columns: 1fr; }
    .gm-wrap.has-list .ai-map { height: 420px !important; }
    .gm-list { max-height: none; }
}
.ai-pop-coords { font-variant-numeric: tabular-nums; font-size: 0.75rem !important; }
.ai-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.ai-pop-actions a, .ai-pop-actions button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.05); color: var(--text-light) !important; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; text-decoration: none; margin: 0 !important; }
.ai-pop-actions a:hover, .ai-pop-actions button:hover { border-color: var(--primary); color: var(--primary) !important; }
.gm-peak-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -24px 0 40px; }
.gm-coords { color: var(--text-gray); font-size: 0.9rem; margin-right: auto; }
.gm-coords b { color: var(--text-light); font-variant-numeric: tabular-nums; }
.gm-3d { width: min(1100px, calc(100vw - 24px)); }
.gm-3d-head { display: flex; align-items: center; gap: 12px; padding: 16px 64px 12px 20px; }
.gm-3d-head > div { display: grid; }
.gm-3d-head b { font-family: var(--font-heading); font-size: 1.2rem; }
.gm-3d-head small { color: var(--text-gray); font-size: 0.8rem; }
.gm-3d-map { height: min(70vh, 620px); background: #0b1220; position: relative; }
.gm-3d-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-gray); padding: 20px; text-align: center; }
.gm-3d-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px 16px; font-size: 0.8rem; }
.gm-3d-links { display: flex; gap: 8px; }

/* Leaflet-ийн CSS биеэс хойш ачаалагддаг тул popup-ийн бараан загварыг илүү тодорхой селектороор */
.ai-map .leaflet-popup-content-wrapper, .ai-map .leaflet-popup-tip { background: var(--charcoal); color: var(--text-light); border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.ai-map .leaflet-popup-content { margin: 14px 16px; }
.ai-map a.leaflet-popup-close-button { color: var(--text-gray); }
.ai-map .ai-pop span { color: var(--text-gray); }
.ai-map .ai-pop b { color: var(--text-light); }
.ai-map .ai-pop .ai-pop-grade { color: var(--primary); }
.ai-map .leaflet-control-layers { background: var(--charcoal); color: var(--text-light); }

/* Хөл: Facebook групп, холбоо барих (засварлагдах) */
.ai-fb-group { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 10px; background: rgba(24, 119, 242, 0.15); border: 1px solid rgba(24, 119, 242, 0.45); color: #8ab4ff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.ai-fb-group:hover { background: #1877F2; color: #fff; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--primary); }
.footer-contact .ai-edit-btn { top: -6px; right: 0; }
.footer-bottom a { color: var(--primary); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
