/* style.css — Design System Alien/Espacial Glassmorphism */
/* BRO BURGUERS — Lanches Artesanais Intergalácticos */

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

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

:root {
    --color-bg-start: #010106;
    --color-bg-end: #16020b;
    --color-accent: #00ff9d;
    --color-accent-hover: #00d683;
    --color-accent-light: rgba(0, 255, 157, 0.12);
    --color-neon-cyan: #00e5ff;
    --color-neon-purple: #b026ff;
    --color-brasa: #00ff9d;
    --color-brasa-light: rgba(0, 255, 157, 0.12);
    --color-glass: rgba(9, 16, 34, 0.62);
    --color-glass-hover: rgba(15, 26, 52, 0.82);
    --color-surface: rgba(13, 22, 44, 0.92);
    --color-surface-solid: #0d162c;
    --color-glass-border: rgba(0, 255, 157, 0.18);
    --color-text: #e8fbff;
    --color-text-secondary: #9fb3c8;
    --color-text-muted: #5c7186;
    --color-success: #22c55e;
    --color-danger: #ff3b5c;
    --color-warning: #ffd23f;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 44px rgba(0, 0, 0, 0.55);
    --glow-green: 0 0 18px rgba(0, 255, 157, 0.35);
    --transition: all 0.25s ease;
    --font-stack: 'Rajdhani', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Orbitron', var(--font-stack);
}

body {
    position: relative;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background: linear-gradient(160deg, #010106 0%, #0a0512 45%, #16020b 100%);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === GLASSMORPHISM UTILITIES === */
.glass {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === FLOATING BACKGROUND DECORATIONS (intergalactic / action) === */
.floating-items {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Twinkling stars */
.bg-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px 2px rgba(255, 171, 77, 0.8);
    animation: bgTwinkle 3.2s ease-in-out infinite;
    opacity: 0.25;
}

.bg-star.st-1  { top: 8%;   left: 6%;  width: 2px; height: 2px; animation-delay: 0s; }
.bg-star.st-2  { top: 22%;  left: 14%; width: 4px; height: 4px; animation-delay: -0.7s; }
.bg-star.st-3  { top: 12%;  left: 72%; width: 2px; height: 2px; animation-delay: -1.4s; }
.bg-star.st-4  { top: 34%;  left: 88%; width: 4px; height: 4px; animation-delay: -0.3s; }
.bg-star.st-5  { top: 18%;  left: 46%; width: 3px; height: 3px; animation-delay: -2.1s; }
.bg-star.st-6  { top: 48%;  left: 8%;  width: 2px; height: 2px; animation-delay: -1.1s; }
.bg-star.st-7  { top: 58%;  left: 28%; width: 3px; height: 3px; animation-delay: -2.6s; }
.bg-star.st-8  { top: 42%;  left: 62%; width: 2px; height: 2px; animation-delay: -0.9s; }
.bg-star.st-9  { top: 66%;  left: 82%; width: 3px; height: 3px; animation-delay: -1.8s; }
.bg-star.st-10 { top: 74%;  left: 16%; width: 4px; height: 4px; animation-delay: -0.5s; }
.bg-star.st-11 { top: 82%;  left: 52%; width: 2px; height: 2px; animation-delay: -2.3s; }
.bg-star.st-12 { top: 28%;  left: 30%; width: 2px; height: 2px; animation-delay: -1.6s; }
.bg-star.st-13 { top: 52%;  left: 44%; width: 2px; height: 2px; animation-delay: -0.2s; }
.bg-star.st-14 { top: 70%;  left: 68%; width: 3px; height: 3px; animation-delay: -2.9s; }
.bg-star.st-15 { top: 90%;  left: 88%; width: 2px; height: 2px; animation-delay: -1.2s; }
.bg-star.st-16 { top: 38%;  left: 96%; width: 3px; height: 3px; animation-delay: -0.6s; }

@keyframes bgTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* Slow rotating neon rings */
.bg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 140, 0, 0.28);
    animation: bgRingSpin 30s linear infinite;
    opacity: 0.55;
}

.bg-ring.ring-a {
    top: -120px;
    left: -120px;
    width: 340px;
    height: 340px;
    border-color: rgba(176, 38, 255, 0.3);
    animation-duration: 38s;
}

.bg-ring.ring-b {
    bottom: -110px;
    right: -100px;
    width: 280px;
    height: 280px;
    animation-duration: 26s;
}

.bg-ring.ring-a::after,
.bg-ring.ring-b::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-neon-cyan);
    box-shadow: 0 0 14px 4px rgba(0, 229, 255, 0.9);
}

.bg-ring.ring-b::after {
    background: #ff8c00;
    box-shadow: 0 0 14px 4px rgba(255, 140, 0, 0.9);
}

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

/* Fast action comet/laser streaks */
.bg-comet {
    position: absolute;
    height: 2px;
    width: 150px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.85), #ffffff);
    box-shadow: 0 0 14px 3px rgba(255, 140, 0, 0.55);
    opacity: 0;
    animation: cometFly 8s linear infinite;
}

.bg-comet.c-1 { top: 16%; animation-delay: 0s;  animation-duration: 7s; }
.bg-comet.c-2 { top: 38%; animation-delay: -2.5s; animation-duration: 9s; width: 110px; }
.bg-comet.c-3 { top: 62%; animation-delay: -5s;  animation-duration: 6s; width: 190px; }
.bg-comet.c-4 { top: 84%; animation-delay: -1.5s; animation-duration: 10s; width: 130px; }

.bg-comet.c-5 {
    top: 30%;
    background: linear-gradient(90deg, #ffffff, rgba(0, 229, 255, 0.85), transparent);
    box-shadow: 0 0 14px 3px rgba(0, 229, 255, 0.55);
    animation-name: cometFlyBack;
    animation-delay: -4s;
    animation-duration: 8s;
}

@keyframes cometFly {
    0% { transform: translateX(-25vw) translateY(0) rotate(-3deg); opacity: 0; }
    6% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateX(125vw) translateY(22px) rotate(-3deg); opacity: 0; }
}

@keyframes cometFlyBack {
    0% { transform: translateX(125vw) translateY(0) rotate(3deg); opacity: 0; }
    6% { opacity: 1; }
    92% { opacity: 1; }
    100% { transform: translateX(-25vw) translateY(-22px) rotate(3deg); opacity: 0; }
}

/* Slow HUD scanline sweeping the screen */
.bg-scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    height: 16%;
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.05), rgba(255, 140, 0, 0.08), transparent);
    animation: bgScan 9s linear infinite;
}

@keyframes bgScan {
    0% { top: -20%; }
    100% { top: 120%; }
}

