/* ==========================================================================
   ADIPEC 2026 - Industrial Fire Response Simulation Display
   Touch Screen 16:9 Ultra-Realistic Command & Tactical Layout
   ========================================================================== */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #06090e;
    font-family: 'Titillium Web', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

/* === App Container — 16:9 strictly enforced === */
#app-container {
    position: relative;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 */
    max-height: 100vh;
    max-width: 177.78vh;
    /* 16:9 */
    margin: auto;
    background: #07090f;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.95);
}

/* === Top Layers for Particles, Hoses & Physics === */
#connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

#connections-svg .connection-line {
    pointer-events: stroke;
}

#connections-svg .control-point {
    pointer-events: all;
}

#water-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 22;
    pointer-events: none;
}

#fire-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

/* === Main Header: Headline (Left), Centralized Logo (Center), Play Button (Right) ONLY === */
#main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    /* background: linear-gradient(180deg, rgba(9, 14, 23, 0.96) 0%, rgba(7, 10, 18, 0.92) 100%); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 28px;
    z-index: 30;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    height: 42px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.header-logo:hover {
    transform: scale(1.04);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-play-btn {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 9px 24px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
    pointer-events: auto;
    touch-action: manipulation;
}

.header-play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(230, 81, 0, 0.55);
    background: linear-gradient(135deg, #f55a00 0%, #ff7700 100%);
}

.header-play-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

.header-play-btn.playing {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.header-play-btn.playing:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.35);
}

.header-play-btn .btn-icon {
    font-size: 13px;
}

/* === Bottom Presentation Bar: Narrative & Steps === */
#presentation-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(9, 14, 23, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

#story-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ff6d00, #38bdf8, #22c55e);
    box-shadow: 0 0 10px rgba(255, 109, 0, 0.7);
    transition: width 0.05s linear;
    z-index: 60;
    pointer-events: none;
}

.presentation-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 28px;
    gap: 20px;
}

.presentation-step-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ff9100;
    background: rgba(255, 145, 0, 0.12);
    border: 1px solid rgba(255, 145, 0, 0.35);
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.presentation-narrative {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #e2e8f0;
    line-height: 1.45;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.presentation-timeline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.timeline-step.active {
    background: rgba(255, 109, 0, 0.18);
    border-color: #ff6d00;
    box-shadow: 0 0 14px rgba(255, 109, 0, 0.3);
}

.timeline-step.completed {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.35);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.timeline-step.active .step-num {
    background: #ff6d00;
    color: #ffffff;
    box-shadow: 0 0 8px #ff6d00;
}

.timeline-step.completed .step-num {
    background: #22c55e;
    color: #ffffff;
}

.step-name {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.timeline-step.active .step-name {
    color: #ffaa55;
    font-weight: 600;
}

/* === Tank Area — refinery photo ONLY in this zone === */
#tank-area {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    height: 39%;
    z-index: 5;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 10, 16, 0.35) 0%, rgba(6, 10, 16, 0.12) 55%, rgba(6, 10, 16, 0.40) 100%),
        url('images/oil-refinery.png') center 80% / cover no-repeat;
}

.tank {
    position: absolute;
    pointer-events: auto;
}

/* Realistic Tank Shell & Image Presentation */
.tank-realistic-wrapper {
    position: relative;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tank-structure {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 8px;
    overflow: visible;
}

.tank-realistic-img {
    width: 100%;
    height: 230px;
    border: none;
    outline: none;
}

/* Exposure Tanks Transparent Cutouts */
.tank-exposure-structure .tank-realistic-img {
    object-fit: contain;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.88));
}

/* Tank 01 Realistic Video Fire Shell */
.tank1-structure {
    position: relative;
    width: 250px;
    height: 255px;
    border-radius: 8px;
    overflow: visible;
}

/* Multi-Layer Video-Like Realistic Fire Container */
.tank-video-fire-container {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    overflow: visible;
}

.tank-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    outline: none;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

/* Layer 1: Extinguished Foam Blanket Tank — Clean original image */
.tank-layer-extinguished {
    opacity: 0;
    z-index: 1;
    filter: none;
}

/* Layer 2: Original Tank Fire Image — Clean original image, no dark layer, no shaking */
.tank-layer-fire {
    opacity: 1;
    z-index: 2;
    filter: none;
}

/* Layer 4: Live Video Flame Tongues & Steam Overlay Canvas */
.tank-video-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.tank-extinguished .tank-video-fire-container {
    animation: tank-container-cool-steam 3s infinite alternate ease-in-out;
}

@keyframes tank-container-cool-steam {
    0% {
        filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(56, 189, 248, 0.15));
    }

    100% {
        filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.25));
    }
}

