/* ============================================
   KRIMINOLOGIYA TADQIQOT INSTITUTI - DARK THEME
   RESPONSIVE PRESENTATION & TABLET ADAPTATION
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a3f;
    --accent-red: #DC2626;
    --accent-red-light: #EF4444;
    --accent-blue: #3B82F6;
    --accent-blue-light: #60A5FA;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);
    --text-white: #F1F5F9;
    --text-light: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --region-fill: #2C3E6B;
    --country-panel-width: calc(320px * max(1, 1 + (var(--font-scale, 1) - 1) * 0.35));
    --panel-width: calc(420px * max(1, 1 + (var(--font-scale, 1) - 1) * 0.35));
    --font-scale: 1;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.18s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* ---------- Presentation Screen ---------- */
.presentation-screen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* ---------- Background Pattern ---------- */
.map-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 30%, var(--accent-red) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--accent-blue) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
}

/* ---------- Header ---------- */
.app-header {
    position: relative;
    flex-shrink: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: linear-gradient(180deg, rgba(10,14,26,0.98) 0%, rgba(10,14,26,0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    min-height: 60px;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-emblem {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    flex-shrink: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-title h1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.header-title h1.region-selected {
    color: #60A5FA;
}

.header-title span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
}

/* Header Action Buttons */
.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.header-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.25);
}

.header-action-btn:active {
    transform: scale(0.97);
}

.header-action-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.stats-toggle-btn {
    display: none; /* Shown on tablet / mobile */
}

.fullscreen-btn {
    width: 36px;
    padding: 0;
}

/* ---------- Header Font Size Control ---------- */
.header-font-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    height: 36px;
    padding: 2px 4px;
    gap: 2px;
}

.font-ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 5px;
    background: transparent;
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    user-select: none;
}

.font-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

.font-ctrl-btn:active {
    transform: scale(0.92);
}

.font-ctrl-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.font-ctrl-btn.font-reset-btn {
    width: 28px;
    padding: 0;
}

.font-ctrl-btn.font-reset-btn svg {
    width: 14px;
    height: 14px;
}

.font-size-indicator {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue-light);
    min-width: 40px;
    text-align: center;
    padding: 0 2px;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

/* ---------- Map Wrapper ---------- */
.map-wrapper {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* ---------- Country Stats Panel (Left) ---------- */
.country-stats-panel {
    width: var(--country-panel-width);
    height: 100%;
    max-height: 100%;
    background: linear-gradient(180deg, rgba(17,24,39,0.95) 0%, rgba(10,14,26,0.98) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--border-color);
    padding: 20px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 30;
    flex-shrink: 0;
    transition: transform var(--transition-slow), opacity var(--transition-normal);
}

.country-stats-panel.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.country-stats-panel::-webkit-scrollbar {
    width: 4px;
}
.country-stats-panel::-webkit-scrollbar-track {
    background: transparent;
}
.country-stats-panel::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.country-stats-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}

.stats-header-titles h2 {
    font-size: calc(17px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 3px;
}

.stats-header-titles p {
    font-size: calc(12px * var(--font-scale, 1));
    color: var(--text-muted);
}

.panel-close-btn {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.panel-close-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.12);
}

.panel-close-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- Total Crimes Big ---------- */
.total-crimes-big {
    text-align: center;
    padding: 16px 14px;
    background: linear-gradient(135deg, rgba(220,38,38,0.14) 0%, rgba(220,38,38,0.04) 100%);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}

