/* ========================================
   SMOKE CITY - Premium Telegram Mini App
   ======================================== */

:root {
    --bg-app: #0a0a0f;
    --bg-card: #16161f;
    --bg-card-gradient: linear-gradient(145deg, #1a1a25 0%, #251a2e 100%);

    --neon-purple: #b95bf7;
    --neon-purple-light: #d484ff;
    --neon-pink: #ff4ddb;
    --neon-pink-light: #ff80e8;
    --neon-blue: #4d94ff;
    --neon-orange: #ff6b35;
    --neon-red: #ff4757;
    --neon-green: #2ed573;

    --gradient-primary: linear-gradient(135deg, #b95bf7 0%, #ff4ddb 100%);
    --gradient-hit: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    --gradient-new: linear-gradient(135deg, #1e90ff 0%, #4d94ff 100%);
    --gradient-sale: linear-gradient(135deg, #ff4ddb 0%, #ff4757 100%);
    --gradient-choice: linear-gradient(135deg, #8b5cf6 0%, #b95bf7 100%);

    /* FIXED: Improved text contrast for accessibility */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #808090;

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Safe area insets */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ========================================
   ACCESSIBILITY - FOCUS STATES
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(185, 91, 247, 0.3);
}

button:focus-visible,
.header-btn:focus-visible,
.cart-btn:focus-visible,
.product-card:focus-visible,
.category-pill:focus-visible,
.search-input:focus-visible,
.checkout-input:focus-visible,
.checkout-comment:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(185, 91, 247, 0.4);
}

/* ========================================
   TOUCH TARGETS - MINIMUM 44x44px
   ======================================== */
button,
.header-btn,
.cart-btn,
.category-pill,
.product-card,
.quantity-btn,
.add-to-cart-btn,
.checkout-btn,
.nav-btn,
.tab-btn {
    min-height: 44px;
    min-width: 44px;
}

/* Small icon buttons need expanded hit areas */
.header-btn,
.quantity-btn {
    padding: 12px 16px;
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .auth-bg,
    .bg-particles,
    .splash-text,
    .product-card,
    .cart-item {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Small phones (down from 380px) */
@media (max-width: 380px) {
    .products-grid {
        gap: 10px;
        padding: 0 12px 80px;
    }

    .product-card {
        padding: 11px;
    }

    .header-btn {
        padding: 10px 14px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cart-item-side {
        align-items: stretch;
    }

    .cart-item-controls,
    .cart-item-bottom {
        justify-content: space-between;
    }
}

/* Tablets */
@media (min-width: 768px) {
    .app-container {
        max-width: 768px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 24px 100px;
    }

    .product-card {
        padding: 20px;
    }

    .header {
        padding: 16px 24px;
    }
}

/* Small desktop */
@media (min-width: 1024px) {
    .app-container {
        max-width: 1024px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 32px 120px;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .app-container {
        max-width: 1280px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-content {
        padding: 20px;
    }

    .products-grid {
        padding: 0 16px 80px;
    }
}

/* ========================================
   AUTH SCREEN
   ======================================== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
}

.auth-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.auth-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.4) blur(2px);
}

.auth-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    gap: 16px;
}

.auth-lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(185, 91, 247, 0.1);
    border: 1px solid rgba(185, 91, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    animation: authPulse 2s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(185, 91, 247, 0.1); }
    50% { box-shadow: 0 0 40px rgba(185, 91, 247, 0.3); }
}

.auth-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 0 30px rgba(185, 91, 247, 0.5);
}

.auth-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.auth-widget-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 4px;
}

.auth-widget-shell iframe {
    max-width: 100%;
}

.auth-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 8px;
    box-shadow: 0 4px 25px rgba(185, 91, 247, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-tg-btn:active {
    transform: scale(0.96);
}

.auth-waiting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--neon-purple-light);
    margin-top: 4px;
}

.auth-waiting-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(185, 91, 247, 0.2);
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: authSpin 0.8s linear infinite;
}

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

.auth-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    max-width: 240px;
    margin-top: 4px;
}

/* ========================================
   SPLASH SCREEN
   ======================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
    overflow: hidden;
}

.splash-screen.hide {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
}

.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.splash-bottom {
    position: absolute;
    bottom: 2%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

/* Spinner */
.splash-spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spinnerRotate 1.4s ease-in-out infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--neon-purple);
    animation-delay: 0s;
    filter: drop-shadow(0 0 6px var(--neon-purple));
}

.spinner-ring:nth-child(2) {
    inset: 5px;
    border-right-color: var(--neon-pink);
    animation-delay: 0.15s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 6px var(--neon-pink));
}

.spinner-ring:nth-child(3) {
    inset: 10px;
    border-bottom-color: var(--neon-purple-light);
    animation-delay: 0.3s;
    filter: drop-shadow(0 0 6px var(--neon-purple-light));
}

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

/* Splash text */
.splash-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated dots */
.splash-dots {
    display: flex;
    gap: 6px;
}

.splash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-purple);
    animation: dotPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--neon-purple);
}

.splash-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
}

.splash-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--neon-purple-light);
    box-shadow: 0 0 8px var(--neon-purple-light);
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.app {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg-app);
    position: relative;
    padding-bottom: 150px;
    overflow: hidden;
}

/* ========================================
   HERO BACKGROUND - parallax
   ======================================== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   FLOATING PARTICLES
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(var(--drift)) scale(1);
    }
}

/* ========================================
   OVERLAY BUTTONS
   ======================================== */
.hero-overlay-buttons {
    position: fixed;
    top: calc(16px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 0 max(16px, var(--safe-left)) max(16px, var(--safe-right));
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: auto;
}

.header-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 91, 247, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-btn:active {
    transform: scale(0.92);
    background: rgba(185, 91, 247, 0.2);
}

.header-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ========================================
   CONTENT OVERLAY
   ======================================== */
.content-overlay {
    position: relative;
    z-index: 1;
    padding-top: 55%;
}

/* ========================================
   CATALOG TITLE - Premium Neon
   ======================================== */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 16px 24px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
}