/* Dark action vignette + faint bottom grid */
.floating-items::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 55% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.5));
}

/* Subtle decorative nebulas behind content */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 0% 20%, rgba(255, 140, 0, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 80%, rgba(176, 38, 255, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 10%, rgba(255, 140, 0, 0.06) 0%, transparent 70%);
}

/* === INTRO / SPLASH SCREEN === */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 120% 90% at 20% 10%, rgba(255, 140, 0, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 85% 90%, rgba(176, 38, 255, 0.18) 0%, transparent 55%),
        linear-gradient(160deg, #010106 0%, #0a0512 45%, #16020b 100%);
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.intro-screen.intro-burst {
    animation: introExplode 0.55s ease forwards;
}

@keyframes introExplode {
    0% { transform: scale(1); opacity: 1; }
    25% { transform: scale(1.12) brightness(2); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Flash overlay on transition */
.intro-flash {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #ff8c00;
    box-shadow: 0 0 80px 30px rgba(255, 140, 0, 0.8);
    animation: flashPop 0.6s ease forwards;
    pointer-events: none;
}

@keyframes flashPop {
    0% { opacity: 0; }
    18% { opacity: 0.95; }
    100% { opacity: 0; }
}

/* Space background */
.intro-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.intro-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: nebulaDrift 14s ease-in-out infinite alternate;
}

.nebula-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: radial-gradient(circle, rgba(255, 140, 0, 0.30), transparent 70%); }
.nebula-2 { width: 420px; height: 420px; bottom: -120px; right: -100px; background: radial-gradient(circle, rgba(176, 38, 255, 0.34), transparent 70%); animation-delay: -5s; }
.nebula-3 { width: 340px; height: 340px; top: 45%; left: 55%; background: radial-gradient(circle, rgba(255, 45, 85, 0.24), transparent 70%); animation-delay: -9s; }

@keyframes nebulaDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

.intro-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #eaffff;
    box-shadow: 0 0 8px 2px rgba(234, 255, 255, 0.8);
    animation: starTwinkle 2.6s ease-in-out infinite;
}

.star-1 { top: 8%; left: 12%; animation-delay: 0.1s; }
.star-2 { top: 16%; left: 78%; animation-delay: 0.7s; }
.star-3 { top: 28%; left: 30%; animation-delay: 1.3s; width: 2px; height: 2px; }
.star-4 { top: 40%; left: 88%; animation-delay: 0.4s; width: 2px; height: 2px; }
.star-5 { top: 55%; left: 8%; animation-delay: 1.8s; }
.star-6 { top: 68%; left: 68%; animation-delay: 0.9s; width: 2px; height: 2px; }
.star-7 { top: 82%; left: 20%; animation-delay: 2.2s; }
.star-8 { top: 90%; left: 82%; animation-delay: 1.5s; width: 2px; height: 2px; }
.star-9 { top: 6%; left: 48%; animation-delay: 0.3s; width: 2px; height: 2px; }
.star-10 { top: 33%; left: 62%; animation-delay: 2.4s; }
.star-11 { top: 74%; left: 44%; animation-delay: 1.1s; width: 2px; height: 2px; }
.star-12 { top: 48%; left: 42%; animation-delay: 0.6s; }
.star-13 { top: 12%; left: 92%; animation-delay: 1.9s; width: 2px; height: 2px; }
.star-14 { top: 86%; left: 5%; animation-delay: 0.2s; width: 2px; height: 2px; }
.star-15 { top: 60%; left: 25%; animation-delay: 2.6s; }
.star-16 { top: 24%; left: 5%; animation-delay: 1.6s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.25); }
}

/* Floating alien emojis */
.intro-deco {
    position: absolute;
    font-size: 2.6rem;
    opacity: 0;
    filter: drop-shadow(0 0 12px rgba(0, 255, 157, 0.45));
    animation: introFloatIn 0.8s ease forwards, introFloat 6s ease-in-out infinite;
}

@keyframes introFloatIn {
    0% { transform: translateY(70px) scale(0) rotate(-30deg); opacity: 0; }
    100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.32; }
}

@keyframes introFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-34px) rotate(14deg); }
    50% { transform: translateY(-16px) rotate(-9deg); }
    75% { transform: translateY(-40px) rotate(7deg); }
}

.intro-deco.deco-1 { top: 6%; left: 8%; animation-delay: 0.4s; font-size: 3.2rem; }
.intro-deco.deco-2 { top: 14%; right: 9%; animation-delay: 0.9s; font-size: 2.6rem; }
.intro-deco.deco-3 { bottom: 18%; left: 4%; animation-delay: 1.3s; font-size: 2.9rem; }
.intro-deco.deco-4 { top: 48%; right: 5%; animation-delay: 1.8s; font-size: 2.4rem; }
.intro-deco.deco-5 { top: 4%; left: 42%; animation-delay: 0.6s; font-size: 2.6rem; }
.intro-deco.deco-6 { bottom: 7%; right: 16%; animation-delay: 1.1s; font-size: 3rem; }
.intro-deco.deco-7 { bottom: 26%; right: 38%; animation-delay: 1.5s; font-size: 2.4rem; }
.intro-deco.deco-8 { top: 30%; left: 46%; animation-delay: 2.1s; font-size: 2.2rem; }

/* Burst phase — emojis fly outward */
.intro-burst .intro-deco {
    animation: introBurst 0.6s ease forwards !important;
}

@keyframes introBurst {
    0% { opacity: 0.32; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--burst-x, 220px), var(--burst-y, -220px)) scale(1.6) rotate(200deg); }
}

.intro-deco.deco-1 { --burst-x: -320px; --burst-y: -260px; }
.intro-deco.deco-2 { --burst-x: 300px; --burst-y: -220px; }
.intro-deco.deco-3 { --burst-x: -270px; --burst-y: 320px; }
.intro-deco.deco-4 { --burst-x: 340px; --burst-y: 120px; }
.intro-deco.deco-5 { --burst-x: 120px; --burst-y: -360px; }
.intro-deco.deco-6 { --burst-x: 220px; --burst-y: 300px; }
.intro-deco.deco-7 { --burst-x: -200px; --burst-y: 260px; }
.intro-deco.deco-8 { --burst-x: 40px; --burst-y: -320px; }

/* Center content */
.intro-content {
    text-align: center;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Shield wrap + charging rings */
.intro-shield-wrap {
    position: relative;
    width: min(62vw, 300px);
    margin-bottom: 1.4rem;
}

/* Dark menacing vignette around the whole intro */
.intro-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse 55% 55% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6));
}

