/* ========================================
   SaintShop - Premium Telegram Mini App
   ======================================== */

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

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

    --gradient-primary: linear-gradient(135deg, #f75b9c 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, #f65c9c 0%, #f75b9c 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.1);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.1); }
    50% { box-shadow: 0 0 40px rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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;
    color: #fff7fb;
    -webkit-text-fill-color: #fff7fb;
    -webkit-text-stroke: 0.6px rgba(8, 2, 8, 0.9);
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(255, 255, 255, 0.28);
}

/* 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(247, 91, 156, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-btn:active {
    transform: scale(0.92);
    background: rgba(247, 91, 156, 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%);
}

.catalog-search-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 10px;
    position: relative;
    z-index: 1;
    background: var(--bg-app);
}

.catalog-search-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.catalog-search-status {
    display: none !important;
}

.catalog-search-status::before {
    display: none;
}

.catalog-search-hint-row {
    display: none !important;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 16px;
    padding: 0 14px 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 26, 0.86);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.catalog-search-wrap.is-searching .catalog-search {
    border-color: rgba(255, 132, 183, 0.28);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 0 1px rgba(255, 132, 183, 0.08);
}

.catalog-search-wrap.is-loading .catalog-search {
    border-color: rgba(255, 132, 183, 0.34);
}

.catalog-search-wrap.is-loading .catalog-search-status {
    border-color: rgba(255, 176, 113, 0.18);
    background: rgba(64, 41, 26, 0.46);
    color: rgba(255, 224, 191, 0.9);
}

.catalog-search-wrap.is-loading .catalog-search-status::before {
    background: #ffb97b;
    box-shadow: 0 0 12px rgba(255, 185, 123, 0.55);
}

.catalog-search-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(235, 217, 224, 0.82);
    flex-shrink: 0;
}

.catalog-search-input {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 16px 0;
    box-shadow: none !important;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.catalog-search-input:focus,
.catalog-search-input:focus-visible,
.catalog-search-input:active {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.catalog-search-input::placeholder {
    color: rgba(199, 194, 212, 0.56);
    font-weight: 500;
}

.catalog-search-input::-webkit-search-cancel-button,
.catalog-search-input::-webkit-search-decoration,
.catalog-search-input::-webkit-search-results-button,
.catalog-search-input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.catalog-search-clear {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.66);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.86);
    transition: all 0.2s ease;
}

.catalog-search-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.catalog-search-suggestions {
    display: none !important;
}

.catalog-search-suggestions.is-visible {
    display: none !important;
}

.catalog-search-suggestion {
    width: 100%;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(18, 21, 30, 0.82);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.catalog-search-suggestion:active {
    transform: scale(0.985);
}

.catalog-search-suggestion-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(11, 13, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.catalog-search-suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-search-suggestion-fallback {
    font-size: 22px;
}

.catalog-search-suggestion-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-search-suggestion-name {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-search-highlight {
    padding: 0 1px;
    border-radius: 4px;
    background: rgba(255, 141, 188, 0.12);
    color: #fff6fa;
}

.catalog-search-suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    line-height: 1.35;
    color: rgba(228, 198, 210, 0.66);
}

.catalog-search-suggestion-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.catalog-search-suggestion-price {
    align-self: center;
    padding-left: 4px;
    font-size: 14px;
    font-weight: 800;
    color: #ffe7f1;
    white-space: nowrap;
}

.catalog-search-suggestion.is-empty,
.catalog-search-suggestion.is-loading {
    grid-template-columns: 1fr;
    justify-items: start;
    cursor: default;
    pointer-events: none;
}

.catalog-search-suggestion.is-loading::after {
    content: '';
    width: 64%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    background-size: 180% 100%;
    animation: searchSkeleton 1.2s linear infinite;
}

.catalog-search-chips {
    display: none !important;
}

.catalog-search-chip {
    min-height: 30px;
    padding: 0 10px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(243, 215, 227, 0.78);
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.catalog-search-chip:active,
.catalog-search-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 132, 183, 0.26);
    background: rgba(255, 132, 183, 0.12);
    color: #fff1f7;
}

.catalog-search-meta {
    display: none !important;
}

@keyframes searchSkeleton {
    from { background-position: 180% 0; }
    to { background-position: -180% 0; }
}

/* 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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: #ff84b7;
    /* Gradient flow */
    background: linear-gradient(
        90deg,
        #ff84b7 0%,
        #ff80e8 20%,
        #ff4ddb 40%,
        #f75b9c 60%,
        #ff84b7 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 - pink */
.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(247, 91, 156, 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);
    contain: layout paint style;
}

/* ========================================
   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;
    contain: content;
    content-visibility: auto;
    contain-intrinsic-size: 320px;
    /* Animated border via pseudo-element */
}

.product-card-no-enter {
    animation: none;
    opacity: 1;
}

.products-grid-performance .product-card {
    opacity: 1;
    animation: none;
    contain-intrinsic-size: 288px;
}

.products-grid-performance .product-card::before,
.products-grid-performance .product-image::before {
    animation: none !important;
}

.products-grid-performance .product-image::before {
    display: none;
}

.products-grid-performance .product-card::before {
    background: linear-gradient(
        135deg,
        rgba(247, 91, 156, 0.28),
        rgba(255, 77, 219, 0.12),
        rgba(30, 144, 255, 0.08),
        rgba(247, 91, 156, 0.22)
    );
}

.storefront-load-more {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
}