/* Animated underlines from center */
.catalog-line {
    flex: 1;
    height: 2px;
    position: relative;
    overflow: hidden;
}

.catalog-line::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(185, 91, 247, 0.6), rgba(255, 77, 219, 0.4), transparent);
    animation: lineExpand 2s ease-out forwards;
}

.catalog-line-left::before {
    right: 0;
    background: linear-gradient(270deg, rgba(185, 91, 247, 0.8), rgba(255, 77, 219, 0.4), transparent);
    transform-origin: right;
    animation: lineExpandLeft 2s ease-out forwards;
}

.catalog-line-right::before {
    left: 0;
    background: linear-gradient(90deg, rgba(185, 91, 247, 0.8), rgba(255, 77, 219, 0.4), transparent);
    transform-origin: left;
    animation: lineExpandRight 2s ease-out forwards;
}

@keyframes lineExpandLeft {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes lineExpandRight {
    0% { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* Animated line glow pulse */
.catalog-line::after {
    content: '';
    position: absolute;
    top: -2px;
    height: 6px;
    width: 60px;
    border-radius: 3px;
    background: rgba(185, 91, 247, 0.6);
    filter: blur(4px);
    animation: linePulseGlow 3s ease-in-out infinite;
}

.catalog-line-left::after {
    right: 0;
    animation: linePulseLeft 3s ease-in-out infinite;
}

.catalog-line-right::after {
    left: 0;
    animation: linePulseRight 3s ease-in-out infinite;
}

@keyframes linePulseLeft {
    0%, 100% { right: 0; opacity: 0.3; }
    50% { right: 60%; opacity: 0.8; }
}

@keyframes linePulseRight {
    0%, 100% { left: 0; opacity: 0.3; }
    50% { left: 60%; opacity: 0.8; }
}

/* The actual title - gradient flow + neon flicker */
.catalog-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    color: #d484ff;
    /* Gradient flow */
    background: linear-gradient(
        90deg,
        #d484ff 0%,
        #ff80e8 20%,
        #ff4ddb 40%,
        #b95bf7 60%,
        #d484ff 80%,
        #ff80e8 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s linear infinite;
    text-shadow: none;
}

/* Neon flicker wrapper */
.catalog-title-wrap {
    position: relative;
    flex-shrink: 0;
    animation: neonFlicker 4s ease-in-out infinite;
}

/* Glow layer 1 - purple */
.catalog-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--neon-purple);
    -webkit-text-fill-color: var(--neon-purple);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: blur(10px);
    opacity: 0.7;
    animation: glowPulse 2.5s ease-in-out infinite;
}

/* Glow layer 2 - pink */
.catalog-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--neon-pink);
    -webkit-text-fill-color: var(--neon-pink);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    filter: blur(18px);
    opacity: 0.4;
    animation: glowPulse 2.5s ease-in-out infinite 1.25s;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 1;
    }
    20% {
        opacity: 0.85;
    }
    24%, 55% {
        opacity: 0.75;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.4;
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(16px);
    }
}

/* Smoke particles rising from text */
.catalog-smoke {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
}

.smoke-particle {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 91, 247, 0.4), transparent);
    filter: blur(3px);
    animation: smokeRise 3s ease-out infinite;
    opacity: 0;
}

.smoke-particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 2.8s; }
.smoke-particle:nth-child(2) { left: 18%; animation-delay: 0.4s; animation-duration: 3.2s; }
.smoke-particle:nth-child(3) { left: 32%; animation-delay: 0.8s; animation-duration: 2.6s; }
.smoke-particle:nth-child(4) { left: 48%; animation-delay: 0.2s; animation-duration: 3.0s; }
.smoke-particle:nth-child(5) { left: 62%; animation-delay: 0.6s; animation-duration: 2.9s; }
.smoke-particle:nth-child(6) { left: 75%; animation-delay: 1.0s; animation-duration: 3.3s; }
.smoke-particle:nth-child(7) { left: 85%; animation-delay: 0.3s; animation-duration: 2.7s; }
.smoke-particle:nth-child(8) { left: 95%; animation-delay: 0.7s; animation-duration: 3.1s; }

@keyframes smokeRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    20% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) translateX(10px) scale(2.5);
    }
}

/* ========================================
   PRODUCTS GRID
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 16px 80px;
    background: var(--bg-app);
}

/* ========================================
   PRODUCT CARD - Animated gradient border
   ======================================== */
.product-card {
    background: var(--bg-card-gradient);
    border-radius: var(--radius-lg);
    padding: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: productFadeIn 0.6s ease forwards;
    opacity: 0;
    /* Animated border via pseudo-element */
}

/* Animated gradient border */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        rgba(185, 91, 247, 0.5),
        rgba(255, 77, 219, 0.3),
        rgba(30, 144, 255, 0.2),
        rgba(185, 91, 247, 0.5)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

/* Fallback for browsers without @property */
@supports not (background: paint(something)) {
    .product-card::before {
        background: linear-gradient(
            135deg,
            rgba(185, 91, 247, 0.4),
            rgba(255, 77, 219, 0.2),
            rgba(30, 144, 255, 0.15),
            rgba(185, 91, 247, 0.4)
        );
        background-size: 300% 300%;
        animation: borderShift 4s ease infinite;
    }
}

@keyframes borderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top glow line */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 91, 247, 0.5), transparent);
    pointer-events: none;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }

@keyframes productFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card hover/press glow */
.product-card:active {
    transform: scale(0.97);
}

.product-card:active::before {
    opacity: 1;
    filter: brightness(1.5);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
}