/* Open Rim with Foam Blanket */
.tank-open-rim {
    position: absolute;
    top: 28px;
    left: 20px;
    right: 20px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.foam-blanket-overlay {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 250, 0.8) 60%, rgba(210, 225, 240, 0) 100%);
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Exposure Tanks Water Cooling Film */
.water-cooling-film {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 230px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(100, 200, 255, 0.25) 0%, rgba(60, 160, 240, 0.15) 50%, rgba(40, 120, 200, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
    animation: water-sheen 1.5s infinite linear;
}

@keyframes water-sheen {
    0% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-5px);
    }
}

/* Tank Identification Cards (Border-free glass design) */
.tank-info-card {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 235px;
    background: rgba(9, 14, 23, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.tank-id-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tank-code {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.tank-status-badge {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.badge-fire {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fcd34d;
}

.badge-safe {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

.suppression-gauge-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.suppression-label-row {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 500;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.suppression-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suppression-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7700, #ffbb00, #22c55e);
    border-radius: 2px;
    transition: width 0.8s ease;
}

.cooling-status-row {
    font-family: 'Inter', sans-serif;
    font-size: 8.5px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    margin-top: 2px;
}

/* === Facility Road Divider (asphalt strip between refinery & staging) === */
#ground-wall {
    position: absolute;
    top: 48%;
    left: 0;
    width: 100%;
    height: 28px;
    background: linear-gradient(180deg, #181e28 0%, #121820 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    border-top: 2px solid rgba(255, 200, 100, 0.14);
    border-bottom: 2px solid rgba(255, 200, 100, 0.10);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.7);
}

.road-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 92%;
}

.road-lane-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.road-label {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* === Equipment Area (Staging Ground — dark asphalt) === */
#equipment-area {
    position: absolute;
    top: 52%;
    left: 0;
    width: 100%;
    height: 38%;
    z-index: 8;
    background:
        /* subtle asphalt texture gradient */
        linear-gradient(180deg, #0e1219 0%, #0b0f16 60%, #090c12 100%);
    /* faint lane markings */
    box-shadow: inset 0 4px 32px rgba(0, 0, 0, 0.5);
}

/* Equipment Card Container */
.equipment {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 26;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.equipment.draggable {
    cursor: grab;
}

.equipment.draggable:active {
    cursor: grabbing;
}

.equipment.dragging {
    z-index: 100;
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(255, 109, 0, 0.45));
}

.equipment-arriving {
    animation: equipment-arrive 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes equipment-arrive {
    0% {
        transform: translateY(100px) scale(0.88);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Realistic Vehicles (Border-free Cutouts on Asphalt Staging) */
.vehicle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: grab;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.equipment:hover .vehicle-wrapper {
    transform: translateY(-5px) scale(1.04);
}

.vehicle-img {
    height: 128px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.9));
    transition: filter 0.25s ease, transform 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.equipment:hover .vehicle-img {
    filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 1)) drop-shadow(0 0 16px rgba(255, 140, 0, 0.4));
}

/* Per-vehicle sizing */
.tanker-vehicle-img {
    max-width: 220px;
    height: 138px;
}

.hydrant-vehicle-img {
    height: 115px;
    max-width: 140px;
}

.jpma-vehicle-img {
    height: 110px;
    max-width: 155px;
}

/* Floating label badges under each vehicle */
.vehicle-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 5px;
    padding: 3px 10px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    max-width: 170px;
}

.vehicle-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.vehicle-spec {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: #64748b;
    letter-spacing: 0.2px;
    margin-top: 1px;
    white-space: nowrap;
}

/* Storz Connection Couplings */
.connection-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6d00;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px rgba(255, 109, 0, 0.5);
    z-index: 20;
    pointer-events: auto;
}

.cp-in {
    top: 50%;
    left: -5px;
    background: #40b0ff;
    box-shadow: 0 0 8px #40b0ff;
}

.cp-out {
    top: 50%;
    right: -5px;
    background: #ff6622;
    box-shadow: 0 0 8px #ff6622;
}

.cp-supply {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #f5a623;
    box-shadow: 0 0 8px #f5a623;
}

.cp-prop {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff8833;
    box-shadow: 0 0 8px #ff8833;
}

/* === SVG Connection Line Styles === */
.conn-water-line {
    stroke: #2d8fe0;
    stroke-width: 7;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(45, 143, 224, 0.7));
}

.conn-water-12inch {
    stroke: #1a72c8;
    stroke-width: 13;
    filter: drop-shadow(0 0 8px rgba(26, 114, 200, 0.9));
}

.conn-supply-line {
    stroke: #cccccc;
    stroke-width: 7;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(212, 94, 10, 0.7));
}

