/* ==========================================================================
   🌌 COSMONN - MASTER DESIGN SYSTEM (WOW-TIER COSMIC HUD SPECIAL)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Russo+One&family=Montserrat:wght@800;900&display=swap');

:root {
    /* Color Tokens */
    --space-black: #030308;
    --space-dark: #070714;
    --space-card: rgba(8, 8, 24, 0.65);
    --text-primary: #f3f3f6;
    --text-secondary: #8e8eb2;
    
    /* Neon Cosmic Accents */
    --neon-purple: #7a38ff;
    --neon-cyan: #00f2fe;
    --neon-pink: #ff007f;
    --neon-green: #39ff14;
    --neon-yellow: #ffd700;
    
    /* Gradients */
    --grad-nebula: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-cyan) 100%);
    --grad-fire: linear-gradient(135deg, var(--neon-pink) 0%, #ff5e00 100%);
    --grad-cosmic: linear-gradient(180deg, var(--space-black) 0%, var(--space-dark) 100%);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Borders & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.06);
    --border-neon-cyan: 1px solid rgba(0, 242, 254, 0.25);
    --border-neon-purple: 1px solid rgba(122, 56, 255, 0.25);
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.35);
    --glow-purple: 0 0 15px rgba(122, 56, 255, 0.35);
    --glow-pink: 0 0 15px rgba(255, 0, 127, 0.35);
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) var(--space-black);
}

body {
    font-family: var(--font-body);
    background-color: var(--space-black);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 50%, rgba(15, 8, 35, 0.6) 0%, var(--space-black) 100%);
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--space-black);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Interactive Canvas Layer */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   👾 PRELOADER SYSTEM (DIAGNOSTIC BOOT SCREEN)
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020205;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-hud-wrap {
    text-align: center;
    max-width: 500px;
    padding: 30px;
    position: relative;
}

.preloader-spinner-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
}

.preloader-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.preloader-ring-inner {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border: 2px solid transparent;
    border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 3s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite reverse;
    filter: drop-shadow(0 0 12px var(--neon-purple));
}