.badge-hit { background: var(--gradient-hit); box-shadow: 0 0 12px rgba(255, 107, 53, 0.5); }
.badge-new { background: var(--gradient-new); box-shadow: 0 0 12px rgba(30, 144, 255, 0.5); }
.badge-sale { background: var(--gradient-sale); box-shadow: 0 0 12px rgba(255, 77, 219, 0.5); }
.badge-choice { background: var(--gradient-choice); box-shadow: 0 0 12px rgba(139, 92, 246, 0.5); }

/* ========================================
   PRODUCT IMAGE - Shimmer effect
   ======================================== */
.product-image {
    width: 100%;
    height: 105px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep */
.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 70%
    );
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shimmerSweep {
    0% { left: -150%; }
    40%, 100% { left: 200%; }
}

/* Subtle radial glow */
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(185, 91, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.product-img-placeholder {
    position: relative;
    z-index: 1;
}

.product-image-icon {
    font-size: 44px;
    filter: drop-shadow(0 0 12px rgba(185, 91, 247, 0.3));
}

/* Product Info */
.product-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.product-subtitle {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Product Specs */
.product-specs {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.spec-tag {
    background: rgba(185, 91, 247, 0.12);
    border: 1px solid rgba(185, 91, 247, 0.22);
    border-radius: var(--radius-sm);
    padding: 3px 7px;
    font-size: 8px;
    font-weight: 600;
    color: var(--neon-purple-light);
    white-space: nowrap;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stars { display: flex; gap: 1px; }

.star-icon {
    width: 12px;
    height: 12px;
    fill: #ffc107;
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.4));
}

.star-icon.half { fill: #ffc107; opacity: 0.5; }

.rating-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-label {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.label-hot { background: rgba(255, 107, 53, 0.2); color: #ff6b35; }
.label-premium { background: rgba(139, 92, 246, 0.2); color: #b95bf7; }
.label-deal { background: rgba(46, 213, 115, 0.2); color: #2ed573; }
.label-reliable { background: rgba(30, 144, 255, 0.2); color: #4d94ff; }

/* Product Price */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.price-current {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
}

.price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(185, 91, 247, 0.2);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 700;
    color: var(--neon-pink);
}

/* ========================================
   ADD TO CART - Ripple + Micro-interactions
   ======================================== */
.add-to-cart-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(185, 91, 247, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:active {
    transform: scale(0.93);
    box-shadow: 0 0 30px rgba(185, 91, 247, 0.7);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, #2ed573 0%, #1e90ff 100%);
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.5);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* ========================================
   ADVANTAGES - Minimalist Floating Badges
   ======================================== */
.advantages-section {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 0 16px;
    z-index: 99;
    pointer-events: none;
}

.advantages-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
    pointer-events: auto;
}

.advantages-scroll::-webkit-scrollbar { display: none; }

.advantage-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(185, 91, 247, 0.15);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.advantage-item:active {
    transform: scale(0.95);
    background: rgba(22, 22, 31, 0.8);
    border-color: rgba(185, 91, 247, 0.3);
}

.advantage-icon {
    width: 28px;
    height: 28px;
    background: rgba(185, 91, 247, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--neon-purple-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    white-space: nowrap;
}

.adv-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.adv-sub {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   TAB BAR
   ======================================== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(15, 15, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(185, 91, 247, 0.25);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.tab-item:active { transform: scale(0.88); }

.tab-icon {
    width: 24px;
    height: 24px;
    stroke: #4a4a5a;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

.tab-item.active .tab-icon {
    stroke: var(--neon-purple-light);
    filter: drop-shadow(0 0 8px rgba(185, 91, 247, 0.7));
}

.tab-label {
    font-size: 9px;
    font-weight: 600;
    color: #4a4a5a;
    transition: all 0.2s ease;
}

.tab-item.active .tab-label { color: var(--neon-purple-light); }

.tab-badge {
    position: absolute;
    top: 3px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: linear-gradient(135deg, #ff4ddb 0%, #ff6b35 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: 0 0 8px rgba(255, 77, 219, 0.6);
}

/* ========================================
   TOAST
   ======================================== */
.toast {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(15, 15, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(185, 91, 247, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(185, 91, 247, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
    max-width: 280px;
}

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

.toast-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast-message {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   PAGE SYSTEM
   ======================================== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.3s ease;
}

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

.page-home {
    position: relative;
    min-height: 100vh;
}

.page-home .content-overlay {
    padding-top: 64%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-home .products-grid {
    flex: 1 1 auto;
    align-content: start;
    background: var(--bg-app);
}

.products-grid > .catalog-empty-state {
    grid-column: 1 / -1;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.page-profile {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.profile-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-content {
    position: relative;
    z-index: 1;
    padding-top: 65%;
}

/* Username */
.profile-username-section {
    text-align: center;
    padding: 30px 16px 10px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
}

.profile-catalog-header {
    background: var(--bg-app);
    padding-top: 0;
}

.profile-body {
    background: var(--bg-app);
    padding-top: 16px;
    padding-bottom: 20px;
}

.profile-username {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #d484ff, #ff80e8, #ff4ddb, #d484ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s linear infinite;
    margin-bottom: 4px;
}

.profile-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Stats */
.profile-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 16px 20px;
    padding: 16px 12px;
    background: var(--bg-card-gradient);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(185, 91, 247, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Solid bg below username to cover the image */
.profile-section,
.profile-stats {
    position: relative;
    z-index: 1;
}

.profile-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(185, 91, 247, 0.2);
}

/* Section */
.profile-section {
    margin: 0 16px 20px;
    background: var(--bg-card-gradient);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(185, 91, 247, 0.18);
    padding: 16px;
    overflow: hidden;
    position: relative;
}

/* Animated border like product cards */
.profile-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        var(--border-angle, 0deg),
        rgba(185, 91, 247, 0.4),
        rgba(255, 77, 219, 0.2),
        rgba(30, 144, 255, 0.15),
        rgba(185, 91, 247, 0.4)
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderShift 4s ease infinite;
    pointer-events: none;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-section-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Empty orders */
.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 8px;
}

.orders-empty-icon {
    opacity: 0.5;
    margin-bottom: 4px;
}

.orders-empty-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.orders-empty-sub {
    font-size: 11px;
    color: var(--text-muted);
}


/* ========================================
   CART PAGE
   ======================================== */
.page-cart {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 120px;
}

.cart-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.cart-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.cart-content-overlay {
    position: relative;
    z-index: 1;
    padding-top: 88%;
}

.cart-content-overlay .catalog-header {
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
}

.cart-actions-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 12px;
    background: var(--bg-app);
}

.cart-clear-btn {
    background: none;
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--neon-red);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cart-clear-btn:active {
    background: rgba(255, 71, 87, 0.15);
    transform: scale(0.95);
}

/* Cart Items */
.cart-items {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-app);
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    background:
        radial-gradient(circle at top left, rgba(185, 91, 247, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(38, 31, 54, 0.98), rgba(24, 20, 36, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(185, 91, 247, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 32px rgba(5, 5, 10, 0.34);
    animation: productFadeIn 0.36s ease forwards;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cart-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(185, 91, 247, 0.42),
        rgba(255, 77, 219, 0.18),
        rgba(30, 144, 255, 0.12),
        rgba(185, 91, 247, 0.34)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cart-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 48%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.cart-item:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 118, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 18px 36px rgba(5, 5, 10, 0.4);
}

.cart-item:active {
    transform: scale(0.985);
}

.cart-item-highlight {
    animation: productFadeIn 0.36s ease forwards, cartItemPulse 0.72s ease;
}

.cart-item-highlight::after {
    opacity: 1;
    animation: cartItemShine 0.72s ease;
}

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cart-item-icon-wrap {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(36, 31, 49, 0.96), rgba(23, 20, 33, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(185, 91, 247, 0.12);
}

.cart-item-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(185, 91, 247, 0.22), rgba(185, 91, 247, 0) 72%);
    filter: blur(10px);
}

.cart-item-icon {
    font-size: 34px;
    width: 52px;
    height: 52px;
    background: linear-gradient(180deg, rgba(22, 20, 31, 0.94), rgba(14, 13, 22, 0.98));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-item-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--neon-purple-light);
    text-shadow: 0 0 18px rgba(185, 91, 247, 0.2);
}

.cart-item-unit {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Cart item right section */
.cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

/* Quantity Controls */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, rgba(95, 51, 143, 0.28), rgba(55, 32, 84, 0.22));
    border: 1px solid rgba(185, 91, 247, 0.28);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon-purple-light);
    transition: all 0.22s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cart-qty-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-130%);
    transition: transform 0.35s ease;
}

.cart-qty-btn:hover::before {
    transform: translateX(130%);
}

.cart-qty-btn:active {
    background: linear-gradient(180deg, rgba(126, 69, 188, 0.36), rgba(70, 41, 108, 0.3));
    transform: scale(0.92);
    box-shadow: 0 0 0 4px rgba(185, 91, 247, 0.12);
}

.cart-qty-value {
    min-width: 44px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cart-qty-number {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.cart-qty-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-item-total {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.12);
    min-width: 84px;
    text-align: center;
}

/* Remove button */
.cart-remove-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 118, 132, 0.78);
    transition: all 0.2s ease;
    padding: 0;
}

.cart-remove-btn:active {
    color: #ff7a8c;
    background: rgba(255, 71, 87, 0.16);
    transform: scale(0.92);
}

@keyframes cartItemPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px rgba(5, 5, 10, 0.34);
    }
    45% {
        transform: translateY(-2px) scale(1.015);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 4px rgba(185, 91, 247, 0.1), 0 18px 36px rgba(5, 5, 10, 0.4);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 32px rgba(5, 5, 10, 0.34);
    }
}

@keyframes cartItemShine {
    0% { left: -40%; opacity: 0; }
    30% { opacity: 1; }
    100% { left: 135%; opacity: 0; }
}

/* Cart Empty */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 10px;
    background: var(--bg-app);
}

.cart-empty-icon { opacity: 0.5; }

.cart-empty-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-secondary);
}

.cart-empty-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-empty-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 0 15px rgba(185, 91, 247, 0.4);
    transition: all 0.2s ease;
}

.cart-empty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(185, 91, 247, 0.6);
}

/* Cart Footer */
.cart-footer {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 16px;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(185, 91, 247, 0.2);
    z-index: 50;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
}

.cart-total-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.cart-checkout-btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 0 20px rgba(185, 91, 247, 0.5);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cart-checkout-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 35px rgba(185, 91, 247, 0.7);
}

/* ========================================
   SIDE MENU - Premium Neon Drawer
   ======================================== */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 998;
    pointer-events: none;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-overlay.open {
    background: rgba(0, 0, 0, 0.7);
    pointer-events: all;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 26, 0.97) 0%, rgba(10, 10, 15, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid transparent;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0);
}

.side-menu.open {
    transform: translateX(0);
    border-right-color: rgba(185, 91, 247, 0.2);
    box-shadow: 5px 0 40px rgba(0, 0, 0, 0.6);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    border-bottom: 1px solid rgba(185, 91, 247, 0.2);
    background: linear-gradient(90deg, rgba(185, 91, 247, 0.08) 0%, transparent 100%);
    position: relative;
}

/* Glow effect under header */
.side-menu-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 91, 247, 0.5), transparent);
}

.side-menu-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(185, 91, 247, 0.5);
    position: relative;
}