/* === ACTION SHIPS: alien attack fly-bys === */
.intro-ship {
    position: absolute;
    z-index: 3;
    font-size: 2.6rem;
    line-height: 1;
    opacity: 0;
    filter: drop-shadow(0 0 14px rgba(255, 171, 77, 0.95));
    text-shadow: var(--trail-x) var(--trail-y) 0 rgba(255, 171, 77, 0.55),
                 calc(var(--trail-x) * 2) calc(var(--trail-y) * 2) 0 rgba(255, 171, 77, 0.3),
                 calc(var(--trail-x) * 3.4) calc(var(--trail-y) * 3.4) 0 rgba(255, 171, 77, 0.15);
    animation: shipFly 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

.ship-1 { --sx0: -20vw;  --sy0: 10vh; --sx1: 90vw;  --sy1: 16vh; --sx2: 112vw; --sy2: 12vh; --sr0: 8deg;  --sr1: 4deg;  --sr2: 2deg;  --wob-x: -4vw; --wob-y: -5vh; --trail-x: -18px; --trail-y: -3px; animation-delay: 0.2s;  animation-duration: 2.3s; }
.ship-2 { --sx0: 115vw;  --sy0: 30vh; --sx1: 20vw;  --sy1: 26vh; --sx2: -20vw; --sy2: 30vh; --sr0: -8deg; --sr1: -4deg; --sr2: -2deg; --wob-x: 4vw;  --wob-y: -4vh; --trail-x: 18px;  --trail-y: -3px; animation-delay: 0.7s;  animation-duration: 2.6s; }
.ship-3 { --sx0: -15vw;  --sy0: -12vh; --sx1: 70vw;  --sy1: 40vh; --sx2: 112vw; --sy2: 70vh; --sr0: 22deg; --sr1: 14deg; --sr2: 8deg; --wob-x: -5vw; --wob-y: 6vh; --trail-x: -22px; --trail-y: -12px; animation-delay: 1.1s; animation-duration: 2.5s; font-size: 3.2rem; }
.ship-4 { --sx0: 115vw;  --sy0: 85vh; --sx1: 22vw;  --sy1: 40vh; --sx2: -18vw; --sy2: 20vh; --sr0: 20deg; --sr1: 12deg; --sr2: 6deg; --wob-x: 5vw;  --wob-y: 5vh; --trail-x: 24px;  --trail-y: -10px; animation-delay: 1.6s; animation-duration: 2.8s; }
.ship-5 { --sx0: -22vw;  --sy0: 62vh; --sx1: 78vw;  --sy1: 58vh; --sx2: 110vw; --sy2: 60vh; --sr0: -6deg; --sr1: -3deg; --sr2: -2deg; --wob-x: -3vw; --wob-y: -6vh; --trail-x: -20px; --trail-y: 4px; animation-delay: 2.1s;  animation-duration: 2.4s; font-size: 3.2rem; }
.ship-6 { --sx0: 110vw;  --sy0: 78vh; --sx1: 25vw;  --sy1: 82vh; --sx2: -18vw; --sy2: 84vh; --sr0: -10deg; --sr1: -6deg; --sr2: -3deg; --wob-x: 4vw;  --wob-y: 4vh; --trail-x: 18px;  --trail-y: 4px; animation-delay: 2.6s;  animation-duration: 2.7s; }

@keyframes shipFly {
    0% { opacity: 0; transform: translate(var(--sx0), var(--sy0)) rotate(var(--sr0)) scale(0.5); }
    6% { opacity: 1; }
    38% { transform: translate(calc((var(--sx1) + var(--sx0)) / 2 + var(--wob-x, 0px)), calc((var(--sy1) + var(--sy0)) / 2 + var(--wob-y, 0px))) rotate(calc((var(--sr0) + var(--sr1)) / 2)) scale(1); }
    78% { opacity: 1; transform: translate(var(--sx1), var(--sy1)) rotate(var(--sr1)) scale(1.12); }
    86% { transform: translate(var(--sx1), var(--sy1)) rotate(calc(var(--sr1) - 9deg)) scale(1.03); }
    93% { transform: translate(var(--sx1), var(--sy1)) rotate(calc(var(--sr1) + 7deg)) scale(1.08); }
    100% { opacity: 0; transform: translate(var(--sx2), var(--sy2)) rotate(var(--sr2)) scale(1.2); }
}

/* === LASER BOLTS converging on the logo === */
.intro-laser {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: #ff8c00;
    box-shadow: 0 0 8px 2px rgba(255, 140, 0, 0.9), 0 0 22px 8px rgba(255, 140, 0, 0.5);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    animation: laserShot 1.1s ease-out infinite;
}

.laser-1 { --l-sx: -46vw; --l-sy: -34vh; animation-delay: 0.3s; animation-duration: 1.0s; }
.laser-2 { --l-sx: 48vw;  --l-sy: -30vh; animation-delay: 0.8s; animation-duration: 1.2s; }
.laser-3 { --l-sx: -40vw; --l-sy: 36vh;  animation-delay: 1.3s; animation-duration: 1.0s; }
.laser-4 { --l-sx: 44vw;  --l-sy: 32vh;  animation-delay: 1.9s; animation-duration: 1.1s; }
.laser-5 { --l-sx: -50vw; --l-sy: 6vh;   animation-delay: 2.4s; animation-duration: 1.3s; }
.laser-6 { --l-sx: 52vw;  --l-sy: -6vh;  animation-delay: 3.0s; animation-duration: 1.0s; }
.laser-7 { --l-sx: -30vw; --l-sy: -48vh; animation-delay: 3.5s; animation-duration: 1.2s; }
.laser-8 { --l-sx: 30vw;  --l-sy: 48vh;  animation-delay: 4.1s; animation-duration: 1.0s; }

@keyframes laserShot {
    0% { opacity: 0; transform: translate(var(--l-sx), var(--l-sy)) scale(0.4); }
    10% { opacity: 1; }
    72% { opacity: 1; transform: translate(calc(var(--l-sx) * 0.22), calc(var(--l-sy) * 0.22)) scale(1.15); }
    100% { opacity: 0; transform: translate(0, 0) scale(1.8); }
}

/* === CHARGING ENERGY CORE at the center === */
.intro-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe6c4 0%, #ff8c00 45%, rgba(255, 140, 0, 0) 70%);
    box-shadow: 0 0 40px 12px rgba(255, 140, 0, 0.7);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    animation: coreCharge 3s ease-in-out forwards;
}

@keyframes coreCharge {
    0%, 6% { opacity: 0; transform: scale(0.3); }
    20% { opacity: 0.8; transform: scale(0.8); }
    55% { opacity: 0.9; transform: scale(1.2); }
    84% { opacity: 1; transform: scale(1.7); box-shadow: 0 0 70px 30px rgba(255, 140, 0, 0.9); }
    100% { opacity: 0; transform: scale(2.6); }
}