.preloader-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.preloader-logs {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-align: left;
    height: 60px;
    overflow: hidden;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.preloader-log-line {
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 1.5s steps(40, end);
}

/* ==========================================================================
   HUD STRUCTURES & CORNER BRACKETS
   ========================================================================== */
.hud-panel {
    position: relative;
    border: var(--border-glass);
}

.hud-corners-top, .hud-corners-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hud-corners-top::before, .hud-corners-top::after,
.hud-corners-bottom::before, .hud-corners-bottom::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(0, 242, 254, 0.5);
    border-style: solid;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Corner bracket mappings */
.hud-corners-top::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.hud-corners-top::after { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.hud-corners-bottom::before { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.hud-corners-bottom::after { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Panel hover glowing */
.hud-panel:hover .hud-corners-top::before,
.hud-panel:hover .hud-corners-top::after,
.hud-panel:hover .hud-corners-bottom::before,
.hud-panel:hover .hud-corners-bottom::after {
    border-color: var(--neon-cyan);
    filter: drop-shadow(0 0 6px var(--neon-cyan));
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.text-gradient-cyan-purple {
    background: var(--grad-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-fire {
    background: var(--grad-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-glow-text-cyan {
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
}

.neon-glow-text-purple {
    text-shadow: 0 0 12px rgba(122, 56, 255, 0.7);
}

/* SVG Vector Styles */
.svg-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-smooth);
}

.svg-icon-large {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.svg-glow-cyan { filter: drop-shadow(0 0 8px var(--neon-cyan)); }
.svg-glow-purple { filter: drop-shadow(0 0 8px var(--neon-purple)); }
.svg-glow-pink { filter: drop-shadow(0 0 8px var(--neon-pink)); }
.svg-glow-yellow { filter: drop-shadow(0 0 8px var(--neon-yellow)); }

.svg-pulse {
    animation: svg-pulse-anim 3s infinite ease-in-out;
}

@keyframes svg-pulse-anim {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px var(--neon-cyan)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 14px var(--neon-cyan)) drop-shadow(0 0 6px var(--neon-purple)); }
}

/* ==========================================================================
   GLASSMORPHISM & LAYOUT ELEMENTS
   ========================================================================== */
.glass-panel {
    background: var(--space-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn-cosmic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    z-index: 1;
    /* Force GPU layer mask to respect rounded corners during 3D transforms */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    backface-visibility: hidden;
}

.btn-cosmic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-nebula);
    z-index: -1;
    opacity: 0;
    border-radius: inherit;
    transition: var(--transition-smooth);
}

.btn-cosmic-glow {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-cosmic-glow::before {
    opacity: 1;
}

.btn-cosmic:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.7), 0 0 45px rgba(122, 56, 255, 0.45);
    color: #ffffff;
}

.btn-cosmic:hover::before {
    opacity: 1;
}

.btn-cosmic:hover .svg-icon {
    transform: translateX(4px) scale(1.1);
    filter: drop-shadow(0 0 5px #fff);
}

.btn-cosmic:active {
    transform: translateY(1px);
}

/* Outline style button */
.btn-cosmic-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.btn-cosmic-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    background: rgba(3, 3, 8, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon-svg {
    width: 38px;
    height: 38px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    animation: pulse-logo 4s infinite ease-in-out;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-trigger {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.cart-trigger:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 242, 254, 0.08);
    transform: scale(1.08);
}

.cart-trigger .svg-icon {
    width: 22px;
    height: 22px;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--neon-pink);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-pink);
}

/* ==========================================================================
   HERO / WELCOME SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 45px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-pizza-planet {
    width: 82%;
    max-width: 480px;
    filter: drop-shadow(0 0 35px rgba(122, 56, 255, 0.5));
    animation: rotate-planet 30s linear infinite;
    z-index: 1;
}

.hero-orbit-ring {
    position: absolute;
    border: 1.5px dashed rgba(0, 242, 254, 0.35);
    border-radius: 50%;
    width: 112%;
    height: 112%;
    top: -6%;
    left: -6%;
    transform: rotateX(75deg);
    animation: spin-orbit 18s linear infinite;
    pointer-events: none;
}

/* ==========================================================================
   PIZZA CATALOG GRID & CYBER SCANNER
   ========================================================================== */
.catalog-section {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 45px;
}

.catalog-title {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-title h2 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.catalog-title p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 45px;
}

.pizza-card {
    position: relative;
    padding: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Glowing Neon Scanner Bar Effect */
.pizza-card .scanner-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 5px var(--neon-cyan);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.pizza-card:hover .scanner-bar {
    animation: scan-sweep 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    opacity: 1;
}

@keyframes scan-sweep {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.pizza-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(122, 56, 255, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.pizza-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.2), 0 0 25px rgba(122, 56, 255, 0.15);
}

.pizza-card:hover::after {
    opacity: 1;
}

.pizza-card-image-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 30px auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pizza-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
    transition: var(--transition-smooth);
    animation: orbital-float 6s ease-in-out infinite;
}

.pizza-card:hover .pizza-card-image {
    transform: rotate(30deg) scale(1.08);
    filter: drop-shadow(0 15px 30px rgba(0, 242, 254, 0.45));
}

.pizza-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(122, 56, 255, 0.2);
    border: 1px solid var(--neon-purple);
    color: #ffffff;
    box-shadow: var(--glow-purple);
    z-index: 2;
}

.pizza-badge .svg-icon {
    width: 12px;
    height: 12px;
}

.pizza-info {
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pizza-name {
    font-size: 1.7rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.pizza-subtitle {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-weight: 500;
}

.pizza-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pizza-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    z-index: 1;
}

.pizza-price {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

.pizza-price span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 2px;
}

/* ==========================================================================
   CART SIDEBAR
   ========================================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100vh;
    z-index: 150;
    background: rgba(6, 6, 18, 0.94);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.cart-title {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-title .svg-icon {
    width: 28px;
    height: 28px;
    color: var(--neon-cyan);
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-cart:hover {
    color: var(--neon-pink);
    transform: scale(1.1) rotate(90deg);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 5px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 18px;
    transition: var(--transition-fast);
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(122, 56, 255, 0.25);
}

.cart-item-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-top: 2px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    border: var(--border-glass);
}

.quantity-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    color: var(--neon-cyan);
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--neon-pink);
}

.cart-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

.cart-row-total {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.cart-row-total span {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   MODAL DIALOGS AND CHECKOUT
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 2, 6, 0.9);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 20px;
}

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

.modal-container {
    width: 100%;
    max-width: 950px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 45px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

/* Auth Specific Modal Size Constraint & Biometrics */
.auth-modal-container {
    max-width: 450px !important;
    padding: 35px 40px !important;
}

.biometric-scanner-wrap {
    margin: 10px auto 20px auto;
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biometric-scanner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px dashed rgba(0, 242, 254, 0.35);
    border-radius: 50%;
    animation: spin 12s linear infinite;
}

.biometric-scanner-laser {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 3px var(--neon-cyan);
    animation: scanner-laser-sweep 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanner-laser-sweep {
    0%, 100% { top: 20%; opacity: 0.3; }
    50% { top: 80%; opacity: 1; }
}

.biometric-scanner-fingerprint {
    color: var(--neon-cyan);
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
    animation: fingerprint-breath 2s infinite ease-in-out;
}

@keyframes fingerprint-breath {
    0%, 100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 6px var(--neon-cyan)); }
    50% { transform: scale(1.06); opacity: 1; filter: drop-shadow(0 0 12px var(--neon-cyan)) drop-shadow(0 0 4px var(--neon-purple)); }
}

.security-gateway-badge {
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 6px;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--neon-pink);
    transform: rotate(90deg);
}

/* Checkout Grid Layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
}

@media(max-width: 950px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .hero-visual {
        order: -1;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Form Controls */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 13px 18px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Dialog Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 35px;
    gap: 25px;
}

.auth-tab {
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
}

.auth-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* ==========================================================================
   COSMIC RADAR MAP (NIZHNY NOVGOROD SELECTOR)
   ========================================================================== */
.space-map-container {
    background: rgba(4, 4, 12, 0.7);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.space-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    padding-bottom: 10px;
    font-family: monospace;
}

.district-svg-wrap {
    width: 100%;
    height: 260px;
    position: relative;
}

.nn-district-path {
    fill: rgba(122, 56, 255, 0.06);
    stroke: rgba(0, 242, 254, 0.2);
    stroke-width: 1.5;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nn-district-path:hover {
    fill: rgba(0, 242, 254, 0.15);
    stroke: var(--neon-cyan);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.nn-district-path.active {
    fill: rgba(122, 56, 255, 0.3);
    stroke: var(--neon-purple);
    filter: drop-shadow(0 0 12px var(--neon-purple)) drop-shadow(0 0 5px var(--neon-cyan));
}

.nn-district-text {
    font-family: var(--font-heading);
    font-size: 9.5px;
    font-weight: 700;
    fill: var(--text-secondary);
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: var(--transition-fast);
}

.nn-district-path.active + .nn-district-text,
.nn-district-path:hover + .nn-district-text {
    fill: #ffffff;
    font-size: 10px;
}

.map-hud-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(2, 2, 5, 0.85);
    border: var(--border-neon-cyan);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    pointer-events: none;
    box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   COSMOCARD - 3D INTERACTIVE CREDIT CARD
   ========================================================================== */
.cosmocard-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 360px;
    height: 220px;
    margin: 0 auto 30px auto;
}

.cosmocard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cosmocard.flipped {
    transform: rotateY(180deg);
}

.cosmocard-front, .cosmocard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.cosmocard-front {
    background: linear-gradient(135deg, rgba(15, 8, 45, 0.95) 0%, rgba(3, 3, 12, 0.95) 100%);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
}

.cosmocard-front::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.cosmocard-back {
    background: linear-gradient(135deg, rgba(8, 4, 25, 0.95) 0%, rgba(2, 2, 8, 0.95) 100%);
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.2);
}

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

.card-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-brand span {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.25);
}