.side-menu-close {
    width: 36px;
    height: 36px;
    background: rgba(185, 91, 247, 0.1);
    border: 1px solid rgba(185, 91, 247, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.side-menu-close:active {
    background: rgba(185, 91, 247, 0.25);
    transform: scale(0.9);
}

.side-menu-items {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(-20px);
}

.side-menu.open .side-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.side-menu.open .side-menu-section:nth-child(1) .side-menu-item { transition-delay: 0.1s; }

.side-menu-item:active {
    background: rgba(185, 91, 247, 0.15);
    transform: scale(0.97);
}

.side-menu-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 91, 247, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.side-menu-label {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.side-menu-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
    z-index: 1;
}

.side-menu-item:active .side-menu-arrow {
    transform: translateX(3px);
}

/* Side menu sections (expandable) */
.side-menu-section {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.side-menu-toggle {
    width: 100%;
}

.side-menu-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-section.open .side-menu-chevron {
    transform: rotate(180deg);
}

.side-menu-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu-section.open .side-menu-sub {
    max-height: 500px;
}

.side-menu-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    width: 100%;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.side-menu-sub-item:active {
    background: rgba(185, 91, 247, 0.1);
    color: var(--text-primary);
}

.side-menu-sub-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(185, 91, 247, 0.5);
    flex-shrink: 0;
}

.side-menu-sub-label {
    font-size: 13px;
    font-weight: 600;
}

/* About cards inside side menu */
.side-menu-about {
    padding: 6px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(185, 91, 247, 0.04);
    border: 1px solid rgba(185, 91, 247, 0.08);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.about-card:active {
    border-color: rgba(185, 91, 247, 0.25);
}

.about-card-icon {
    width: 34px;
    height: 34px;
    background: rgba(185, 91, 247, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--neon-purple-light);
}

.about-card-content {
    flex: 1;
    min-width: 0;
}

.about-card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.about-card-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.about-muted {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
}

.side-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(185, 91, 247, 0.1);
}

.side-menu-footer-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 1px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.page-about {
    position: relative;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.about-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    position: relative;
    z-index: 1;
    padding-top: 85%;
}

.about-fade {
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
    margin-top: -80px;
}

.about-catalog-header {
    background: var(--bg-app);
    padding-top: 0;
}

.about-page-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 100px;
    background: var(--bg-app);
}

/* Section cards */
.about-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.1);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.about-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.15), rgba(255, 77, 219, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-purple-light);
    flex-shrink: 0;
}