.storefront-load-more-done {
    padding-top: 4px;
}

.storefront-load-more-btn {
    border: 1px solid rgba(247, 91, 156, 0.35);
    background: linear-gradient(135deg, rgba(247, 91, 156, 0.18), rgba(255, 77, 219, 0.12));
    color: var(--text-primary);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 10px 30px rgba(247, 91, 156, 0.16);
}

.storefront-load-more-meta {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.storefront-load-more-sentinel {
    width: 100%;
    height: 1px;
}

/* 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(247, 91, 156, 0.5),
        rgba(255, 77, 219, 0.3),
        rgba(30, 144, 255, 0.2),
        rgba(247, 91, 156, 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(247, 91, 156, 0.4),
            rgba(255, 77, 219, 0.2),
            rgba(30, 144, 255, 0.15),
            rgba(247, 91, 156, 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(247, 91, 156, 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(246, 92, 156, 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(247, 91, 156, 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(247, 91, 156, 0.3));
}

/* Product Info */
.product-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
    line-height: 1.24;
    word-break: break-word;
    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(247, 91, 156, 0.12);
    border: 1px solid rgba(247, 91, 156, 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(246, 92, 156, 0.2); color: #f75b9c; }
.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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.3);
}

.advantage-icon {
    width: 28px;
    height: 28px;
    background: rgba(247, 91, 156, 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(247, 91, 156, 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;
    min-width: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.tab-item[hidden] {
    display: none !important;
}

.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(247, 91, 156, 0.7));
}

.tab-label {
    font-size: 9px;
    font-weight: 600;
    color: #4a4a5a;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s ease;
}

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

.tab-item-minigames .tab-icon {
    stroke: rgba(255, 128, 232, 0.62);
}

.tab-item-minigames.active .tab-icon {
    stroke: #ff80e8;
    filter:
        drop-shadow(0 0 8px rgba(255, 77, 219, 0.72))
        drop-shadow(0 0 16px rgba(77, 148, 255, 0.28));
}

.tab-item-minigames.active .tab-label {
    color: #ffb8f1;
}

.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(247, 91, 156, 0.4);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(247, 91, 156, 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;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0) 0%, rgba(8, 10, 16, 0.94) 56%, var(--bg-app) 68%);
}

.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, #ff84b7, #ff80e8, #ff4ddb, #ff84b7);
    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(247, 91, 156, 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(247, 91, 156, 0.2);
}

/* Section */
.profile-section {
    margin: 0 16px 20px;
    background: var(--bg-card-gradient);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.4),
        rgba(255, 77, 219, 0.2),
        rgba(30, 144, 255, 0.15),
        rgba(247, 91, 156, 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;
    overflow: hidden;
}

.cart-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14%;
    height: 54%;
    background:
        radial-gradient(ellipse at 50% 72%, rgba(247, 91, 156, 0.06), transparent 64%),
        linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.04) 36%, rgba(10, 10, 15, 0.18) 68%, var(--bg-app) 100%);
}

.cart-bg-img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.88) 74%, rgba(0, 0, 0, 0.44) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 64%, rgba(0, 0, 0, 0.88) 74%, rgba(0, 0, 0, 0.44) 88%, transparent 100%);
}

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

.cart-content-overlay .catalog-header {
    margin-top: -118px;
    padding-top: 128px;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.03) 44%, rgba(10, 10, 15, 0.2) 76%, 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(247, 91, 156, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(54, 31, 41, 0.98), rgba(36, 20, 27, 0.98));
    border-radius: 22px;
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.42),
        rgba(255, 77, 219, 0.18),
        rgba(30, 144, 255, 0.12),
        rgba(247, 91, 156, 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(255, 118, 175, 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(49, 31, 38, 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(247, 91, 156, 0.12);
}

.cart-item-icon-wrap::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(247, 91, 156, 0.22), rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(143, 51, 89, 0.28), rgba(84, 32, 54, 0.22));
    border: 1px solid rgba(247, 91, 156, 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(188, 69, 119, 0.36), rgba(108, 41, 69, 0.3));
    transform: scale(0.92);
    box-shadow: 0 0 0 4px rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.4);
    transition: all 0.2s ease;
}

.cart-empty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(247, 91, 156, 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(247, 91, 156, 0.2);
    z-index: 50;
}

.cart-bonus-summary {
    margin-bottom: 14px;
}