/* === MEGA BEAM blast right before the logo assembles === */
.intro-mega {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 50%;
    width: 6px;
    transform: translateX(-50%) scaleY(0);
    background: linear-gradient(180deg, transparent, #ffffff, #ff8c00, #ffffff, transparent);
    box-shadow: 0 0 30px 8px rgba(255, 140, 0, 0.9);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    animation: megaFire 0.7s ease-out 3.3s forwards;
}

@keyframes megaFire {
    0% { opacity: 0; transform: translateX(-50%) scaleY(0); }
    40% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    70% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    100% { opacity: 0; transform: translateX(-50%) scaleY(1); }
}

/* White-hot flash on impact */
.intro-boom {
    position: absolute;
    inset: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 170, 70, 0.6) 40%, transparent 70%);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: boomFlash 0.5s ease-out 3.3s forwards;
}

@keyframes boomFlash {
    0% { opacity: 0; transform: scale(0.2); }
    30% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.6); }
}

/* Camera shake during the mega beam */
.intro-shield-wrap {
    animation: introShake 0.8s ease-in-out 3.3s;
}

@keyframes introShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-7px, 3px); }
    20% { transform: translate(8px, -4px); }
    30% { transform: translate(-9px, -3px); }
    40% { transform: translate(7px, 5px); }
    50% { transform: translate(-6px, 2px); }
    60% { transform: translate(5px, -4px); }
    70% { transform: translate(-4px, 2px); }
    80% { transform: translate(3px, -2px); }
    90% { transform: translate(-2px, 1px); }
}

/* Smoke cloud after the blast — dark trevosa reveal */
.intro-smoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 28, 40, 0.9) 0%, rgba(20, 10, 22, 0.5) 45%, transparent 70%);
    filter: blur(14px);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: smokeRise 2.4s ease-out forwards;
}

.smoke-1 { animation-delay: 3.5s; --sm-x: -50px; --sm-y: -90px; }
.smoke-2 { animation-delay: 4.1s; --sm-x: 60px; --sm-y: -60px; }
.smoke-3 { animation-delay: 4.6s; --sm-x: 10px; --sm-y: -110px; }

@keyframes smokeRise {
    0% { opacity: 0; transform: translate(0, 20px) scale(0.5); }
    30% { opacity: 0.8; }
    100% { opacity: 0; transform: translate(var(--sm-x, -30px), var(--sm-y, -70px)) scale(2.2); }
}

/* Sound toggle button on intro */
.intro-sound-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 1002;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 8, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.intro-sound-btn:hover {
    transform: scale(1.08);
    border-color: rgba(255, 140, 0, 0.65);
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.5);
}

.intro-sound-btn.playing {
    border-color: rgba(255, 140, 0, 0.7);
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.55);
}

/* Outer rotating charge ring (neon arc) */
.intro-charge-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff8c00;
    border-right-color: rgba(255, 140, 0, 0.5);
    border-bottom-color: rgba(255, 140, 0, 0.25);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.9));
    opacity: 0;
    animation: chargeSpin 1.6s linear infinite, chargeFadeIn 0.6s ease 3.1s forwards;
}

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

@keyframes chargeFadeIn {
    to { opacity: 1; }
}

/* Slow dashed orbit ring with glowing satellites */
.intro-orbit {
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 140, 0, 0.3);
    opacity: 0;
    animation: orbitSpin 16s linear infinite, chargeFadeIn 1s ease 3.2s forwards;
    pointer-events: none;
}

.intro-orbit::before,
.intro-orbit::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.intro-orbit::before {
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    background: #ff8c00;
    box-shadow: 0 0 16px 5px rgba(255, 140, 0, 0.95);
}

.intro-orbit::after {
    bottom: 6px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: #ffab4d;
    box-shadow: 0 0 14px 4px rgba(255, 171, 77, 0.95);
}

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

/* Logo assembling container — round shield */
.intro-shield {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 140, 0, 0.6);
    box-shadow:
        0 0 0 rgba(255, 140, 0, 0),
        0 0 26px rgba(255, 140, 0, 0.35),
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 40px rgba(255, 140, 0, 0.15);
}

/* Glow sparks that burst when assembly completes */
.intro-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px 4px rgba(255, 140, 0, 0.95);
    opacity: 0;
    z-index: 6;
    animation: sparkBurst 0.7s ease-out 5.05s forwards;
    pointer-events: none;
}

.intro-spark.s1 { --sx: -130px; --sy: -95px; }
.intro-spark.s2 { --sx: 115px; --sy: -70px; }
.intro-spark.s3 { --sx: -95px; --sy: 115px; }
.intro-spark.s4 { --sx: 105px; --sy: 100px; }
.intro-spark.s5 { --sx: -150px; --sy: 15px; }
.intro-spark.s6 { --sx: 140px; --sy: 25px; }

@keyframes sparkBurst {
    0% { opacity: 0; transform: translate(0, 0) scale(0.3); }
    25% { opacity: 1; transform: translate(calc(var(--sx, 0px) * 0.3), calc(var(--sy, 0px) * 0.3)) scale(1); }
    100% { opacity: 0; transform: translate(var(--sx, 120px), var(--sy, -120px)) scale(0.2); }
}

/* Puzzle pieces — slow-motion cinematic assembly */
.intro-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: translate(var(--px, -200px), var(--py, -240px)) rotate(var(--pr, -30deg)) scale(0.7);
    filter: blur(14px) brightness(0.3) saturate(0.3);
    animation: pieceAssemble 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

.intro-piece:nth-child(1) { clip-path: inset(0 0 87.5% 0); animation-delay: 3.35s; --px: -42vw; --py: -58vh; --pr: -52deg; --drift-x: 3vw; }
.intro-piece:nth-child(2) { clip-path: inset(12.5% 0 75% 0); animation-delay: 3.47s; --px: 46vw; --py: -64vh; --pr: 38deg; --drift-x: -3vw; }
.intro-piece:nth-child(3) { clip-path: inset(25% 0 62.5% 0); animation-delay: 3.59s; --px: -58vw; --py: -6vh; --pr: 30deg; --drift-x: 4vw; }
.intro-piece:nth-child(4) { clip-path: inset(37.5% 0 50% 0); animation-delay: 3.71s; --px: 62vw; --py: 12vh; --pr: -42deg; --drift-x: -4vw; }
.intro-piece:nth-child(5) { clip-path: inset(50% 0 37.5% 0); animation-delay: 3.83s; --px: -60vw; --py: 48vh; --pr: 48deg; --drift-x: 3vw; }
.intro-piece:nth-child(6) { clip-path: inset(62.5% 0 25% 0); animation-delay: 3.95s; --px: 58vw; --py: 52vh; --pr: -34deg; --drift-x: -3vw; }
.intro-piece:nth-child(7) { clip-path: inset(75% 0 12.5% 0); animation-delay: 4.07s; --px: 12vw; --py: 64vh; --pr: 24deg; --drift-x: 2vw; }
.intro-piece:nth-child(8) { clip-path: inset(87.5% 0 0 0); animation-delay: 4.19s; --px: 44vw; --py: 68vh; --pr: -60deg; --drift-x: -3vw; }