.total-number {
    display: block;
    font-size: calc(32px * var(--font-scale, 1));
    font-weight: 800;
    color: var(--accent-red-light);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.total-label {
    display: block;
    font-size: calc(11px * var(--font-scale, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    font-weight: 600;
}

/* ---------- Country Stat Cards ---------- */
.country-stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.stat-card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
}

.stat-card-dark .stat-value {
    font-size: calc(15px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
}

.stat-card-dark .stat-label {
    font-size: calc(9.5px * var(--font-scale, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    margin-top: 3px;
}

/* ---------- Panel Tabs & Subsections ---------- */
.panel-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.panel-tab-btn {
    flex: 1;
    padding: 7px 4px;
    font-size: calc(11px * var(--font-scale, 1));
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.panel-tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.panel-tab-btn.active {
    background: var(--bg-card);
    color: var(--text-white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-light);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease;
}

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

.summary-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    font-size: calc(11.5px * var(--font-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.4px;
}

.summary-section-title .badge {
    font-size: calc(10px * var(--font-scale, 1));
    padding: 2px 7px;
    background: rgba(220, 38, 38, 0.15);
    color: var(--accent-red-light);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    font-weight: 600;
}

/* ---------- Crime Types Summary ---------- */
.crime-types-summary h3 {
    font-size: calc(12px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.crime-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.crime-type-label {
    font-size: calc(11px * var(--font-scale, 1));
    color: var(--text-light);
    width: 105px;
    flex-shrink: 0;
    font-weight: 500;
}

.crime-type-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.crime-type-bar .bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.crime-type-value {
    font-size: calc(11px * var(--font-scale, 1));
    color: var(--text-muted);
    font-weight: 600;
    width: 46px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ---------- Map Container ---------- */
#map-container,
.map-container {
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    transition: padding-right var(--transition-slow);
}

#map-container.panel-open,
.map-container.panel-open {
    padding-right: calc(var(--panel-width) + 16px);
}

/* ---------- SVG Map ---------- */
#uzbekistan-map,
#uzbekistan-loyiha-map,
.district-svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    touch-action: none;
}

#uzbekistan-map.is-draggable,
#uzbekistan-loyiha-map.is-draggable {
    cursor: grab;
}

#uzbekistan-map.is-dragging,
#uzbekistan-loyiha-map.is-dragging {
    cursor: grabbing;
}

/* Region base style */
#uzbekistan-map [data-region],
#uzbekistan-loyiha-map [data-region] {
    cursor: pointer;
    transition: fill var(--transition-normal),
                stroke var(--transition-normal),
                opacity var(--transition-normal),
                filter var(--transition-normal);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.1;
    stroke-linejoin: round;
}

/* Region hover */
#uzbekistan-map [data-region].region-hover,
#uzbekistan-loyiha-map [data-region].region-hover,
#uzbekistan-loyiha-map path.region-path:hover {
    fill: #1F305E !important;
    stroke: #93C5FD !important;
    stroke-width: 1.8px !important;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65)) !important;
}

/* Region active - To'qroq rang, 3D bo'rtib chiqqan, QIZIL EMAS */
#uzbekistan-map [data-region].region-active,
#uzbekistan-loyiha-map [data-region].region-active,
#uzbekistan-loyiha-map path.region-path.region-active {
    fill: #141f36 !important;
    stroke: #60A5FA !important;
    stroke-width: 2.4px !important;
    filter: url(#filter-3d-raise) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95)) !important;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Region inactive */
#uzbekistan-map [data-region].region-inactive,
#uzbekistan-loyiha-map [data-region].region-inactive,
#uzbekistan-loyiha-map path.region-path.region-inactive {
    opacity: 0.18;
    filter: grayscale(0.5) brightness(0.7);
    transition: all 0.3s ease;
}

/* ---------- Map Controls (Floating) ---------- */
.map-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 45;
    transition: right var(--transition-slow), bottom var(--transition-normal);
}

#map-container.panel-open .map-controls {
    right: calc(var(--panel-width) + 24px);
}

.map-ctrl-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.map-ctrl-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.map-ctrl-btn:active {
    transform: scale(0.95);
    background: var(--accent-blue);
    color: white;
}

.map-ctrl-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- Map Tooltip ---------- */
.map-tooltip {
    position: absolute;
    display: none;
    padding: 8px 14px;
    background: rgba(17, 24, 39, 0.96);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
    z-index: 60;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    letter-spacing: 0.3px;
}

/* ---------- Map Prompt ---------- */
.map-prompt {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    z-index: 40;
    pointer-events: none;
}

.map-prompt.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.map-prompt svg {
    width: 18px;
    height: 18px;
    color: var(--accent-red-light);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.9); }
}

/* ---------- Back Button ---------- */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.92);
    color: #F1F5F9;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-button:hover,
.back-button:active {
    background: #1E293B;
    color: #60A5FA;
    border-color: #60A5FA;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.35);
    transform: translateY(-2px);
}

.back-button svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* ---------- Region Info Panel (Right) ---------- */
#region-info-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--panel-width);
    height: 100%;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 20px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-normal);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#region-info-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

#region-info-panel::-webkit-scrollbar {
    width: 4px;
}
#region-info-panel::-webkit-scrollbar-track {
    background: transparent;
}
#region-info-panel::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

