/* ==========================================================================
   PLATINUM BADMINTON — SPATIAL 3D ARENA & FINANCIAL ARCHITECT CSS
   Skills Applied: spatial-3d-motion-engine, bootstrap-5-mastery, modern-design-engine
   ========================================================================== */

:root {
    --pb-emerald: #10b981;
    --pb-emerald-dark: #059669;
    --pb-emerald-glow: rgba(16, 185, 129, 0.35);
    --pb-gold: #f59e0b;
    --pb-gold-glow: rgba(245, 158, 11, 0.32);
    --pb-blue: #3b82f6;
    --pb-bg-deep: #060b14;
    --pb-bg-card: rgba(15, 23, 42, 0.72);
    --pb-bg-card-hover: rgba(15, 23, 42, 0.88);
    --pb-border: rgba(255, 255, 255, 0.13);
    --pb-border-highlight: rgba(16, 185, 129, 0.48);
    --pb-text-main: #f8fafc;
    --pb-text-muted: rgba(226, 232, 240, 0.72);
    --pb-font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pb-font-mono: 'JetBrains Mono', monospace;
}

body.light-mode {
    --pb-bg-deep: #f1f5f9;
    --pb-bg-card: rgba(255, 255, 255, 0.88);
    --pb-bg-card-hover: rgba(255, 255, 255, 0.98);
    --pb-border: rgba(15, 23, 42, 0.12);
    --pb-border-highlight: rgba(5, 150, 105, 0.55);
    --pb-text-main: #0f172a;
    --pb-text-muted: #475569;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--pb-font-sans);
    background-color: var(--pb-bg-deep);
    color: var(--pb-text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse 80% 45% at 50% -10%, rgba(16, 185, 129, 0.24), transparent 70%),
        radial-gradient(ellipse 55% 35% at 85% 20%, rgba(59, 130, 246, 0.15), transparent 65%),
        linear-gradient(160deg, rgba(6, 11, 20, 0.88) 0%, rgba(10, 18, 34, 0.82) 50%, rgba(6, 15, 26, 0.93) 100%),
        var(--pb-bg-image, url('/images/courts/court-main-4.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.light-mode {
    background-image:
        radial-gradient(ellipse 80% 45% at 50% -10%, rgba(16, 185, 129, 0.16), transparent 70%),
        linear-gradient(160deg, rgba(241, 245, 249, 0.92) 0%, rgba(248, 250, 252, 0.90) 55%, rgba(226, 232, 240, 0.94) 100%),
        var(--pb-bg-image, url('/images/courts/court-main-4.webp'));
}

/* Stadium Floodlight Volumetric Beams */
.stadium-light-beams {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        conic-gradient(from 165deg at 20% -5%, transparent 0deg, rgba(16, 185, 129, 0.06) 15deg, transparent 32deg),
        conic-gradient(from 165deg at 80% -5%, transparent 0deg, rgba(245, 158, 11, 0.05) 15deg, transparent 32deg);
}

.hub-container {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 1.15rem 3.5rem;
}

/* Top Utility Bar (Lang + Theme + Rust Engine Badge) */
.top-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}

.rust-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-family: var(--pb-font-mono);
    font-size: 0.73rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #e2e8f0;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-mode .rust-status-pill {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.rust-status-pill:hover {
    transform: translateY(-2px);
    border-color: var(--pb-emerald);
    box-shadow: 0 6px 20px var(--pb-emerald-glow);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.utility-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-utility-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--pb-border);
    color: var(--pb-text-main);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.flag-svg {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    overflow: hidden;
}

body.light-mode .btn-utility-pill {
    background: rgba(255, 255, 255, 0.85);
}

.btn-utility-pill.active,
.btn-utility-pill:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--pb-emerald-glow);
}

/* 3D Hero Pedestal Header */
.hero-pedestal-3d {
    position: relative;
    text-align: center;
    padding: 1.85rem 1.5rem 1.5rem;
    border-radius: 26px;
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 48px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    margin-bottom: 1.25rem;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

.hero-pedestal-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, #f59e0b, #10b981, transparent);
}

.logo-3d-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(16, 185, 129, 0.3);
    margin-bottom: 1rem;
    transform: translateZ(25px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-3d-wrapper:hover {
    transform: translateZ(35px) scale(1.03) rotateX(4deg);
}

.logo-3d-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
    color: var(--pb-text-main);
}