@keyframes pieceAssemble {
    0% {
        opacity: 0;
        transform: translate(var(--px, -200px), var(--py, -240px)) rotate(var(--pr, -30deg)) scale(0.7);
        filter: blur(14px) brightness(0.25) saturate(0.25);
    }
    18% {
        opacity: 1;
        transform: translate(calc(var(--px, -200px) * 0.72), calc(var(--py, -240px) * 0.8)) rotate(calc(var(--pr, -30deg) * 0.85)) scale(0.85);
        filter: blur(8px) brightness(1.1) saturate(0.8);
    }
    40% {
        transform: translate(calc(var(--px, -200px) * 0.48 + var(--drift-x, 0px)), calc(var(--py, -240px) * 0.52 - 16px)) rotate(calc(var(--pr, -30deg) * 0.5)) scale(0.95);
        filter: blur(4px) brightness(1.5) saturate(1.2);
    }
    62% {
        transform: translate(calc(var(--px, -200px) * 0.2 - var(--drift-x, 0px)), calc(var(--py, -240px) * 0.26 + 12px)) rotate(calc(var(--pr, -30deg) * 0.22)) scale(1.02);
        filter: blur(0) brightness(1.75) saturate(1.5);
    }
    82% {
        transform: translate(0, 0) rotate(0deg) scale(1.06);
    }
    92% {
        transform: translate(0, 0) rotate(0deg) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        filter: blur(0) brightness(1) saturate(1);
    }
}

/* Energy shockwaves after full assembly */
.intro-energy-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #ff8c00;
    opacity: 0;
    pointer-events: none;
    animation: energyPulse 1.4s ease-out 5.1s infinite;
}

@keyframes energyPulse {
    0% { transform: scale(0.94); opacity: 0.9; box-shadow: 0 0 30px 8px rgba(255, 140, 0, 0.8); }
    100% { transform: scale(1.6); opacity: 0; box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* Second inner shockwave ring */
.intro-shield::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #ffab4d;
    opacity: 0;
    pointer-events: none;
    animation: energyPulse 1.4s ease-out 5.2s infinite;
}

/* Scan line sweeping across the shield while pieces land */
.intro-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff8c00, #ffffff, #ff8c00, transparent);
    box-shadow: 0 0 18px 5px rgba(255, 140, 0, 0.85);
    opacity: 0;
    animation: scanPass 2.6s ease-in-out 3.5s infinite;
    pointer-events: none;
}

@keyframes scanPass {
    0% { top: -4%; opacity: 0; }
    5% { opacity: 1; }
    47% { opacity: 1; }
    53% { opacity: 0; }
    100% { top: 104%; opacity: 0; }
}

/* Shine sweep across the finished logo */
.intro-shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -80%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), rgba(255, 140, 0, 0.5), transparent);
    transform: rotate(18deg);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: shineSweep 1.3s ease-out 5.1s forwards;
}

@keyframes shineSweep {
    0% { left: -80%; opacity: 0; }
    30% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* Dramatic glow aura around shield after full assembly */
.intro-shield-wrap::after {
    content: '';
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.4) 0%, transparent 70%);
    opacity: 0;
    animation: shieldGlow 0.8s ease 5s forwards, shieldGlowPulse 1.6s ease-in-out 5.2s infinite;
    pointer-events: none;
}

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

@keyframes shieldGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.intro-burst .intro-content {
    animation: introContentOut 0.4s ease forwards !important;
}

@keyframes introContentOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.4); opacity: 0; }
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 900;
    color: #e8fbff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-50px);
    animation: titleDrop 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 3.8s forwards;
    text-shadow: 0 0 24px rgba(255, 140, 0, 0.55);
}

.intro-title span {
    color: #ff8c00;
    display: inline-block;
    animation: titleGlow 2s ease-in-out 4.3s infinite;
}

@keyframes titleDrop {
    0% { opacity: 0; transform: translateY(-60px) scale(1.4); letter-spacing: 0.6em; filter: blur(8px); }
    60% { opacity: 1; transform: translateY(6px) scale(1); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 18px rgba(255, 140, 0, 0.55); }
    50% { text-shadow: 0 0 42px rgba(255, 140, 0, 1); }
}

.intro-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.34em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: subtitleFade 0.8s ease 4.4s forwards;
}

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

.intro-loader {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.intro-loader span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px 2px rgba(0, 255, 157, 0.7);
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.intro-loader span:nth-child(2) { animation-delay: 0.2s; }
.intro-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: translateY(0) scale(0.5); opacity: 0.3; }
    40% { transform: translateY(-12px) scale(1); opacity: 1; }
}

/* === HEADER === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Big centered logo hero with the login-screen finale effects */
.app-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1rem 0.25rem;
}

.app-logo-wrap {
    position: relative;
    width: min(52vw, 240px);
    height: min(52vw, 240px);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 140, 0, 0.65);
    box-shadow:
        0 0 0 rgba(255, 140, 0, 0),
        0 0 24px rgba(255, 140, 0, 0.4),
        0 14px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 140, 0, 0.15);
    animation: authLogoPulse 3s ease-in-out infinite;
}

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

.app-charge-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff8c00;
    border-right-color: rgba(255, 140, 0, 0.5);
    border-bottom-color: rgba(255, 140, 0, 0.25);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.9));
    animation: chargeSpin 3.2s linear infinite;
    pointer-events: none;
}

.app-orbit {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 140, 0, 0.3);
    animation: orbitSpin 18s linear infinite;
    pointer-events: none;
}

.app-orbit::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff8c00;
    box-shadow: 0 0 16px 5px rgba(255, 140, 0, 0.95);
}

.app-orbit::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffab4d;
    box-shadow: 0 0 14px 4px rgba(255, 171, 77, 0.95);
}

.app-energy-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #ff8c00;
    opacity: 0;
    pointer-events: none;
    animation: energyPulse 2.6s ease-out infinite;
}

.app-energy-ring.app-ring-2 {
    border-color: rgba(0, 229, 255, 0.8);
    animation-delay: 1.3s;
}