/* ---------- Info Panel Header ---------- */
.info-panel-header {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-panel-color {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 12px;
    animation: slideInRight 0.4s ease 0.15s both;
}

.info-panel-title {
    font-size: calc(20px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 4px;
    animation: slideInRight 0.4s ease 0.25s both;
}

.info-panel-capital {
    font-size: calc(13px * var(--font-scale, 1));
    color: var(--text-muted);
    font-weight: 500;
    animation: slideInRight 0.4s ease 0.3s both;
}

/* ---------- Stats Grid ---------- */
.info-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    animation: fadeInUp 0.45s ease both;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:nth-child(1) { animation-delay: 0.25s; }
.stat-card:nth-child(2) { animation-delay: 0.35s; }
.stat-card:nth-child(3) { animation-delay: 0.45s; }

.stat-card:hover {
    border-color: var(--border-light);
}

.stat-value {
    font-size: calc(16px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: calc(10px * var(--font-scale, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

/* ---------- Info Panel Bars ---------- */
.info-panel-bars {
    animation: fadeInUp 0.45s ease 0.4s both;
    margin-bottom: 22px;
}

.info-panel-bars h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.bar-item {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    width: 115px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.bar-value {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* ---------- District Table ---------- */
.district-table {
    animation: fadeInUp 0.45s ease 0.5s both;
}

.district-table h3 {
    font-size: calc(12px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.district-header {
    display: grid;
    grid-template-columns: 1fr 68px 56px 64px;
    gap: 4px;
    padding: 6px 8px;
    font-size: calc(9.5px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3px;
}

.district-row {
    display: grid;
    grid-template-columns: 1fr 68px 56px 64px;
    gap: 4px;
    padding: 6px 8px;
    font-size: calc(11px * var(--font-scale, 1));
    border-radius: 6px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.district-row:hover {
    background: var(--bg-card);
}

.district-row.expanded {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.district-name {
    color: var(--text-light);
    font-weight: 500;
    font-size: calc(11px * var(--font-scale, 1));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.district-arrow {
    display: inline-block;
    font-size: 8px;
    color: var(--text-dim);
    transition: transform var(--transition-fast);
}

.district-row.expanded .district-arrow {
    transform: rotate(90deg);
    color: var(--accent-blue-light);
}

.district-value {
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: calc(11px * var(--font-scale, 1));
    text-align: right;
}

.district-value.highlight {
    color: var(--accent-red-light);
}

/* District detail card */
.district-detail-box {
    background: rgba(10, 14, 26, 0.75);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 4px 0 8px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    animation: fadeInTab 0.2s ease;
}

.district-detail-item {
    display: flex;
    flex-direction: column;
}

.district-detail-item .lbl {
    font-size: calc(9px * var(--font-scale, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}

.district-detail-item .val {
    font-size: calc(12px * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

/* ---------- Backdrop for Mobile / Tablet drawer ---------- */
.panel-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.panel-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ====================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ==================================================== */

/* Large Displays (≥ 1440px) */
@media (min-width: 1440px) {
    :root {
        --country-panel-width: 350px;
        --panel-width: 440px;
    }
    .header-title h1 { font-size: 17px; }
    .total-number { font-size: 36px; }
}

/* Compact Laptop / Tablet Landscape (993px – 1280px) */
@media (max-width: 1280px) and (min-width: 993px) {
    :root {
        --country-panel-width: 280px;
        --panel-width: 370px;
    }
    .country-stats-panel { padding: 16px 14px; }
    .total-number { font-size: 28px; }
    .crime-type-label { width: 95px; font-size: 10.5px; }
    .stat-card-dark .stat-value { font-size: 14px; }
}

/* Tablet & Mobile (≤ 992px) OR Portrait Orientation */
@media (max-width: 992px), (orientation: portrait) {
    :root {
        --country-panel-width: 320px;
        --panel-width: 100%;
    }

    .app-header {
        padding: 8px 16px;
    }

    .header-title h1 {
        font-size: 13px;
    }

    .header-title span {
        font-size: 10px;
    }

    .header-date {
        display: none; /* Hide date on small/portrait screens to save space */
    }

    .stats-toggle-btn {
        display: inline-flex;
    }

    /* Country Stats Panel transforms into a slide-over drawer */
    .country-stats-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 340px;
        max-width: 85vw;
        z-index: 120;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
    }

    .country-stats-panel.drawer-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .panel-close-btn {
        display: flex;
    }

    /* Map takes full width */
    #map-container {
        padding: 12px;
    }

    #map-container.panel-open {
        padding-right: 12px;
        height: 48vh;
        flex: none;
    }

    /* Floating controls on tablet */
    .map-controls {
        bottom: 20px;
        right: 16px;
    }

    #map-container.panel-open .map-controls {
        right: 16px;
        bottom: 12px;
    }

    /* Region Info Panel becomes Bottom Sheet */
    #region-info-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 52vh;
        max-height: 52vh;
        border-left: none;
        border-top: 1px solid var(--border-light);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 100;
        transform: translateY(100%);
        padding: 20px 16px;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    }

    #region-info-panel.visible {
        transform: translateY(0);
    }

    /* Back Button on Mobile / Tablet */
    .back-button {
        bottom: auto;
        top: 12px;
        left: 12px;
        padding: 8px 16px;
        font-size: 12px;
        z-index: 70;
    }

    .map-prompt {
        bottom: 16px;
        font-size: 12px;
        padding: 8px 18px;
    }
}

/* Small Smartphone Screens (≤ 576px) */
@media (max-width: 576px) {
    .app-header {
        padding: 8px 12px;
    }

    .header-emblem {
        width: 32px;
        height: 32px;
    }

    .header-title h1 {
        font-size: 12px;
    }

    .stats-toggle-btn .btn-text {
        display: none;
    }

    .stats-toggle-btn {
        width: 36px;
        padding: 0;
    }

    .country-stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .info-panel-stats {
        grid-template-columns: 1fr 1fr;
    }

    .info-panel-stats .stat-card:nth-child(3) {
        grid-column: 1 / -1;
    }

    .district-header,
    .district-row {
        grid-template-columns: 1fr 60px 50px;
    }

    .district-header span:last-child,
    .district-row span:last-child {
        display: none;
    }
}

/* ---------- Fullscreen ---------- */
.presentation-screen:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.presentation-screen:fullscreen {
    width: 100vw;
    height: 100vh;
}

/* ---------- Map Top Banner & Kriminologik Metodologik Zanjir ---------- */
.map-top-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 38;
    pointer-events: none;
    text-align: center;
    width: max-content;
    max-width: 94%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: all var(--transition-normal);
}

#map-container.panel-open .map-top-banner,
.map-container.panel-open .map-top-banner {
    left: calc((100% - var(--panel-width)) / 2);
}

.map-banner-title,
.map-main-title {
    font-size: calc(16px * var(--font-scale, 1));
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.25;
    padding: 6px 20px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(26, 34, 53, 0.9) 0%, rgba(10, 14, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Kriminologik Metodologik Zanjir (MUAMMO -> TADQIQOT -> ILMIY TAHLIL -> DIAGNOZ VA PROGNOZ -> ILMIY YECHIM -> NATIJA) */
.kriminologik-pipeline-flow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(26, 34, 53, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
    user-select: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 12px rgba(56, 189, 248, 0.25);
    animation: pipelineBackgroundPulse 3.5s ease-in-out infinite;
    transition: all var(--transition-normal);
}

/* Orqa fonda yonib-o'chib turuvchi neon nur / aura */
.kriminologik-pipeline-flow::before {
    content: '';
    position: absolute;
    inset: -4px -8px;
    border-radius: 36px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.55) 0%, rgba(99, 102, 241, 0.35) 45%, rgba(16, 185, 129, 0.25) 80%, transparent 100%);
    filter: blur(12px);
    z-index: -1;
    pointer-events: none;
    animation: pipelineAuraBreathe 3.5s ease-in-out infinite;
}

@keyframes pipelineBackgroundPulse {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.32);
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65),
                    0 0 10px rgba(56, 189, 248, 0.2),
                    inset 0 0 10px rgba(56, 189, 248, 0.1);
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(20, 28, 48, 0.96) 100%);
    }
    50% {
        border-color: rgba(96, 165, 250, 0.9);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.75),
                    0 0 28px rgba(56, 189, 248, 0.75),
                    0 0 50px rgba(99, 102, 241, 0.4),
                    inset 0 0 16px rgba(56, 189, 248, 0.35);
        background: linear-gradient(135deg, rgba(15, 28, 58, 0.97) 0%, rgba(28, 42, 74, 0.98) 100%);
    }
}

@keyframes pipelineAuraBreathe {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.96);
        filter: blur(10px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.03);
        filter: blur(16px);
    }
}

.pipeline-flow-inner {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.pipeline-step {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: calc(11px * var(--font-scale, 1));
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #F8FAFC;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.22s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.pipeline-step:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 6px #38BDF8;
    flex-shrink: 0;
}

/* 1. MUAMMO */
.step-muammo {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
}
.step-muammo .step-dot {
    background: #EF4444;
    box-shadow: 0 0 6px #EF4444;
}

/* 2. TADQIQOT */
.step-tadqiqot {
    color: #BAE6FD;
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
}
.step-tadqiqot .step-dot {
    background: #38BDF8;
    box-shadow: 0 0 6px #38BDF8;
}

/* 3. ILMIY TAHLIL */
.step-tahlil {
    color: #C7D2FE;
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.35);
}
.step-tahlil .step-dot {
    background: #818CF8;
    box-shadow: 0 0 6px #818CF8;
}

/* 4. DIAGNOZ VA PROGNOZ */
.step-diagnoz {
    color: #E9D5FF;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.35);
}
.step-diagnoz .step-dot {
    background: #C084FC;
    box-shadow: 0 0 6px #C084FC;
}

/* 5. ILMIY YECHIM */
.step-yechim {
    color: #99F6E4;
    background: rgba(20, 184, 166, 0.14);
    border-color: rgba(20, 184, 166, 0.35);
}
.step-yechim .step-dot {
    background: #2DD4BF;
    box-shadow: 0 0 6px #2DD4BF;
}

/* 6. NATIJA */
.step-natija {
    color: #34D399;
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.step-natija .step-dot.dot-result {
    background: #10B981;
    box-shadow: 0 0 10px #34D399;
}

/* Harakatdagi oqimli strelkalar */
.pipeline-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pipeline-arrow svg {
    display: block;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7));
    animation: arrowFlowPulse 2.4s ease-in-out infinite;
}

.pipeline-arrow.arrow-1 svg { animation-delay: 0s; }
.pipeline-arrow.arrow-2 svg { animation-delay: 0.35s; }
.pipeline-arrow.arrow-3 svg { animation-delay: 0.7s; }
.pipeline-arrow.arrow-4 svg { animation-delay: 1.05s; }
.pipeline-arrow.arrow-5 svg { animation-delay: 1.4s; }

@keyframes arrowFlowPulse {
    0%, 100% {
        color: #38BDF8;
        transform: translateX(0);
        filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.5));
    }
    30% {
        color: #FFFFFF;
        transform: translateX(3px);
        filter: drop-shadow(0 0 8px #FFFFFF) drop-shadow(0 0 14px #38BDF8);
    }
}

@media (max-width: 1200px) {
    .kriminologik-pipeline-flow {
        padding: 4px 10px;
    }
    .pipeline-flow-inner {
        gap: 5px;
    }
    .pipeline-step {
        font-size: calc(10px * var(--font-scale, 1));
        padding: 2.5px 6px;
    }
    .pipeline-arrow svg {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 992px) {
    .map-top-banner {
        top: 8px;
        max-width: 96%;
        gap: 5px;
    }
    #map-container.panel-open .map-top-banner,
    .map-container.panel-open .map-top-banner {
        left: 50%;
    }
    .map-banner-title,
    .map-main-title {
        font-size: calc(12px * var(--font-scale, 1));
        padding: 5px 12px;
        white-space: normal;
        border-radius: 16px;
    }
    .kriminologik-pipeline-flow {
        padding: 4px 8px;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
    }
    .kriminologik-pipeline-flow::-webkit-scrollbar {
        display: none;
    }
    .pipeline-step {
        font-size: 9.5px;
        padding: 2px 5px;
    }
}

/* ---------- Header Navigation Links ---------- */
.header-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 2px 3px;
    gap: 3px;
}

.header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    color: var(--text-muted);
    font-size: calc(11.5px * var(--font-scale, 1));
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.header-nav-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.header-nav-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.header-nav-btn.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--accent-red) 0%, #B91C1C 100%);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}

@media (max-width: 860px) {
    .header-nav-btn span {
        display: none;
    }
    .header-nav-btn {
        padding: 6px 9px;
    }
}

/* ---------- Metodika Green Regions (Qoraqalpog'iston va Namangan) ---------- */
#uzbekistan-map [data-region].region-approved {
    fill: #10B981 !important;
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1.3;
}