.card-number-display {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
}

.card-holder, .card-expiry {
    display: flex;
    flex-direction: column;
}

.card-meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.card-meta-val {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

/* Card Back Design */
.card-magnetic-strip {
    height: 42px;
    background: #000;
    width: 100%;
    margin-top: 10px;
}

.card-signature-area {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.85);
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-style: italic;
}

.card-cvv-display {
    background: #fff;
    color: #000;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 700;
}

/* Transaction Status Overlay during Mock checkout */
.tx-processing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.warp-loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(0, 242, 254, 0.1);
    border-top-color: var(--neon-cyan);
    animation: spin 1s infinite linear;
    box-shadow: var(--glow-cyan);
    margin-bottom: 25px;
}

/* Success Cosmic Ticket Receipt */
.cosmic-receipt {
    background: rgba(12, 12, 32, 0.85);
    border: 1px dashed rgba(0, 242, 254, 0.45);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    font-family: monospace;
    position: relative;
    box-shadow: var(--glow-cyan);
}

.cosmic-receipt::before, .cosmic-receipt::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--space-black);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.cosmic-receipt::before { left: -11px; }
.cosmic-receipt::after { right: -11px; }

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--neon-cyan);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.receipt-total-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    padding-top: 12px;
    margin-top: 12px;
    font-weight: bold;
    color: var(--neon-pink);
    font-size: 1rem;
}