.app-shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -80%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), rgba(255, 140, 0, 0.5), transparent);
    transform: rotate(18deg);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: shineSweep 3.4s ease-out 1.2s infinite;
}

.app-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px 4px rgba(255, 140, 0, 0.95);
    opacity: 0;
    animation: authSparkle 2.8s ease-in-out infinite;
    pointer-events: none;
}

.app-spark.r1 { top: -12px; left: 30%; animation-delay: 0s; }
.app-spark.r2 { bottom: -6px; left: 14%; animation-delay: 0.7s; width: 5px; }
.app-spark.r3 { top: 22%; right: -14px; animation-delay: 1.4s; }

.cart-btn {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-btn:hover, .cart-btn:focus-visible {
    background: var(--color-glass-hover);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cart-badge.visible {
    transform: scale(1);
}

/* === CATEGORIES FILTER === */
.categories {
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-glass-border);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover, .category-btn:focus-visible {
    background: var(--color-glass-hover);
    color: var(--color-text);
}

.category-btn.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0, 255, 157, 0.35);
}

/* === PRODUCT GRID === */
.products-grid {
    padding: 0 0.75rem 2rem;
}

.products-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .products-grid {
        padding: 0 1.25rem 2rem;
    }
    .products-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* === CATEGORY SECTION HEADER === */
.category-section-header {
    padding: 1rem 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.category-section-emoji {
    font-size: 1.4rem;
}

@media (max-width: 480px) {
    .category-section-header {
        font-size: 0.95rem;
        padding: 0.75rem 0 0.5rem;
        margin-bottom: 0.5rem;
    }
    .category-section-emoji {
        font-size: 1.2rem;
    }
}

.product-card {
    padding: 1rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-card:active {
    transform: scale(0.97);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.10), rgba(176, 38, 255, 0.12));
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-card:active .product-image {
    transform: scale(1.01);
}

.product-category {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    flex-grow: 1;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    transition: max-height 0.25s ease;
    position: relative;
}
.product-desc.expanded {
    max-height: none;
}
.desc-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
    text-align: left;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.15s;
    user-select: none;
}
.desc-toggle:hover {
    opacity: 1;
    text-decoration: underline;
}

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

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-accent);
}

.add-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 255, 157, 0.35);
}

.add-btn:hover, .add-btn:focus-visible {
    background: var(--color-accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0, 255, 157, 0.5);
}

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

.add-btn.added {
    background: var(--color-success);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    animation: pulse 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (max-width: 480px) {
    .product-card {
        padding: 0.7rem 0.55rem;
    }
    .product-image {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    .product-image::after {
        display: none;
    }
    .product-name {
        font-size: 0.8rem;
    }
    .product-desc {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
        max-height: 2.6em;
    }
    .product-footer {
        flex-wrap: nowrap;
    }
    .product-price {
        font-size: 1rem;
    }
    .add-btn {
        padding: 0.4rem 0.55rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
}

/* === OVERLAY & MODALS === */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === CART SIDEBAR === */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(90vw, 420px);
    z-index: 300;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-surface);
    border-left: 1px solid var(--color-glass-border);
    box-shadow: -4px 0 20px rgba(0,0,0,0.06);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-glass-border);
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
    line-height: 1;
}

.close-btn:hover {
    color: var(--color-text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-glass-border) transparent;
}

.cart-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem 1rem;
    font-size: 0.9rem;
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-glass-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--color-glass-hover);
}

.qty-value {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: var(--transition);
}

.remove-btn:hover {
    opacity: 1;
}

.cart-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-glass-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-total-value {
    color: var(--color-accent);
    font-size: 1.3rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-neon-cyan));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.55);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === CHECKOUT MODAL === */
/* Delivery planets (loose, floating over the background) */
.delivery-map-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.delivery-map-visual {
    position: relative;
    width: min(46vw, 260px);
    height: 92px;
}

/* Start planet */
.map-planet {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.map-planet-start {
    left: 16%;
    background: radial-gradient(circle at 35% 30%, #a95bff, #4a1d99 70%);
    box-shadow: 0 0 16px 5px rgba(157, 77, 255, 0.7);
    animation: planetFloat 3.6s ease-in-out infinite;
}

.map-planet-dest {
    left: 84%;
    background: radial-gradient(circle at 35% 30%, #ff9d6b, #c23a1e 70%);
    box-shadow: 0 0 16px 5px rgba(255, 138, 92, 0.7);
    animation: planetFloat 3.6s ease-in-out 1.8s infinite;
}

@keyframes planetFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-4px); }
}

/* Planet rings */
.map-planet-start::after,
.map-planet-dest::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%) rotate(-18deg);
}

.map-planet-dest::after {
    transform: translate(-50%, -50%) rotate(16deg);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Teleport beam between planets */
.map-teleport-beam {
    position: absolute;
    top: 50%;
    left: 24%;
    width: 52%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(157, 77, 255, 0), #00e5ff 50%, rgba(255, 138, 92, 0));
    box-shadow: 0 0 12px 3px rgba(0, 229, 255, 0.55);
    animation: mapBeamShimmer 2.4s ease-in-out infinite;
}

@keyframes mapBeamShimmer {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Energy pulse teleporting planet to planet */
.map-teleport-pulse {
    position: absolute;
    top: 50%;
    left: 22%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 0 12px 6px rgba(0, 229, 255, 0.9), 0 0 30px 12px rgba(157, 77, 255, 0.5);
    animation: mapTeleport 2.6s ease-in-out infinite;
}

.map-teleport-pulse-2 {
    width: 9px;
    height: 9px;
    animation-delay: 1.3s;
    box-shadow: 0 0 10px 5px rgba(157, 77, 255, 0.9), 0 0 26px 10px rgba(0, 229, 255, 0.4);
}

@keyframes mapTeleport {
    0% { left: 20%; opacity: 0.1; transform: translate(-50%, -50%) scale(0.6); }
    12% { opacity: 1; }
    50% { left: 50%; transform: translate(-50%, -50%) scale(1); }
    88% { opacity: 1; }
    100% { left: 82%; opacity: 0.1; transform: translate(-50%, -50%) scale(0.6); }
}

/* Arrival warp ring at the destination planet */
.map-warp {
    position: absolute;
    top: 50%;
    left: 84%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.8);
    transform: translate(-50%, -50%);
    animation: mapWarp 2s ease-out infinite;
}

@keyframes mapWarp {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

.delivery-map-info {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.delivery-map-info.aberto {
    color: #22c55e;
}

.delivery-map-info.fechado {
    color: #ef4444;
}

/* Free delivery callout below the hero */
.free-delivery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.35rem auto 0.85rem;
    padding: 0.5rem 1.2rem;
    width: fit-content;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 255, 157, 0.35);
    background: rgba(0, 255, 157, 0.06);
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 4.5vw, 1.3rem);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-shadow: 0 0 18px rgba(0, 255, 157, 0.6);
    animation: freeDeliveryPulse 2s ease-in-out infinite;
}