#uzbekistan-map [data-region].region-approved.region-hover {
    fill: #059669 !important;
    stroke: #34D399 !important;
    stroke-width: 2.2 !important;
    filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.65)) !important;
}

#uzbekistan-map [data-region].region-approved.region-active {
    fill: #059669 !important;
    stroke: #6EE7B7 !important;
    stroke-width: 2.8 !important;
    filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.8)) !important;
}

/* ---------- Metodika Map Legend ---------- */
.metodika-legend {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(17, 24, 39, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    z-index: 40;
    pointer-events: none;
    max-width: 440px;
    box-shadow: var(--shadow-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: calc(10.5px * var(--font-scale, 1));
    color: var(--text-light);
    line-height: 1.3;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.green {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.legend-dot.blue {
    background: #2C3E6B;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .metodika-legend {
        bottom: 14px;
        left: 12px;
        max-width: calc(100% - 80px);
        padding: 6px 10px;
    }
}

/* ---------- Metodika Reader Modal ---------- */
.metodika-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInTab 0.25s ease;
}

.metodika-modal-container {
    background: linear-gradient(180deg, #161F32 0%, #0D1322 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    width: 720px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.metodika-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.metodika-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
}

.metodika-modal-body::-webkit-scrollbar {
    width: 5px;
}
.metodika-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.metodika-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.modal-action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
}

.modal-action-btn.primary {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #FFFFFF;
}

.modal-action-btn.primary:hover {
    background: var(--accent-red-light);
}

/* ---------- Print ---------- */
@media print {
    .presentation-screen {
        display: none;
    }
    .metodika-modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }
    .metodika-modal-container {
        width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
        background: #fff;
        color: #000;
    }
}

/* ============================================
   LOYIHALAR XARITASI MAXSUS USLUBI
   ============================================ */
.region-completed {
    fill: #10B981 !important;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 0.8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.region-completed:hover {
    fill: #059669 !important;
    stroke: #34D399 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}

.region-completed.region-active {
    fill: #047857 !important;
    stroke: #A7F3D0 !important;
    stroke-width: 2.5px !important;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.8));
}