.cart-bonus-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(247, 91, 156, 0.22);
    background:
        linear-gradient(135deg, rgba(247, 91, 156, 0.16) 0%, rgba(255, 77, 219, 0.08) 100%),
        rgba(255, 255, 255, 0.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 30px rgba(20, 8, 13, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cart-bonus-toggle.is-active {
    border-color: rgba(255, 120, 232, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 120, 232, 0.12),
        0 14px 34px rgba(247, 91, 156, 0.22);
}

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

.cart-bonus-toggle-badge {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22, 20, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffd3e5;
}

.cart-bonus-toggle-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.cart-bonus-toggle-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.cart-bonus-toggle-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-bonus-toggle-value {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 900;
    color: #ff8de9;
    text-shadow: 0 0 18px rgba(255, 77, 219, 0.35);
}

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

.cart-total-row--discount {
    margin-top: 10px;
    margin-bottom: 8px;
}

.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-total-value--discount {
    font-size: 18px;
    color: #ff8de9;
}

.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(247, 91, 156, 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(247, 91, 156, 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);
    will-change: transform;
}

.side-menu::before,
.side-menu::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.side-menu::before {
    left: -12%;
    right: -10%;
    bottom: 10%;
    height: 34%;
    background:
        radial-gradient(circle at 26% 30%, rgba(255, 98, 171, 0.18), transparent 34%),
        radial-gradient(circle at 74% 46%, rgba(255, 132, 183, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(247, 91, 156, 0.08) 62%, rgba(8, 8, 16, 0));
    filter: blur(18px);
    opacity: 0.95;
    transform: translateY(0);
    animation: side-menu-ambient-float 8.8s ease-in-out infinite;
}

.side-menu::after {
    left: 18px;
    right: 18px;
    bottom: 96px;
    height: 120px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
        linear-gradient(135deg, rgba(255, 106, 176, 0.09), rgba(255, 132, 183, 0.05) 70%);
    border: 1px solid rgba(255, 132, 183, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 20px 34px rgba(6, 8, 18, 0.24);
    mask-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 100%),
        repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 22px),
        repeating-linear-gradient(180deg, #000 0 1px, transparent 1px 18px);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 100%),
        repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 22px),
        repeating-linear-gradient(180deg, #000 0 1px, transparent 1px 18px);
    -webkit-mask-composite: source-in, source-in;
    opacity: 0.62;
}

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

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

/* 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(247, 91, 156, 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(247, 91, 156, 0.5);
    position: relative;
}

.side-menu-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.side-menu-brand-mark {
    position: relative;
    min-height: 102px;
    padding: 16px 82px 14px 16px;
    border-radius: 22px;
    isolation: isolate;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: left center;
    animation: side-menu-brand-float 7.4s ease-in-out infinite;
}

.side-menu-brand-backdrop,
.side-menu-brand-grid {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.side-menu-brand-backdrop {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 126, 232, 0.34), transparent 32%),
        radial-gradient(circle at 82% 24%, rgba(255, 132, 183, 0.24), transparent 30%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.06), transparent 38%),
        linear-gradient(145deg, rgba(38, 18, 30, 0.99), rgba(16, 10, 18, 0.96));
    border: 1px solid rgba(255, 209, 228, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 34px rgba(4, 8, 20, 0.42),
        0 0 0 1px rgba(255, 107, 227, 0.06);
}

.side-menu-brand-backdrop::before,
.side-menu-brand-backdrop::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.side-menu-brand-backdrop::before {
    right: 12px;
    top: 15px;
    width: 54px;
    height: 68px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 116, 185, 0.34), rgba(255, 67, 142, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: polygon(24% 0%, 100% 0%, 76% 100%, 0% 100%);
    transform: rotate(14deg) translateZ(22px);
    box-shadow:
        0 16px 22px rgba(45, 7, 22, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0.72;
    animation: side-menu-brand-prism-drift 7.8s ease-in-out infinite;
}

.side-menu-brand-backdrop::after {
    left: 12px;
    right: 60px;
    bottom: 10px;
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 104, 176, 0.22), rgba(255, 132, 183, 0.08));
    filter: blur(12px);
    opacity: 0.72;
}

.side-menu-brand-grid {
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 18%, transparent 38%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 24px);
    opacity: 0.34;
    mix-blend-mode: screen;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 100%);
    animation: side-menu-brand-grid-shift 11s linear infinite;
}

.side-menu-logo-3d {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    min-height: 32px;
    max-width: calc(100% - 4px);
    overflow: visible;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    justify-items: center;
    text-align: center;
    max-width: calc(100% - 46px);
    margin: 10px auto 0;
}

.side-menu-logo-3d > span {
    grid-area: 1 / 1;
    position: relative;
    display: block;
    white-space: nowrap;
}

.side-menu-logo-shadow {
    z-index: 0;
    color: rgba(255, 91, 156, 0.46);
    transform: translate3d(0, 7px, -32px) scale(1.03);
    filter: blur(5px);
    text-shadow: 0 14px 24px rgba(83, 17, 44, 0.46);
    animation: side-menu-logo-shadow-drift 6.5s ease-in-out infinite;
}

.side-menu-logo-main {
    z-index: 2;
    background: linear-gradient(96deg, #fff0f7 0%, #ffacd0 22%, #ff6faa 58%, #ffd1e1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.4px rgba(255, 230, 240, 0.2);
    text-shadow:
        0 0 18px rgba(255, 110, 224, 0.34),
        0 0 34px rgba(255, 111, 171, 0.28),
        0 6px 18px rgba(35, 8, 19, 0.22);
    animation: gradient-shift 4.6s ease-in-out infinite, side-menu-logo-prism 7.2s ease-in-out infinite;
}

.side-menu-logo-glow {
    z-index: 1;
    color: rgba(255, 140, 233, 0.58);
    transform: translate3d(0, 0, -22px) scale(1.03);
    filter: blur(13px);
    opacity: 0.96;
    mix-blend-mode: screen;
    animation: side-menu-logo-bloom 4.2s ease-in-out infinite;
}

.side-menu-brand-deck {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - 54px);
    height: 28px;
    margin-top: 12px;
    pointer-events: none;
}

.side-menu-brand-deck::before {
    content: '';
    position: absolute;
    left: 0;
    right: 8px;
    bottom: 0;
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 94, 171, 0.18), rgba(255, 132, 183, 0.08));
    filter: blur(14px);
    opacity: 0.82;
}

.side-menu-brand-rail {
    position: absolute;
    left: 0;
    border-radius: 999px;
    transform-origin: left center;
}

.side-menu-brand-rail--primary {
    right: 22px;
    bottom: 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 112, 177, 0.95), rgba(255, 118, 175, 0.78), rgba(255, 132, 183, 0.18));
    box-shadow:
        0 0 14px rgba(255, 103, 170, 0.34),
        0 0 24px rgba(255, 132, 183, 0.18);
    animation: side-menu-rail-scan 3.8s ease-in-out infinite;
}

.side-menu-brand-rail--secondary {
    left: 14px;
    right: 44px;
    bottom: 2px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 132, 183, 0.24), rgba(255, 255, 255, 0));
    opacity: 0.7;
    animation: side-menu-rail-fade 4.6s ease-in-out infinite;
}

.side-menu-brand-node {
    position: absolute;
    bottom: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 116, 225, 0.56) 55%, rgba(255, 116, 225, 0) 72%);
    box-shadow:
        0 0 10px rgba(255, 118, 227, 0.34),
        0 0 20px rgba(255, 132, 183, 0.16);
}

.side-menu-brand-node--left {
    left: 18px;
    animation: side-menu-node-pulse 3.2s ease-in-out infinite;
}

.side-menu-brand-node--mid {
    left: 42%;
    width: 6px;
    height: 6px;
    opacity: 0.86;
    animation: side-menu-node-pulse 2.8s ease-in-out infinite 0.55s;
}

.side-menu-brand-node--right {
    right: 30px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 132, 183, 0.56) 55%, rgba(255, 132, 183, 0) 72%);
    box-shadow:
        0 0 10px rgba(255, 132, 183, 0.34),
        0 0 20px rgba(255, 118, 227, 0.14);
    animation: side-menu-node-pulse 3.6s ease-in-out infinite 1s;
}

.side-menu-logo-subtitle-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 12px;
}

.side-menu-logo-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 103, 170, 0.22), rgba(255, 132, 183, 0.16)),
        rgba(255, 255, 255, 0.04);
    color: #ffdeec;
    font-family: 'Manrope', 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 12px 22px rgba(53, 10, 28, 0.34);
}

.side-menu-brand-orbits {
    position: absolute;
    top: 8px;
    right: -6px;
    width: 88px;
    height: 88px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.52;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 14px rgba(255, 118, 175, 0.18));
}

.side-menu-brand-orbits::before,
.side-menu-brand-orbits::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.side-menu-brand-orbits::before {
    inset: 22px 16px 18px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(145deg, rgba(255, 119, 178, 0.28), rgba(255, 69, 150, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(22deg);
    box-shadow:
        0 16px 24px rgba(12, 8, 32, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0.78;
    animation: side-menu-brand-prism-spin 10.5s linear infinite;
}

.side-menu-brand-orbits::after {
    inset: 34px 26px 28px 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 133, 183, 0.5), rgba(255, 95, 156, 0.08) 72%);
    filter: blur(10px);
    opacity: 0.72;
}

.side-menu-brand-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 173, 207, 0.12);
    opacity: 0.54;
    transform-origin: center;
}

.side-menu-brand-orbit--a {
    transform: rotate(16deg) scale(1.02);
    border-color: rgba(255, 108, 224, 0.16);
    animation: side-menu-orbit-spin-a 8s linear infinite;
}

.side-menu-brand-orbit--b {
    inset: 10px 12px;
    border-color: rgba(255, 132, 183, 0.18);
    animation: side-menu-orbit-spin-b 6.8s linear infinite reverse;
}

.side-menu-brand-orbit--c {
    inset: 22px 20px;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
    animation: side-menu-orbit-pulse 3.8s ease-in-out infinite;
}

@keyframes side-menu-brand-float {
    0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
    50% { transform: rotateX(5deg) rotateY(-6deg) translateY(-2px); }
}

@keyframes side-menu-brand-grid-shift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-10px, 8px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes side-menu-brand-prism-drift {
    0%, 100% { transform: rotate(14deg) translate3d(0, 0, 22px); }
    50% { transform: rotate(18deg) translate3d(-4px, 2px, 28px); }
}

@keyframes side-menu-logo-shadow-drift {
    0%, 100% { transform: translate3d(0, 7px, -32px) scale(1.03); }
    50% { transform: translate3d(-3px, 11px, -34px) scale(1.05); }
}

@keyframes side-menu-logo-prism {
    0%, 100% { transform: translate3d(0, 0, 22px); }
    50% { transform: translate3d(1px, -1px, 24px); }
}

@keyframes side-menu-logo-bloom {
    0%, 100% { opacity: 0.72; transform: translate3d(0, 0, -22px) scale(1.02); }
    50% { opacity: 1; transform: translate3d(0, 0, -18px) scale(1.06); }
}

@keyframes side-menu-rail-scan {
    0%, 100% { transform: scaleX(0.92); opacity: 0.74; }
    50% { transform: scaleX(1); opacity: 1; }
}

@keyframes side-menu-rail-fade {
    0%, 100% { opacity: 0.38; transform: translateX(0); }
    50% { opacity: 0.82; transform: translateX(4px); }
}

@keyframes side-menu-node-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.55; }
    50% { transform: scale(1.18); opacity: 1; }
}

@keyframes side-menu-ambient-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.72; }
    50% { transform: translateY(-8px) scale(1.03); opacity: 1; }
}

@keyframes side-menu-brand-prism-spin {
    from { transform: rotate(22deg); }
    to { transform: rotate(382deg); }
}

@keyframes side-menu-orbit-spin-a {
    from { transform: rotate(16deg) scale(1.02); }
    to { transform: rotate(376deg) scale(1.02); }
}

@keyframes side-menu-orbit-spin-b {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes side-menu-orbit-pulse {
    0%, 100% { opacity: 0.26; transform: scale(0.98); }
    50% { opacity: 0.58; transform: scale(1.04); }
}

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

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

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

.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: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s 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(247, 91, 156, 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(247, 91, 156, 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 {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0.68;
    overflow: hidden;
    contain: layout paint;
    transition: grid-template-rows 0.24s cubic-bezier(0.22, 0.82, 0.24, 1), opacity 0.18s ease;
}

.side-menu-section.open .side-menu-sub {
    grid-template-rows: 1fr;
    opacity: 1;
}

.side-menu-sub-inner {
    overflow: hidden;
    display: grid;
    gap: 4px;
    padding-bottom: 4px;
}

.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: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    border-radius: 8px;
}

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

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

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

.side-menu-sub-media {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-menu-sub-media--emoji {
    font-size: 15px;
}

.side-menu-sub-media--image {
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(247, 91, 156, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.side-menu-sub-media--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-menu-sub-empty {
    padding: 12px 28px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* 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(247, 91, 156, 0.04);
    border: 1px solid rgba(247, 91, 156, 0.08);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

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

.about-card-icon {
    width: 34px;
    height: 34px;
    background: rgba(247, 91, 156, 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(247, 91, 156, 0.1);
    position: relative;
    z-index: 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.2) 0px,
        rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.6);
    border-radius: 50%;
    opacity: 0;
    filter: blur(1px);
}

.contact-card-purple .particle:nth-child(1) {
    left: 20%; top: 30%;
    background: rgba(247, 91, 156, 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(255, 132, 183, 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(247, 91, 156, 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(247, 91, 156, 0.15), rgba(255, 77, 219, 0.1));
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.25), rgba(255, 77, 219, 0.2));
    border-color: rgba(247, 91, 156, 0.5);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(247, 91, 156, 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: 72%;
}

.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(247, 91, 156, 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;
    justify-content: flex-start;
}

.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(40, 22, 29, 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(247, 91, 156, 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(247, 91, 156, 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(34, 19, 25, 0.98));
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 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: 76%;
    }

    .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;
}

/* ========================================
   MINI GAMES PAGE
   ======================================== */
.page-minigames {
    min-height: 100vh;
    padding: calc(74px + var(--safe-top)) 18px calc(118px + var(--safe-bottom));
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 77, 219, 0.18), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(77, 148, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #090911 0%, #1c0b12 52%, #08080e 100%);
}

.minigames-shell {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 28px;
    padding: 28px 22px;
    border-radius: 32px;
    border: 1px solid rgba(255, 132, 183, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 74% 18%, rgba(255, 77, 219, 0.22), transparent 34%),
        radial-gradient(circle at 22% 78%, rgba(77, 148, 255, 0.16), transparent 32%),
        rgba(14, 12, 24, 0.92);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.minigames-shell::before {
    content: '';
    position: absolute;
    inset: -30%;
    background:
        linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.1) 46%, transparent 58%);
    animation: minigamesSweep 6s ease-in-out infinite;
    pointer-events: none;
}

.minigames-orbit {
    position: relative;
    width: min(72vw, 290px);
    aspect-ratio: 1;
    margin: 0 auto;
    color: #fff;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.minigames-orbit::before {
    content: '';
    position: absolute;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 28%;
    background: linear-gradient(145deg, rgba(255, 77, 219, 0.32), rgba(77, 148, 255, 0.2));
    box-shadow: 0 0 42px rgba(255, 77, 219, 0.35);
    transform: rotate(12deg);
    animation: minigamesFloat 4.8s ease-in-out infinite;
}

.minigames-ring {
    position: absolute;
    inset: 16%;
    border: 1px solid rgba(255, 132, 183, 0.28);
    border-radius: 50%;
    animation: minigamesRotate 12s linear infinite;
}

.minigames-ring--two {
    inset: 28%;
    border-style: dashed;
    border-color: rgba(77, 148, 255, 0.24);
    animation-duration: 8s;
    animation-direction: reverse;
}

.minigames-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 16px currentColor;
}

.minigames-dot--one {
    top: 18%;
    right: 22%;
    background: #ff80e8;
    color: #ff80e8;
}

.minigames-dot--two {
    left: 18%;
    bottom: 25%;
    background: #4d94ff;
    color: #4d94ff;
}

.minigames-dot--three {
    right: 28%;
    bottom: 18%;
    background: #b9ffec;
    color: #b9ffec;
}

.minigames-icon-large {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    stroke: #fff;
    filter: drop-shadow(0 0 14px rgba(255, 128, 232, 0.72));
}

.minigames-copy {
    position: relative;
    z-index: 1;
}

.minigames-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffdcf7;
    background: rgba(255, 77, 219, 0.12);
    border: 1px solid rgba(255, 128, 232, 0.28);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.minigames-title {
    margin-top: 14px;
    font-size: clamp(34px, 11vw, 54px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
    text-shadow:
        0 0 18px rgba(255, 77, 219, 0.45),
        0 0 34px rgba(77, 148, 255, 0.18);
}

.minigames-text {
    max-width: 330px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}

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

@keyframes minigamesFloat {
    0%, 100% { transform: translateY(-4px) rotate(12deg); }
    50% { transform: translateY(8px) rotate(18deg); }
}

@keyframes minigamesSweep {
    0%, 35% { transform: translateX(-26%); opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { transform: translateX(26%); opacity: 0; }
}

body.minigames-active {
    overflow: hidden;
}

body.minigames-active .tab-bar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(calc(100% + 24px));
}

body.minigames-active .hero-overlay-buttons,
body.minigames-active .advantages-section {
    opacity: 0;
    pointer-events: none;
}

.page-minigames {
    padding: 0;
    background: #020205;
}

.page-minigames.active {
    position: fixed;
    inset: 0 auto auto 50%;
    z-index: 260;
    width: 100%;
    max-width: 430px;
    height: 100dvh;
    min-height: 100dvh;
    transform: translateX(-50%);
    animation: none;
    overflow: hidden;
    background: #020205;
}

.minigames-frame-page {
    position: relative;
    width: 100%;
    height: 100%;
    background: #020205;
}

.minigames-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #020205;
}

.minigames-back-btn {
    position: fixed;
    top: calc(12px + var(--safe-top));
    left: calc(12px + var(--safe-left));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px 0 12px;
    border: 1px solid rgba(255, 128, 232, 0.32);
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 18, 32, 0.82), rgba(64, 27, 42, 0.78)),
        rgba(8, 8, 14, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.38),
        0 0 22px rgba(247, 91, 156, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.minigames-back-btn:active {
    transform: scale(0.96);
    border-color: rgba(255, 128, 232, 0.56);
}

/* ========================================
   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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.1);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.12);
    transform: scale(0.98);
    border-color: rgba(247, 91, 156, 0.35);
}

.brand-emoji {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 91, 156, 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%, #2e1a22 100%);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 430px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(247, 91, 156, 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(247, 91, 156, 0.15);
    background: linear-gradient(180deg, rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.1);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.1);
}

.checkout-item-emoji {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 91, 156, 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-bonus-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(247, 91, 156, 0.2);
    background:
        linear-gradient(135deg, rgba(247, 91, 156, 0.12) 0%, rgba(255, 77, 219, 0.07) 100%),
        rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.checkout-bonus-toggle.is-active {
    border-color: rgba(255, 120, 232, 0.48);
    box-shadow:
        0 0 0 1px rgba(255, 120, 232, 0.08),
        0 14px 34px rgba(247, 91, 156, 0.18);
}

.checkout-bonus-toggle:active {
    transform: scale(0.985);
}

.checkout-bonus-toggle-badge {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(20, 18, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: #ffd3e5;
}

.checkout-bonus-toggle-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.checkout-bonus-toggle-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.checkout-bonus-toggle-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.checkout-bonus-toggle-value {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 900;
    color: #ff8de9;
}

.checkout-total-breakdown {
    margin-top: 16px;
}

.checkout-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(247, 91, 156, 0.1);
}

.checkout-breakdown-row--discount .checkout-breakdown-value {
    color: #ff8de9;
}

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

.checkout-breakdown-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

.checkout-comment {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 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;
}

.order-details-bonus-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(247, 91, 156, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.order-details-bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

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

.order-details-bonus-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.order-details-bonus-value--discount {
    color: #ff8de9;
}

.order-details-bonus-value--refund {
    color: #62f0b1;
}

.order-details-bonus-value--reward {
    color: #ffd86f;
}
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(247, 91, 156, 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(247, 91, 156, 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, #f75b9c 0%, #ff4ddb 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(247, 91, 156, 0.4);
}

.modal-btn-submit:hover {
    box-shadow: 0 6px 30px rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.1);
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 0.3);
}

.order-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(247, 91, 156, 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(247, 91, 156, 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(247, 91, 156, 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;
}

/* ========================================
   MOBILE POLISH
   ======================================== */
@media (max-width: 767px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .app,
    .page,
    .page-home,
    .page-profile,
    .page-cart,
    .page-about,
    .page-category {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .app {
        padding-bottom: calc(172px + var(--safe-bottom));
    }

    .particles {
        height: 100dvh;
    }

    .auth-content {
        padding:
            calc(28px + var(--safe-top))
            max(20px, var(--safe-left))
            calc(24px + var(--safe-bottom))
            max(20px, var(--safe-right));
        gap: 14px;
    }

    .auth-title {
        font-size: clamp(28px, 8vw, 34px);
        letter-spacing: 3px;
    }

    .auth-subtitle,
    .auth-hint {
        max-width: 300px;
    }

    .hero-overlay-buttons {
        position: sticky;
        top: calc(12px + var(--safe-top));
        left: 0;
        right: 0;
        transform: none;
        margin: 0 auto;
        height: 0;
        padding-left: max(12px, var(--safe-left));
        padding-right: max(12px, var(--safe-right));
    }

    body.is-telegram-ios .hero-overlay-buttons {
        top: calc(52px + var(--safe-top));
        width: 100%;
        max-width: 430px;
        padding-left: max(14px, var(--safe-left));
        padding-right: max(14px, var(--safe-right));
        justify-content: space-between;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.is-telegram-ios .hero-overlay-buttons::before {
        display: none;
    }

    .header-btn {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: rgba(12, 12, 18, 0.58);
        box-shadow:
            0 10px 24px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .catalog-header {
        gap: 10px;
        padding: 22px 14px 18px;
    }

    body.is-telegram-ios .header-btn {
        position: relative;
        width: 52px;
        height: 52px;
        border-radius: 20px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(44, 22, 31, 0.9), rgba(25, 13, 18, 0.82));
        border-color: rgba(255, 132, 183, 0.28);
        box-shadow:
            0 16px 30px rgba(0, 0, 0, 0.3),
            0 0 22px rgba(247, 91, 156, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    body.is-telegram-ios .header-btn::before {
        content: '';
        position: absolute;
        inset: 1px;
        border-radius: inherit;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 36%);
        pointer-events: none;
    }

    body.is-telegram-ios .header-btn::after {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: inherit;
        background: radial-gradient(circle at 50% 18%, rgba(255, 77, 219, 0.18), transparent 62%);
        filter: blur(12px);
        opacity: 0.9;
        z-index: -1;
        pointer-events: none;
    }

    body.is-telegram-ios .page-home .content-overlay {
        padding-top: 57%;
    }

    .catalog-line::after {
        width: 42px;
    }

    .catalog-title,
    .catalog-title::before,
    .catalog-title::after {
        font-size: clamp(24px, 7.4vw, 30px);
        letter-spacing: clamp(3px, 1.4vw, 6px);
    }

    .page-home .products-grid,
    .category-body .products-grid {
        gap: 12px;
        padding: 0 14px 108px;
    }

    .catalog-search-wrap {
        padding: 0 14px 12px;
    }

    .catalog-search-shell {
        gap: 9px;
    }

    .catalog-search {
        min-height: 52px;
        border-radius: 16px;
        padding: 0 12px 0 13px;
    }

    .catalog-search-input {
        font-size: 14px;
        padding: 15px 0;
    }

    .catalog-search-clear {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .catalog-search-suggestion {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px;
        border-radius: 16px;
    }

    .catalog-search-suggestion-thumb {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .catalog-search-suggestion-name {
        font-size: 12px;
    }

    .catalog-search-suggestion-price {
        font-size: 13px;
    }

    .catalog-search-chip {
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .product-card {
        min-height: 100%;
        padding: 12px;
        border-radius: 18px;
    }

    .product-image {
        height: 118px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .product-name {
        font-size: 13px;
        line-height: 1.24;
        white-space: normal;
        display: block;
        min-height: 0;
        overflow: visible;
    }

    .product-subtitle {
        font-size: 11px;
        line-height: 1.35;
        min-height: 30px;
        margin-bottom: 10px;
    }

    .product-specs {
        gap: 6px;
        margin-bottom: 10px;
    }

    .spec-tag {
        padding: 4px 8px;
    }

    .product-rating {
        gap: 5px;
        margin-bottom: 12px;
    }

    .price-current {
        font-size: clamp(18px, 5vw, 22px);
    }

    .add-to-cart-btn {
        min-height: 46px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 11px;
        letter-spacing: 0.65px;
    }

    .advantages-section {
        bottom: calc(82px + var(--safe-bottom));
        padding: 0 12px;
    }

    .advantages-scroll {
        gap: 10px;
        padding: 2px 2px 4px;
    }

    .advantage-item {
        min-width: 154px;
        padding: 9px 12px;
        border-radius: 18px;
    }

    .tab-bar {
        padding: 8px 12px;
        padding-bottom: calc(8px + var(--safe-bottom));
    }

    .tab-item {
        flex: 1 1 0;
        gap: 3px;
        padding: 6px 8px;
    }

    .tab-label {
        font-size: 10px;
    }

    .toast {
        bottom: calc(112px + var(--safe-bottom));
        max-width: calc(100% - 24px);
    }

    .profile-content {
        padding-top: 68%;
    }

    .profile-username-section {
        padding: 24px 14px 8px;
    }

    .profile-username {
        font-size: clamp(22px, 7vw, 28px);
        letter-spacing: 1.2px;
    }

    .profile-stats {
        margin: 0 12px 16px;
        padding: 14px 10px;
        border-radius: 18px;
    }

    .stat-value {
        font-size: 17px;
    }

    .profile-section {
        margin: 0 12px 16px;
        padding: 14px;
        border-radius: 18px;
    }

    .orders-list {
        gap: 12px;
    }

    .order-card {
        padding: 12px;
        border-radius: 16px;
    }

    .order-info-row {
        gap: 10px;
    }

    .order-info-value {
        text-align: right;
    }

    .page-cart {
        padding-bottom: calc(164px + var(--safe-bottom));
    }

    .cart-actions-row {
        padding: 0 12px 10px;
    }

    .cart-items {
        gap: 12px;
        padding: 8px 12px 16px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 20px;
    }

    .cart-item-main {
        gap: 12px;
        align-items: flex-start;
    }

    .cart-item-side {
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

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

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

    .cart-footer {
        bottom: calc(74px + var(--safe-bottom));
        padding: 12px;
        padding-bottom: calc(12px + var(--safe-bottom));
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .cart-total-label {
        font-size: 14px;
    }

    .cart-total-value {
        font-size: clamp(22px, 6vw, 28px);
    }

    .cart-checkout-btn {
        min-height: 50px;
        border-radius: 16px;
    }

    .cart-empty {
        padding: 24px 16px 118px;
    }

    .side-menu {
        width: min(86vw, 340px);
        border-top-right-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    .side-menu-header {
        padding: calc(20px + var(--safe-top)) 18px 18px;
        gap: 12px;
    }

    .side-menu-brand-mark {
        min-height: 96px;
        padding: 15px 72px 13px 15px;
        border-radius: 20px;
    }

    .side-menu-logo-3d {
        font-size: 17px;
        letter-spacing: 0.07em;
        max-width: calc(100% - 40px);
        margin-top: 12px;
    }

    .side-menu-brand-deck {
        width: calc(100% - 46px);
        height: 24px;
        margin-top: 10px;
    }

    .side-menu-logo-subtitle {
        min-height: 24px;
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .side-menu-brand-orbits {
        width: 76px;
        height: 76px;
        top: 8px;
        right: -4px;
    }

    .side-menu-close {
        width: 34px;
        height: 34px;
    }

    .side-menu-items {
        padding: 10px;
    }

    .side-menu-item {
        gap: 12px;
        padding: 13px 14px;
    }

    .side-menu-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .side-menu-sub-item {
        padding: 10px 12px 10px 24px;
    }

    .side-menu-sub {
        transition-duration: 0.18s;
    }

    .side-menu {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body.side-menu-active .side-menu::before,
    body.side-menu-active .side-menu::after,
    body.side-menu-active .side-menu-brand-mark,
    body.side-menu-active .side-menu-brand-grid,
    body.side-menu-active .side-menu-brand-backdrop::before,
    body.side-menu-active .side-menu-logo-shadow,
    body.side-menu-active .side-menu-logo-main,
    body.side-menu-active .side-menu-logo-glow,
    body.side-menu-active .side-menu-brand-rail--primary,
    body.side-menu-active .side-menu-brand-rail--secondary,
    body.side-menu-active .side-menu-brand-node,
    body.side-menu-active .side-menu-brand-orbits::before,
    body.side-menu-active .side-menu-brand-orbits::after,
    body.side-menu-active .side-menu-brand-orbit {
        animation: none !important;
    }

    body.side-menu-active .side-menu::before {
        opacity: 0.58;
        filter: blur(10px);
    }

    body.side-menu-active .side-menu::after {
        opacity: 0.42;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 24px rgba(6, 8, 18, 0.18);
    }

    body.side-menu-active .side-menu-brand-mark {
        transform: none;
    }

    body.side-menu-active .side-menu-brand-grid {
        opacity: 0.22;
    }

    body.side-menu-active .side-menu-logo-shadow {
        filter: blur(3px);
        opacity: 0.72;
    }

    body.side-menu-active .side-menu-logo-glow {
        filter: blur(8px);
        opacity: 0.62;
    }

    body.side-menu-active .side-menu-brand-backdrop::before {
        opacity: 0.54;
        box-shadow: 0 10px 16px rgba(14, 8, 38, 0.2);
    }

    body.side-menu-active .side-menu-brand-orbits {
        opacity: 0.6;
    }

    .side-menu-footer {
        padding: 14px 18px calc(16px + var(--safe-bottom));
    }

    body.is-telegram-ios .side-menu {
        width: min(87vw, 344px);
    }

    body.is-telegram-ios .side-menu-header {
        padding-top: calc(24px + var(--safe-top));
    }

    .about-page-body {
        gap: 14px;
        padding: 0 12px 140px;
    }

    .about-quick-row {
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }

    .about-trust-badge {
        white-space: nowrap;
    }

    .about-section-card {
        padding: 16px;
        border-radius: 18px;
    }

    .schedule-row {
        flex-wrap: wrap;
        gap: 6px 10px;
        padding: 10px 0;
    }

    .schedule-day {
        min-width: auto;
    }

    .schedule-dots {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .schedule-time {
        margin-left: auto;
    }

    .contact-card,
    .about-support-card {
        border-radius: 18px;
    }

    .about-sticky-cta {
        bottom: calc(76px + var(--safe-bottom));
        padding: 12px;
        border-radius: 18px;
    }
    .category-content-overlay {
        min-height: 100dvh;
    }

    .brand-list {
        padding: 0 12px 24px;
    }

    .brand-item {
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    .brand-emoji {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .category-back-floating {
        top: calc(12px + var(--safe-top));
        left: 12px;
        width: 42px;
        height: 42px;
    }

    .products-grid .catalog-empty-state {
        min-height: min(320px, 44vh);
        padding-bottom: 96px;
    }

    .modal {
        max-width: 100%;
        max-height: min(88vh, calc(100dvh - 12px));
    }

    .checkout-steps {
        padding: 16px 14px;
    }

    .step-indicator {
        width: 40px;
        height: 40px;
    }

    .modal-body {
        padding: 18px 14px;
        gap: 18px;
    }

    .checkout-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .checkout-item {
        padding: 10px;
    }

    .checkout-item-details {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .checkout-bonus-toggle,
    .cart-bonus-toggle {
        padding: 12px 13px;
        gap: 10px;
    }

    .checkout-bonus-toggle-title,
    .cart-bonus-toggle-title {
        font-size: 13px;
    }

    .checkout-bonus-toggle-sub,
    .cart-bonus-toggle-sub {
        font-size: 11px;
    }

    .checkout-bonus-toggle-value,
    .cart-bonus-toggle-value {
        font-size: 16px;
    }

    .checkout-total {
        font-size: clamp(22px, 6vw, 28px);
    }

    .modal-footer {
        gap: 10px;
        padding: 14px;
    }

    .modal-btn {
        border-radius: 14px;
        padding: 13px 16px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .page-home .products-grid,
    .category-body .products-grid {
        padding-bottom: 104px;
    }

    .product-image {
        height: 148px;
    }

    .about-page-body {
        padding-bottom: 132px;
    }
}