@keyframes freeDeliveryPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 157, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 24px rgba(0, 255, 157, 0.5); transform: scale(1.04); }
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: min(95vw, 480px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    scrollbar-width: auto;
    scrollbar-color: var(--color-accent) var(--color-glass);
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--color-glass);
    border-radius: 5px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 5px;
    border: 2px solid var(--color-glass);
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.18);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

/* Toggle entrega */
.toggle-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-glass-border);
}

.toggle-option {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-glass);
    color: var(--color-text-secondary);
    border: none;
}

.toggle-option.active {
    background: var(--color-accent);
    color: white;
}

/* Radio buttons pagamento */
.radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 80px;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    display: block;
    padding: 0.65rem 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-glass-border);
    background: var(--color-glass);
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.radio-option input:checked + label {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.radio-option input:focus-visible + label {
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.4);
}

/* Order summary in checkout */
.order-summary {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    margin-bottom: 1.25rem;
}

.order-summary-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.3rem 0;
    color: var(--color-text-secondary);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-glass-border);
    color: var(--color-accent);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-neon-cyan));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.55);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === SUCCESS SCREEN === */
.success-screen {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    text-align: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-screen.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-success), #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}

.success-icon svg {
    width: 50px;
    height: 50px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkDraw 0.6s 0.3s ease forwards;
}

@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-order-id {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.success-message {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 300px;
}

.new-order-btn {
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-neon-cyan));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.new-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 157, 0.55);
}

/* === LOADING SPINNER === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 600;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: var(--color-success); }
.toast.error { border-color: var(--color-danger); }

/* === ACCESSIBILITY === */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .products-grid {
        padding: 0 2rem 2rem;
    }
    .products-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }

    .categories {
        padding: 1.25rem 2rem;
    }

    .header {
        padding: 1rem 2rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        max-width: 1200px;
        margin: 0 auto;
    }
    .products-grid-inner {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .categories {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* === AUTHENTICATION SCREEN === */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    background: transparent;
    position: relative;
    z-index: 1;
}
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 120% 90% at 20% 10%, rgba(255, 140, 0, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 85% 90%, rgba(176, 38, 255, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 55% 55% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
}
.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    background: rgba(8, 6, 18, 0.72);
    border-color: rgba(255, 140, 0, 0.22);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 140, 0, 0.12);
}
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo {
    font-size: 3rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.auth-shield-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.1rem;
}
.auth-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(255, 140, 0, 0.65);
    box-shadow:
        0 0 0 rgba(255, 140, 0, 0),
        0 0 30px rgba(255, 140, 0, 0.4),
        0 18px 50px rgba(0, 0, 0, 0.55),
        inset 0 0 34px rgba(255, 140, 0, 0.15);
    animation: authLogoPulse 3s ease-in-out infinite;
}
.auth-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes authLogoPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(255, 140, 0, 0.3), inset 0 0 26px rgba(255, 140, 0, 0.12); }
    50% { box-shadow: 0 0 55px rgba(255, 140, 0, 0.7), inset 0 0 40px rgba(255, 140, 0, 0.2); }
}

/* Rotating charge arc (outer) */
.auth-charge-ring {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff8c00;
    border-right-color: rgba(255, 140, 0, 0.5);
    border-bottom-color: rgba(255, 140, 0, 0.25);
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.9));
    animation: chargeSpin 3.2s linear infinite;
    pointer-events: none;
}

/* Dashed orbit with glowing satellites */
.auth-orbit {
    position: absolute;
    inset: -36px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 140, 0, 0.3);
    animation: orbitSpin 18s linear infinite;
    pointer-events: none;
}
.auth-orbit::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff8c00;
    box-shadow: 0 0 16px 5px rgba(255, 140, 0, 0.95);
}
.auth-orbit::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: -8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffab4d;
    box-shadow: 0 0 14px 4px rgba(255, 171, 77, 0.95);
}

/* Pulsing energy shockwaves (finale reveal effect) */
.auth-energy-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #ff8c00;
    opacity: 0;
    pointer-events: none;
    animation: energyPulse 2.6s ease-out infinite;
}
.auth-energy-ring.auth-ring-2 {
    border-color: rgba(0, 229, 255, 0.8);
    animation-delay: 1.3s;
}

/* Periodic shine sweep across the logo */
.auth-shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -80%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), rgba(255, 140, 0, 0.5), transparent);
    transform: rotate(18deg);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: shineSweep 3.4s ease-out 1.2s infinite;
}

/* Twinkling sparks around the logo */
.auth-spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px 4px rgba(255, 140, 0, 0.95);
    opacity: 0;
    animation: authSparkle 2.8s ease-in-out infinite;
    pointer-events: none;
}
.auth-spark.p1 { top: -12px; left: 30%; animation-delay: 0s; }
.auth-spark.p2 { bottom: -6px; left: 16%; animation-delay: 0.7s; width: 5px; }
.auth-spark.p3 { top: 22%; right: -14px; animation-delay: 1.4s; }
.auth-spark.p4 { bottom: 18%; right: -8px; animation-delay: 2.1s; width: 5px; }

@keyframes authSparkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50% { opacity: 1; transform: scale(1.2); }
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: #e8fbff;
    text-shadow: 0 0 22px rgba(255, 140, 0, 0.5);
}
.auth-title span {
    color: #ff8c00;
    text-shadow: 0 0 18px rgba(255, 140, 0, 0.8);
}
.auth-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.auth-toggle a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-toggle a:hover {
    text-decoration: underline;
}

/* === FORM GRID === */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid .full-width {
        grid-column: span 2;
    }
}

/* === APP LAYOUT === */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}
.app-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 250;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: var(--transition);
    background: var(--color-surface);
    border-right: 1px solid var(--color-glass-border);
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
}
.app-sidebar.active {
    transform: translateX(0);
}
.app-main {
    flex: 1;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
@media (min-width: 1024px) {
    .app-sidebar {
        transform: translateX(0);
        background: var(--color-surface);
    }
    .app-main {
        margin-left: 280px;
    }
    .menu-toggle-btn {
        display: none !important;
    }
}

/* Sidebar header & items */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-glass-border);
}
.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.client-info {
    min-width: 0;
    flex: 1;
}
.client-name {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    color: var(--color-text);
}
.client-points {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.nav-item:hover, .nav-item:focus-visible {
    background: var(--color-glass-hover);
    color: var(--color-text);
}
.nav-item.active {
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-glass-border);
}