.region-in-progress {
    fill: #2C3E6B !important;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 0.8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.region-in-progress:hover {
    fill: #1E3A8A !important;
    stroke: #93C5FD !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

.region-in-progress.region-active {
    fill: #141f36 !important;
    stroke: #60A5FA !important;
    stroke-width: 2.5px !important;
    filter: url(#filter-3d-raise) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9)) !important;
    transform: translateY(-2px);
}

/* Badges on SVG map */
.map-badge {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.map-badge:hover {
    transform: scale(1.28);
    filter: brightness(1.2);
}

.map-badge.badge-active {
    transform: scale(1.45);
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
}

/* Loyiha list rows */
.loyiha-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
}

.loyiha-item-row:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.loyiha-item-row.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

/* Modal Window for Loyihalar */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease-out;
}

.modal-window {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    width: 100%;
    max-width: 780px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #FFFFFF;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   TUMANLAR XARITASI (DISTRICTS BREAKDOWN STYLES)
   ============================================ */
.district-map-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    z-index: 25;
    background: radial-gradient(circle at 50% 50%, rgba(17, 24, 39, 0.96) 0%, rgba(10, 14, 26, 0.98) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 24px;
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: inherit;
    overflow: hidden;
    transition: right var(--transition-slow);
}

#map-container.panel-open .district-map-container,
.map-container.panel-open .district-map-container {
    right: var(--panel-width);
}

@media (max-width: 1024px) {
    #map-container.panel-open .district-map-container,
    .map-container.panel-open .district-map-container {
        right: 0;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.district-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    z-index: 30;
}

.back-to-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F1F5F9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.back-to-country-btn:hover {
    background: #1E293B;
    border-color: #60A5FA;
    color: #60A5FA;
    transform: translateX(-3px);
}

.district-map-title-wrap {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.district-map-title {
    font-size: calc(18px * var(--font-scale, 1));
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.4px;
}

.district-map-subtitle {
    font-size: calc(11.5px * var(--font-scale, 1));
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.district-map-badge {
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.district-svg-stage {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 0;
}

.district-svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: visible;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.75));
}

/* District path */
.district-path {
    fill: #1E293B;
    stroke: #38BDF8;
    stroke-width: 1.2px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    vector-effect: non-scaling-stroke;
}

.district-path:hover {
    fill: #1F305E !important;
    stroke: #93C5FD !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.75));
}

/* District active - 3D bo'rtib chiqqan, to'qroq rang, qizil EMAS */
.district-path.district-active {
    fill: #141f36 !important;
    stroke: #60A5FA !important;
    stroke-width: 2.6px !important;
    filter: url(#filter-3d-raise) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.95)) !important;
    transform: translateY(-3px) scale(1.015);
}

.district-svg-label {
    fill: #F1F5F9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 5px rgba(0, 0, 0, 0.9);
}

.district-map-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: calc(11px * var(--font-scale, 1));
    color: var(--text-dim);
    flex-shrink: 0;
}

/* District View inside Right Panel */
.district-focus-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: fadeInTab 0.25s ease;
}

.district-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.crumb-btn {
    background: none;
    border: none;
    color: #60A5FA;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
    font-size: 12px;
}

.crumb-btn:hover {
    color: #93C5FD;
}

.crumb-sep {
    color: var(--text-dim);
}

.crumb-current {
    color: var(--text-white);
    font-weight: 700;
}

.district-focus-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.district-focus-title {
    font-size: calc(18px * var(--font-scale, 1));
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

.district-focus-region {
    font-size: calc(12px * var(--font-scale, 1));
    color: var(--text-muted);
}

.district-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.district-stat-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    text-align: center;
}

.district-stat-val {
    font-size: calc(18px * var(--font-scale, 1));
    font-weight: 800;
    line-height: 1.2;
}

.district-stat-lbl {
    font-size: calc(10.5px * var(--font-scale, 1));
    color: var(--text-muted);
    margin-top: 4px;
}

.district-bars-section {
    margin-top: 14px;
}

.district-bar-item {
    margin-bottom: 10px;
}

.district-bar-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: calc(11.5px * var(--font-scale, 1));
    margin-bottom: 4px;
}

.district-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.district-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

@media (max-width: 992px) {
    .district-map-container {
        padding: 10px 14px;
    }
    .district-map-title {
        font-size: 15px;
    }
    .district-map-badge {
        display: none;
    }
}

/* ==========================================================================
   KREATIV PDF VIEWER MODAL & FIELD VISITS GALLERY STYLES
   ========================================================================== */

/* ---------- Creative PDF Modal ---------- */
.pdf-modal-overlay {
    z-index: 1000;
    background: rgba(4, 8, 20, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: pdfFadeIn 0.25s ease-out;
}

@keyframes pdfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdf-modal-window {
    width: 95vw;
    max-width: 1180px;
    height: 90vh;
    max-height: 920px;
    background: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: pdfPopUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-modal-window.fullscreen-mode {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
}

@keyframes pdfPopUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
    flex-wrap: wrap;
}

.pdf-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.pdf-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

.pdf-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-modal-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.pdf-tag.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.35);
    font-weight: 600;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #F1F5F9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-action-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.pdf-action-btn.pdf-btn-download {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-color: #34D399;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.pdf-action-btn.pdf-btn-download:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.pdf-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #CBD5E1;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.pdf-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #EF4444;
}

