/* ==========================================================================
   Horizons Batumi — Webcam Timelapse
   Premium Dark-Mode Design System
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Design Tokens
   --------------------------------------------------------------------------- */
:root {
    /* Colors */
    --bg-primary: #061a3b;
    --bg-secondary: #0a224a;
    --bg-tertiary: #0f2e61;
    --bg-glass: rgba(6, 26, 59, 0.75);
    --bg-glass-hover: rgba(15, 46, 97, 0.85);

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --accent: #059fe3;
    --accent-hover: #35b5eb;
    --accent-glow: rgba(5, 159, 227, 0.25);
    --accent-gradient: linear-gradient(135deg, #059fe3, #0f2e61);

    --border: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.3);

    --danger: #f87171;
    --success: #34d399;

    /* Typography */
    --font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    --font-xs: 0.7rem;
    --font-sm: 0.8rem;
    --font-base: 0.925rem;
    --font-md: 1.05rem;
    --font-lg: 1.3rem;
    --font-xl: 1.6rem;

    /* Spacing */
    --space-xs: 0.35rem;
    --space-sm: 0.6rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;

    /* Radius */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --radius-pill: 30px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);

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

    /* Viewer */
    --viewer-ratio: 1.77778;
    --viewer-aspect: 16 / 9;
    --viewer-max-height: 70vh;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(5, 159, 227, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(15, 46, 97, 0.05) 0%, transparent 60%);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
#app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #061a3b;
    /* 1:1 color matched */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 1:1 color matched */
    height: 71px;
    /* 1:1 height matched */
}

.header-grid {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* 1:1 opacity matched */
    height: 100%;
}

/* Specific cell classes */
.logo-cell {
    padding: 0 30px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
}

.logo-svg {
    width: 44px;
    height: 44px;
    color: #ffffff;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 19px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: 0.05em;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    line-height: 1;
    margin-top: 5px;
}

.webcam-cell {
    width: 70px;
    /* 1:1 width matched */
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    transition: background-color var(--transition-fast) ease;
}

.webcam-cell:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.webcam-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast) ease;
}

.webcam-cell:hover .webcam-icon {
    color: #ffffff;
}

/* Status dot styled as the blinking status dot (green when recording, red when sleeping) */
.status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: background-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}

/* Green when active */
.status-dot.recording {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: blink-green 1.5s infinite ease-in-out;
}

/* Red when standby (nighttime sleeping) */
.status-dot.sleeping {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: blink-red 1.5s infinite ease-in-out;
}

/* Fallback default */
.status-dot:not(.recording):not(.sleeping) {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: blink-red 1.5s infinite ease-in-out;
}

/* Blinking animations */
@keyframes blink-green {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.85);
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.8), 0 0 4px rgba(16, 185, 129, 0.4);
    }
}

@keyframes blink-red {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.85);
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.8), 0 0 4px rgba(239, 68, 68, 0.4);
    }
}

/* Tooltip for status text */
.webcam-cell .status-text {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(2, 11, 24, 0.95);
    color: #ffffff;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast) ease, transform var(--transition-fast) ease;
    z-index: 110;
    box-shadow: var(--shadow-md);
}

.webcam-cell:hover .status-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.spacer-cell {
    flex-grow: 1;
}

.nav-cell {
    flex-shrink: 0;
    padding: 0 35px;
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
}

.nav-cell:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast) ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.nav-cell:hover .nav-link {
    color: #ffffff;
}

.lang-cell {
    flex-shrink: 0;
    padding: 0 25px;
}

.lang-selector-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-selector-inline .lang-btn {
    background: transparent;
    border: none;
    padding: 0 4px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-selector-inline .lang-btn:hover {
    color: #ffffff;
}

.lang-selector-inline .lang-btn.active {
    color: #ffffff;
    font-weight: 700;
}

.action-cell {
    flex-shrink: 0;
    padding: 0 35px;
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color var(--transition-fast) ease;
    border-right: none;
}

.action-cell:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-get-in-touch {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    width: 100%;
}

.worker-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    font-size: 1.1rem;
    line-height: 1;
    transform-origin: center;
    will-change: transform;
    animation: worker-alert-zoom 1.6s ease-in-out infinite;
}