.about-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Schedule */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schedule-row {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(185, 91, 247, 0.05);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 110px;
    flex-shrink: 0;
}

.schedule-dots {
    flex: 1;
    height: 1px;
    margin: 0 10px;
    background: repeating-linear-gradient(
        90deg,
        rgba(185, 91, 247, 0.2) 0px,
        rgba(185, 91, 247, 0.2) 2px,
        transparent 2px,
        transparent 6px
    );
}

.schedule-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-purple-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.schedule-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 16px;
    background: rgba(76, 217, 100, 0.08);
    border: 1px solid rgba(76, 217, 100, 0.15);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #4cd964;
}

.schedule-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4cd964;
    animation: badgeDotPulse 2s ease-in-out infinite;
}

@keyframes badgeDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================================
   CONTACT CARDS - Compact & Animated
   ======================================== */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.08) 0%, rgba(255, 77, 219, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.08) 0%, rgba(0, 200, 255, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.contact-card-purple::before { opacity: 1; }
.contact-card-blue::after { opacity: 1; }

.contact-card:hover,
.contact-card:active {
    transform: translateY(-3px) scale(1.015);
    border-color: rgba(185, 91, 247, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(185, 91, 247, 0.12);
}

.contact-card-blue:hover,
.contact-card-blue:active {
    border-color: rgba(30, 144, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(30, 144, 255, 0.12);
}

/* Glow effect */
.contact-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(185, 91, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-card-purple .contact-card-glow {
    background: radial-gradient(circle, rgba(185, 91, 247, 0.25) 0%, transparent 70%);
}

.contact-card-blue .contact-card-glow {
    background: radial-gradient(circle, rgba(30, 144, 255, 0.25) 0%, transparent 70%);
}

.contact-card:hover .contact-card-glow {
    opacity: 1;
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    33% { transform: scale(1.15) translate(-10px, 10px); opacity: 0.7; }
    66% { transform: scale(1.1) translate(5px, -5px); opacity: 0.6; }
}

/* Shine effect */
.contact-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.contact-card:hover .contact-card-shine {
    left: 100%;
}

/* Floating particles */
.contact-card-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.contact-card-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(185, 91, 247, 0.6);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
}

.contact-card-purple .particle:nth-child(1) {
    left: 20%; top: 30%;
    background: rgba(185, 91, 247, 0.7);
    animation: particleFloat1 3s ease-in-out infinite;
}
.contact-card-purple .particle:nth-child(2) {
    left: 70%; top: 60%;
    background: rgba(255, 77, 219, 0.6);
    animation: particleFloat2 3.5s ease-in-out 0.5s infinite;
}
.contact-card-purple .particle:nth-child(3) {
    left: 50%; top: 80%;
    background: rgba(212, 132, 255, 0.5);
    animation: particleFloat3 4s ease-in-out 1s infinite;
}

.contact-card-blue .particle {
    background: rgba(30, 144, 255, 0.6);
}
.contact-card-blue .particle:nth-child(1) {
    left: 25%; top: 35%;
    background: rgba(30, 144, 255, 0.7);
    animation: particleFloat1 3s ease-in-out infinite;
}
.contact-card-blue .particle:nth-child(2) {
    left: 65%; top: 55%;
    background: rgba(0, 200, 255, 0.6);
    animation: particleFloat2 3.5s ease-in-out 0.5s infinite;
}
.contact-card-blue .particle:nth-child(3) {
    left: 45%; top: 75%;
    background: rgba(100, 180, 255, 0.5);
    animation: particleFloat3 4s ease-in-out 1s infinite;
}

@keyframes particleFloat1 {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-15px) scale(1); }
}
@keyframes particleFloat2 {
    0%, 100% { opacity: 0; transform: translateX(0) scale(0); }
    50% { opacity: 1; transform: translateX(12px) scale(1.2); }
}
@keyframes particleFloat3 {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-20px) scale(0.8); }
}