/* ==========================================================================
   ADMIN PORTAL DESIGN
   ========================================================================== */
.admin-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-color: rgba(122, 56, 255, 0.15);
}

.admin-stat-val {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    margin-top: 5px;
}

.admin-stat-val span {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.admin-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(12, 12, 30, 0.55);
    backdrop-filter: blur(15px);
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom premium scrollbar for admin table */
.admin-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.admin-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.admin-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(0, 242, 254, 0.1);
}
.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.45);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    white-space: nowrap;
}

.admin-table td:nth-child(2) { /* Client column */
    white-space: normal;
    min-width: 120px;
}

.admin-table td:nth-child(4) { /* Address column */
    white-space: normal;
    min-width: 160px;
}

.admin-table th {
    background: rgba(15, 15, 40, 0.85);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--neon-cyan);
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-badge .svg-icon {
    width: 12px;
    height: 12px;
}

.status-assembly {
    background: rgba(255, 165, 0, 0.15);
    border: 1px solid #ffa500;
    color: #ffa500;
}

.status-warp {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.status-delivered {
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.admin-action-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-select {
    padding: 6px 28px 6px 12px;
    border-radius: 20px;
    outline: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.admin-select.status-select-assembly {
    background-color: rgba(255, 165, 0, 0.15);
    border: 1px solid #ffa500;
    color: #ffa500;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffa500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.admin-select.status-select-warp_speed {
    background-color: rgba(0, 242, 254, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.admin-select.status-select-delivered {
    background-color: rgba(57, 255, 20, 0.15);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339ff14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.admin-select:focus {
    box-shadow: 0 0 12px var(--neon-cyan);
}

.admin-select option {
    background-color: var(--space-dark);
    color: #fff;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes rotate-planet {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-orbit {
    0% { transform: rotateX(75deg) rotate(0deg); }
    100% { transform: rotateX(75deg) rotate(360deg); }
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 18px var(--neon-cyan)) drop-shadow(0 0 8px var(--neon-purple)); }
}

@keyframes orbital-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Page transitions, helper classes */
/* Page transitions, helper classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

/* ==========================================================================
   💎 WOW-TIER ULTIMATE COSMIC INTERACTION STYLES
   ========================================================================== */

/* 1. Hardware Accelerated 3D Tilt */
.pizza-card, .auth-modal-container, .cosmocard {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pizza-card-image-wrap {
    transform: translateZ(30px);
}

.pizza-info {
    transform: translateZ(15px);
}

/* Metallic reflection overlay */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
    transition: opacity 0.3s ease;
}

/* 2. Interactive Soundscape / Console Speaker Button */
.hud-audio-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    position: relative;
}

.hud-audio-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--neon-cyan);
    opacity: 0;
    transform: scale(1);
    transition: var(--transition-smooth);
}

.hud-audio-toggle.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(0, 242, 254, 0.06);
}

.hud-audio-toggle.active::before {
    animation: speaker-pulse 2s infinite ease-out;
}

@keyframes speaker-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.hud-audio-toggle:hover {
    color: #fff;
    transform: scale(1.08);
}