.worker-alert-icon::before {
    content: '⚠️';
}

.header-worker-alert-icon {
    width: 1rem;
    height: 1rem;
    flex-basis: 1rem;
    font-size: 1rem;
}

@keyframes worker-alert-zoom {

    0%,
    100% {
        transform: scale(0.88);
    }

    50% {
        transform: scale(1.22);
    }
}

/* ---------------------------------------------------------------------------
   Viewer
   --------------------------------------------------------------------------- */
.player-wrapper {
    width: min(100%, 1000px, calc(var(--viewer-max-height) * var(--viewer-ratio)));
    margin: var(--space-md) auto var(--space-xl) auto;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.viewer-section {
    padding: 0;
}

.viewer-container {
    width: 100%;
}

.viewer-frame {
    position: relative;
    background: #000000;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    aspect-ratio: var(--viewer-aspect);
    max-height: var(--viewer-max-height);
    width: 100%;
}

.viewer-frame .viewer-image-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(1.004);
    transition:
        opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.viewer-frame .viewer-image-layer.is-active {
    opacity: 1;
    transform: scale(1);
}

.viewer-frame .viewer-image-layer.is-top {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .viewer-frame .viewer-image-layer {
        transition: none;
        transform: none;
    }
}

.viewer-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.viewer-overlay.hidden {
    opacity: 0;
}

.person-box {
    position: absolute;
    border: 2px solid #ef4444;
    /* red-500 */
    background-color: rgba(239, 68, 68, 0.15);
    /* translucent red */
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
    /* contrast shadow */
    z-index: 10;
}

.viewer-placeholder-text {
    font-size: var(--font-md);
    color: var(--text-muted);
    font-weight: 400;
}

.viewer-timestamp {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: auto;
    z-index: 25;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.viewer-timestamp.visible {
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   Controls
   --------------------------------------------------------------------------- */
.controls-section {
    padding: var(--space-md) var(--space-lg) var(--space-xs);
}

.controls-inner {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.controls-inner .control-group> :not(.control-label) {
    height: 40px;
    display: flex;
    align-items: center;
}

.control-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Date Picker */
.date-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.date-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    padding: var(--space-xs) var(--space-md);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    color-scheme: dark;
}

.date-input:hover,
.date-input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Buttons */
.btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.btn:active {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: rotate(45deg);
    transform-origin: center;
}

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

.btn-play {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-fast);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-play:active {
    transform: scale(1.0);
}

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

/* Speed Control — compact dropdown that lives inside the playback bar */
.speed-select {
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-secondary);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    height: 36px;
    padding: 0 30px 0 14px;
    margin-left: 6px;
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color-scheme: dark;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059fe3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.speed-select:hover,
.speed-select:focus {
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
    outline: none;
}

/* Frame Counter */
.frame-counter {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Filter Checkbox Control */
.checkbox-control {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
    cursor: pointer;
    font-size: var(--font-sm);
    color: var(--accent-hover);
    font-weight: 500;
}

.checkbox-control input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.checkbox-control span {
    user-select: none;
}

/* Hide non-person thumbnails when filter is active */
body.filter-active .thumb-item:not(.has-person) {
    display: none !important;
}

/* ---------------------------------------------------------------------------
   Timeline Scrubber
   --------------------------------------------------------------------------- */
.timeline-section {
    padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
}

.timeline-inner {
    width: 100%;
    margin: 0;
    position: relative;
}

.timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.timeline-slider:hover {
    height: 10px;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast);
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.timeline-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-glow);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    user-select: none;
}

/* ---------------------------------------------------------------------------
   Thumbnail Strip
   --------------------------------------------------------------------------- */
.thumbnails-section {
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
    overflow: hidden;
}

.thumbnails-strip {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.thumbnails-strip::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-strip::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnails-strip::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 2px;
}

.thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    opacity: 0.6;
    scroll-snap-align: center;
}

.thumb-item:hover {
    opacity: 1;
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.thumb-item.has-person {
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
    opacity: 1;
}

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

.thumb-item .thumb-time {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    font-size: 0.6rem;
    text-align: center;
    padding: 1px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   Date Slider & Month Selector
   --------------------------------------------------------------------------- */
.date-slider-section {
    /* Top padding = bottom padding + player margin-top, so the date block sits
       equidistant from the header above and the player below (visual symmetry). */
    padding: calc(var(--space-sm) + var(--space-md)) var(--space-lg) var(--space-sm);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.slider-header {
    max-width: 1000px;
    margin: 0 auto var(--space-md) auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.slider-title {
    font-size: var(--font-sm);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

.month-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-md);
    font-weight: 600;
    padding: 8px 38px 8px 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    min-width: 180px;
}

.month-select:hover,
.month-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
    width: 12px;
    height: 12px;
}

.month-select:hover+.select-arrow,
.month-select:focus+.select-arrow {
    color: var(--accent);
}



/* Swiper Container */
.swiper-container-outer {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 45px;
    /* Spacing for navigation arrows */
}

.date-swiper {
    width: 100%;
    padding: 12px 0;
    overflow: hidden;
}

.date-swiper .swiper-slide {
    width: 160px;
    height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.date-swiper .slide-img-container {
    width: 100%;
    height: 86px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    background: var(--bg-tertiary);
    position: relative;
}

.date-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    color: transparent;
    font-size: 0;
    transition: transform var(--transition-slow);
}

.date-swiper .slide-date-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(2, 11, 24, 0.8);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 3px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1;
    transition: all var(--transition-base);
    z-index: 10;
}

.date-swiper .slide-date-label .weekday {
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.date-swiper .slide-date-label .daynum {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-secondary);
}

/* Active and Hover States */
.date-swiper .swiper-slide:hover .slide-img-container {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.date-swiper .swiper-slide:hover .slide-date-label {
    background: rgba(2, 11, 24, 0.95);
}

.date-swiper .swiper-slide:hover .slide-date-label .weekday {
    color: var(--text-secondary);
}

.date-swiper .swiper-slide:hover .slide-date-label .daynum {
    color: var(--text-primary);
}

.date-swiper .swiper-slide-active .slide-img-container {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.08) translateY(-4px);
}

.date-swiper .swiper-slide-active img {
    transform: scale(1.05);
}

.date-swiper .swiper-slide-active .slide-date-label {
    background: rgba(2, 11, 24, 0.85);
}

.date-swiper .swiper-slide-active .slide-date-label .weekday {
    color: var(--accent);
    opacity: 0.85;
}

.date-swiper .swiper-slide-active .slide-date-label .daynum {
    color: var(--accent);
}

.date-swiper .swiper-slide.has-person .slide-img-container {
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.date-swiper .swiper-slide-active.has-person .slide-img-container {
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.8);
}

/* Swiper Navigation Custom Styling */
.swiper-container-outer .swiper-button-prev,
.swiper-container-outer .swiper-button-next {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.swiper-container-outer .swiper-button-prev:hover,
.swiper-container-outer .swiper-button-next:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.swiper-container-outer .swiper-button-prev::after,
.swiper-container-outer .swiper-button-next::after {
    font-size: 0.9rem;
    font-weight: 700;
}

.swiper-container-outer .swiper-button-disabled {
    opacity: 0.25 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.swiper-container-outer .swiper-button-prev {
    left: 0;
}

.swiper-container-outer .swiper-button-next {
    right: 0;
}

/* ---------------------------------------------------------------------------
   Info Box (YoLO Style)
   --------------------------------------------------------------------------- */
.info-section {
    padding: var(--space-md) var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: center;
}

.info-box-yolo {
    max-width: 1000px;
    width: 100%;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.08) 0%, rgba(6, 26, 59, 0.6) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.info-box-yolo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--danger), var(--accent));
}

.info-box-yolo .info-heading {
    font-size: var(--font-md);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.info-heading-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.info-heading-icon-progress {
    color: var(--danger);
}

.info-heading-icon-process {
    color: var(--accent);
}

.info-box-yolo p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-box-yolo .info-subtitle {
    font-size: var(--font-base);
    font-weight: 700;
    color: #ffffff;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.info-box-yolo p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.info-box-yolo p a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
#app-footer {
    margin-top: auto;
    text-align: center;
    padding: var(--space-md);
    font-size: var(--font-xs);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   Loading State
   --------------------------------------------------------------------------- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            var(--bg-secondary) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
    #app-header {
        height: 65px;
    }

    .logo-cell {
        padding: 0 15px;
    }

    .logo-svg {
        width: 32px;
        height: 32px;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-subtitle {
        font-size: 7px;
        letter-spacing: 0.06em;
    }

    .nav-cell {
        display: none;
        /* Hide dummy navigation items on tablet/mobile */
    }

    .spacer-cell {
        flex-grow: 1;
    }

    .action-cell {
        padding: 0 15px;
    }

    .lang-cell {
        padding: 0 12px;
    }

    .lang-selector-inline {
        gap: 8px;
    }

    .lang-selector-inline .lang-btn {
        font-size: 13px;
    }

    .player-wrapper {
        margin: var(--space-md) 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .controls-inner {
        gap: var(--space-md);
        padding: 0;
    }

    .speed-group {
        display: none;
    }

    .viewer-section {
        padding: 0;
    }

    .controls-section,
    .timeline-section,
    .thumbnails-section,
    .info-section {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
}

@media (max-width: 600px) {
    .logo-subtitle {
        display: none;
    }

    /* Tighten header cells so logo, status, language switcher and menu never
       overflow on narrow phones (down to ~360px). */
    .logo-cell {
        padding: 0 10px;
    }

    .logo-link {
        gap: 8px;
    }

    .webcam-cell {
        width: 56px;
    }

    .lang-cell {
        padding: 0 8px;
    }

    .lang-selector-inline {
        gap: 7px;
    }

    .action-cell {
        padding: 0 10px;
    }

    .btn-get-in-touch {
        font-size: 12px;
    }

    .controls-inner {
        justify-content: center;
    }

    .date-picker-group {
        width: 100%;
    }

    .date-nav {
        width: 100%;
        justify-content: center;
    }

    .counter-group {
        display: none;
    }

    .thumb-item {
        width: 78px;
        height: 44px;
    }

    .info-box-yolo {
        padding: var(--space-md);
    }

    .info-box-yolo h2 {
        font-size: var(--font-md);
        margin-bottom: var(--space-sm);
    }
}

/* ---------------------------------------------------------------------------
   Contact Modal (Worker alert and investor updates)
   --------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 8, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform var(--transition-base) ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

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

.modal-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.modal-worker-alert-icon {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
    font-size: 3rem;
    margin: 0 auto var(--space-sm);
    animation: none;
    will-change: auto;
}

.modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.modal-header p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: var(--font-base);
    transition: border-color var(--transition-fast) ease, background-color var(--transition-fast) ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-submit {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

.btn-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.btn-submit:active {
    transform: scale(0.98);
}

.recaptcha-notice {
    margin: var(--space-xs) 0 0;
    color: var(--text-muted);
    font-size: var(--font-xs);
    line-height: 1.45;
}

.recaptcha-notice a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.grecaptcha-badge {
    visibility: hidden;
}

.modal-success-message,
.modal-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.modal-success-message p,
.modal-error-message p {
    font-size: var(--font-base);
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-error-message p {
    color: #fecaca;
}

/* ---------------------------------------------------------------------------
   Global Content Container
   --------------------------------------------------------------------------- */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* ---------------------------------------------------------------------------
   Infrastructure & Services Section
   --------------------------------------------------------------------------- */
.infrastructure-section {
    background-color: #061a3b;
    padding: 80px 0;
}

.section-title {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 40px;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 50px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title.center {
    text-align: center;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 20px;
}

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

.infra-icon-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infra-icon {
    font-size: 32px;
    color: #009fe3;
    /* Cyan blue color */
    display: block;
}

.infra-label {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.4;
}

/* ---------------------------------------------------------------------------
   Payment Options Section
   --------------------------------------------------------------------------- */
.payment-section {
    background-color: #082754;
    /* 1:1 color matched */
    padding: 80px 0;
}

.payment-section .section-title {
    font-size: 44px;
    font-weight: 300;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.payment-grid {
    display: grid;
    grid-template-columns: 560px 385px;
    gap: 51px;
    justify-content: center;
}

.column-title {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.terms-list {
    list-style: none;
    counter-reset: terms-counter;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
    margin: 0;
}

.terms-list li {
    counter-increment: terms-counter;
    position: relative;
    padding-left: 35px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.terms-list li::before {
    content: counter(terms-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #009fe3;
    font-weight: 700;
}

.options-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
    margin: 0;
}

.options-list li {
    position: relative;
    padding-left: 20px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.options-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #009fe3;
    font-size: 18px;
}

/* ---------------------------------------------------------------------------
   Contacts Section
   --------------------------------------------------------------------------- */
.contacts-section {
    background-color: #061a3b;
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.investor-community-box {
    margin-top: 30px;
    background: rgba(6, 38, 85, 0.74);
    border: 1px solid rgba(0, 159, 227, 0.22);
    border-left: 4px solid #009fe3;
    padding: 28px 30px;
    width: 100%;
}

.investor-community-box h3 {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 22px;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.investor-community-box p {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.card-box {
    background-color: #062655;
    /* 1:1 color matched */
    border-radius: 0px;
    padding: 30px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.box-subtitle {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 16px;
    color: #009fe3;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.contact-value {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 18px;
    color: #ffffff;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-box-action {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 159, 227, 0.55);
    border-radius: 4px;
    background: rgba(0, 159, 227, 0.12);
    color: #ffffff;
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-fast) ease, border-color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.contact-box .contact-value {
    margin-bottom: 28px;
}

.contact-box-action:hover {
    background: #009fe3;
    border-color: #009fe3;
    transform: translateY(-1px);
}

.contact-box-button {
    appearance: none;
}

.contact-value.highlight {
    font-weight: 400;
}

.contact-mail {
    color: #ffffff;
    font-weight: 500;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 3px;
}

.contact-mail:hover {
    color: #009fe3;
    text-decoration-color: #009fe3;
}

.contact-value.address {
    margin-top: auto;
}

.social-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #061a3b;
    /* 1:1 color matched */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background-color var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.social-circle-btn:hover {
    background-color: #009fe3;
    transform: translateY(-2px);
}

.social-circle-btn i {
    font-size: 20px;
}

/* ---------------------------------------------------------------------------
   Replicated Site Footer
   --------------------------------------------------------------------------- */
.replicated-footer {
    width: 100%;
}

.footer-nav-block {
    background-color: #061a3b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-nav-links {
    display: flex;
    gap: 40px;
}

.footer-nav-link {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-fast) ease;
}

.footer-nav-link:hover {
    color: #009fe3;
}

.footer-lang-selector {
    display: flex;
    gap: 15px;
}

.footer-lang-btn {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.62);
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
    min-width: 24px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-lang-btn:hover,
.footer-lang-btn.active {
    color: #ffffff;
}

.footer-sub-block {
    background-color: #062655;
    padding: 20px 0;
}

.sub-footer-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
}

.sub-footer-link {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.sub-footer-link:hover {
    color: #ffffff;
}

.sub-footer-copyright {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-note-group {
    flex: 0 1 420px;
    max-width: 420px;
    text-align: right;
}

.footer-legal-note {
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 6px 0;
}

/* ---------------------------------------------------------------------------
   New Responsiveness Rules
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .infrastructure-section,
    .payment-section,
    .contacts-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .payment-section .section-title {
        font-size: 36px;
    }

    .infra-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile/tablet */
        gap: 25px 15px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .sub-footer-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-note-group {
        flex: 0 1 auto;
        width: 100%;
        max-width: none;
        text-align: center;
    }
}

/* ==========================================================================
   Responsive Mobile Navigation & Controls Layout
   ========================================================================== */

/* --- Timeline Time Bubble (Floating Tooltip) --- */
.timeline-inner {
    position: relative;
}

.timeline-time-bubble {
    position: absolute;
    bottom: 24px;
    left: 0;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    display: inline-block;
    transition: left 100ms ease-out;
}

.timeline-time-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--accent);
}

.timeline-labels span {
    font-size: var(--font-xs);
    font-weight: 600;
}

/* --- Mobile Hamburger Menu & Drawer --- */
.mobile-menu-cell {
    display: none;
    width: 70px;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition-fast) ease;
}

.mobile-menu-cell:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 0;
}

.hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all var(--transition-fast) ease;
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #061a3b;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base) cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color var(--transition-fast);
}

.drawer-close:hover {
    color: #ffffff;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: auto;
}

.drawer-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-nav-link:hover {
    color: var(--accent);
}

.drawer-footer {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-drawer-cta {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-fast);
}

.btn-drawer-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base) ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Breakpoints for header / controls responsiveness --- */
@media (max-width: 1024px) {

    #app-header .nav-cell,
    #app-header .action-cell {
        display: none !important;
    }

    .mobile-menu-cell {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Symmetric spacing: date block equidistant from header and player.
       The player's top margin is dropped on phones so the bg-secondary date
       band flows into the full-bleed player without a color seam (the card's
       own top border provides the divider). */
    .date-slider-section {
        padding: var(--space-lg) 20px;
    }

    .date-swiper .swiper-slide {
        width: 90px;
        height: 48px;
    }

    .date-swiper .slide-img-container {
        height: 48px;
    }

    .player-wrapper {
        margin-top: 0;
    }

    /* Keep the header menu toggle compact so the top bar never crowds on phones */
    .mobile-menu-cell {
        width: 56px;
    }

    /* Hide carousel arrows on mobile — swipe gestures + the month dropdown fully
       cover date navigation, and the date slides reclaim the space the arrows
       previously sat on top of. */
    .swiper-container-outer {
        padding: 0 8px;
    }

    .swiper-container-outer .swiper-button-prev,
    .swiper-container-outer .swiper-button-next {
        display: none !important;
    }

    .controls-section {
        padding: var(--space-md) 20px var(--space-sm) 20px;
    }

    .timeline-section {
        padding: 0 20px var(--space-md) 20px;
    }

    .thumbnails-section {
        padding: var(--space-xs) 20px var(--space-lg) 20px;
    }

    .thumb-item {
        width: 78px;
        height: 44px;
    }

    .info-section {
        padding: var(--space-md) 20px 28px 20px;
    }

    /* ---- Player controls: clean, compact mobile layout ----
       Date picking is handled by the carousel + month dropdown above, so the
       redundant date input is dropped. The remaining playback + filter controls
       become tidy, self-explanatory bars without the uppercase labels. */
    .controls-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .controls-inner .control-group {
        align-items: center;
        width: 100%;
    }

    .controls-inner .control-group> :not(.control-label) {
        height: auto;
    }

    .control-label {
        display: none;
    }

    .date-picker-group {
        display: none !important;
    }

    .playback-group .playback-buttons {
        justify-content: center;
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 6px;
        gap: 6px;
    }

    .filter-group .checkbox-control {
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 8px 16px;
    }

    /* Consistent, slightly tighter rhythm for the marketing sections */
    .infrastructure-section,
    .payment-section,
    .contacts-section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .payment-section .section-title {
        font-size: 30px;
    }
}

/* ---------------------------------------------------------------------------
   Keyboard focus visibility (accessibility)
   A consistent accent focus ring for all interactive elements, including the
   role="button" date slides and thumbnails. Class-level specificity keeps this
   winning over earlier `:focus { outline: none }` resets.
   --------------------------------------------------------------------------- */
.btn:focus-visible,
.btn-play:focus-visible,
.btn-get-in-touch:focus-visible,
.btn-drawer-cta:focus-visible,
.btn-submit:focus-visible,
.modal-close:focus-visible,
.drawer-close:focus-visible,
.drawer-nav-link:focus-visible,
.mobile-menu-toggle:focus-visible,
.lang-btn:focus-visible,
.footer-lang-btn:focus-visible,
.nav-link:focus-visible,
.footer-nav-link:focus-visible,
.sub-footer-link:focus-visible,
.social-circle-btn:focus-visible,
.logo-link:focus-visible,
.date-input:focus-visible,
.month-select:focus-visible,
.speed-select:focus-visible,
.swiper-slide:focus-visible,
.thumb-item:focus-visible,
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible,
.swiper-button-outline:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Sunrise & Sunset Ribbons & Badges (Main Viewer)
   --------------------------------------------------------------------------- */
/* Ribbon for the main viewer frame (Sunset theme) */
.viewer-frame .viewer-offline-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 0;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Ribbon for the main viewer frame (Sunrise theme) */
.viewer-frame .viewer-sunrise-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #061a3b;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 0;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Diagonal Corner Construction Delay Ribbon (Bottom-Left, Desktop) */
.construction-delay-badge {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 280px;
    height: 280px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
    overflow: hidden;
    font-family: 'GraphikTT', 'Inter', 'Arial', sans-serif;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.construction-delay-badge.is-visible {
    opacity: 1;
    visibility: visible;
}

.construction-delay-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #020b18;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.construction-delay-badge:hover {
    transform: none;
}

.construction-delay-stripe {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: auto;
    height: auto;
    background: repeating-linear-gradient(-45deg,
            #ffb703,
            #ffb703 10px,
            #000000 10px,
            #000000 20px);
    clip-path: polygon(0 0, 0 18px, calc(100% - 18px) 100%, 100% 100%);
    border: 0;
    box-shadow: none;
    transform: none;
}

.construction-delay-content {
    position: absolute;
    left: 15px;
    bottom: 54px;
    z-index: 3;
    width: 174px;
    padding: 0;
    background: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    transform: rotate(45deg);
    transform-origin: center;
}

.construction-delay-label {
    color: #ffb703;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.8px;
    overflow-wrap: anywhere;
}

.construction-delay-days {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: #ffffff;
    margin: 2px 0 2px 0;
    letter-spacing: 0;
}

.construction-delay-details {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 96px;
    }

    .construction-delay-badge {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: auto;
        min-height: 88px;
        background: #020b18;
        border: 0;
        box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.35);
        overflow: visible;
        pointer-events: none;
        display: block;
    }

    .construction-delay-badge.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .construction-delay-badge::before {
        display: none;
    }

    .construction-delay-stripe {
        top: 0;
        left: 0;
        bottom: auto;
        z-index: 4;
        width: 100vw;
        height: 12px;
        background: repeating-linear-gradient(-45deg,
                #ffb703,
                #ffb703 10px,
                #000000 10px,
                #000000 20px);
        clip-path: none;
        transform: none;
        box-shadow: none;
    }

    .construction-delay-content {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100vw;
        max-width: 100vw;
        min-height: 88px;
        padding: 22px 18px 12px 18px;
        background: transparent;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "label"
            "days"
            "details";
        align-items: start;
        column-gap: 0;
        row-gap: 2px;
        text-align: left;
        transform: none;
        z-index: 3;
    }

    .construction-delay-label {
        grid-area: label;
        font-size: 10px;
        letter-spacing: 0.7px;
    }

    .construction-delay-days {
        grid-area: days;
        justify-self: start;
        max-width: 100%;
        font-size: 24px;
        white-space: normal;
    }

    .construction-delay-details {
        grid-area: details;
        font-size: 12px;
    }
}

/* Ribbon for the main viewer frame (Worker detected - Red) */
.viewer-frame .viewer-worker-ribbon {
    position: absolute;
    top: 18px;
    right: -32px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 0;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