.conn-orange-dotted {
    stroke: #cccccc;
    stroke-dasharray: 10 7;
    stroke-width: 6;
    animation: flow-dash 1.1s infinite linear;
    filter: drop-shadow(0 0 6px rgba(210, 210, 210, 0.8));
}

@keyframes flow-dash {
    to {
        stroke-dashoffset: -34;
    }
}

.conn-supply-line-animated {
    animation: supply-flow 1.5s infinite linear;
}

@keyframes supply-flow {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -32;
    }
}

.storz-coupling-ring {
    fill: #1e2836;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Hose unrolling draw-in animation — triggered on new connections only */
.hose-unroll-anim {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: hose-draw 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hose-unroll-anim.hose-delay-1 {
    animation-delay: 0.15s;
}

.hose-unroll-anim.hose-delay-2 {
    animation-delay: 0.35s;
}

@keyframes hose-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Coupling pulse when newly connected */
.storz-coupling-ring.coupling-flash {
    animation: coupling-pulse 0.7s ease forwards;
}

@keyframes coupling-pulse {
    0% {
        r: 7;
        opacity: 0.3;
    }

    50% {
        r: 13;
        opacity: 1;
    }

    100% {
        r: 7;
        opacity: 1;
    }
}

/* Pipeline Label in SVG */
.pipeline-svg-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 9px;
    font-weight: 700;
    fill: #ddeeff;
    letter-spacing: 0.8px;
    paint-order: stroke;
    stroke: rgba(6, 10, 16, 0.97);
    stroke-width: 3.5px;
    pointer-events: none;
}

/* Hose Carrier Firefighter Animation */
.hose-carrier-courier {
    pointer-events: none;
    cursor: default;
    user-select: none;
    z-index: 1000;
    transition: opacity 0.35s ease;
}

.hose-carrier-courier circle {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
}

.hose-carrier-courier text {
    user-select: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.fireman-held-pipe {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

/* === Modals (Equipment & Connections) === */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 15, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.modal-card {
    position: relative;
    width: 90%;
    max-width: 820px;
    max-height: 85vh;
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    padding: 28px 32px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 22px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 59, 48, 0.6);
    border-color: #ff3b30;
}

.modal-header {
    margin-bottom: 16px;
    border-bottom: 2px solid #ff6633;
    padding-bottom: 12px;
}

.modal-title {
    font-family: 'Titillium Web', 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.modal-subtitle {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #8fa2b5;
    margin-top: 4px;
}

.modal-content-split {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    overflow: hidden;
    flex: 1;
}

.modal-left-col {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.modal-image-box {
    width: 100%;
    height: 240px;
    background: #090e16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.modal-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-right-col {
    flex: 1;
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-right-col::-webkit-scrollbar {
    width: 6px;
}

.modal-right-col::-webkit-scrollbar-thumb {
    background: rgba(255, 102, 51, 0.4);
    border-radius: 3px;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-section-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ff7744;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.modal-text {
    font-family: 'Titillium Web', 'Segoe UI', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: #d0d8e2;
}

.modal-text p {
    margin-bottom: 8px;
}

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

/* Hose Modal */
.conn-modal-card {
    position: relative;
    width: 90%;
    max-width: 860px;
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    border-radius: 8px;
    padding: 28px 32px;
    color: #e0e0e0;
}

.conn-modal-body {
    display: flex;
    gap: 28px;
}

.conn-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conn-modal-image-box {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #090e16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

#conn-modal-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    display: block;
}


.conn-video-box {
    width: 100%;
    height: 180px;
    background: #090e16;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.conn-video-play {
    font-size: 32px;
    color: #ff6633;
    opacity: 0.85;
}

.conn-video-caption {
    font-family: 'Titillium Web', sans-serif;
    font-size: 11px;
    color: #7b92a8;
}

.conn-modal-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.conn-modal-subtitle {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #40b0ff;
}

.conn-modal-desc {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: #c5d5e5;
}

.conn-modal-right {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conn-specs-heading {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ff7744;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.conn-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.conn-specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.conn-specs-table td {
    padding: 6px 4px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 11.5px;
}

.conn-spec-label {
    color: #7b92a8;
    width: 48%;
}

.conn-spec-value {
    color: #e2e8f0;
    font-weight: 600;
}

.conn-quote-btn {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff6633, #e64400);
    border: none;
    border-radius: 4px;
    padding: 10px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 102, 51, 0.4);
    transition: all 0.2s ease;
}

.conn-quote-btn:hover {
    background: linear-gradient(135deg, #ff7744, #ff5511);
    box-shadow: 0 6px 20px rgba(255, 102, 51, 0.6);
}