.hero-tagline {
    font-size: 0.93rem;
    color: var(--pb-text-muted);
    max-width: 600px;
    margin: 0 auto 0.9rem;
    line-height: 1.5;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-3d-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

body.light-mode .badge-3d-chip {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.badge-3d-chip.gold {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

body.light-mode .badge-3d-chip.gold {
    color: #b45309;
}

/* Spatial Pill Navigation (EpicPadel Style + 3D Elevation) */
.venue-nav-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.55rem;
    border-radius: 20px;
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    backdrop-filter: blur(16px);
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.venue-nav-3d a,
.venue-nav-3d button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.52rem 0.95rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pb-text-muted);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.venue-nav-3d a:hover,
.venue-nav-3d button:hover {
    color: var(--pb-text-main);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.venue-nav-3d a[aria-current="page"],
.venue-nav-3d button[aria-current="page"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow:
        0 6px 18px rgba(16, 185, 129, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.venue-nav-3d .nav-cta-calculator {
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

body.light-mode .venue-nav-3d .nav-cta-calculator {
    color: #b45309;
}

.venue-nav-3d .nav-cta-calculator[aria-current="page"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* 3D Callout Banner for GOR Business & Calculator on Home Tab */
.gor-promo-banner-3d {
    position: relative;
    border-radius: 22px;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1.6rem;
    background:
        radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.24), transparent 55%),
        linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gor-promo-banner-3d:hover {
    transform: translateY(-4px) scale(1.005);
    border-color: #f59e0b;
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.35);
}

/* Category Section & 3D Linktree Cards */
.category-block {
    margin-bottom: 1.65rem;
}

.category-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.35rem;
}

.category-title-3d {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #34d399;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.light-mode .category-title-3d {
    color: #047857;
}

.link-card-3d {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    margin-bottom: 0.78rem;
    border-radius: 18px;
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none !important;
    color: var(--pb-text-main) !important;
    box-shadow:
        0 10px 24px -6px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform-style: preserve-3d;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.link-card-3d:hover {
    transform: translateY(-4px) scale(1.01);
    background: var(--pb-bg-card-hover);
    border-color: var(--pb-border-highlight);
    box-shadow:
        0 18px 36px -8px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(16, 185, 129, 0.2);
}

.icon-cube-3d {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateZ(18px);
    transition: transform 0.3s ease;
}

.link-card-3d:hover .icon-cube-3d {
    transform: translateZ(26px) rotate(-5deg) scale(1.08);
}

.link-body-text {
    flex: 1;
    min-width: 0;
}

.link-heading {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 0.22rem;
    color: var(--pb-text-main);
}

.link-subtext {
    font-size: 0.81rem;
    color: var(--pb-text-muted);
    margin: 0;
    line-height: 1.42;
}

.link-arrow-pill {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pb-border);
    color: var(--pb-text-muted);
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.link-card-3d:hover .link-arrow-pill {
    background: var(--pb-emerald);
    color: #ffffff;
    border-color: transparent;
    transform: translateX(3px);
}

/* ==========================================================================
   3D ISOMETRIC GOR BLUEPRINT & REAL-TIME FINANCIAL CALCULATOR
   ========================================================================== */

.calculator-glass-shell {
    background: var(--pb-bg-card);
    border: 1px solid var(--pb-border);
    border-radius: 26px;
    padding: 1.5rem;
    backdrop-filter: blur(22px);
    box-shadow:
        0 26px 55px -12px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    margin-bottom: 1.5rem;
}

/* 3D Isometric Architectural Stage */
.gor-3d-stage-wrapper {
    position: relative;
    background:
        radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.22), rgba(2, 6, 23, 0.95) 75%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 22px;
    padding: 1.25rem 1rem 1.6rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
}

.gor-3d-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 5;
}

.btn-cam-view {
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cam-view.active,
.btn-cam-view:hover {
    background: #10b981;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.gor-3d-viewport {
    width: 100%;
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1300px;
    padding: 1.5rem 0.5rem;
    cursor: grab;
    user-select: none;
}

.gor-3d-viewport:active {
    cursor: grabbing;
}

.gor-3d-slab {
    position: relative;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid rgba(148, 163, 184, 0.45);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: rotateX(54deg) rotateZ(-28deg) translateZ(0px);
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        -12px 16px 0px #0f172a,
        -14px 18px 0px rgba(16, 185, 129, 0.45),
        -28px 38px 50px rgba(0, 0, 0, 0.75);
}

.gor-3d-slab.view-top {
    transform: rotateX(0deg) rotateZ(0deg) scale(0.95);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.gor-3d-slab.view-front {
    transform: rotateX(72deg) rotateZ(0deg) translateY(-10px);
}

.gor-3d-slab.view-orbit {
    animation: orbitArena3D 14s ease-in-out infinite alternate;
}

@keyframes orbitArena3D {
    0% { transform: rotateX(52deg) rotateZ(-36deg); }
    50% { transform: rotateX(48deg) rotateZ(12deg); }
    100% { transform: rotateX(55deg) rotateZ(36deg); }
}

/* Individual 3D BWF Court inside the GOR Slab */
.court-3d-unit {
    position: relative;
    width: 44px;
    height: 96px;
    background: linear-gradient(180deg, #059669 0%, #047857 50%, #059669 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.court-3d-unit:hover {
    transform: translateZ(12px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(16, 185, 129, 0.65);
}

/* Court Lines (Service boxes & alleys) */
.court-3d-unit::before {
    content: '';
    position: absolute;
    inset: 5px 3px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.court-3d-unit::after {
    content: '';
    position: absolute;
    top: 28%;
    bottom: 28%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

/* 3D Standing Badminton Net */
.court-3d-net {
    position: absolute;
    top: 50%;
    left: -1px;
    right: -1px;
    height: 12px;
    margin-top: -6px;
    transform-origin: bottom center;
    transform: rotateX(-90deg);
    background:
        linear-gradient(to bottom, #ffffff 0 2px, transparent 2px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, rgba(15, 23, 42, 0.35) 1px 3px);
    border-left: 2px solid #f59e0b;
    border-right: 2px solid #f59e0b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
}

.court-3d-number {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--pb-font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    transform: translateZ(2px);
}

.gor-dimension-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.dim-pill {
    font-family: var(--pb-font-mono);
    font-size: 0.76rem;
    padding: 0.32rem 0.78rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.dim-pill strong {
    color: #34d399;
}

/* Interactive Court Count Slider */
.court-slider-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--pb-border);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

body.light-mode .court-slider-box {
    background: rgba(241, 245, 249, 0.9);
}

.form-range-emerald {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
    outline: none;
    cursor: pointer;
}

.court-quick-presets {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.btn-court-preset {
    flex: 1;
    min-width: 36px;
    padding: 0.35rem 0.25rem;
    border-radius: 10px;
    font-family: var(--pb-font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pb-border);
    color: var(--pb-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-court-preset.active,
.btn-court-preset:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--pb-emerald-glow);
    transform: translateY(-2px);
}

/* "THE AHA! MOMENT" — 3D Executive Output Cards */
.aha-output-card-3d {
    position: relative;
    height: 100%;
    border-radius: 22px;
    padding: 1.35rem;
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 14, 26, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 38px -10px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.aha-output-card-3d:hover {
    transform: translateY(-5px);
}

.aha-output-card-3d.card-capex {
    border-top: 3px solid #3b82f6;
}

.aha-output-card-3d.card-profit {
    border-top: 3px solid #10b981;
    background: linear-gradient(155deg, rgba(6, 78, 59, 0.42) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.aha-output-card-3d.card-bep {
    border-top: 3px solid #f59e0b;
    background: linear-gradient(155deg, rgba(120, 53, 15, 0.38) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.aha-metric-value {
    font-family: var(--pb-font-mono);
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.35rem 0;
    color: #ffffff;
}

/* CTA Button "Konsultasi Desain & RAB Real-nya Sekarang" */
.btn-cta-rab-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 14px 32px -6px rgba(16, 185, 129, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none !important;
}

.btn-cta-rab-3d:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 20px 42px -6px rgba(16, 185, 129, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Spatial Responsive Table for 2-10 Courts Comparison */
.table-spatial-wrapper {
    border-radius: 18px;
    border: 1px solid var(--pb-border);
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.75);
}

.table-spatial {
    width: 100%;
    margin-bottom: 0;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.table-spatial thead th {
    background: #0f172a;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.table-spatial tbody td {
    padding: 0.68rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    vertical-align: middle;
}

.table-spatial tbody tr.active-scale-row {
    background: rgba(16, 185, 129, 0.22) !important;
    font-weight: 700;
}

.table-spatial tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

/* WebP Gallery Grid & Anti-Download Protection */
.gallery-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 1rem;
}

.gallery-card-3d {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--pb-border);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-card-3d:hover {
    transform: translateY(-5px);
    border-color: var(--pb-emerald);
}

.gallery-card-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.5s ease;
}

.gallery-card-3d:hover img {
    transform: scale(1.06);
}

.photo-shield-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.2) 45%, transparent 100%);
}

.gallery-caption-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.9rem 1rem;
    z-index: 4;
}

/* Footer & Clickable Version Badge */
.footer-spatial {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pb-border);
    text-align: center;
    font-size: 0.83rem;
    color: var(--pb-text-muted);
}

.btn-version-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    font-family: var(--pb-font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-version-chip:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--pb-emerald-glow);
}

/* Ensure Version Changelog Modal is Always Above Backdrop & Smoothly Scrollable */
.modal-backdrop {
    z-index: 1050 !important;
}

#versionChangelogModal {
    z-index: 1065 !important;
    pointer-events: auto !important;
}

#versionChangelogModal .modal-dialog,
#versionChangelogModal .modal-content,
#versionChangelogModal .modal-body {
    pointer-events: auto !important;
}

#versionChangelogModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#versionChangelogModal .modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}

#versionChangelogModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.55);
    border-radius: 8px;
}

#versionChangelogModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.35rem; }
    .aha-metric-value { font-size: 1.25rem; }
    .court-3d-unit { width: 28px; height: 68px; }
    .gor-3d-slab { gap: 6px; padding: 10px; }
}

