/**
 * eTopo - Hlavní styly
 * Moderní outdoor design
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors - Outdoor palette */
    --color-primary: #2D5A27;
    --color-primary-dark: #1E3D1A;
    --color-primary-light: #4A7C43;
    --color-secondary: #8B4513;
    --color-accent: #E67E22;
    --color-accent-light: #F39C12;

    /* Neutrals */
    --color-bg: #FAFAF8;
    --color-bg-alt: #F5F5F0;
    --color-surface: #FFFFFF;
    --color-border: #E5E5E0;
    --color-border-light: #EFEFEA;

    /* Text */
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;
    --color-text-inverse: #FFFFFF;

    /* Grades - tmavší sjednocené odstíny */
    --grade-easy: #2E7D32;      /* I-IV: tmavě zelená */
    --grade-moderate: #2E7D32;  /* V: stejná zelená jako easy */
    --grade-medium: #F9A825;    /* VI: tmavší žlutá/zlatá */
    --grade-hard: #EF6C00;      /* VII: tmavší oranžová */
    --grade-extreme: #C62828;   /* VIII+: tmavě červená */

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1280px;
    --header-height: 70px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    min-width: 320px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-content {
    min-height: calc(100vh - var(--header-height));
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 9999;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-primary-dark);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.nav-link.active {
    color: var(--color-primary);
    background: rgba(45, 90, 39, 0.1);
}