.pdf-modal-body {
    flex: 1;
    position: relative;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ---------- Slide Presentation Styles ---------- */
.status-slide {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    font-weight: 700 !important;
}

.pdf-slide-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 3px 6px;
}

.pdf-nav-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F1F5F9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-nav-ctrl-btn:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.pdf-nav-ctrl-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pdf-slide-num-pill {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #34D399;
    min-width: 55px;
    text-align: center;
}

.pdf-autoplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-autoplay-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #FFFFFF;
}

.pdf-autoplay-btn.playing {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    color: #34D399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.pdf-mode-toggle-btn {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38BDF8 !important;
}

.pdf-mode-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #FFFFFF !important;
}

.pdf-slide-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.pdf-slide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #38BDF8 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    transition: width 0.3s ease;
}

/* Slayd Taqdimot Maydoni */
.pdf-slide-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 60px;
    background: radial-gradient(circle at 50% 50%, #151e32 0%, #0a0e1a 100%);
    overflow: hidden;
    min-height: 0;
}

.pdf-slide-nav-floating {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.pdf-slide-nav-floating:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-color: #34D399;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.pdf-slide-nav-floating:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.pdf-slide-prev { left: 16px; }
.pdf-slide-next { right: 16px; }

.pdf-slide-canvas-card {
    position: relative;
    max-width: 100%;
    max-height: calc(88vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.pdf-slide-canvas-card.anim-next {
    animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdf-slide-canvas-card.anim-prev {
    animation: slideInLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(35px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-35px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.pdf-slide-canvas {
    max-width: 100%;
    max-height: calc(88vh - 180px);
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.pdf-slide-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.pdf-slide-loading-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Pastki Slaydlar Lentasi */
.pdf-slides-reel-wrapper {
    background: rgba(11, 16, 28, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    flex-shrink: 0;
}

.pdf-reel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
}

.pdf-reel-title {
    color: #E2E8F0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-reel-hint {
    color: #64748B;
}

.pdf-slides-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.pdf-slides-strip::-webkit-scrollbar {
    height: 4px;
}
.pdf-slides-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.pdf-slide-thumb-card {
    min-width: 62px;
    width: 62px;
    height: 44px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    user-select: none;
}

.pdf-slide-thumb-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pdf-slide-thumb-card.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.pdf-slide-thumb-card.active .pdf-thumb-num {
    color: #34D399;
    font-weight: 800;
}

.pdf-thumb-icon {
    font-size: 10px;
    opacity: 0.6;
}

.pdf-thumb-num {
    font-size: 11px;
    font-weight: 700;
    color: #CBD5E1;
}

.pdf-doc-container {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #1e293b;
}

.pdf-loader {
    position: absolute;
    inset: 0;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 5;
    color: #94A3B8;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.pdf-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.pdf-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: #10B981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---------- Creative PDF Action Card in Info Panel ---------- */
.loyiha-pdf-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.25) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.loyiha-pdf-card:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.loyiha-pdf-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

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

.loyiha-pdf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #34D399;
}

.loyiha-pdf-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.loyiha-pdf-desc {
    font-size: 12px;
    color: #CBD5E1;
    line-height: 1.45;
    margin-bottom: 12px;
}

.loyiha-pdf-buttons {
    display: flex;
    gap: 8px;
}

.btn-pdf-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.btn-pdf-view:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
    transform: translateY(-1px);
}

.btn-pdf-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #E2E8F0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pdf-download-icon:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #34D399;
}

/* ---------- Field Visits / Visited Locations Gallery ---------- */
.loyiha-gallery-section {
    margin-bottom: 18px;
}

.loyiha-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.location-photo-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.location-photo-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.location-img-wrap {
    width: 100%;
    height: 105px;
    overflow: hidden;
    position: relative;
    background: #0b1120;
}

.location-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.location-photo-card:hover .location-img-wrap img {
    transform: scale(1.08);
}

.location-badge-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    color: #FFFFFF;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.location-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}

.location-photo-card:hover .location-zoom-overlay {
    opacity: 1;
}

.location-card-info {
    padding: 8px 10px;
}

.location-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #F1F5F9;
    line-height: 1.35;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: #94A3B8;
}

/* ---------- Photo Lightbox Modal ---------- */
.gallery-modal-overlay {
    z-index: 1050;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: pdfFadeIn 0.2s ease-out;
}

.gallery-modal-window {
    width: 95vw;
    max-width: 980px;
    max-height: 94vh;
    background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pdfPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.8);
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.gallery-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}

.gallery-photo-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-counter {
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

.gallery-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #CBD5E1;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.gallery-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

.gallery-stage {
    position: relative;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    max-height: 55vh;
    overflow: hidden;
}

.gallery-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.gallery-nav-btn:hover {
    background: rgba(56, 189, 248, 0.35);
    border-color: #38BDF8;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev-btn { left: 16px; }
.gallery-next-btn { right: 16px; }

.gallery-footer-info {
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-meta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gallery-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94A3B8;
}

.gallery-meta-item svg {
    color: #38BDF8;
    flex-shrink: 0;
}

.gallery-caption {
    font-size: 13.5px;
    line-height: 1.55;
    color: #E2E8F0;
    margin: 0 0 14px 0;
}

.gallery-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb-item {
    width: 70px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #020617;
}

.gallery-thumb-item:hover {
    opacity: 0.9;
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-thumb-item.active {
    opacity: 1;
    border-color: #38BDF8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   NAVOIY VILOYATI TADQIQOT MUQOVASI (CHAP TEPA BURCHAKDA)
   "orqa foni o'ynab turuvchi neon animatsiyasi"
   ============================================ */
.navoi-report-cover-badge {
    position: absolute;
    top: 76px;
    left: 24px;
    z-index: 60 !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInScale 0.35s ease;
}

.navoi-report-cover-badge:hover {
    transform: translateY(-6px) scale(1.05);
}

/* Orqa fonda dinamik o'ynovchi rangli neon aura */
.navoi-ambient-glow {
    position: absolute;
    inset: -12px -14px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0284c7, #6366f1, #10b981, #f59e0b, #ec4899, #06b6d4);
    background-size: 400% 400%;
    filter: blur(18px);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
    animation: navoiGlowPlaying 3.8s ease infinite;
}

@keyframes navoiGlowPlaying {
    0% {
        background-position: 0% 50%;
        transform: scale(0.95);
        opacity: 0.75;
        filter: blur(16px);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.08);
        opacity: 1;
        filter: blur(26px);
    }
    100% {
        background-position: 0% 50%;
        transform: scale(0.95);
        opacity: 0.75;
        filter: blur(16px);
    }
}

/* Katta mustaqil kitob muqovasi (yonida matnlarsiz, faqat rasmning o'zi) */
.navoi-cover-book-wrapper {
    position: relative;
    z-index: 2;
    width: 165px;
    height: 232px;
    border-radius: 12px;
    overflow: hidden;
    background: #0B1120;
    border: 2px solid rgba(56, 189, 248, 0.75);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85),
                0 0 24px rgba(56, 189, 248, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navoi-report-cover-badge:hover .navoi-cover-book-wrapper {
    border-color: #60A5FA;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95),
                0 0 35px rgba(96, 165, 250, 0.75);
}

.navoi-cover-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.navoi-report-cover-badge:hover .navoi-cover-full-img {
    transform: scale(1.06);
}

/* Kitob pastidagi ixcham interaktiv nishon */
.navoi-cover-floating-tag {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    color: #38BDF8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.navoi-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #34D399;
}

@media (max-width: 992px) {
    .navoi-report-cover-badge {
        top: 65px;
        left: 14px;
    }
    .navoi-cover-book-wrapper {
        width: 115px;
        height: 162px;
    }
}

/* ============================================
   NAVOIY ILMIY TAQDIMOT SLAYDLARI CREATIVE MODALI
   (1.jpg, 2.jpg, 3.jpg)
   ============================================ */
.navoi-slides-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.25s ease;
}

.navoi-slides-window {
    width: 95%;
    max-width: 1280px;
    height: 92vh;
    background: #0B1120;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navoi-slides-window.fullscreen-mode {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    border: none !important;
}

.navoi-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.navoi-modal-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.navoi-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #38BDF8;
    flex-shrink: 0;
}

.navoi-header-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.navoi-header-titles {
    min-width: 0;
}

.navoi-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navoi-modal-subtitle {
    font-size: 11.5px;
    color: #94A3B8;
    margin-top: 2px;
}

.navoi-modal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.navoi-slide-counter-pill {
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    font-size: 12.5px;
    font-weight: 800;
}

.navoi-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F1F5F9;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navoi-ctrl-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    color: #38BDF8;
}

.navoi-autoplay-btn.playing {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
    color: #34D399;
}

.navoi-modal-close {
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navoi-modal-close:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

.navoi-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: radial-gradient(circle at center, #0F172A 0%, #030712 100%);
    position: relative;
}

.navoi-progress-bar-wrap {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
}

.navoi-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #38BDF8, #818CF8, #34D399);
    transition: width 0.35s ease;
}

.navoi-slide-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 20px;
    min-height: 0;
    overflow: hidden;
}

.navoi-slide-frame {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #020617;
}

.navoi-slide-img {
    max-width: 100%;
    max-height: calc(92vh - 220px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.navoi-slide-frame.anim-next .navoi-slide-img {
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navoi-slide-frame.anim-prev .navoi-slide-img {
    animation: slideInLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navoi-slide-caption-bar {
    width: 100%;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.navoi-caption-tag {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.navoi-caption-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #F1F5F9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navoi-floating-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.navoi-arrow-prev { left: 24px; }
.navoi-arrow-next { right: 24px; }

.navoi-floating-arrow:hover {
    background: #1E293B;
    border-color: #38BDF8;
    color: #38BDF8;
    transform: translateY(-50%) scale(1.1);
}

.navoi-thumbs-reel-wrapper {
    background: rgba(10, 14, 26, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px 12px 20px;
    flex-shrink: 0;
}

.navoi-thumbs-reel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 6px;
    font-weight: 600;
}

.navoi-reel-hint {
    color: #64748B;
    font-size: 10.5px;
}

.navoi-thumbs-reel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow-x: auto;
}

.navoi-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.navoi-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.navoi-thumb-item.active {
    opacity: 1;
    transform: translateY(-3px);
}

.navoi-thumb-img-box {
    position: relative;
    width: 110px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: #020617;
}

.navoi-thumb-item.active .navoi-thumb-img-box {
    border-color: #38BDF8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.navoi-thumb-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navoi-thumb-idx {
    position: absolute;
    top: 3px;
    left: 4px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.navoi-thumb-title {
    font-size: 11px;
    font-weight: 700;
    color: #CBD5E1;
    text-align: center;
    white-space: nowrap;
}

.navoi-thumb-item.active .navoi-thumb-title {
    color: #38BDF8;
}