#install-app-btn {
    color: var(--color-accent);
    font-weight: 700;
}
#install-app-btn:hover {
    background: rgba(0, 255, 157, 0.12);
}
#logout-btn {
    color: var(--color-danger);
    font-weight: 700;
}
#logout-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--color-danger);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: var(--transition);
}
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle */
.menu-toggle-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Section Containers */
.app-section {
    padding: 1rem 0.5rem 5rem;
    flex: 1;
}

@media (min-width: 768px) {
    .app-section {
        padding: 1.5rem;
    }
}

/* Compact layout for very small screens (< 400px) */
@media (max-width: 399px) {
    .header {
        padding: 0.5rem 0.6rem;
    }
    .cart-btn {
        padding: 0.4rem 0.5rem;
        font-size: 1rem;
    }
    .categories {
        padding: 0.5rem 0.6rem;
        gap: 0.35rem;
    }
    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.72rem;
    }
    .products-grid {
        padding: 0 0.4rem 2rem;
    }
    .products-grid-inner {
        gap: 0.4rem;
    }
    .product-card {
        padding: 0.75rem 0.6rem;
    }
    .product-image {
        aspect-ratio: 4 / 3;
    }
    .product-name {
        font-size: 0.8rem;
    }
    .product-desc {
        font-size: 0.65rem;
    }
    .product-price {
        font-size: 0.85rem;
    }
    .add-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    .app-section {
        padding: 0.5rem 0.25rem 4rem;
    }
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .auth-card {
        padding: 1.5rem 1rem;
    }
    .auth-title {
        font-size: 1.25rem;
    }
    .form-grid {
        gap: 0.6rem;
    }
    .form-group {
        margin-bottom: 0.4rem;
    }
    .form-input {
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }
    .submit-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    .order-card {
        padding: 1rem;
    }
    .stepper {
        gap: 0;
    }
    .step-label {
        font-size: 0.55rem;
    }
    .step-node {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    .points-value {
        font-size: 2.5rem;
    }
    .points-balance-card {
        padding: 1.25rem;
    }
    .profile-form {
        padding: 1rem;
    }
    .install-banner-content {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    .install-text strong {
        font-size: 0.75rem;
    }
    .install-text span {
        font-size: 0.6rem;
    }
    .install-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
    }
    .install-icon {
        width: 36px;
        height: 36px;
    }
    .install-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Extra compact for very tiny screens */
@media (max-width: 340px) {
    .products-grid-inner {
        grid-template-columns: 1fr;
    }
    .sidebar-footer {
        flex-direction: column;
    }
}
.section-container {
    max-width: 800px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* === MEUS PEDIDOS TRACKER === */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.order-card {
    padding: 1.5rem;
    border-radius: var(--radius);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-glass-border);
    margin-bottom: 1rem;
}
.order-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}
.order-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}
.order-card-items {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.order-card-total {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-badge-pontos {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--color-glass-border);
    z-index: 1;
}
.stepper-progress {
    position: absolute;
    top: 14px;
    left: 10px;
    height: 3px;
    background: var(--color-accent);
    z-index: 2;
    transition: width 0.4s ease;
}
.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}
.step-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-bg-end);
    border: 3px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.step.active .step-node {
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.55);
}
.step.completed .step-node {
    border-color: var(--color-success);
    background: var(--color-success);
    color: white;
}
.step-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.step.active .step-label {
    color: var(--color-text);
}
.step.completed .step-label {
    color: var(--color-success);
}
.confirm-delivery-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-success);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.confirm-delivery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}
.order-cancelled-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* === PONTOS PREMIUM === */
.points-balance-card {
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 2rem;
}
.points-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}
.points-badge-icon {
    font-size: 1.5rem;
}
.points-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.points-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    max-width: 400px;
    margin: 0 auto;
}
.points-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-glass-border);
    margin-bottom: 1.5rem;
}
.points-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    color: var(--color-text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.points-tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.points-history-list {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
}
.points-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--color-glass-border);
}
.points-history-item:last-child {
    border-bottom: none;
}
.points-history-desc {
    display: flex;
    flex-direction: column;
}
.points-history-title {
    font-size: 0.85rem;
    font-weight: 600;
}
.points-history-date {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}
.points-history-value {
    font-weight: 700;
    font-size: 0.95rem;
}
.points-history-value.ganho {
    color: var(--color-success);
}
.points-history-value.resgate {
    color: var(--color-danger);
}
.profile-form {
    padding: 2rem;
    border-radius: var(--radius);
}

/* === CHAT SYSTEM === */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-glass-border) transparent;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.4;
    align-items: flex-end;
}

.chat-message.client {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.admin {
    align-self: flex-start;
    flex-direction: row;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 255, 157, 0.15);
    border: 1px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-avatar svg {
    width: 26px;
    height: 26px;
}

.chat-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    word-wrap: break-word;
    position: relative;
    box-shadow: var(--shadow);
}

.chat-message.client .chat-bubble {
    background: linear-gradient(135deg, var(--color-accent), var(--color-neon-cyan));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-message.admin .chat-bubble {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-bottom-left-radius: 4px;
}

.chat-message-time {
    font-size: 0.6rem;
    color: inherit;
    opacity: 0.7;
    margin-top: 0.2rem;
    text-align: right;
}

.chat-message.admin .chat-message-time {
    text-align: left;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-glass-border);
}

.chat-input-area .form-input {
    flex: 1;
}

/* === GUIDED TOUR === */
/* === ORDER TRACKING ANIMATION === */
.order-status-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.18);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    text-align: center;
}
.status-illustration-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tracking-desc {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
}

/* === CATEGORIA SECTION TITLE === */
.section-overline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-weight: 700;
    padding: 0.5rem 1.25rem 0;
    margin-top: 0.5rem;
}

/* === MOBILE PERFORMANCE OVERRIDES === */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    .product-card:hover .product-image {
        transform: none;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
}

button, a, .nav-item, .product-card, .category-btn, .close-btn, .qty-btn, .add-btn {
    touch-action: manipulation;
}

/* === FLOATING CHAT ATTENDANT === */
.chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: chatFabBounce 2s ease-in-out infinite;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 255, 157, 0.55);
}

.chat-fab:active {
    transform: scale(0.95);
}

.chat-fab-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: chatFabWave 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes chatFabBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes chatFabWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

@media (min-width: 1024px) {
    .chat-fab {
        width: 68px;
        height: 68px;
        bottom: 2rem;
        right: 2rem;
    }
    .chat-fab-icon {
        font-size: 1.8rem;
    }
}