.nav-link .icon {
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.search-toggle,
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle .icon-close {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-form input {
    flex: 1;
    padding: var(--space-md);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form button {
    padding: var(--space-md);
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
}

.search-results {
    margin-top: var(--space-md);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: white;
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn .icon {
    width: 18px;
    height: 18px;
}

/* ========================================
   Icons
   ======================================== */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a3a15 0%, #2d5a27 50%, #3d7a37 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30 30 60 0 30z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--color-accent-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

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

.hero-stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero .btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator .icon {
    transform: rotate(90deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.map-header {
    max-width: var(--container-max);
    margin: 0 auto var(--space-xl);
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.map-controls {
    display: flex;
    gap: var(--space-md);
}

.map-view-toggle,
.map-tiles-toggle {
    display: flex;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 4px;
}

.view-btn,
.tiles-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.view-btn:hover,
.tiles-btn:hover {
    color: var(--color-text);
}

.view-btn.active,
.tiles-btn.active {
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.map-wrapper {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-map {
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-loading {
    position: absolute;
    inset: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-lg);
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Map Sidebar */
.map-sidebar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 350px;
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header h3 {
    font-size: 1.1rem;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
}

.sidebar-close:hover {
    background: var(--color-bg-alt);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

/* ========================================
   Areas Grid
   ======================================== */
.featured-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.section-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    transition: gap var(--transition-fast);
}

.section-link:hover {
    gap: var(--space-sm);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

.area-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.area-card-hidden {
    display: none;
}

.areas-grid.expanded .area-card-hidden {
    display: block;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.area-card-link {
    display: block;
    color: inherit;
}

.area-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.area-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.area-card:hover .area-card-image img {
    transform: scale(1.05);
}

.area-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

.area-card-region {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255,255,255,0.9);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.area-card-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    gap: var(--space-xs);
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-region {
    background: rgba(255,255,255,0.9);
    color: var(--color-text);
}

.badge-rock {
    background: rgba(45, 90, 39, 0.9);
    color: white;
}

.area-card-content {
    padding: var(--space-lg);
}

.area-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.area-card-excerpt,
.area-card-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.area-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 var(--space-sm);
}

.area-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.area-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f5f0;
    border: 1px solid #e5e5e0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #666;
}

.area-tag .icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.area-card-grades {
    margin-bottom: var(--space-sm);
    width: 100%;
}

.area-card-grades .grade-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e5e0;
    display: flex;
    width: 100%;
    overflow: hidden;
}

.area-card-grades .grade-bar-segment {
    height: 100%;
}

.area-card-grades .grade-bar-easy { background: linear-gradient(180deg, #66BB6A 0%, #43A047 100%); }
.area-card-grades .grade-bar-medium { background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%); }
.area-card-grades .grade-bar-hard { background: linear-gradient(180deg, #FFB74D 0%, #F57C00 100%); }
.area-card-grades .grade-bar-extreme { background: linear-gradient(180deg, #EF5350 0%, #E53935 100%); }

/* Počty cest pod grade barem */
.grade-bar-counts {
    display: flex;
    margin-top: 4px;
}

.grade-bar-counts span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary, #666);
    min-width: 0;
    overflow: hidden;
}

.grade-bar-counts-sm span {
    font-size: 0.7rem;
}

.area-card-divider {
    height: 1px;
    background: #e5e5e0;
    margin: var(--space-sm) 0;
}

.area-card-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.area-card-meta .meta-item {
    font-size: 0.85rem;
    color: #666;
}

.area-card-meta .meta-item strong {
    font-weight: 600;
    color: #333;
}

.area-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Grade bar - rozložení obtížností */
.etopo-grade-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.grade-segment {
    height: 100%;
    min-width: 3px;
}

.grade-segment.grade-easy { background: #2E7D32; }
.grade-segment.grade-medium { background: #F9A825; }
.grade-segment.grade-hard { background: #EF6C00; }
.grade-segment.grade-extreme { background: #C62828; }

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.meta-item .icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.area-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.area-card:hover .area-card-cta {
    gap: var(--space-sm);
}

.area-card-stats {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.stat-item .icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.stat-value {
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-lg);
    color: white;
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.cta-section .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background: var(--color-bg);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.8);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-stats h4 {
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.stats-mini {
    display: flex;
    gap: var(--space-lg);
}

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

.stat-mini .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-mini .stat-label {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--color-bg-alt);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--space-md);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs .active {
    color: var(--color-text);
    font-weight: 500;
}

/* ========================================
   Filter Section
   ======================================== */
.filter-section {
    padding: var(--space-lg) 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-group-select label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.filter-group select {
    padding: 10px 14px;
    padding-right: 36px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: var(--color-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-group select:hover {
    border-color: var(--color-border-dark);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.filter-group-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-group-search .search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.filter-group-search input {
    width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-group-search input:hover {
    border-color: var(--color-border-dark);
}

.filter-group-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.filter-group-search input::placeholder {
    color: var(--color-text-muted);
}

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

/* Responsive filter */
@media (max-width: 640px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .filter-group-search {
        width: 100%;
    }

    .filter-group-search input {
        flex: 1;
        width: auto;
    }

    .filter-group-select {
        width: 100%;
    }

    .filter-group-select select {
        flex: 1;
    }
}

/* ========================================
   Areas Page Header
   ======================================== */
.areas-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.areas-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.areas-header .container {
    position: relative;
    z-index: 1;
}

.areas-header .breadcrumbs a,
.areas-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.areas-header .breadcrumbs a:hover {
    color: white;
}

.areas-header-content {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.areas-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.areas-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    color: white;
}

.areas-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

@media (max-width: 768px) {
    .areas-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .areas-header-content {
        flex-direction: column;
        text-align: center;
    }

    .areas-header-icon {
        width: 64px;
        height: 64px;
    }

    .areas-header h1 {
        font-size: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   Areas Section
   ======================================== */
.areas-section {
    padding: var(--space-2xl) 0;
}

.areas-grid-lg {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.area-card-horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.area-card-horizontal:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.area-card-horizontal .area-card-link {
    display: contents;
}

.area-card-horizontal .area-card-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 180px;
    max-height: 200px;
    position: relative;
    overflow: hidden;
}

.area-card-horizontal .area-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.area-card-horizontal:hover .area-card-image img {
    transform: scale(1.03);
}

.area-card-horizontal .area-card-content {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
}

.area-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.area-card-horizontal .area-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.area-card-region {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}

.area-card-horizontal .area-card-description {
    flex: 1;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.area-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.info-tag .icon {
    width: 11px;
    height: 11px;
    color: var(--color-primary);
}

.area-card-horizontal .area-card-grades {
    margin: var(--space-xs) 0;
}

.area-card-horizontal .area-card-grades .grade-bar {
    height: 6px;
    border-radius: 3px;
}

.area-card-horizontal .area-card-stats {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
}

.area-card-horizontal .area-card-stats .stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.area-card-horizontal .area-card-stats .stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.area-card-horizontal .area-card-stats .stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.area-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: auto;
}

.area-card-cta .icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.area-card-horizontal:hover .area-card-cta .icon {
    transform: translateX(3px);
}

/* Responsive - area cards */
@media (max-width: 768px) {
    .area-card-horizontal {
        grid-template-columns: 1fr;
    }

    .area-card-horizontal .area-card-image {
        min-height: 160px;
        max-height: 160px;
    }

    .area-card-horizontal .area-card-content {
        padding: var(--space-sm);
    }

    .area-card-horizontal .area-card-title {
        font-size: 1rem;
    }
}

/* ========================================
   Area Detail
   ======================================== */
.area-header {
    position: relative;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
    background: var(--area-image) center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.area-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.area-header-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.area-header .container {
    position: relative;
    z-index: 1;
}

.area-header .breadcrumbs a,
.area-header .breadcrumbs li::after {
    color: rgba(255,255,255,0.7);
}

.area-header .breadcrumbs .active {
    color: white;
}

.area-header-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.area-header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: end;
}

.area-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.area-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white;
}

.area-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

.area-header-stats {
    display: flex;
    gap: var(--space-md);
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 100px;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-card .stat-value-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    color: white;
}

/* Area Header Grades (similar to sector) */
.area-header-grades {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 100%;
}

.area-header-grades .grades-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.area-header-grades .grades-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.area-header-grades .grade-bar {
    background: rgba(255, 255, 255, 0.2);
}

/* Area Content */
.area-content {
    padding: var(--space-2xl) 0;
}

.area-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-2xl);
}

.content-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-xl);
}

.card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.card-header h2,
.card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-header .icon {
    color: var(--color-primary);
}

.card-body {
    padding: var(--space-lg);
}

/* Routes card - no padding for full-width table */
.card-body-routes {
    padding: 0;
}

/* Area Map */
.area-map {
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.sector-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.sector-card:hover {
    background: var(--color-bg-alt);
}

.sector-card-link {
    display: block;
    color: inherit;
}

.sector-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.sector-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-card-content {
    padding: var(--space-md);
}

.sector-card-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.sector-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.sector-card-excerpt {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Grade Distribution in Sector Cards */
.sector-grade-distribution {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.grade-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    color: #fff;
}

.grade-easy {
    background-color: #4CAF50;
}

.grade-medium {
    background-color: #FFC107;
    color: #333;
}

.grade-hard {
    background-color: #FF9800;
}

.grade-extreme {
    background-color: #F44336;
}


/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item dt {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.info-item dd {
    font-weight: 500;
    text-align: right;
}

.info-item a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* External Links */
.external-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.external-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.external-links a:hover {
    background: var(--color-bg-alt);
}

/* ========================================
   Sector Detail
   ======================================== */
.sector-header {
    position: relative;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
    background: var(--sector-image) center/cover no-repeat;
    color: white;
}

.sector-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.sector-header .container {
    position: relative;
    z-index: 1;
}

.sector-parent-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.sector-parent-link:hover {
    color: white;
}

.sector-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    color: white;
}

.sector-description {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    margin-top: var(--space-sm);
}

.sector-header-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: end;
}

.sector-header-stats {
    display: flex;
    gap: var(--space-md);
}

/* Sector Content */
.sector-content {
    padding: var(--space-2xl) 0;
}

.sector-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
}

/* ========================================
   INFO CARDS - 3 oddělené karty (Info + Počasí + Mapa)
   ======================================== */

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Společný styl pro všechny karty */
.info-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

/* Header karty - styl jako původní sidebar */
.info-card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.info-card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.info-card-header .icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Body karty */
.info-card-body {
    padding: var(--space-lg);
}

/* ===== INFO KARTA - styl jako původní sidebar ===== */
.info-card-info .info-card-body {
    padding: 0;
}

.info-card-stats {
    display: flex;
    flex-direction: column;
}

.info-card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.info-card-stat:last-child {
    border-bottom: none;
}

.info-card-stat .stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.info-card-stat .stat-value {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

/* ===== SECTOR TABS - navigace mezi sektory ===== */
.sector-tabs-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
}

.sector-tabs-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.sector-tabs {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sector-tabs::-webkit-scrollbar {
    display: none;
}

.sector-tab {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.sector-tab:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.sector-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.sector-tab-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(0,0,0,0.1);
    border-radius: var(--radius-full);
}

.sector-tab.active .sector-tab-count {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 640px) {
    .sector-tabs-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .sector-tab {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }
}

/* ===== POČASÍ KARTA - zelené pozadí ===== */
.info-card-weather {
    background: linear-gradient(135deg, #2d5a27 0%, #1a3d15 100%);
    border: none;
    display: flex;
    flex-direction: column;
}

.info-card-weather .info-card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: var(--space-md) var(--space-lg);
}

.info-card-weather .info-card-header h3 {
    color: white;
    font-size: 1rem;
}

.info-card-weather .info-card-header .icon {
    color: white;
    width: 16px;
    height: 16px;
}

.info-card-weather .info-card-body {
    padding: 0;
    flex: 1;
    display: flex;
}

.info-card-weather .weather-days {
    display: flex;
    flex: 1;
}

.info-card-weather .weather-day {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.25rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card-weather .weather-day:last-child {
    border-right: none;
}

.info-card-weather .weather-day.today {
    background: rgba(255,255,255,0.15);
    position: relative;
}

.info-card-weather .weather-day.today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 0 0 2px 2px;
}

.info-card-weather .weather-day-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.info-card-weather .weather-day.today .weather-day-name {
    color: white;
}

.info-card-weather .weather-day-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.info-card-weather .weather-day-temp {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.info-card-weather .weather-day-rain {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
}

.info-card-weather .weather-day-rain.has-rain {
    color: rgba(100, 200, 255, 0.9);
    font-weight: 500;
}

/* ===== MAPA KARTA ===== */
.info-card-map {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.info-card-map .info-card-body {
    flex: 1;
    padding: 0;
    position: relative;
}

.info-card-map .info-map-container {
    position: absolute;
    inset: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .info-card-map {
        grid-column: span 2;
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card-map {
        grid-column: span 1;
        min-height: 180px;
    }

    .info-card-header {
        padding: var(--space-sm) var(--space-md);
    }

    .info-card-header h3 {
        font-size: 0.9rem;
    }

    .info-card-stat {
        padding: var(--space-xs) var(--space-md);
    }

    .info-sectors-dropdown {
        padding: var(--space-xs) var(--space-md) var(--space-md);
    }

    .info-card-weather .weather-day {
        padding: 0.75rem 0.25rem;
    }

    .info-card-weather .weather-day-name {
        font-size: 0.6rem;
    }

    .info-card-weather .weather-day-icon {
        font-size: 1.2rem;
    }

    .info-card-weather .weather-day-temp {
        font-size: 0.85rem;
    }
}

/* ========================================
   TOPO TABS & DISPLAY
   ======================================== */

.topo-section {
    margin-bottom: var(--space-2xl);
}

.topo-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--color-border-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.topo-tabs::-webkit-scrollbar {
    display: none;
}

.topo-tab {
    position: relative;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.topo-tab:hover {
    color: var(--color-text);
    background: rgba(45, 90, 39, 0.04);
}

.topo-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.topo-panel {
    display: none;
}

.topo-panel.active {
    display: block;
    animation: panelFadeIn 0.25s ease;
}

/* Topo display - velký obrázek + seznam cest */
.topo-display {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 80vh;
    max-height: 700px;
}

.topo-image-large {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #f5f5f3;
    min-height: 0;
    overflow: hidden;
}

.topo-image-large .topo-image-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.topo-image-large .topo-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

/* SVG overlay — vše se nastavuje inline v JS, hover efekt přes JS mouseenter/mouseleave */

/* Seznam cest v panelu */
.topo-routes-panel {
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid var(--color-border-light);
    background: var(--color-surface);
    min-height: 0;
}

.topo-routes-panel .routes-table-compact {
    width: 100%;
}

.topo-routes-panel .routes-table-compact thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.topo-routes-panel .routes-table-compact thead th {
    background: linear-gradient(180deg, var(--color-surface) 0%, #fafaf8 100%);
    border-bottom: 2px solid var(--color-border-light);
    padding: 14px 12px;
}

.topo-routes-panel .routes-table-compact td {
    padding: 12px;
}

.topo-routes-panel .routes-table-compact tbody tr:hover {
    background: rgba(45, 90, 39, 0.05);
}

/* Weather card inline (v info panelu) */
.weather-card-inline {
    background: linear-gradient(135deg, #2d5a27 0%, #1a3d15 100%);
    color: white;
}

.weather-card-inline .weather-timeline {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weather-card-inline .weather-timeline::-webkit-scrollbar {
    display: none;
}

.weather-card-inline .weather-day {
    flex: 1;
    min-width: 70px;
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.weather-card-inline .weather-day:last-child {
    border-right: none;
}

.weather-card-inline .weather-day-today {
    background: rgba(255,255,255,0.15);
}

.weather-card-inline .weather-day-past {
    opacity: 0.6;
}

.weather-card-inline .weather-day-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.weather-card-inline .weather-day-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.weather-card-inline .weather-day-temp {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.weather-card-inline .temp-max {
    font-weight: 600;
    color: white;
}

.weather-card-inline .temp-min {
    color: rgba(255,255,255,0.7);
}

.weather-card-inline .weather-day-rain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

.weather-card-inline .weather-day-rain-none {
    opacity: 0.5;
}

.weather-card-inline .weather-footer {
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive - Info Panels & Topo */
@media (max-width: 1200px) {
    .topo-display {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .topo-display {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .topo-image-large {
        min-height: 350px;
        padding: var(--space-md);
        overflow: visible;
    }

    .topo-image-large .topo-image-container img {
        max-height: 50vh;
    }

    .topo-routes-panel {
        border-left: none;
        border-top: 1px solid var(--color-border-light);
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .info-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .topo-tab {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }

    .topo-image-large {
        min-height: 280px;
    }

    .topo-routes-panel {
        max-height: 350px;
    }

    .topo-routes-panel .routes-table-compact thead th,
    .topo-routes-panel .routes-table-compact td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .info-tab span {
        display: none;
    }

    .info-tab {
        padding: 10px 14px;
        justify-content: center;
        flex: 1;
    }

    .topo-tab {
        flex: 1;
        text-align: center;
        padding: var(--space-sm) var(--space-xs);
        font-size: 0.85rem;
    }

    .topo-image-large {
        padding: var(--space-sm);
    }

    .topo-routes-panel {
        max-height: 300px;
    }
}

/* Mini Map */
.sector-mini-map {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

/* Grade Distribution */
.grade-distribution {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.grade-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.grade-bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.grade-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.grade-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    min-width: 30px;
}

/* ========================================
   Sector Navigation (sidebar)
   ======================================== */
.card-body-compact {
    padding: var(--space-sm);
}

.sector-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sector-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sector-nav-item:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.sector-nav-item.active {
    background: var(--color-primary);
    color: white;
}

.sector-nav-item.active .sector-nav-count {
    color: rgba(255, 255, 255, 0.8);
}

.sector-nav-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.sector-nav-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ========================================
   Topos
   ======================================== */
.card-body-topo {
    padding: 0;
}

.topo-content {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
    gap: var(--space-xl);
    padding: var(--space-lg);
    align-items: start;
}

.topo-image {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.topo-image-link {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.topo-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    object-position: top center;
    border-radius: var(--radius-sm);
}

.zoom-hint {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.topo-image-link:hover .zoom-hint {
    opacity: 1;
}

.topo-routes {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}

/* Scrollbar styling for topo routes */
.topo-routes::-webkit-scrollbar {
    width: 6px;
}

.topo-routes::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
    border-radius: 3px;
}

.topo-routes::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.topo-routes::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.topo-meta {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
}

.topo-caption {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

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

/* ========================================
   Routes Table
   ======================================== */
.routes-list {
    width: 100%;
}

/* Routes Table */
.routes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: auto;
}

.routes-table th,
.routes-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.routes-table thead th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-bg);
}

.routes-table tbody tr:hover {
    background: rgba(45, 90, 39, 0.03);
}

.routes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Přelezená cesta */
.routes-table tbody tr.route-climbed {
    background: rgba(45, 90, 39, 0.04);
}

.routes-table .col-num {
    width: 45px;
    text-align: center;
    color: var(--color-text-muted);
    font-weight: 500;
}

.routes-table .col-name strong {
    font-weight: 600;
    color: var(--color-text);
}

.routes-table .col-grade {
    width: 90px;
}

.routes-table .col-length,
.routes-table .col-bolts {
    width: 70px;
    color: var(--color-text-secondary);
}

.routes-table .col-style {
    width: 100px;
    color: var(--color-text-secondary);
}

.routes-table .col-fa {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.routes-table .col-logbook {
    width: 50px;
    text-align: center;
}

.route-link {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
}

.route-link:hover {
    color: var(--color-primary);
}

/* Route description row */
.route-row.has-description td,
.routes-table-compact tr.has-description td {
    border-bottom: none;
}

.route-description-row td {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--color-border);
}

.route-description-row .col-description {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding-left: 60px;
    text-align: left;
}

/* Topo compact table description */
.routes-table-compact .route-description-row .col-description {
    padding-left: 44px;
}

/* Hlavní řádek + popis se chovají jako jeden celek při hoveru */
tr:has(+ .route-description-row) td {
    border-bottom: none !important;
}

/* Zrušit výchozí hover na obou řádcích */
.routes-table tbody tr.route-description-row:hover,
.routes-table-compact tbody tr.route-description-row:hover,
.topo-routes-panel .routes-table-compact tbody tr.route-description-row:hover,
.routes-table tbody tr:has(+ .route-description-row):hover,
.routes-table-compact tbody tr:has(+ .route-description-row):hover,
.topo-routes-panel .routes-table-compact tbody tr:has(+ .route-description-row):hover {
    background: transparent !important;
}

/* Hover propojení — oba řádky se zvýrazní jako jeden celek */
tr.hover-paired td,
tr:has(+ .route-description-row):hover td,
tr:has(+ .route-description-row):hover + .route-description-row td {
    background: rgba(45, 90, 39, 0.03);
}

.route-description-row.route-climbed {
    background: rgba(45, 90, 39, 0.04);
}

/* Climbers count badge */
.route-climbers-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.route-climbers-count .icon {
    width: 12px;
    height: 12px;
}

/* Add to logbook button */
.add-to-logbook-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text-muted);
    transition: all 0.2s;
    border: 1px solid var(--color-border);
}

.add-to-logbook-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.add-to-logbook-btn .icon {
    width: 14px;
    height: 14px;
}

.add-to-logbook-btn.btn-climbed {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Compact routes table for topo cards */
.routes-table-compact {
    font-size: 0.85rem;
    width: 100%;
    border-collapse: collapse;
}

.routes-table-compact th,
.routes-table-compact td {
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}

.routes-table-compact thead th {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--color-surface);
    white-space: nowrap;
    position: sticky;
    top: 0;
}

.routes-table-compact tbody tr:hover {
    background: rgba(45, 90, 39, 0.03);
}

.routes-table-compact tbody tr:last-child td {
    border-bottom: none;
}

.routes-table-compact .col-num {
    width: 32px;
    text-align: center;
    color: var(--color-text-muted);
}

.routes-table-compact .col-name {
    font-weight: 500;
}

.routes-table-compact .col-grade {
    width: 70px;
}

.routes-table-compact .col-length {
    width: 50px;
    color: var(--color-text-secondary);
}

.routes-table-compact .col-style {
    width: 70px;
    color: var(--color-text-secondary);
}

.routes-table-compact .col-logbook {
    width: 44px;
    text-align: center;
}

.routes-table-compact .add-to-logbook-btn {
    width: 28px;
    height: 28px;
}

.routes-table-compact .add-to-logbook-btn .icon {
    width: 14px;
    height: 14px;
}

/* Login required button */
.add-to-logbook-btn.btn-login-required {
    cursor: pointer;
    opacity: 0.7;
}

.add-to-logbook-btn.btn-login-required:hover {
    opacity: 1;
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ========================================
   Modal Dialog (Login Required)
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: var(--space-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.25s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-dialog-header {
    position: relative;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog-icon .icon {
    width: 30px;
    height: 30px;
    color: white;
}

.modal-dialog-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-dialog-body {
    padding: var(--space-xl);
    text-align: center;
}

.modal-dialog-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--space-sm) 0;
    color: var(--color-text);
}

.modal-dialog-body p {
    margin: 0 0 var(--space-sm) 0;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.modal-dialog-body p:last-child {
    margin-bottom: 0;
}

.modal-dialog-body .text-muted {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.modal-dialog-footer {
    padding: 0 var(--space-xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.modal-dialog-footer .btn {
    justify-content: center;
}

.modal-dialog-footer .btn-primary {
    padding: var(--space-md);
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: var(--space-md);
        max-width: calc(100% - var(--space-xl));
    }

    .modal-dialog-header {
        padding: var(--space-lg);
    }

    .modal-dialog-icon {
        width: 50px;
        height: 50px;
    }

    .modal-dialog-icon .icon {
        width: 24px;
        height: 24px;
    }

    .modal-dialog-body {
        padding: var(--space-lg);
    }

    .modal-dialog-footer {
        padding: 0 var(--space-lg) var(--space-lg);
    }
}

/* Grade Badge */
.grade-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: white;
}

.grade-easy { background: var(--grade-easy); }
.grade-moderate { background: var(--grade-moderate); }
.grade-medium { background: var(--grade-medium); }
.grade-hard { background: var(--grade-hard); }
.grade-extreme { background: var(--grade-extreme); }
.grade-unrated { background: #888888; }

/* ========================================
   Grade Bar (Horizontal Distribution)
   ======================================== */
.grade-bar-container {
    margin-top: 8px;
    width: 100%;
}

.grade-bar {
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e5e0;
}

.grade-bar-lg {
    height: 12px;
    border-radius: 6px;
}

.grade-bar-segment {
    height: 100%;
    min-width: 4px;
}

.grade-bar-segment.grade-bar-easy { background: #2E7D32; }
.grade-bar-segment.grade-bar-medium { background: #F9A825; }
.grade-bar-segment.grade-bar-hard { background: #EF6C00; }
.grade-bar-segment.grade-bar-extreme { background: #C62828; }

/* Grades Header with Legend */
.grades-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.grades-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.grades-legend {
    display: flex;
    gap: 4px;
}

.legend-item {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-item.legend-easy { background: #2E7D32; }
.legend-item.legend-medium { background: #F9A825; }
.legend-item.legend-hard { background: #EF6C00; }
.legend-item.legend-extreme { background: #C62828; }

/* Sector Header Grades (in header with dark background) */
.sector-header-grades {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 100%;
}

.sector-header-grades .grades-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: var(--space-md);
}

.sector-header-grades .grades-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
}

.sector-header-grades .grade-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
}

/* Sector Card Grade Bar */
.sector-card-content .grade-bar-container {
    margin-top: 8px;
}

.sector-card-content .grade-bar {
    background: #e5e5e0;
}

/* ========================================
   About Page
   ======================================== */
.about-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.about-header .container {
    position: relative;
    z-index: 1;
}

.about-header .breadcrumbs a,
.about-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.about-header .breadcrumbs a:hover {
    color: white;
}

.about-header-content {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.about-header-text {
    flex: 1;
}

.about-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    color: white;
}

.about-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

@media (max-width: 768px) {
    .about-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .about-header-content {
        flex-direction: column;
        text-align: center;
    }

    .about-header-icon {
        width: 64px;
        height: 64px;
    }

    .about-header h1 {
        font-size: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Legacy - keep for backwards compatibility */
.page-header-about {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.page-header-about .page-title,
.page-header-about .page-subtitle {
    color: white;
}

.page-header-about .page-subtitle {
    opacity: 0.9;
}

/* ========================================
   Activity Page Header
   ======================================== */
.activity-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.activity-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.activity-header .container {
    position: relative;
    z-index: 1;
}

.activity-header .breadcrumbs a,
.activity-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.activity-header .breadcrumbs a:hover {
    color: white;
}

.activity-header-content {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.activity-header-text {
    flex: 1;
}

.activity-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    color: white;
}

.activity-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

.activity-today-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-today-badge .today-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.activity-today-badge .today-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .activity-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .activity-header-content {
        flex-direction: column;
        text-align: center;
    }

    .activity-header-icon {
        width: 64px;
        height: 64px;
    }

    .activity-header h1 {
        font-size: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .activity-today-badge {
        margin-left: 0;
    }
}

.about-content {
    padding: var(--space-2xl) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-2xl);
}

.about-main .content-card {
    margin-bottom: var(--space-xl);
}

.about-main h2 {
    margin-bottom: var(--space-md);
}

.about-main p {
    margin-bottom: var(--space-md);
}

.about-main .lead {
    font-size: 1.15rem;
    color: var(--color-text);
}

.feature-list {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.hierarchy-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.hierarchy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hierarchy-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
}

.hierarchy-arrow {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    align-self: flex-start;
    margin-top: 12px;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.tech-feature {
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.tech-feature h4 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.tech-feature p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.about-stat {
    text-align: center;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.about-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quick-links a {
    padding: var(--space-sm);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.quick-links a:hover {
    background: var(--color-bg-alt);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.empty-state-sm {
    padding: var(--space-xl);
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-message {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.flash-success {
    border-left: 4px solid var(--grade-easy);
}

.flash-error {
    border-left: 4px solid var(--grade-extreme);
}

.flash-close {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .area-layout,
    .sector-layout,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .area-sidebar,
    .sector-sidebar,
    .about-sidebar {
        order: -1;
    }

    .topo-content {
        grid-template-columns: 1fr;
    }

    .area-card-horizontal {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header,
    .header-container {
        overflow: visible;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        background: var(--color-surface);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: var(--space-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 9998;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body.menu-open .mobile-menu-toggle .icon-menu {
        display: none;
    }

    body.menu-open .mobile-menu-toggle .icon-close {
        display: block;
    }

    .hero-stats {
        gap: var(--space-lg);
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-map {
        height: 400px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-mini {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .area-header-top,
    .sector-header-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sector-header-info {
        text-align: center;
    }

    .sector-parent-link {
        justify-content: center;
        font-size: 0.85rem;
        margin-bottom: var(--space-sm);
    }

    .sector-description {
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.5;
        margin: 0 auto;
    }

    .area-header-stats,
    .sector-header-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .area-header-grades,
    .sector-header-grades {
        max-width: 100%;
    }

    .area-title,
    .sector-title {
        font-size: 1.75rem;
        word-break: break-word;
        line-height: 1.2;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }

    /* Topo cards mobile */
    .topo-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .topo-image img {
        max-height: 280px;
    }

    .topo-routes {
        max-height: 180px;
        overflow-y: auto;
        border-bottom: 1px solid var(--color-border-light);
    }

    /* Routes table compact - mobile */
    .routes-table-compact {
        font-size: 0.8rem;
    }

    .routes-table-compact th,
    .routes-table-compact td {
        padding: 8px 10px;
    }

    .routes-table-compact .col-length,
    .routes-table-compact .col-style {
        display: none;
    }

    /* Full routes table */
    .routes-table {
        font-size: 0.85rem;
    }

    .routes-table th,
    .routes-table td {
        padding: 10px 12px;
    }

    .routes-table .col-fa,
    .routes-table .col-style,
    .routes-table .col-bolts {
        display: none;
    }

    .routes-table .col-num {
        width: 40px;
    }

    /* Route description on mobile */
    .route-description-row .col-description {
        padding-left: 52px;
        font-size: 0.8rem;
    }

    /* Grade categories */
    .sector-header-grades {
        justify-content: center;
    }

    .sector-header-grades .grades-header {
        justify-content: center;
    }

    .grade-cat {
        min-width: 26px;
        height: 22px;
        font-size: 0.7rem;
    }

    /* Cards */
    .card-body {
        padding: var(--space-md);
    }

    .card-body-routes {
        padding: 0;
    }

    .card-header h2,
    .card-header h3 {
        font-size: 1rem;
    }

    /* Sector navigation */
    .sector-nav-item {
        padding: 8px 10px;
    }

    .sector-nav-title {
        font-size: 0.85rem;
    }

    .sector-nav-count {
        font-size: 0.7rem;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 0.75rem;
    }

    /* Lightbox */
    .lightbox-image {
        min-width: auto;
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-close {
        top: -40px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sector-title {
        font-size: 1.4rem;
    }

    .sector-description {
        font-size: 0.9rem;
    }

    .sector-header-stats {
        gap: 6px;
    }

    .stat-card {
        padding: 8px 10px;
        min-width: auto;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .sector-header-grades .grades-label {
        font-size: 0.7rem;
    }

    .sector-header-grades .grade-bar {
        height: 8px;
    }

    /* Topo */
    .topo-content {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .topo-image img {
        max-height: 220px;
    }

    .topo-routes {
        max-height: 160px;
    }

    .routes-table-compact {
        font-size: 0.75rem;
    }

    .routes-table-compact th,
    .routes-table-compact td {
        padding: 6px 8px;
    }

    .grade-badge {
        padding: 2px 4px;
        font-size: 0.65rem;
    }

    /* Full routes table */
    .routes-table {
        font-size: 0.8rem;
    }

    .routes-table th,
    .routes-table td {
        padding: 8px 10px;
    }

    .routes-table .col-length {
        display: none;
    }

    .routes-table .col-num {
        width: 32px;
    }

    .routes-table .col-logbook {
        width: 36px;
    }

    .route-description,
    .route-notes {
        font-size: 0.75rem;
    }

    .add-to-logbook-btn {
        width: 26px;
        height: 26px;
    }

    .add-to-logbook-btn .icon {
        width: 12px;
        height: 12px;
    }

    /* Cards */
    .card-body {
        padding: var(--space-sm);
    }

    .card-body-routes {
        padding: 0;
    }

    .card-header {
        padding: 10px 14px;
    }

    .card-header h2,
    .card-header h3 {
        font-size: 0.95rem;
    }

    /* Sector navigation */
    .sector-nav-item {
        padding: 6px 8px;
    }

    .sector-nav-title {
        font-size: 0.8rem;
    }

    .sector-nav-count {
        font-size: 0.65rem;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 0.7rem;
    }

    /* Info */
    .info-list {
        font-size: 0.85rem;
    }

    /* Mini map */
    .sector-mini-map {
        height: 160px;
    }

    /* Grade categories */
    .grade-cat {
        min-width: 24px;
        height: 20px;
        font-size: 0.65rem;
    }

    .grades-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   Fullscreen Map Page
   ======================================== */
.page-fullmap .site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.fullscreen-map-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    overflow: clip;
    z-index: 1;
}

.fullscreen-map {
    width: 100%;
    height: 100%;
}

/* Map Overlay - Top Stats */
.map-overlay-top {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 500;
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.map-title-block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.map-title-block h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
}

.map-title-block p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: var(--space-xs) 0 0;
}

.map-stats-block {
    display: flex;
    gap: var(--space-sm);
}

.map-stats-block .stat {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 70px;
}

.map-stats-block .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.map-stats-block .stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Pills */
.map-filters {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 500;
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    max-width: 300px;
    justify-content: flex-end;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Areas List Section below map */
.areas-list-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
}

/* ========================================
   Map Popup Styles (Mapy.cz)
   ======================================== */
.popup-container {
    max-width: 280px;
    padding: var(--space-sm);
    font-family: var(--font-sans);
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--space-xs);
    color: var(--color-text);
    text-decoration: none;
    display: block;
    text-align: center;
}

.popup-title:hover {
    color: var(--color-primary);
}

.popup-region {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.popup-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.popup-image {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 0 0 var(--space-md);
    border-radius: var(--radius-md);
}

.popup-button {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}

.popup-button:hover {
    background: var(--color-primary-dark);
    color: white;
}

/* Difficulty Chart in Popup */
.popup-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: var(--space-sm) 0 var(--space-md);
    justify-content: center;
}

.popup-bar {
    width: 15px;
    border-radius: 3px;
    color: #333;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    padding-top: 5px;
}

.popup-bar[data-level="1-4c"] { background-color: #4B6F3E; }
.popup-bar[data-level="5a-6a"] { background-color: #C98430; }
.popup-bar[data-level="6b-7c"] { background-color: #836D58; }
.popup-bar[data-level="8a-9c"] { background-color: #D10E14; }

.popup-bar span {
    position: absolute;
    bottom: -15px;
    color: #333;
    font-size: 0.7rem;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 10px 12px !important;
}

/* ========================================
   Responsive - Fullscreen Map
   ======================================== */
@media (max-width: 768px) {
    .map-overlay-top {
        flex-direction: column;
        gap: var(--space-sm);
        left: var(--space-md);
        top: var(--space-md);
    }

    .map-title-block {
        padding: var(--space-sm) var(--space-md);
    }

    .map-title-block h1 {
        font-size: 1.25rem;
    }

    .map-stats-block {
        display: none;
    }

    .map-filters {
        top: auto;
        bottom: 80px;
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
        justify-content: center;
    }

    .filter-pill {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .fullscreen-map-wrapper {
        height: calc(100vh - 60px);
    }

    /* Přesun zoom tlačítek do pravého horního rohu na mobilech */
    .leaflet-bottom.leaflet-left .leaflet-control-zoom {
        position: fixed !important;
        bottom: auto !important;
        top: 80px !important;
        left: auto !important;
        right: 16px !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-md) !important;
    }
}

/* ========================================
   User Menu (Header)
   ======================================== */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.user-menu-toggle:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

.user-menu-toggle .icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 1000;
}

.user-menu.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.user-menu-header .user-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.user-menu-header .user-email {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.user-menu-item:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.user-menu-item .icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
}

.user-menu-item:hover .icon {
    color: var(--color-primary);
}

.user-menu-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-xs) 0;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-login:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.btn-login .icon {
    width: 16px;
    height: 16px;
}

/* ========================================
   Auth Pages (Login, Register)
   ======================================== */
.page-auth .main-content {
    padding-top: 0;
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a15 0%, #2d5a27 50%, #3d7a34 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: var(--space-xl) 0;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10L10 40l15 15 15-15 15 15 15-15L40 10z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--color-surface);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: authCardAppear 0.5s ease-out;
}

@keyframes authCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    text-align: center;
    background: #fff;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    padding: var(--space-lg) var(--space-xl);
    background: #fff;
}

.auth-form .form-group {
    margin-bottom: var(--space-md);
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
    border-color: #ccc;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.1);
}

.auth-form .form-group.has-error input {
    border-color: #C62828;
    background: #fff5f5;
}

.auth-form .form-error {
    display: block;
    color: #C62828;
    font-size: 0.8rem;
    margin-top: var(--space-xs);
    font-weight: 500;
}

.auth-form .form-hint {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
}

.auth-form .form-group-inline {
    margin-top: var(--space-sm);
}

.auth-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.auth-form .checkbox-label input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.auth-form .checkbox-label span {
    user-select: none;
}

.auth-form .checkbox-label a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-form .checkbox-label a:hover {
    text-decoration: underline;
}

.auth-form .form-group-checkbox {
    margin-top: var(--space-md);
}

.auth-form .form-group-checkbox .form-error {
    margin-top: var(--space-xs);
    margin-left: 26px;
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(45, 90, 39, 0.05);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.privacy-notice .icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--color-primary);
    margin-top: 1px;
}

.auth-form .btn-block {
    width: 100%;
    padding: 16px;
    margin-top: var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.auth-form .btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.auth-form .btn-block:active {
    transform: translateY(0);
}

/* ========================================
   Terms Page
   ======================================== */
.container-narrow {
    max-width: 800px;
}

.terms-body {
    padding: var(--space-xl);
}

.terms-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.terms-body h2:first-child {
    margin-top: 0;
}

.terms-body p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.terms-body ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.terms-body li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.terms-body a {
    color: var(--color-primary);
    text-decoration: none;
}

.terms-body a:hover {
    text-decoration: underline;
}

.terms-highlight {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.08) 0%, rgba(45, 90, 39, 0.03) 100%);
    border: 1px solid rgba(45, 90, 39, 0.15);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.terms-highlight .icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--color-primary);
}

.terms-highlight strong {
    display: block;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.terms-highlight p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ========================================
   Alerts / Notifications
   ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: alertSlideIn 0.3s ease-out;
}

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

.alert::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}

/* Auth page specific alert positioning */
.auth-card > .alert {
    margin: var(--space-md) var(--space-xl) 0;
}

.auth-footer {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid var(--color-border);
}

.auth-footer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Optional label styling */
.auth-form .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-secondary);
}

/* ========================================
   Profile Page - Header
   ======================================== */
.page-profile .main-content {
    padding-top: 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 20px);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.profile-info .profile-username {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.profile-info .profile-bio {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    max-width: 500px;
    line-height: 1.5;
    margin-top: var(--space-sm);
}

.profile-info .profile-member-since {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
}

.profile-info .profile-member-since .icon {
    width: 14px;
    height: 14px;
}

/* ========================================
   Profile Page - Content
   ======================================== */
.profile-content {
    padding-bottom: var(--space-3xl);
    position: relative;
    z-index: 2;
}

.profile-content .stats-cards {
    margin-top: -50px;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.stat-card-profile {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-fast);
}

.stat-card-profile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-profile .stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card-profile .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-card-profile .stat-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card-profile.stat-card-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-inverse);
}

.stat-card-profile.stat-card-highlight .stat-value {
    color: var(--color-text-inverse);
}

.stat-card-profile.stat-card-highlight .stat-label,
.stat-card-profile.stat-card-highlight .stat-detail {
    color: rgba(255,255,255,0.8);
}

/* Style Stats */
.style-stats {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.style-stats h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.style-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

.style-badge strong {
    font-weight: 700;
}

.style-badge.style-OS {
    background: #E8F5E9;
    color: #2E7D32;
}

.style-badge.style-flash {
    background: #FFF3E0;
    color: #E65100;
}

.style-badge.style-RP {
    background: #E3F2FD;
    color: #1565C0;
}

.style-badge.style-TR {
    background: #F3E5F5;
    color: #7B1FA2;
}

.style-badge.style-PP {
    background: #FFF8E1;
    color: #F57F17;
}

.style-badge.style-AF {
    background: #E0F2F1;
    color: #00695C;
}

.style-badge.style-solo {
    background: #FCE4EC;
    color: #C62828;
}

.style-badge.style-attempt {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

/* ========================================
   Logbook Section
   ======================================== */
.logbook-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.logbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.logbook-header h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.logbook-header h2 .icon {
    color: var(--color-primary);
}

.logbook-header h2 .filter-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.logbook-header-actions {
    display: flex;
    gap: var(--space-sm);
}

.logbook-header-actions .badge {
    margin-left: var(--space-xs);
}

/* Logbook Filters */
.logbook-filters {
    display: none;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: 0 var(--space-lg) var(--space-lg);
    border: 1px solid var(--color-border-light);
}

.logbook-filters.active {
    display: block;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    align-items: end;
}

.filters-row:last-child {
    grid-template-columns: 1fr 1fr 2fr;
}

.logbook-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.logbook-filters .filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.logbook-filters .filter-group input,
.logbook-filters .filter-group select {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--color-surface);
    transition: var(--transition-fast);
    width: 100%;
}

.logbook-filters .filter-group input:focus,
.logbook-filters .filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.logbook-filters .filter-group.filter-search {
    grid-column: span 2;
}

.logbook-filters .filter-group.filter-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.logbook-filters .filter-group.filter-actions .btn {
    height: 42px;
}

/* Logbook Table Sortable Headers */
.logbook-table th a {
    color: var(--color-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: var(--transition-fast);
}

.logbook-table th a:hover {
    color: var(--color-primary);
}

/* Logbook Table */
.logbook-table-container {
    overflow-x: auto;
    margin: 0 calc(-1 * var(--space-xl));
    padding: 0 var(--space-xl);
}

.logbook-table {
    width: 100%;
    border-collapse: collapse;
}

.logbook-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    white-space: nowrap;
}

.logbook-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.logbook-table tbody tr {
    transition: var(--transition-fast);
}

.logbook-table tbody tr:hover {
    background: var(--color-bg-alt);
}

.logbook-table .col-date {
    white-space: nowrap;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.logbook-table .col-route {
    font-weight: 600;
}

.logbook-table .col-route .has-notes {
    display: inline-flex;
    margin-left: var(--space-xs);
    color: var(--color-text-muted);
    cursor: help;
}

.logbook-table .col-route .has-notes .icon {
    width: 14px;
    height: 14px;
}

.logbook-table .col-location {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.logbook-table .col-location a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.logbook-table .col-location a:hover {
    color: var(--color-primary);
}

.logbook-table .col-location .location-separator {
    margin: 0 var(--space-xs);
    opacity: 0.5;
}

.logbook-table .col-grade {
    white-space: nowrap;
}

.logbook-table .col-style {
    white-space: nowrap;
}

.logbook-table .ascent-style {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.logbook-table .ascent-OS {
    background: #E8F5E9;
    color: #2E7D32;
}

.logbook-table .ascent-flash {
    background: #FFF3E0;
    color: #E65100;
}

.logbook-table .ascent-RP {
    background: #E3F2FD;
    color: #1565C0;
}

.logbook-table .ascent-TR {
    background: #F3E5F5;
    color: #7B1FA2;
}

.logbook-table .ascent-attempt {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.logbook-table .col-attempts {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.logbook-table .col-rating {
    white-space: nowrap;
}

.logbook-table .rating-stars {
    display: inline-flex;
    gap: 1px;
}

.logbook-table .rating-stars .star {
    color: var(--color-border);
    font-size: 0.9rem;
}

.logbook-table .rating-stars .star.filled {
    color: #F9A825;
}

.logbook-table .no-rating {
    color: var(--color-text-muted);
}

.logbook-table .col-actions {
    text-align: right;
    white-space: nowrap;
}

.logbook-table .col-actions .btn {
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.logbook-table .col-actions .btn:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.logbook-table .col-actions .btn .icon {
    width: 16px;
    height: 16px;
}

/* Empty State */
.logbook-section .empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
}

.logbook-section .empty-state .icon-lg {
    width: 64px;
    height: 64px;
    color: var(--color-border);
    margin-bottom: var(--space-md);
}

.logbook-section .empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.logbook-section .empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.pagination a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination-info {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

a.pagination-btn:hover {
    background: var(--color-primary-light, #e8f0e7);
    color: var(--color-primary);
    text-decoration: none;
}

.pagination-btn.active {
    background: var(--color-primary);
    color: #fff;
}

/* Sectors list header */
.sectors-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.sectors-sort {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.sort-btn {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full, 20px);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    background: var(--color-background);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.sort-btn:hover {
    background: var(--color-primary-light, #e8f0e7);
    color: var(--color-primary);
    text-decoration: none;
}

.sort-btn.active {
    background: var(--color-primary);
    color: #fff;
}


/* Subsector search field */
.subsector-search-wrap {
    flex-shrink: 0;
}

.subsector-search-field {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.subsector-search-field .icon {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.subsector-search-field input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full, 20px);
    font-size: 0.85rem;
    background: var(--color-background);
    color: var(--color-text);
    width: 180px;
    transition: width 0.2s, border-color 0.2s;
}

.subsector-search-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    width: 240px;
}

/* Legacy support - keeping old classes for compatibility */
.logbook-entries {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.logbook-entry {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-fast);
}

.logbook-entry:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.logbook-entry-date {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.logbook-entry-date .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.logbook-entry-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.logbook-entry-route h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.logbook-entry-route h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.logbook-entry-route h3 a:hover {
    color: var(--color-primary);
}

.logbook-entry-route .location {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.logbook-entry-route .location a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.logbook-entry-route .location a:hover {
    color: var(--color-primary);
}

.logbook-entry-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.ascent-style-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ascent-style-badge.style-OS {
    background: #E8F5E9;
    color: #2E7D32;
}

.ascent-style-badge.style-flash {
    background: #FFF3E0;
    color: #E65100;
}

.ascent-style-badge.style-RP {
    background: #E3F2FD;
    color: #1565C0;
}

.ascent-style-badge.style-TR {
    background: #F3E5F5;
    color: #7B1FA2;
}

.ascent-style-badge.style-attempt {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.logbook-entry-rating {
    color: #F9A825;
    font-size: 0.9rem;
}

.logbook-entry-actions {
    display: flex;
    gap: var(--space-xs);
}

.logbook-entry-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.logbook-entry-actions .btn-icon:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.logbook-entry-actions .btn-icon .icon {
    width: 16px;
    height: 16px;
}

.logbook-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--color-text-secondary);
}

.logbook-empty .icon {
    width: 64px;
    height: 64px;
    color: var(--color-border);
    margin-bottom: var(--space-md);
}

.logbook-empty p {
    margin-bottom: var(--space-lg);
}

/* ========================================
   Logbook Add/Edit Page
   ======================================== */
.page-logbook-add .main-content {
    padding-top: 0;
    background: var(--color-bg-alt);
    min-height: calc(100vh - var(--header-height));
}

.logbook-add-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
}

.logbook-add-header .breadcrumbs {
    margin-bottom: var(--space-md);
}

.logbook-add-header .breadcrumbs a,
.logbook-add-header .breadcrumbs span {
    color: rgba(255,255,255,0.7);
}

.logbook-add-header .breadcrumbs a:hover {
    color: #fff;
}

.logbook-add-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logbook-add-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logbook-add-icon .icon {
    width: 28px;
    height: 28px;
    color: #fff;
}

.logbook-add-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.logbook-add-title p {
    margin: var(--space-xs) 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.logbook-add-content {
    padding: var(--space-2xl) 0;
    margin-top: -24px;
}

.logbook-add-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.logbook-add-card-body {
    padding: var(--space-xl);
}

.logbook-form .form-group {
    margin-bottom: var(--space-lg);
}

.logbook-form label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.logbook-form label .optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.logbook-form .form-select,
.logbook-form input[type="date"],
.logbook-form input[type="number"],
.logbook-form textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--color-surface);
    transition: var(--transition-fast);
}

.logbook-form input[type="number"] {
    -moz-appearance: textfield;
}

.logbook-form input[type="number"]::-webkit-outer-spin-button,
.logbook-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.logbook-form .form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.logbook-form .form-select:focus,
.logbook-form input:focus,
.logbook-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.logbook-form .form-select:disabled {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.logbook-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.logbook-form .form-group.has-error input,
.logbook-form .form-group.has-error select {
    border-color: #C62828;
}

.logbook-form .form-error {
    display: block;
    color: #C62828;
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* Rating Stars Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-border);
    transition: var(--transition-fast);
    margin-bottom: 0;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #F9A825;
}

/* Prefilled Route Display */
.prefilled-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.08) 0%, rgba(45, 90, 39, 0.03) 100%);
    border: 1px solid rgba(45, 90, 39, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.prefilled-route-info {
    flex: 1;
}

.prefilled-route-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.prefilled-route-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.prefilled-route-info p a {
    color: var(--color-primary);
    text-decoration: none;
}

.prefilled-route-info p a:hover {
    text-decoration: underline;
}

.prefilled-route .grade-badge {
    font-size: 0.9rem;
    padding: 6px 14px;
}

/* Checkbox label styling */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.checkbox-label span {
    color: var(--color-text-secondary);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-light);
}

.form-divider {
    margin: var(--space-xl) 0;
    border: none;
    border-top: 1px solid var(--color-border-light);
}

.delete-form {
    display: flex;
    justify-content: flex-start;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding: 0;
    margin-top: var(--space-xs);
    cursor: pointer;
}

.btn-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ========================================
   Route Climbers Stats
   ======================================== */
.route-climbers-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.route-climbers-stat .icon {
    width: 16px;
    height: 16px;
}

.add-to-logbook-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.add-to-logbook-btn:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.add-to-logbook-btn .icon {
    width: 14px;
    height: 14px;
}

.add-to-logbook-btn.btn-climbed {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Responsive - Profile & Logbook */
@media (max-width: 992px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .profile-info .profile-bio {
        max-width: 100%;
    }

    .profile-actions {
        margin-top: var(--space-md);
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-card-profile {
        padding: var(--space-md);
    }

    .stat-card-profile .stat-value {
        font-size: 1.75rem;
    }

    .style-stats {
        padding: var(--space-md);
    }

    .logbook-section {
        padding: var(--space-md);
    }

    .logbook-header {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .logbook-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .logbook-filters {
        padding: var(--space-md);
        margin: 0 var(--space-md) var(--space-md);
    }

    .filters-row {
        grid-template-columns: 1fr 1fr;
    }

    .filters-row:last-child {
        grid-template-columns: 1fr 1fr;
    }

    .logbook-filters .filter-group.filter-search {
        grid-column: span 2;
    }

    .logbook-filters .filter-group.filter-actions {
        grid-column: span 2;
        flex-direction: row;
        justify-content: flex-start;
    }

    .logbook-filters .filter-group.filter-actions .btn {
        flex: 1;
    }

    .logbook-table-container {
        margin: 0 calc(-1 * var(--space-md));
        padding: 0 var(--space-md);
    }

    .logbook-table th,
    .logbook-table td {
        padding: var(--space-sm);
        font-size: 0.85rem;
    }

    /* Hide some columns on mobile */
    .logbook-table .col-location,
    .logbook-table .col-attempts,
    .logbook-table .col-rating {
        display: none;
    }

    .logbook-entry {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .logbook-entry-date {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        justify-content: flex-start;
    }

    .logbook-entry-date .day,
    .logbook-entry-date .month {
        display: inline;
        font-size: 0.9rem;
    }

    .logbook-entry-meta {
        justify-content: flex-start;
    }

    .logbook-form .form-row {
        grid-template-columns: 1fr;
    }

    /* Logbook Add Page mobile */
    .logbook-add-header {
        padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
    }

    .logbook-add-title {
        flex-direction: column;
        text-align: center;
    }

    .logbook-add-title h1 {
        font-size: 1.5rem;
    }

    .logbook-add-content {
        padding: var(--space-lg) 0;
    }

    .logbook-add-card-body {
        padding: var(--space-lg);
    }

    .prefilled-route {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-login span {
        display: none;
    }

    .btn-login {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: var(--space-sm);
        align-items: center;
        padding-top: var(--header-height);
    }

    .auth-container {
        padding: var(--space-sm);
    }

    .auth-card {
        border-radius: 16px;
    }

    .auth-header {
        padding: var(--space-lg) var(--space-md);
    }

    .auth-logo .logo-icon {
        width: 40px;
        height: 40px;
    }

    .auth-logo span {
        font-size: 1.3rem;
    }

    .auth-header h1 {
        font-size: 1.3rem;
    }

    .auth-form {
        padding: var(--space-md);
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 12px 14px;
    }

    .auth-form .btn-block {
        padding: 14px;
    }

    .auth-footer {
        padding: var(--space-md);
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .stat-card-profile {
        padding: var(--space-sm);
    }

    .stat-card-profile .stat-value {
        font-size: 1.5rem;
    }

    .stat-card-profile .stat-detail {
        display: none;
    }

    .profile-content {
        margin-top: calc(-1 * var(--space-md));
    }

    .filters-row,
    .filters-row:last-child {
        grid-template-columns: 1fr;
    }

    .logbook-filters .filter-group.filter-search,
    .logbook-filters .filter-group.filter-actions {
        grid-column: span 1;
    }

    .logbook-filters .filter-group.filter-actions {
        flex-direction: column;
    }

    .logbook-filters .filter-group.filter-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Route Table Logbook Integration
   ======================================== */
.col-logbook {
    width: 40px;
    text-align: center;
}

.route-climbed {
    background: rgba(45, 90, 39, 0.05);
}

.route-climbed td:first-child {
    border-left: 3px solid var(--color-primary);
}

.route-climbers-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: var(--space-sm);
}

.route-climbers-count .icon {
    width: 12px;
    height: 12px;
}

/* In compact topo tables */
.routes-table-compact .route-climbers-count {
    display: none;
}

/* Route name row wrapper */
.route-name-row {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Mini rating pod názvem cesty */
.route-mini-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    line-height: 1;
}

.mini-stars {
    display: inline-flex;
    gap: 0;
    font-size: 0.7rem;
    line-height: 1;
}

.mini-stars .star {
    color: #D0D0CB;
}

.mini-stars .star.filled {
    color: #FFB800;
}

.mini-stars .star.half {
    background: linear-gradient(90deg, #FFB800 50%, #D0D0CB 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mini-rating-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.mini-rating-count {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* Mini rating - počet hodnotitelů s ikonou */
.mini-rating-users {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.mini-rating-users .icon {
    width: 11px;
    height: 11px;
}

/* Kompaktní topo tabulka - menší rating */
.routes-table-compact .route-mini-rating {
    margin-top: 1px;
}

.routes-table-compact .mini-stars {
    font-size: 0.65rem;
}

.routes-table-compact .mini-rating-value {
    display: none;
}

.routes-table-compact .mini-rating-count {
    display: none;
}

.routes-table-compact .col-logbook {
    width: 32px;
}

/* ========================================
   Pricing Page
   ======================================== */
.page-pricing .main-content {
    padding-top: 0;
}

.pricing-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.pricing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pricing-header .container {
    position: relative;
    z-index: 1;
}

.pricing-header .breadcrumbs a,
.pricing-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-header .breadcrumbs a:hover {
    color: white;
}

.pricing-header-content {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.pricing-header-text {
    flex: 1;
}

.pricing-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    color: white;
}

.pricing-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

@media (max-width: 768px) {
    .pricing-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .pricing-header-content {
        flex-direction: column;
        text-align: center;
    }

    .pricing-header-icon {
        width: 64px;
        height: 64px;
    }

    .pricing-header h1 {
        font-size: 1.75rem;
    }
}

/* Plans Grid */
.pricing-plans {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

/* Why Free Panel */
.why-free-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.why-free-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.why-free-panel p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Plan Card */
.plan-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 2px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card-featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.plan-card-featured .plan-name {
    color: var(--color-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.price-period {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.price-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Plan Features */
.plan-features {
    flex: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.95rem;
}

.plan-features li .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-included .icon {
    color: var(--color-primary);
}

.feature-excluded {
    color: var(--color-text-muted);
}

.feature-excluded .icon {
    color: var(--color-text-muted);
}

.feature-highlight {
    background: rgba(45, 90, 39, 0.05);
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    border-radius: var(--radius-sm);
}

/* Plan Action */
.plan-action {
    margin-top: var(--space-xl);
    text-align: center;
}

.plan-action .btn {
    width: 100%;
}

.plan-expires {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.btn-disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

/* Features Section */
.pricing-features {
    padding: var(--space-3xl) 0;
}

.pricing-features .section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(45, 90, 39, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section */
.pricing-faq {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.pricing-faq .section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--space-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* CTA Section */
.pricing-cta {
    padding: var(--space-3xl) 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    color: white;
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
    }
}

.cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    opacity: 0.9;
}

.cta-action .btn {
    background: white;
    color: var(--color-primary);
}

.cta-action .btn:hover {
    background: var(--color-bg-alt);
}

/* PLUS Badge */
.plus-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    line-height: 1.4;
}

.plus-badge .icon {
    width: 8px;
    height: 8px;
}

/* ========================================
   Statistics Page (PLUS Feature)
   ======================================== */
.page-statistics {
    background: var(--color-bg-alt);
}

/* Header */
.statistics-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-xl) 0 var(--space-2xl);
}

.statistics-header .breadcrumbs a,
.statistics-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.statistics-header .breadcrumbs a:hover {
    color: white;
}

.statistics-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.statistics-header h1 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.statistics-header h1 .plus-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
}

.statistics-header p {
    opacity: 0.85;
    margin-top: var(--space-xs);
}

.statistics-header-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.statistics-header-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

@media (max-width: 640px) {
    .statistics-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .statistics-header h1 {
        font-size: 1.5rem;
    }
}

/* Content */
.statistics-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 1024px) {
    .stats-overview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-box {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.stat-box-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-box-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

.stat-box-highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.stat-box-highlight .stat-box-value {
    color: white;
}

.stat-box-highlight .stat-box-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Statistics Grid */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

/* Stat Cards */
.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}

.stat-card-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .stat-card-wide {
        grid-column: span 1;
    }
}

.stat-card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.stat-card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.stat-card-body {
    padding: var(--space-lg);
}

/* Chart Container */
.stat-card-body canvas {
    max-height: 250px;
}

/* Top List */
.top-list {
    list-style: none;
}

.top-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.top-list li:last-child {
    border-bottom: none;
}

.top-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.top-list li:nth-child(1) .top-rank {
    background: #FFD700;
    color: #1a1a1a;
}

.top-list li:nth-child(2) .top-rank {
    background: #C0C0C0;
    color: #1a1a1a;
}

.top-list li:nth-child(3) .top-rank {
    background: #CD7F32;
    color: white;
}

.top-list a {
    flex: 1;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
}

.top-list a:hover {
    color: var(--color-primary);
}

.top-count {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Hardest Table */
.hardest-table {
    width: 100%;
    border-collapse: collapse;
}

.hardest-table th,
.hardest-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.hardest-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
}

.hardest-table td {
    font-size: 0.9rem;
}

.hardest-table .rank {
    font-weight: 600;
    color: var(--color-text-muted);
    width: 40px;
}

.hardest-table tr:last-child td {
    border-bottom: none;
}

.hardest-table tr:hover td {
    background: var(--color-bg-alt);
}

@media (max-width: 768px) {
    .hardest-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Facts List */
.facts-list {
    list-style: none;
}

.facts-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.facts-list li:last-child {
    border-bottom: none;
}

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

.fact-text {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.fact-text strong {
    color: var(--color-text);
}

/* Ascent Style Tags */
.ascent-style {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ascent-OS {
    background: rgba(46, 125, 50, 0.15);
    color: #2E7D32;
}

.ascent-flash {
    background: rgba(25, 118, 210, 0.15);
    color: #1976D2;
}

.ascent-RP {
    background: rgba(249, 168, 37, 0.15);
    color: #F57F17;
}

.ascent-TR {
    background: rgba(156, 39, 176, 0.15);
    color: #9C27B0;
}

.ascent-attempt {
    background: rgba(117, 117, 117, 0.15);
    color: #757575;
}

/* ========================================
   Export Page (PLUS Feature)
   ======================================== */
.page-export {
    background: var(--color-bg-alt);
}

/* Header */
.export-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.export-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30H0L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.export-header .container {
    position: relative;
    z-index: 1;
}

.export-header .breadcrumbs a,
.export-header .breadcrumbs li {
    color: rgba(255, 255, 255, 0.7);
}

.export-header .breadcrumbs a:hover {
    color: white;
}

.export-header-content {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.export-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-header h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
    color: white;
}

.export-header h1 .plus-badge {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.export-header h1 .plus-badge .icon {
    width: 10px;
    height: 10px;
}

.export-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Content */
.export-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Info Box */
.export-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.export-info-icon {
    font-size: 2.5rem;
}

.export-info-text {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Export Options */
.export-options {
    display: grid;
    gap: var(--space-lg);
}

.export-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .export-header {
        padding: var(--space-xl) 0 var(--space-2xl);
    }

    .export-header-content {
        flex-direction: column;
        text-align: center;
    }

    .export-header-icon {
        width: 64px;
        height: 64px;
    }

    .export-header h1 {
        font-size: 1.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .export-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.export-card-icon {
    font-size: 3rem;
}

.export-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.export-card-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.export-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.export-features li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .export-features {
        justify-content: center;
    }
}

/* Export Period Selector */
.export-period-selector {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.export-period-selector h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.export-period-selector .period-presets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.export-period-selector .period-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.export-period-selector .period-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.export-period-selector .period-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.export-period-selector .period-custom-form {
    margin-top: var(--space-md);
}

.export-period-selector .period-custom-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.export-period-selector .period-custom-inputs .form-group {
    flex: 1;
    min-width: 140px;
}

.export-period-selector .period-custom-inputs label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
}

.export-period-selector .period-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(45, 90, 39, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.export-period-selector .period-info .icon {
    color: var(--color-primary);
}

/* Note */
.export-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: rgba(45, 90, 39, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.export-note .icon {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ========================================
   Profile Subscription Section
   ======================================== */
.subscription-section {
    margin: var(--space-xl) 0;
}

.subscription-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.subscription-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* PLUS Card */
.subscription-plus {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.plus-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plus-badge-large .icon {
    width: 16px;
    height: 16px;
}

.subscription-warning {
    font-size: 0.85rem;
    color: #EF6C00;
    font-weight: 500;
}

.subscription-info {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.subscription-info strong {
    color: var(--color-text);
}

.subscription-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.feature-link .icon {
    width: 18px;
    height: 18px;
}

/* FREE Card */
.subscription-free {
    background: var(--color-bg-alt);
}

.free-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--color-border);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.subscription-upgrade {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.08) 0%, rgba(45, 90, 39, 0.03) 100%);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.subscription-upgrade p {
    color: var(--color-text-secondary);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.btn-accent {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    font-weight: 600;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #FFC800, #FF9500);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .subscription-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-features {
        flex-direction: column;
    }

    .subscription-upgrade {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   SVG Interactive Map — Zoom/Pan + Popup
   ========================================== */
/* SVG Accordion */
.svg-accordion .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.svg-accordion-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--color-text-secondary, #666);
    flex-shrink: 0;
}

.svg-accordion.is-open .svg-accordion-arrow {
    transform: rotate(180deg);
}

.svg-accordion-body {
    display: none;
    overflow: hidden;
}

.svg-accordion.is-open .svg-accordion-body {
    display: block;
}

.svg-map-viewport {
    position: relative;
    overflow: hidden;
    height: 70vh;
    cursor: grab;
    background: #f5f7f5;
    touch-action: none;
    user-select: none;
}

.svg-map-viewport.is-panning {
    cursor: grabbing;
}

.svg-map-canvas {
    transform-origin: 0 0;
    will-change: transform;
}

.svg-map-canvas svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Zoom controls — inside viewport */
.svg-map-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svg-map-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.15s, transform 0.15s;
}

.svg-map-btn:hover {
    background: var(--color-bg-alt, #f0f0f0);
    transform: scale(1.05);
}

.svg-map-btn:active {
    transform: scale(0.95);
}

/* Interactive layers — transparent fill for full-area click */
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped {
    cursor: pointer;
    transition: filter 0.2s, opacity 0.2s;
}

.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped path,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped polygon,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped rect,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped circle,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped ellipse {
    fill: rgba(45, 90, 39, 0) !important;
    transition: fill 0.2s;
    pointer-events: all;
}

.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover path,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover polygon,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover rect,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover circle,
.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover ellipse {
    fill: rgba(45, 90, 39, 0.15) !important;
}

.svg-map-canvas g[id^="interaktivni_"].svg-layer-mapped:hover {
    filter: drop-shadow(0 0 6px var(--color-primary)) drop-shadow(0 0 12px rgba(45, 90, 39, 0.4));
}

.svg-map-canvas g[id^="interaktivni_"].svg-layer-unmapped {
    opacity: 0.35;
    pointer-events: none;
}

/* SVG Popup — same design as map.php etopo-popup */
.svg-map-popup {
    display: none;
    position: absolute;
    z-index: 30;
    pointer-events: auto;
}

.svg-map-popup .etopo-popup {
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
}

.svg-map-popup .etopo-popup-img {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e0;
}

.svg-map-popup .etopo-popup-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.svg-map-popup .etopo-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    padding: 0;
    text-shadow: none;
    transition: background 0.2s;
}

.svg-map-popup .etopo-popup-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

.svg-map-popup .etopo-popup-body {
    padding: 14px 16px 16px;
}

.svg-map-popup .etopo-popup h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}

.svg-map-popup .etopo-popup-counts {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.svg-map-popup .etopo-separator {
    color: #ccc;
    font-size: 0.6rem;
}

.svg-map-popup .etopo-grades-section {
    margin-bottom: 14px;
}

.svg-map-popup .etopo-grades-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.svg-map-popup .etopo-grades-label > span {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.svg-map-popup .etopo-grades-legend {
    display: flex;
    gap: 3px;
}

.svg-map-popup .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.svg-map-popup .legend-dot.legend-easy { background: #2E7D32; }
.svg-map-popup .legend-dot.legend-medium { background: #F9A825; }
.svg-map-popup .legend-dot.legend-hard { background: #EF6C00; }
.svg-map-popup .legend-dot.legend-extreme { background: #C62828; }

.svg-map-popup .etopo-grade-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.svg-map-popup .grade-segment {
    height: 100%;
    min-width: 3px;
}

.svg-map-popup .grade-segment.grade-easy { background: #2E7D32; }
.svg-map-popup .grade-segment.grade-medium { background: #F9A825; }
.svg-map-popup .grade-segment.grade-hard { background: #EF6C00; }
.svg-map-popup .grade-segment.grade-extreme { background: #C62828; }

.svg-map-popup .etopo-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2D5A27 0%, #3d7a34 100%);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.3);
}

.svg-map-popup .etopo-popup-btn:hover {
    background: linear-gradient(135deg, #1E3D1A 0%, #2D5A27 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.4);
    color: #fff !important;
}

.svg-map-popup .etopo-popup-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.svg-map-popup .etopo-popup-btn:hover svg {
    transform: translateX(3px);
}