/* 3. Space Map Path Trajectory & Target Beacon */
.warp-route-path {
    stroke: var(--neon-cyan);
    stroke-width: 2.5;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 8px var(--neon-cyan)) drop-shadow(0 0 3px var(--neon-purple));
    stroke-dasharray: 8 4;
    animation: warp-flight-flow 1.5s infinite linear;
}

@keyframes warp-flight-flow {
    to {
        stroke-dashoffset: -36;
    }
}

.delivery-beacon {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-cyan);
    background: rgba(0, 242, 254, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--glow-cyan);
}

.delivery-beacon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    top: -2px;
    left: -2px;
    transform: scale(1);
    animation: beacon-ping 1.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes beacon-ping {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* 4. Side Margin scrolling HUD panels */
.hud-telemetry-sidebar-left, .hud-telemetry-sidebar-right {
    position: fixed;
    top: 15vh;
    width: 110px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 10px;
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(0, 242, 254, 0.4);
    z-index: 5;
    pointer-events: none;
    background: rgba(3, 3, 8, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.hud-telemetry-sidebar-left {
    left: 20px;
    border-left: 2px solid var(--neon-purple);
}

.hud-telemetry-sidebar-right {
    right: 20px;
    border-right: 2px solid var(--neon-cyan);
}

.hud-telemetry-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-telemetry-line {
    white-space: nowrap;
    text-shadow: 0 0 4px rgba(0, 242, 254, 0.2);
    animation: hud-text-drift 20s infinite linear;
}

@keyframes hud-text-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hud-mini-chart {
    height: 60px;
    width: 100%;
    margin-top: 15px;
    opacity: 0.6;
}

.hud-radar-scanner {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hud-radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 242, 254, 0.15) 0deg, transparent 90deg);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

/* Responsive side elements */
@media (max-width: 1500px) {
    .hud-telemetry-sidebar-left, .hud-telemetry-sidebar-right {
        display: none !important;
    }
}

/* ==========================================================================
   ✨ COSMIC TITLE, SPARKLING STAR GLIMMERS & BACKDROPS
   ========================================================================== */
.cosmic-title-wrap {
    position: relative;
    display: block !important;
    width: 100%;
    margin-bottom: 24px;
}

.cosmic-title-svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
    transition: filter 0.4s ease;
}

.cosmic-title-svg:hover {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 8px var(--neon-cyan));
}

.cosmic-title-text-row.row-1 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4),
                 0 0 20px rgba(0, 242, 254, 0.3),
                 0 0 30px rgba(0, 242, 254, 0.1);
    margin-bottom: 4px;
}

.cosmic-title-text-row.row-2 {
    font-size: 4.2rem;
    background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 45%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
}

/* Sharp 4-Point Constellation Stars using clip-path */
.stellar-glimmer {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
    animation: glimmer-pulse-spin 3.2s infinite ease-in-out;
}

@keyframes glimmer-pulse-spin {
    0%, 100% { 
        transform: scale(0.7) rotate(0deg); 
        opacity: 0.45; 
        filter: drop-shadow(0 0 3px #ffffff); 
    }
    50% { 
        transform: scale(1.25) rotate(90deg); 
        opacity: 1; 
        filter: drop-shadow(0 0 9px var(--neon-cyan)); 
    }
}

.stellar-glimmer.s-1 { top: 0px; left: 8%; animation-delay: 0.2s; }
.stellar-glimmer.s-2 { top: 40px; left: 65%; animation-delay: 0.8s; filter: drop-shadow(0 0 5px var(--neon-purple)); }
.stellar-glimmer.s-3 { bottom: 8px; left: 40%; animation-delay: 1.4s; }
.stellar-glimmer.s-4 { top: 60px; left: -2%; animation-delay: 0.5s; }
.stellar-glimmer.s-5 { bottom: 35px; left: 85%; animation-delay: 1.1s; filter: drop-shadow(0 0 5px var(--neon-pink)); }
.stellar-glimmer.s-6 { top: 15px; left: 42%; animation-delay: 1.7s; }
.stellar-glimmer.s-7 { bottom: 25px; left: 15%; animation-delay: 2.3s; }

/* Premium Header Logo Text */
.logo-text-wrap {
    position: relative;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25),
                 0 0 12px rgba(0, 242, 254, 0.35);
    display: flex;
    align-items: center;
    user-select: none;
}