.contact-card-content {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.contact-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.contact-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-card-purple .contact-card-avatar {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(42, 171, 238, 0.35);
}

.contact-card-blue .contact-card-avatar {
    background: linear-gradient(135deg, #1e90ff 0%, #00c8ff 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(30, 144, 255, 0.35);
}

.contact-card:hover .contact-card-avatar {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 10px 25px rgba(42, 171, 238, 0.5);
}

.contact-card-blue:hover .contact-card-avatar {
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.5);
}

/* Avatar ring animation */
.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card-purple:hover .avatar-ring {
    border-top-color: rgba(185, 91, 247, 0.8);
    border-right-color: rgba(255, 77, 219, 0.4);
    opacity: 1;
    animation: avatarRingSpin 1.5s linear infinite;
}

.contact-card-blue:hover .avatar-ring {
    border-top-color: rgba(30, 144, 255, 0.8);
    border-right-color: rgba(0, 200, 255, 0.4);
    opacity: 1;
    animation: avatarRingSpin 1.5s linear infinite;
}

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

.contact-card-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(76, 217, 100, 0.12);
    border: 1px solid rgba(76, 217, 100, 0.25);
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    color: #4cd964;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-badge {
    background: rgba(76, 217, 100, 0.2);
    border-color: rgba(76, 217, 100, 0.4);
    transform: scale(1.05);
}

.contact-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4cd964;
    animation: badgeDotPulse 1.5s ease-in-out infinite;
}

.badge-text {
    font-weight: 800;
}

.contact-card-badge-tech {
    background: rgba(30, 144, 255, 0.18);
    border-color: rgba(30, 144, 255, 0.35);
    color: #1e90ff;
}

.contact-card-badge-tech .contact-badge-dot {
    background: #1e90ff;
    animation: badgeDotPulse 1s ease-in-out infinite;
}

.contact-card:hover .contact-card-badge-tech {
    background: rgba(30, 144, 255, 0.25);
    border-color: rgba(30, 144, 255, 0.5);
}

.contact-card-info {
    margin-bottom: 12px;
}

.contact-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
    letter-spacing: -0.2px;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-name {
    transform: translateX(3px);
}

.contact-card-role {
    font-size: 11px;
    font-weight: 600;
    color: var(--neon-purple-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-blue .contact-card-role {
    color: #1e90ff;
}

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

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.15), rgba(255, 77, 219, 0.1));
    border: 1px solid rgba(185, 91, 247, 0.3);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--neon-purple-light);
    transition: all 0.3s ease;
}

.contact-card-btn-tech {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(0, 200, 255, 0.1));
    border-color: rgba(30, 144, 255, 0.3);
    color: #1e90ff;
}

.contact-card-btn:hover {
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.25), rgba(255, 77, 219, 0.2));
    border-color: rgba(185, 91, 247, 0.5);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(185, 91, 247, 0.2);
}

.contact-card-btn-tech:hover {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.25), rgba(0, 200, 255, 0.2));
    border-color: rgba(30, 144, 255, 0.5);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
}

.contact-card-btn svg {
    transition: transform 0.3s ease;
}

.contact-card-btn:hover svg {
    transform: translateX(2px) rotate(-8deg);
}

.contact-card-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    color: var(--neon-purple-light);
    transform: translateX(4px);
}

.contact-card-blue:hover .contact-card-arrow {
    color: #1e90ff;
}

/* ========================================
   ABOUT PAGE - HERO REFRESH
   ======================================== */
.page-about {
    overflow-x: hidden;
    overflow-y: visible;
    background: var(--bg-app);
}

.about-content {
    padding-top: 130%;
}

.about-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.about-trust-badge-live {
    background: rgba(76, 217, 100, 0.12);
    border-color: rgba(76, 217, 100, 0.2);
    color: #72f28f;
}

.about-action-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-action-btn-primary {
    flex: 1 1 auto;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    box-shadow: 0 12px 26px rgba(185, 91, 247, 0.28);
}

.about-action-btn-primary:active {
    transform: translateY(1px) scale(0.99);
}

.about-action-btn-secondary {
    flex: 1 1 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.about-action-btn-secondary:active {
    transform: translateY(1px);
}

.about-fade {
    height: 40px;
    margin-top: -40px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.46) 64%, var(--bg-app) 100%);
}

.about-page-body {
    gap: 18px;
    padding-top: 2px;
    padding-bottom: 144px;
}

.about-block-head,
.about-features-grid {
    display: none;
}

.about-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-block-head {
    display: grid;
    gap: 6px;
}

.about-block-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--neon-purple-light);
}

.about-block-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-feature-card {
    position: relative;
    overflow: hidden;
    padding: 16px 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        linear-gradient(145deg, rgba(23, 23, 33, 0.98), rgba(31, 22, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.about-feature-card::after {
    content: '';
    position: absolute;
    inset: auto 16px 0 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(185, 91, 247, 0.9), rgba(255, 77, 219, 0.5));
}

.about-feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.18), rgba(255, 77, 219, 0.12));
    color: var(--neon-purple-light);
    font-size: 20px;
    font-weight: 900;
}

.about-feature-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text-primary);
}

.about-feature-text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.about-section-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        linear-gradient(145deg, rgba(22, 22, 31, 0.96), rgba(26, 19, 34, 0.98));
    border: 1px solid rgba(185, 91, 247, 0.12);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.about-section-card-steps {
    padding-bottom: 14px;
}

.about-steps {
    display: grid;
    gap: 14px;
}

.about-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-step-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.18), rgba(255, 77, 219, 0.1));
    color: var(--neon-purple-light);
    font-size: 15px;
    font-weight: 900;
}

.about-step-content {
    display: grid;
    gap: 6px;
}

.about-step-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
}

