/* ==========================================================================
   UBERLÂNDIA ACADEMY — NOSSA ARENA, NOSSO SONHO
   Visual Identity: Dynamic Sports, Dark Navy, Electric Blue & Cyber Cyan
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --navy-dark: #030814;
    --navy-card: #071329;
    --navy-border: #142B55;
    --blue-vibrant: #0055FF;
    --blue-glow: rgba(0, 85, 255, 0.45);
    --cyan-neon: #00E5FF;
    --cyan-glow: rgba(0, 229, 255, 0.55);
}

body {
    background-color: var(--navy-dark);
    color: #F8FAFC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.font-sport {
    font-family: 'Kanit', sans-serif;
    font-style: italic;
    letter-spacing: -0.02em;
}

/* Stadium Spotlight Atmosphere */
.stadium-lighting {
    background: radial-gradient(circle at 50% 15%, rgba(0, 85, 255, 0.28) 0%, rgba(3, 8, 20, 0.95) 75%),
                radial-gradient(circle at 80% 25%, rgba(0, 229, 255, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 20% 30%, rgba(0, 85, 255, 0.22) 0%, transparent 55%);
}

.stadium-grid {
    background-image: 
        linear-gradient(to right, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Real 3D Bottle Stage (Three.js WebGL Mount) */
.bottle-stage-viewport {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

#bottle-3d-rig canvas {
    outline: none;
    cursor: grab;
    touch-action: pan-y; /* Crucial: allows vertical page scrolling on mobile while enabling horizontal 3D rotation */
}

#bottle-3d-rig canvas:active {
    cursor: grabbing;
}

/* Core Resilient Layout Utilities (offline & CDN independent) */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.bottom-1 { bottom: 0.25rem; }
.bottom-2 { bottom: 0.5rem; }
.bottom-6 { bottom: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-20 { height: 5rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.overflow-hidden { overflow: hidden; }

@media (min-width: 1024px) {
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .lg\:h-screen { height: 100vh !important; }
}

/* Neon Glows & Borders */
.border-cyan-glow {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25), inset 0 0 15px rgba(0, 229, 255, 0.1);
}

.border-blue-glow {
    border-color: rgba(0, 85, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 85, 255, 0.3);
}

.btn-cyan-action {
    background: linear-gradient(135deg, #00F0FF 0%, #0099FF 100%);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cyan-action:hover {
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.75);
    transform: translateY(-2px) scale(1.02);
}

/* Glass Panels */
.glass-panel-navy {
    background: rgba(7, 19, 41, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(20, 43, 85, 0.7);
}

/* Bulletproof Brand & Hero Elements (independent of CDN) */
.nav-logo-img {
    height: 44px !important;
    width: auto !important;
    max-height: 44px !important;
    object-fit: contain;
}

.hero-bottle-img {
    height: 380px !important;
    width: auto !important;
    max-height: 420px !important;
    object-fit: contain;
}

.hero-pedestal-img {
    width: 290px !important;
    height: auto !important;
    max-width: 310px !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #030814;
}
::-webkit-scrollbar-thumb {
    background: #142B55;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00E5FF;
}

/* HTML5 QR Code Scanner Styles */
#qr-reader {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
}

#qr-reader video {
    width: 100% !important;
    height: auto !important;
    border-radius: 1rem;
    object-fit: cover;
}

#qr-reader__scan_region {
    background: transparent !important;
}

#qr-reader__dashboard {
    display: none !important;
}