.logo-text-zmp {
    color: #ffffff;
    margin-right: 0px;
}

.logo-text-pizza {
    background: var(--grad-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-star {
    position: absolute;
    color: #ffffff;
    font-size: 0.55rem;
    text-shadow: 0 0 4px #ffffff;
    animation: logo-star-blink 2s infinite ease-in-out;
}

.logo-star.s1 { top: -4px; left: -14px; animation-delay: 0.1s; }
.logo-star.s2 { bottom: -4px; right: -14px; animation-delay: 1.0s; }

@keyframes logo-star-blink {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 3px var(--neon-cyan)); }
}

@media (max-width: 950px) {
    .cosmic-title-wrap {
        align-items: center;
    }
    .cosmic-title-text-row {
        font-size: 2.8rem;
        text-align: center;
    }
    .cosmic-title-text-row.row-2 {
        font-size: 3.4rem;
    }
}

/* ==========================================================================
   🛠️ COSMIC INGREDIENT CONSTRUCTOR STYLES
   ========================================================================== */
.constructor-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 35px;
    align-items: center;
}

@media (max-width: 768px) {
    .constructor-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pizza-visualizer-wrap {
        max-width: 250px;
        margin: 0 auto;
    }
}

.pizza-visualizer-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#constructor-pizza-preview {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px rgba(122, 56, 255, 0.35));
}

.visual-ingredient {
    opacity: 0;
    transform: scale(0.65) rotate(-15deg);
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.visual-ingredient.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.ingredient-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.25);
    transform: translateY(-2px);
}

.ingredient-card.selected {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.ingredient-icon {
    display: block;
    width: 38px;
    height: 38px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.ingredient-icon svg {
    width: 100%;
    height: 100%;
}

.ingredient-card.selected .ingredient-icon {
    color: var(--neon-cyan);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.ingredient-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.ingredient-card.selected .ingredient-name {
    color: #ffffff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Scrollbar within grid */
.ingredients-grid::-webkit-scrollbar {
    width: 4px;
}
.ingredients-grid::-webkit-scrollbar-track {
    background: transparent;
}
.ingredients-grid::-webkit-scrollbar-thumb {
    background: rgba(122, 56, 255, 0.3);
    border-radius: 4px;
}
.ingredients-grid::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

.btn-cosmic:hover .svg-spin-hover {
    transform: rotate(360deg);
}

/* ==========================================================================
   🌌 COSMIC CUSTOM TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.cosmic-toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 60px);
}

.cosmic-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(8, 8, 24, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin 0.6s;
    opacity: 0;
}

.cosmic-toast.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.cosmic-toast.toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Corner HUD styling for toasts */
.cosmic-toast::before,
.cosmic-toast::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: rgba(0, 242, 254, 0.4);
    border-style: solid;
    pointer-events: none;
}
.cosmic-toast::before {
    top: 8px;
    left: 8px;
    border-width: 1.5px 0 0 1.5px;
}
.cosmic-toast::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 1.5px 1.5px 0;
}

/* Toast types */
.cosmic-toast.toast-success {
    border-left: 3px solid var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15), 0 0 1px rgba(0, 242, 254, 0.2);
}
.cosmic-toast.toast-success::before,
.cosmic-toast.toast-success::after {
    border-color: rgba(0, 242, 254, 0.6);
}

.cosmic-toast.toast-error {
    border-left: 3px solid var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.15), 0 0 1px rgba(255, 0, 127, 0.2);
}
.cosmic-toast.toast-error::before,
.cosmic-toast.toast-error::after {
    border-color: rgba(255, 0, 127, 0.6);
}

.cosmic-toast.toast-warning {
    border-left: 3px solid var(--neon-yellow);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15), 0 0 1px rgba(255, 215, 0, 0.2);
}
.cosmic-toast.toast-warning::before,
.cosmic-toast.toast-warning::after {
    border-color: rgba(255, 215, 0, 0.6);
}