.about-step-text,
.about-section-note {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.about-section-note {
    margin-top: 14px;
}

.contact-card-manager .contact-card-content {
    padding: 18px;
}

.about-contact-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.about-contact-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.about-support-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    gap: 12px;
    align-items: center;
    padding: 16px 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
}

.about-support-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.18), rgba(0, 200, 255, 0.12));
    color: #7cc1ff;
}

.about-support-content {
    display: grid;
    gap: 4px;
}

.about-support-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
}

.about-support-text {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.about-support-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-support-card:active .about-support-arrow {
    color: #7cc1ff;
    transform: translateX(3px);
}

.about-sticky-cta {
    position: sticky;
    bottom: calc(86px + var(--safe-bottom));
    z-index: 6;
    display: grid;
    gap: 10px;
    margin-top: 6px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.about-action-btn-wide {
    width: 100%;
}

@media (min-width: 768px) {
    .about-content {
        padding-top: 92%;
    }

    .about-page-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 420px) {
    .about-content {
        padding-top: 148%;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .about-feature-card {
        min-height: 0;
    }

    .about-block-title {
        font-size: 18px;
    }
}

.page-about .about-block-head,
.page-about .about-features-grid {
    display: none !important;
}

/* ========================================
   VPN PAGE
   ======================================== */
.page-vpn {
    position: relative;
    overflow: hidden;
}

.vpn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.vpn-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.vpn-content-overlay {
    position: relative;
    z-index: 1;
    padding-top: 88%;
}

.vpn-content-overlay .catalog-header {
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
}

.vpn-info {
    background: var(--bg-app);
    padding: 20px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.vpn-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.vpn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 900;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow:
        0 0 20px rgba(185, 91, 247, 0.4),
        0 0 40px rgba(255, 77, 219, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: vpnBtnPulse 2s ease-in-out infinite;
}

.vpn-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: vpnShine 3s ease-in-out infinite;
}

.vpn-btn:active {
    transform: scale(0.95);
    box-shadow:
        0 0 30px rgba(185, 91, 247, 0.6),
        0 0 60px rgba(255, 77, 219, 0.3);
}

@keyframes vpnBtnPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(185,91,247,0.4), 0 0 40px rgba(255,77,219,0.2), 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 0 30px rgba(185,91,247,0.6), 0 0 60px rgba(255,77,219,0.35), 0 4px 20px rgba(0,0,0,0.3); }
}

@keyframes vpnShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.page-category {
    position: relative;
    min-height: 100vh;
    background: var(--bg-app);
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.category-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.category-content-overlay {
    position: relative;
    z-index: 1;
    padding-top: 88%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.category-content-overlay .catalog-header {
    background: linear-gradient(180deg, transparent 0%, var(--bg-app) 100%);
}

.category-body {
    background: var(--bg-app);
    padding-bottom: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.category-back-floating {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(185, 91, 247, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon-purple-light);
    transition: all 0.2s ease;
    z-index: 5;
}

.category-back-floating:active {
    background: rgba(185, 91, 247, 0.25);
    transform: scale(0.9);
}

/* Brand List */
.brand-list {
    padding: 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.brand-list-empty {
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: stretch;
}

.brand-list-empty > p,
.catalog-empty-state {
    margin: 0;
}

.catalog-empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 20px 16px;
    text-align: center;
    color: var(--text-secondary);
}

.products-grid .catalog-empty-state {
    min-height: clamp(260px, 42vh, 420px);
    padding-bottom: 110px;
}

.catalog-empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(185, 91, 247, 0.1);
    border: 1px solid rgba(185, 91, 247, 0.16);
    color: var(--neon-purple-light);
}

.catalog-empty-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.catalog-empty-sub {
    max-width: 260px;
    font-size: 12px;
    line-height: 1.5;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card-gradient);
    border: 1px solid rgba(185, 91, 247, 0.15);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.25s ease;
    animation: brandFadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes brandFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.brand-item:active {
    background: rgba(185, 91, 247, 0.12);
    transform: scale(0.98);
    border-color: rgba(185, 91, 247, 0.35);
}

.brand-emoji {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 91, 247, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.brand-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-item:active .brand-arrow {
    transform: translateX(3px);
    color: var(--neon-purple-light);
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 3px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 380px) {
    .products-grid { gap: 10px; padding: 0 12px 80px; }
    .product-card { padding: 11px; }
    .price-current { font-size: 15px; }
    .catalog-title { font-size: 24px; letter-spacing: 4px; }
}

/* ========================================
   CSS @property for animated border angle
   ======================================== */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}


/* ========================================
   CHECKOUT MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: modalOverlayFadeIn 0.2s ease-out;
}

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

.modal {
    background: linear-gradient(145deg, #1a1a25 0%, #251a2e 100%);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(185, 91, 247, 0.2);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ========================================
   CHECKOUT STEPS INDICATOR
   ======================================== */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(185, 91, 247, 0.15);
    background: linear-gradient(180deg, rgba(185, 91, 247, 0.05) 0%, transparent 100%);
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(185, 91, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 91, 247, 0.2), rgba(255, 77, 219, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.checkout-step.active .step-indicator {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    border-color: #2ed573;
    color: white;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.5), 0 0 40px rgba(46, 213, 115, 0.3);
    transform: scale(1.1);
    animation: stepIndicatorPulse 2s ease-in-out infinite;
}

.checkout-step.active .step-indicator::before {
    opacity: 1;
}

.checkout-step.completed .step-indicator {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    border-color: #2ed573;
    color: white;
    box-shadow: 0 0 20px rgba(46, 213, 115, 0.5);
}

@keyframes stepIndicatorPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(46, 213, 115, 0.5), 0 0 40px rgba(46, 213, 115, 0.3); }
    50% { box-shadow: 0 0 30px rgba(46, 213, 115, 0.7), 0 0 60px rgba(46, 213, 115, 0.4); }
}

.step-indicator svg {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.checkout-step.active .step-indicator svg {
    animation: stepIconBounce 1s ease-in-out infinite;
}

@keyframes stepIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

.step-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.checkout-step.active .step-label {
    color: #2ed573;
    text-shadow: 0 0 10px rgba(46, 213, 115, 0.5);
}

.checkout-step.completed .step-label {
    color: #2ed573;
}

.checkout-step-line {
    width: 60px;
    height: 2px;
    background: rgba(185, 91, 247, 0.15);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.checkout-step-line.active {
    background: linear-gradient(90deg, #2ed573, rgba(46, 213, 115, 0.3));
    box-shadow: 0 0 10px rgba(46, 213, 115, 0.5);
}

.checkout-step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(185, 91, 247, 0.6), transparent);
    animation: stepLineShine 2s ease-in-out infinite;
}

.checkout-step-line.active::before {
    background: linear-gradient(90deg, transparent, rgba(46, 213, 115, 0.8), transparent);
}

@keyframes stepLineShine {
    0%, 100% { left: -100%; }
    50%, 100% { left: 100%; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(185, 91, 247, 0.2);
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-purple-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--neon-pink);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.optional-badge {
    font-size: 10px;
    color: var(--neon-blue);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.checkout-order-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-purple-light);
    font-family: 'Courier New', monospace;
    padding: 12px;
    background: rgba(185, 91, 247, 0.1);
    border: 1px solid rgba(185, 91, 247, 0.3);
    border-radius: 12px;
    text-align: center;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(185, 91, 247, 0.1);
}

.checkout-item-emoji {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 91, 247, 0.1);
    border-radius: 8px;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-item-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.checkout-item-price {
    color: var(--neon-pink);
    font-weight: 600;
}

.checkout-total-section {
    padding-top: 16px;
    border-top: 2px solid rgba(185, 91, 247, 0.3);
}

.checkout-total {
    font-size: 28px;
    font-weight: 800;
    color: var(--neon-purple-light);
    text-shadow: 0 0 20px rgba(185, 91, 247, 0.5);
}

.checkout-comment {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-comment:focus {
    outline: none;
    border-color: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
}

.checkout-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-input:focus {
    outline: none;
    border-color: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
}

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

.checkout-input-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.checkout-confirm-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(46, 213, 115, 0.05);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 12px;
}

.checkout-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(46, 213, 115, 0.1);
}

.checkout-confirm-row:last-child {
    border-bottom: none;
}

.checkout-confirm-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.checkout-confirm-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(185, 91, 247, 0.3);
}