.cosmic-toast.toast-info {
    border-left: 3px solid var(--neon-purple);
    box-shadow: 0 10px 30px rgba(122, 56, 255, 0.15), 0 0 1px rgba(122, 56, 255, 0.2);
}
.cosmic-toast.toast-info::before,
.cosmic-toast.toast-info::after {
    border-color: rgba(122, 56, 255, 0.6);
}

/* Icon Wrapper */
.toast-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.toast-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.toast-message {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
    margin-left: 5px;
    align-self: flex-start;
}

.toast-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* ==========================================================================
   📱 MOBILE & TABLET COMPREHENSIVE RESPONSIVENESS ADAPTATION
   ========================================================================== */
@media (max-width: 950px) {
    /* Center text, align SVG logo and description */
    .cosmic-title-wrap {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-content p {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }
    
    /* Catalog padding and layout */
    .catalog-section {
        padding: 0 20px;
        margin: 60px auto;
    }
    
    .pizza-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 30px !important;
    }
    
    .pizza-card {
        padding: 24px !important;
    }
    
    /* Modals */
    .modal-container {
        padding: 24px !important;
        width: 95% !important;
    }
}

@media (max-width: 768px) {
    /* Header optimization */
    header {
        padding: 12px 0;
    }
    .header-container {
        padding: 0 16px;
    }
    .logo-text-wrap {
        font-size: 1.3rem;
    }
    .nav-controls {
        gap: 12px;
    }
    
    /* Hide label word 'Покупатель' on small screens, leave username */
    .hud-username-label {
        display: none !important;
    }
    
    /* Hide long button text in admin panel button, show only gear/wrench icon */
    .hud-btn-text {
        display: none !important;
    }
    .nav-controls .btn-cosmic {
        padding: 8px 10px !important; /* Make it a square icon button */
    }
    .nav-controls .btn-cosmic svg {
        margin-right: 0 !important;
        width: 16px;
        height: 16px;
    }
    
    /* Hero Section Welcome Area */
    .hero-section {
        margin: 20px auto;
        padding: 0 20px;
        gap: 30px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-pizza-planet {
        max-width: 300px;
    }
    
    /* Cart Sidebar */
    .cart-sidebar {
        padding: 20px;
    }
    
    /* Constructor Grid Layout */
    .constructor-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Checkout Forms */
    .checkout-grid {
        gap: 25px;
    }
    
    /* Admin stats responsive wrap */
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .admin-stat-card {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    /* Hide entire logo text on extra-small screens, leaving only the beautiful glowing pizza icon */
    .logo-text-wrap {
        display: none !important;
    }
    
    /* Username text wrap */
    .nav-controls span {
        max-width: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem !important;
    }
    
    /* Card scaling on mobile */
    .cosmocard-wrapper {
        max-width: 280px !important;
        height: 170px !important;
        margin-bottom: 20px !important;
    }
    .cosmocard-front, .cosmocard-back {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .card-number-display {
        font-size: 1.05rem !important;
        margin: 12px 0 !important;
        letter-spacing: 0.05em !important;
    }
    .card-chip {
        width: 32px !important;
        height: 24px !important;
    }
    .cosmocard-logo {
        font-size: 0.9rem !important;
    }
    
    /* Floating action buttons */
    .btn-cosmic {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    /* Space map header sizes */
    .space-map-header {
        font-size: 0.7rem !important;
    }
    .space-map-container {
        padding: 10px !important;
    }
    
    /* Toast notifications container positioning */
    .cosmic-toast-container {
        top: 15px;
        right: 15px;
        width: calc(100% - 30px);
    }
    .cosmic-toast {
        padding: 14px 18px;
    }
}

/* ==========================================================================
   🍕 PIZZA SIZE SELECTOR STYLING
   ========================================================================== */
.pizza-size-selector {
    display: flex;
    gap: 8px;
    margin: 15px 0 10px 0;
}

.size-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.size-btn:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
}

.size-btn.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

/* Constructor size selector */
.constructor-size-selector {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.constructor-size-selector .btn-size {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.constructor-size-selector .btn-size:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
}

.constructor-size-selector .btn-size.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   📱 ADDITIONAL RESPONSIVE refinement TWEAKS
   ========================================================================== */
@media (max-width: 768px) {
    .admin-container .auth-tabs {
        gap: 15px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-bottom: 25px !important;
    }
    .admin-container .auth-tab {
        font-size: 1.05rem !important;
        padding: 8px 12px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    /* Stack constructor footer weight/price vertically for better mobile spacing */
    .constructor-footer > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }
    .constructor-footer > div:first-child > div:last-child {
        text-align: left !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }
    .constructor-size-selector .btn-size {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
}

/* ==========================================================================
   Mobile Layout Bug Fixes
   ========================================================================== */

/* 0. Global Viewport Overflow Prevention */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* 1. Admin Header Mobile Adaptation */
@media (max-width: 950px) {
    .admin-header-container {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        padding: 10px 16px !important;
    }
    .admin-header-container .logo-container {
        justify-content: center !important;
        width: 100% !important;
    }
    .admin-header-container .nav-controls {
        width: 100% !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
    .admin-header-container .nav-controls .btn-cosmic {
        padding: 10px 18px !important;
        font-size: 0.85rem !important;
        flex: 1 !important;
        max-width: 200px !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 600px) {
    .admin-header-container .logo-container span {
        display: none !important;
    }
}

/* 2. Global Header Mobile Adaptation */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        padding: 10px 16px !important;
    }
    .header-container .logo-container {
        justify-content: center !important;
        width: 100% !important;
    }
    .header-container .nav-controls {
        width: 100% !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
}

/* 3. Cart Sidebar & Cart Items Mobile Adaptation */
@media (max-width: 950px) {
    .cart-sidebar {
        width: 100% !important;
        max-width: 100vw !important;
        right: -100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .cart-sidebar.open {
        right: 0 !important;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        padding: 20px 15px !important;
    }
    .cart-item {
        display: grid !important;
        grid-template-columns: 50px 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 8px 12px !important;
        padding: 12px !important;
        align-items: center !important;
    }
    .cart-item-img {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
    }
    .cart-item-info {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    .cart-item-name {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }
    .cart-item-price {
        font-size: 0.9rem !important;
        margin-top: 2px !important;
    }
    .cart-item-quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        margin: 0 !important;
        padding: 3px 10px !important;
        gap: 8px !important;
    }
    .cart-item-remove {
        grid-column: 3 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        padding: 5px !important;
        font-size: 1.5rem !important;
    }
    .cart-row-total {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
}

/* 4. Admin Menu Grid (Pizza list in admin panel) */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

@media (max-width: 950px) {
    .admin-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    .admin-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .admin-menu-grid .hud-panel {
        padding: 15px !important;
    }
    .admin-menu-grid form > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* 5. Modal Dialogs Optimization for Small Mobile Viewports */
@media (max-width: 480px) {
    .modal-container {
        padding: 20px 15px !important;
    }
    .auth-modal-container {
        padding: 25px 20px !important;
    }
}

/* 6. Warp Shuttle Animation & Shockwave Effects */
.flying-shuttle {
    position: fixed;
    width: 36px;
    height: 20px;
    background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 60%, transparent 100%);
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 85%, 20% 50%, 0% 15%);
    filter: drop-shadow(0 0 10px var(--neon-cyan)) drop-shadow(0 0 4px #ffffff);
    z-index: 99999;
    pointer-events: none;
    transition: left 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), top 1.2s cubic-bezier(0.25, -0.4, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 1.2s ease;
    transform-origin: center;
}

.flying-shuttle::after {
    content: '';
    position: absolute;
    top: 25%;
    left: -25px;
    width: 30px;
    height: 50%;
    background: linear-gradient(270deg, var(--neon-pink) 0%, transparent 100%);
    filter: blur(2px);
    animation: engine-flicker 0.1s infinite alternate;
}

@keyframes engine-flicker {
    0% { transform: scaleY(0.85) scaleX(0.9); opacity: 0.8; }
    100% { transform: scaleY(1.15) scaleX(1.1); opacity: 1; }
}

.cart-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 2.5px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
    animation: cart-shockwave-pulse 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes cart-shockwave-pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
        filter: drop-shadow(0 0 2px var(--neon-cyan));
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
        filter: drop-shadow(0 0 8px var(--neon-purple));
    }
}