.checkout-comment::placeholder {
    color: var(--text-muted);
}

.comment-hint {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(185, 91, 247, 0.2);
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-btn-submit {
    background: linear-gradient(135deg, #b95bf7 0%, #ff4ddb 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(185, 91, 247, 0.4);
}

.modal-btn-submit:hover {
    box-shadow: 0 6px 30px rgba(185, 91, 247, 0.6);
    transform: translateY(-2px);
}

.modal-btn-submit:active {
    transform: translateY(0);
}

/* ========================================
   ORDER CARDS (Profile)
   ======================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(185, 91, 247, 0.12);
    border-radius: 12px;
    padding: 14px;
    animation: brandFadeIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(8px);
}

.order-card:nth-child(1) { animation-delay: 0s; }
.order-card:nth-child(2) { animation-delay: 0.05s; }
.order-card:nth-child(3) { animation-delay: 0.1s; }
.order-card:nth-child(4) { animation-delay: 0.15s; }
.order-card:nth-child(5) { animation-delay: 0.2s; }

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-number {
    font-size: 13px;
    font-weight: 800;
    color: var(--neon-purple-light);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-completed {
    background: rgba(76, 175, 80, 0.12);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-cancelled {
    background: rgba(255, 71, 87, 0.12);
    color: #ff6b7a;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

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

.order-info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.order-info-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.order-total {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
}

.order-card-footer {
    border-top: 1px solid rgba(185, 91, 247, 0.08);
    padding-top: 8px;
}

.order-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Orders Pagination */
.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0 4px;
}

.orders-pag-btn {
    width: 34px;
    height: 34px;
    background: rgba(185, 91, 247, 0.1);
    border: 1px solid rgba(185, 91, 247, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon-purple-light);
    transition: all 0.2s ease;
    padding: 0;
}

.orders-pag-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.orders-pag-btn:active:not(:disabled) {
    background: rgba(185, 91, 247, 0.25);
    transform: scale(0.9);
}

.orders-pag-info {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: center;
}

/* Order Details (expandable) */
.order-card {
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.order-card.order-expanded {
    border-color: rgba(185, 91, 247, 0.3);
}

.order-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(185, 91, 247, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: brandFadeIn 0.2s ease forwards;
}

.order-details-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.order-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(185, 91, 247, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(185, 91, 247, 0.08);
    transition: background 0.15s ease;
}

.order-detail-item + .order-detail-item {
    margin-top: 6px;
}

.order-detail-emoji {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 91, 247, 0.1);
    border-radius: 8px;
}

.order-detail-info {
    flex: 1;
    min-width: 0;
}

.order-detail-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.order-detail-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-detail-right {
    text-align: right;
    flex-shrink: 0;
}

.order-detail-qty {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.order-detail-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-purple-light);
    margin-top: 1px;
}

.order-detail-comment {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-top: 6px;
}

.order-details-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(185, 91, 247, 0.1);
}

.order-details-total-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.order-details-total-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Low stock warning on product cards */
.product-stock-warning {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #ff6b6b;
    margin: 6px 0 2px;
    padding: 3px 8px;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 6px;
    width: fit-content;
}

.product-stock-warning svg {
    flex-shrink: 0;
}

.product-out-of-stock .add-to-cart-btn {
    opacity: 0.4;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05) !important;
}

.product-out-of-stock .product-image {
    opacity: 0.5;
}

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

.order-expand-hint {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.order-expand-hint svg {
    transition: transform 0.2s ease;
}
