/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
   :root {
    --bg-liquid: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-core: #2d1a1e;
    --text-muted: #8c767a;
    --pink-jelly: #ff8fa3;
    --pink-jelly-deep: #ff4d6d;
    --mint-jelly: #93e1d8;
    --jelly-shadow: 0 20px 40px rgba(255, 143, 163, 0.25);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: 'Fredoka', sans-serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    color: var(--text-core);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(-45deg, #ffecd2, #fcb69f, #ffe8ec, #e8f4f8);
    background-size: 200% 200%; /* Оптимизировано: 200% вместо 400% снижает нагрузку на CPU */
    animation: gradientBG 20s ease infinite;
    overflow-y: auto !important;
}

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

.jelly-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

.scrollable-content { 
    position: relative; 
    z-index: 20; 
    background: transparent; 
}


/* ==========================================================================
   2. PERFORMANCE & BACKGROUND EFFECTS (BLOBS, GRAIN, PARTICLES)
   ========================================================================== */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 0;
}

.cinema-overlay-grain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 998;
}

.blob-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; }
.jelly-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.jb-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: #ffccd5; animation: blobMove1 8s ease-in-out infinite; }
.jb-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: #e2f0cb; animation: blobMove2 10s ease-in-out infinite; }

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}
@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.15); }
}

.floating-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    background: rgba(255, 143, 163, 0.3);
    animation: floatParticle 15s infinite linear;
    will-change: transform;
}
@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}


/* ==========================================================================
   3. NAVIGATION HEADER SYSTEM
   ========================================================================== */
.jelly-nav {
    position: fixed; top: 20px; left: 0; width: 100%; height: 76px; z-index: 1000; pointer-events: none;
}
.header-flex {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-radius: 50px; padding: 0 32px; border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 40px rgba(255, 92, 122, 0.06); pointer-events: auto;
}
.header-left-block { display: flex; align-items: center; gap: 16px; }
.brand-jelly-logo {
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.4rem;
    text-decoration: none; color: var(--text-core); letter-spacing: -1px; text-transform: uppercase;
}
.brand-jelly-logo span { color: var(--pink-jelly-deep); }

.nav-mega-links { display: flex; gap: 28px; align-items: center; }
.mega-nav-item {
    text-decoration: none; font-size: 0.9rem; font-weight: 700; color: var(--text-core);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); padding: 6px 12px; border-radius: 20px;
}

.header-right-meta { display: flex; align-items: center; gap: 24px; }
.stock-badge {
    background: rgba(255, 77, 109, 0.08); color: var(--pink-jelly-deep);
    padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.pulse-dot { width: 6px; height: 6px; background: #2ec4b6; border-radius: 50%; display: inline-block; animation: pulseGlow 1.5s infinite; }
@keyframes pulseGlow { 0% { transform: scale(0.9); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.4; } 100% { transform: scale(0.9); opacity: 1; } }

.nav-utility-btn { background: none; border: none; color: var(--text-core); cursor: pointer; display: flex; align-items: center; transition: color 0.2s; }
.nav-utility-btn:hover { color: var(--pink-jelly-deep); }
.lang-selector { font-size: 0.8rem; font-weight: 700; color: var(--text-core); }
.lang-divider { color: rgba(0,0,0,0.15); margin: 0 4px; }
.lang-opt { color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.lang-opt:hover { color: var(--pink-jelly-deep); }
.live-stock-count { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }

/* User Icon & Shopping Bag Triggers */
.header-right-meta a[href="account.html"],
.header-right-meta .jelly-bag-trigger:has([data-lucide="user"]) {
    background: none; color: var(--text-core); box-shadow: none; text-decoration: none;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s; cursor: pointer;
}
.header-right-meta a[href="account.html"] svg,
.header-right-meta svg[data-lucide="user"],
.header-right-meta .lucide-user { width: 50px !important; height: 50px !important; stroke-width: 2.3px !important; }

.jelly-bag-trigger {
    background: var(--text-core); border: none; width: 48px; height: 48px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); text-decoration: none;
}
.bag-icon-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.jelly-bag-icon { width: 20px; height: 20px; stroke: #fff; }
.jelly-bag-counter {
    background: #fff; color: var(--pink-jelly-deep); font-size: 0.7rem; font-weight: 800; padding: 2px 6px;
    border-radius: 50px; position: absolute; top: -12px; right: -14px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1.5px solid var(--pink-jelly-deep);
}
#bag-count { background: var(--pink-jelly-deep); color: white; font-size: 0.65rem; padding: 2px 6px; border-radius: 50px; position: absolute; top: -6px; right: -8px; }


/* ==========================================================================
   4. DESKTOP INTERACTIONS & CURSOR
   ========================================================================== */
.jelly-cursor {
    position: fixed; top: 0; left: 0; width: 24px; height: 24px;
    background: var(--pink-jelly-deep); border-radius: 50%;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    mix-blend-mode: multiply; opacity: 0.8; will-change: transform;
}


/* ==========================================================================
   5. GSAP KINETIC INTRO ARENA & VIEWPORT STAGE
   ========================================================================== */
.visual-scroller-arena {
    position: relative; width: 100%; height: 100vh; overflow: hidden;
}
.welcome-text-holder {
    text-align: center; width: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10;
}
.jelly-split-title-wrap { display: flex; justify-content: center; align-items: center; gap: 20px; width: 100%; overflow: visible; }
.jelly-giant-title {
    font-family: 'Fredoka', sans-serif; font-size: 11vw; font-weight: 700; color: var(--text-core);
    line-height: 0.85; letter-spacing: -2px; text-transform: uppercase; margin: 0; display: inline-block;
    will-change: transform, opacity;
}
.text-part-right { color: transparent; -webkit-text-stroke: 3px var(--text-core); }
.jelly-subtitle { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; margin-top: 30px; text-transform: uppercase; letter-spacing: 1px; will-change: transform, opacity; }

.jelly-viewport-stage {
    position: relative; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center; z-index: 5;
    opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.jelly-object-wrapper { width: 380px; height: 380px; display: flex; justify-content: center; align-items: center; position: relative; }
.jelly-render { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 35px 60px rgba(255, 143, 163, 0.35)); will-change: transform; }
#jelly-interactive-render { display: block !important; max-width: 100%; height: auto; margin: 0 auto; cursor: pointer; transition: transform 0.1s ease; }
#jelly-interactive-render:active { transform: scale(0.92); }

/* Stage Guidance Pointers */
.squish-pointer { position: absolute; display: flex; align-items: center; gap: 12px; opacity: 0; transform: scale(0.6); will-change: transform, opacity; }
.ptr-line { height: 2px; background: var(--text-core); width: 60px; position: relative; }
.ptr-line::after { content: ''; position: absolute; width: 6px; height: 6px; background: var(--pink-jelly-deep); border-radius: 50%; top: -2px; }
.ptr-label { background: var(--text-core); color: #fff; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; letter-spacing: 1px; }

.ptr-left-top { left: -140px; top: 20%; flex-direction: row-reverse; }
.ptr-left-top .ptr-line::after { left: -2px; }
.ptr-right-top { right: -140px; top: 20%; }
.ptr-right-top .ptr-line::after { right: -2px; }
.ptr-left-bottom { left: -160px; bottom: 25%; flex-direction: row-reverse; }
.ptr-left-bottom .ptr-line::after { left: -2px; }
.ptr-right-bottom { right: -160px; bottom: 25%; }
.ptr-right-bottom .ptr-line::after { right: -2px; }

/* ASMR Crush Card & Pressure Bar */
.asmr-crush-card {
    position: absolute; bottom: -200px; max-width: 500px; width: 90%; padding: 30px; border-radius: 35px;
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.7); opacity: 0;
    box-shadow: 0 30px 60px rgba(255, 143, 163, 0.08); text-align: center; left: 50%; transform: translateX(-50%); z-index: 15;
    will-change: transform, opacity;
}
.crush-badge { background: var(--pink-jelly-deep); color: white; padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 16px; }
.asmr-crush-card h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.asmr-crush-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; }

.live-pressure-bar { text-align: left; }
.p-bar-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.p-bar-track { width: 100%; height: 8px; background: rgba(0,0,0,0.06); border-radius: 10px; overflow: hidden; }
.p-bar-fill { 
    width: 100%; height: 100%; background: linear-gradient(90deg, var(--pink-jelly), var(--pink-jelly-deep)); border-radius: 10px; 
    transform: scaleX(0.3); transform-origin: left center; will-change: transform; /* Оптимизировано: Анимация через transform вместо width */
}

.jelly-scroll-indicator { position: absolute; bottom: 4%; width: 24px; height: 40px; border: 2px solid var(--pink-jelly); border-radius: 50px; display: flex; justify-content: center; padding-top: 6px; left: 50%; transform: translateX(-50%); z-index: 12; }
.jelly-scroll-indicator span { width: 4px; height: 8px; background: var(--pink-jelly-deep); border-radius: 50px; animation: jellyDrop 1.5s infinite ease-in-out; }
@keyframes jellyDrop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }


/* ==========================================================================
   6. MYSTERY BOX SECTION
   ========================================================================== */
.mystery-box-section {
    padding: 80px 0; background: #ffe8ec; position: relative; overflow: hidden; z-index: 25;
}
.mystery-box-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 143, 163, 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(147, 225, 216, 0.2) 0%, transparent 40%);
    pointer-events: none;
}
.mystery-title { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.mystery-title .section-tag { background: var(--pink-jelly-deep); color: white; padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 16px; }
.mystery-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-core); }
.mystery-title p { color: var(--text-core); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.mystery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.mystery-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); border-radius: 30px; padding: 40px 30px;
    text-align: center; box-shadow: 0 15px 40px rgba(255, 143, 163, 0.15); transition: transform 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden; cursor: pointer;
}
.mystery-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 143, 163, 0.1), transparent); transform: rotate(45deg);
    transition: all 0.5s; opacity: 0;
}
@keyframes shine { 0% { left: -50%; opacity: 0; } 50% { opacity: 1; } 100% { left: 150%; opacity: 0; } }

.mystery-badge { position: absolute; top: 10px; right: 10px; background: var(--pink-jelly-deep); color: white; padding: 6px 16px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.mystery-icon { font-size: 4rem; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.mystery-icon img { width: 100%;}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

.mystery-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text-core); }
.mystery-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }
.mystery-price { font-size: 2rem; font-weight: 800; color: var(--pink-jelly-deep); margin-bottom: 24px; }
.mystery-btn { background: var(--text-core); color: white; border: none; padding: 16px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.2s, background 0.2s; width: 100%; }
.mystery-premium { border: 3px solid var(--pink-jelly-deep); transform: scale(1.05); }


/* ==========================================================================
   7. FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 80px 0; background: #f0f8ff; position: relative; overflow: hidden; z-index: 25;
}
.features-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 143, 163, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(147, 225, 216, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.features-title { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.features-title .section-tag { background: var(--mint-jelly); color: var(--text-core); padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 16px; }
.features-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--text-core); text-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.feature-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); border-radius: 25px; padding: 35px;
    text-align: center; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; border: 2px solid transparent;
    position: relative; overflow: hidden;
}
.feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--text-core); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }


/* ==========================================================================
   8. CATALOG & PRODUCT GRID SYSTEM
   ========================================================================== */
.catalog-jelly-section { background: #fff; padding: 120px 0; border-top-left-radius: 56px; border-top-right-radius: 56px; box-shadow: 0 -30px 60px rgba(0,0,0,0.02); }
.catalog-jelly-title { text-align: center; margin-bottom: 60px; }
.section-tag { font-size: 0.8rem; font-weight: 700; color: var(--pink-jelly-deep); letter-spacing: 2px; display: block; margin-bottom: 12px; }
.catalog-jelly-title h2 { font-size: 2.6rem; font-weight: 700; }
.catalog-jelly-title p { color: var(--text-muted); margin-top: 10px; font-size: 1rem; }

.jelly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.jelly-product-card {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); border-radius: 40px; padding: 32px;
    position: relative; border: 2px solid transparent; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
    cursor: pointer; will-change: transform;
}

.badge-jelly { position: absolute; top: 24px; left: 24px; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; z-index: 5; }
.bj-pink { background: var(--pink-jelly-deep); color: #fff; }
.bj-mint { background: #2ec4b6; color: #fff; }
.bj-purple { background: #7209b7; color: #fff; }

.jelly-img-container { height: 220px; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; overflow: hidden; }
.prod-img { max-width: 55%; height: auto; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }


.jelly-card-body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.jelly-card-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 24px; }
.jelly-card-footer { display: flex; justify-content: space-between; align-items: center; }
.jelly-price { font-size: 1.6rem; font-weight: 700; color: var(--text-core); }

.jelly-buy-btn {
    background: #fff; color: var(--text-core); border: 2px solid var(--text-core);
    padding: 12px 28px; border-radius: 50px; font-weight: 700; cursor: pointer;
    box-shadow: 0 5px 0 var(--text-core); transition: all 0.2s ease; position: relative; overflow: hidden;
}
.jelly-buy-btn:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--text-core); }


/* ==========================================================================
   9. SIDE CART PANEL, CHECKOUT & TOASTS
   ========================================================================== */
/* Side Cart Drawer */
.jelly-cart-panel { position: fixed; top: 0; right: -100%; width: 440px; height: 100vh; background: rgba(255,255,255,0.92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); z-index: 2000; transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1); border-left: 1px solid rgba(0,0,0,0.04); }
.jelly-cart-panel.open { right: 0; }
.cart-panel-inside { display: flex; flex-direction: column; height: 100%; padding: 40px; }
.cart-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.cart-panel-head h2 { font-size: 1.6rem; font-weight: 700; }
.jelly-close-btn { background: none; border: none; font-size: 2.5rem; cursor: pointer; color: var(--text-muted); }
.jelly-cart-items-flow { flex: 1; overflow-y: auto; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.04); margin-bottom: 15px; }
.cart-item-info { display: flex; align-items: center; gap: 12px; }
.cart-item-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }

.jelly-cart-checkout-gate { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 24px; }
.total-jelly-row { display: flex; justify-content: space-between; font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; }
.jelly-input { width: 100%; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--bg-liquid); background: #fff; outline: none; font-weight: 500; font-size: 0.95rem; }
.jelly-btn-submit { background: var(--pink-jelly-deep); color: #fff; border: none; width: 100%; padding: 16px; border-radius: 50px; font-weight: 700; font-size: 1.05rem; cursor: pointer; margin-top: 18px; box-shadow: 0 10px 25px rgba(255, 92, 122, 0.2); }

/* Live Notification Popups */
.live-sales-toast {
    position: fixed; bottom: 30px; left: -450px; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px); border: 1px solid rgba(255, 143, 163, 0.2); padding: 16px 24px; border-radius: 24px;
    display: flex; align-items: center; gap: 16px; box-shadow: 0 20px 40px rgba(255, 143, 163, 0.06);
    z-index: 1500; transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.live-sales-toast.show { left: 30px; }
.toast-body p { font-size: 0.85rem; font-weight: 700; }
.toast-body span { font-size: 0.75rem; color: var(--text-muted); }

.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: white; padding: 16px 24px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; min-width: 300px; max-width: 90vw; animation: slideDown 0.3s ease-out; pointer-events: auto; }
.toast.success { border-left: 4px solid #4caf50; background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%); }
.toast.error { border-left: 4px solid #f44336; background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%); }
.toast-icon { font-size: 1.2rem; }
.toast-message { flex: 1; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Checkout View */
.checkout-page { padding: 120px 0 60px; min-height: 100vh; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checkout-cart-summary { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 35px; padding: 30px; box-shadow: 0 20px 40px rgba(255, 143, 163, 0.08); }
.checkout-cart-summary h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; color: var(--text-core); }
.checkout-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.checkout-item-info { display: flex; flex-direction: column; gap: 4px; }
.checkout-item-name { font-weight: 600; color: var(--text-core); }
.checkout-item-price { font-size: 0.9rem; color: var(--text-muted); }
.checkout-remove-btn { background: none; border: none; color: var(--pink-jelly-deep); font-size: 1.2rem; cursor: pointer; padding: 5px; transition: transform 0.2s; }
.checkout-remove-btn:hover { transform: scale(1.2); }
.checkout-total { margin-top: 20px; padding-top: 20px; border-top: 2px solid rgba(0, 0, 0, 0.1); display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 700; }
.checkout-form-container { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 35px; padding: 30px; box-shadow: 0 20px 40px rgba(255, 143, 163, 0.08); }
.checkout-form-container h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 25px; color: var(--text-core); }
.form-section { margin-bottom: 25px; }
.form-section h4 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; color: var(--text-core); }
.jelly-input:focus { outline: none; border-color: var(--pink-jelly-deep); box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1); }


/* ==========================================================================
   10. USER ACCOUNT ARCHITECTURE
   ========================================================================== */
.account-main-wrapper { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; position: relative; z-index: 10; }
.auth-page-card { max-width: 480px; margin: 40px auto; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-radius: 40px; padding: 40px; box-shadow: 0 30px 60px rgba(255, 143, 163, 0.12); }
.auth-toggle-tabs { display: flex; background: rgba(0,0,0,0.03); padding: 6px; border-radius: 50px; }
.auth-tab-btn { flex: 1; background: none; border: none; padding: 12px; font-size: 0.95rem; font-weight: 700; color: var(--text-muted); cursor: pointer; border-radius: 50px; transition: all 0.2s; }
.auth-tab-btn.active { background: #fff; color: var(--text-core); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

.account-dashboard-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; margin-top: 20px; }
.user-info-sidebar { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); text-align: center; padding: 40px 24px; }
.user-avatar-avatar { font-size: 4rem; margin-bottom: 16px; }
.user-status-tag { display: inline-block; background: rgba(46, 196, 182, 0.1); color: #2ec4b6; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-top: 8px; }
.stat-pill { background: var(--bg-liquid); padding: 12px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }
.user-orders-main { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); padding: 40px; min-height: 480px; }
.dashboard-header-line { border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 20px; margin-bottom: 24px; }
.orders-feed-wrapper { display: flex; flex-direction: column; gap: 16px; }

.db-order-card { background: #fff; border: 1px solid rgba(255, 143, 163, 0.15); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.order-card-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(0,0,0,0.05); padding-bottom: 10px; }
.order-status-badge { background: var(--pink-jelly); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.empty-orders-state { text-align: center; color: var(--text-muted); padding-top: 60px; }


/* ==========================================================================
   11. INTERACTIVE ENDING ZONE
   ========================================================================== */
.interactive-ending {
    padding: 100px 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 245, 246, 0.8) 100%);
    position: relative; overflow: hidden; z-index: 25;
}
.interactive-ending::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 143, 163, 0.1) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(147, 225, 216, 0.1) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
}
.ending-content { text-align: center; position: relative; z-index: 1; }
.ending-title { margin-bottom: 60px; }
.ending-title .section-tag { background: var(--pink-jelly-deep); color: white; padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; display: inline-block; margin-bottom: 16px; }
.ending-title h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-core); }
.ending-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.interactive-squishy-container { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.interactive-squishy { width: 300px; height: 300px; cursor: pointer; transition: transform 0.1s; position: relative; opacity: 1 !important; visibility: visible !important; }
.interactive-squishy img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(255, 143, 163, 0.3)); opacity: 1 !important; visibility: visible !important; }
.interactive-squishy:active { transform: scale(0.8); }

.squish-counter { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); padding: 15px 30px; border-radius: 50px; font-size: 1.2rem; font-weight: 700; box-shadow: 0 10px 30px rgba(255, 143, 163, 0.2); border: 2px solid var(--pink-jelly); }
.squish-counter span { color: var(--text-muted); margin-right: 10px; }
.squish-counter strong { color: var(--pink-jelly-deep); font-size: 1.5rem; }

.floating-emojis { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.float-emoji { position: absolute; font-size: 2rem; animation: floatEmoji 4s ease-in-out infinite; opacity: 0.6; }
.float-emoji:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-emoji:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.5s; }
.float-emoji:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 1s; }
.float-emoji:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1.5s; }
.float-emoji:nth-child(5) { top: 50%; left: 5%; animation-delay: 2s; }
@keyframes floatEmoji { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } }


/* ==========================================================================
   12. SOLID BASE FOOTER
   ========================================================================== */
.jelly-footer-solid { background: #180d0f; color: #a39294; padding: 80px 0 0 0; }
.footer-flex-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-brand-column h3 { font-size: 1.8rem; color: #fff; margin-bottom: 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; }
.footer-brand-column h3 span { color: var(--pink-jelly-deep); }
.footer-brand-column p { line-height: 1.6; font-size: 0.95rem; margin-bottom: 24px; }

.social-icons-row { display: flex; gap: 16px; }
.social-icon-link { width: 44px; height: 44px; background: rgba(255,255,255,0.04); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; text-decoration: none; }
.social-icon-link:hover { background: var(--pink-jelly-deep); }
.footer-specs-column h4 { color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
.footer-specs-column ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.footer-specs-column li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; }

.footer-copyright-bar { border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0; font-size: 0.8rem; color: #6e5d60; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-payment-badges { display: flex; gap: 10px; }
.pay-badge { background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: #fff; }


/* ==========================================================================
   13. COMPREHENSIVE RESPONSIVE SYSTEM (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .hidden-mobile { display: none !important; }
    .nav-mega-links { display: none !important; }
    .header-flex { padding: 0 20px; }
    .account-dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Performance Killers Disabled on Mobile */
    body { animation: none; background: #ffe8ec; }
    .jelly-cursor, .jelly-blob, .cinema-overlay-grain, .floating-emojis { display: none !important; }
    
    /* Intro Arena Isolation */
    .visual-scroller-arena { height: 100vh; overflow: hidden; contain: paint; }
    .welcome-text-holder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0; }
    .jelly-giant-title { font-size: 14vw; }
    .scrollable-content { margin-top: 0; }
    
    /* Elements Scaling */
    .jelly-object-wrapper { width: 190px; height: 190px; }
    .squish-pointer { transform: scale(0.7); }
    .ptr-left-top { left: -100px; top: 15%; }
    .ptr-right-top { right: -100px; top: 15%; }
    .ptr-left-bottom { left: -120px; bottom: 20%; }
    .ptr-right-bottom { right: -120px; bottom: 20%; }
    
    /* ASMR Overlay Mobile Fix */
    .asmr-crush-card { padding: 20px; margin: 0 10px; bottom: 20px; }
    .asmr-crush-card h2 { font-size: 1.2rem; }
    .asmr-crush-card p { font-size: 0.8rem; }
    
    /* Navigation & Layout Adjustments */
    .jelly-nav { top: 10px; }
    .header-flex { padding: 0 16px; height: 60px; }
    .brand-jelly-logo { font-size: 1.1rem; }
    .stock-badge { display: none !important; }
    .jelly-bag-trigger { width: 42px; height: 42px; }
    
    /* Catalog & Cards */
    .catalog-jelly-section { padding: 40px 0; }
    .catalog-jelly-title h2 { font-size: 1.6rem; }
    .catalog-jelly-title p { font-size: 0.9rem; }
    .jelly-grid { grid-template-columns: 1fr; gap: 16px; }
    .jelly-product-card { padding: 16px; }
    .jelly-card-body h3 { font-size: 1.2rem; }
    .jelly-card-body p { font-size: 0.85rem; }
    .jelly-price { font-size: 1.1rem; }
    .jelly-buy-btn { padding: 10px 16px; font-size: 0.85rem; }
    
    /* Checkout Specific Responsive */
    .checkout-page { padding: 100px 0 40px; position: relative; z-index: 10; }
    .checkout-grid { grid-template-columns: 1fr; gap: 30px; }
    .checkout-cart-summary, .checkout-form-container { padding: 20px; border-radius: 25px; position: relative; z-index: 5; }
    .checkout-cart-summary h2, .checkout-form-container h2 { font-size: 1.4rem; }
    .jelly-btn-submit { position: relative; z-index: 10; margin-top: 20px; }
    .form-section, .jelly-input { position: relative; z-index: 5; }
    
    /* Interactivity & Footer */
    .interactive-ending { padding: 80px 0; min-height: 500px; }
    .ending-title h2 { font-size: 1.8rem; }
    .interactive-squishy { width: 150px; height: 150px; }
    .squish-counter { padding: 12px 20px; font-size: 1rem; }
    .squish-counter strong { font-size: 1.3rem; }
    .jelly-container { padding: 0 16px; }
    .footer-flex-grid { grid-template-columns: 1fr; gap: 40px; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   14. SQUISH LEVEL UP CUSTOM ANIMATION FIX
   ========================================================================== */
   #level-up-message {
    will-change: transform, opacity;
    animation: squishLevelUpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes squishLevelUpPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    70% {
        transform: translateY(-4px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   15. INTERACTIVE SQUISH CLICK ANIMATION FIX
   ========================================================================== */
/* Базовое сглаживание для анимации сжатия */
.interactive-squishy {
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Класс сжатия, который мы будем триггерить через JS */
.interactive-squishy.squeezed {
    transform: scale(0.82) !important;
}

/* бегущая строка */

.marquee-container {
    overflow: hidden; 
    white-space: nowrap; 
    background-color: var(--pink-jelly);
    color: #734242;
    padding: 10px 0;
    font-family: 'Fredoka', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    display: flex; /* Выстраивает два текстовых блока друг за другом */
  }
  
  .marquee-text {
    display: flex;
    flex-shrink: 0; /* Запрещает тексту сжиматься */
    min-width: 100%; /* Гарантирует правильный расчет ширины */
    align-items: center;
    
    /* 25s — скорость. Если хотите чуть быстрее, сделайте 20s, если медленнее — 30s */
    animation: marquee-infinite 25s linear infinite; 
  }
  
  .marquee-text span {
    padding-right: 150px; /* Расстояние между фразами (можно крутить как хотите) */
  }
  
  /* Анимация для бесконечного потока */
  @keyframes marquee-infinite {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
  }


 /* Базовые стили переключателя */
.grid-view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-start;
    font-family: 'Fredoka', sans-serif;
}

.switcher-title {
    color: var(--text-core);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-grid-view {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-core);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-grid-view.active {
    background: #ffe8ec;
    border-color: var(--pink-jelly-deep, #ff4a75); 
    color: var(--pink-jelly-deep, #ff4a75);
}

.mystery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
}

/* --- ЛОГИКА ДЛЯ МОБИЛЬНЫХ (Экран меньше 768px) --- */
@media (max-width: 767px) {
    .only-desktop { display: none !important; } /* Прячем ПК-кнопки */

    /* По дефолту на мобилке 2 колонки */
    .mystery-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .mystery-grid p{
        display: none;
    }
    .mystery-grid .mysterycard {
        height: 500px;
    }
    .mystery-grid .mystery-price {
        font-size: 20px;
    }
    
    /* Переключение на мобилке */
    .mystery-grid.cols-1 {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .mystery-grid.cols-1 p{
        display: block !important;
    }
    .mystery-grid.cols-1{
        gap: 25px;
    }

    .mystery-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .mystery-grid.cols-2 img{
        width: 100%;
    }
    .mystery-grid.cols-2 .mysterycard {
        height: 500px;
    }
    .mystery-grid.cols-2 p{
        display: none;
    }
    .mystery-grid.cols-2 .mystery-price {
        font-size: 20px;
    }
}

/* --- ЛОГИКА ДЛЯ ПК (Экран от 768px и выше) --- */
@media (min-width: 768px) {
    .only-mobile { display: none !important; } /* Прячем мобильные кнопки */
    .grid-view-switcher {
        padding-left: 50px;
    }
    .mystery-grid {
        gap: 20px;
    }

    .mystery-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px;
    }
    
    /* Переключение на ПК */
    .mystery-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .mystery-grid.cols-2 {
        gap: 35px;
    }
    .mystery-grid.cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .mystery-grid.cols-3 {
        gap: 35px;
    }

    .mystery-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .mystery-grid.cols-4 {
        gap: 35px;
    }
    .mystery-grid.cols-4 img {
        width: 100%;
    }
}



/* ==========================================================================
   ОБЕРТКА ДЛЯ ХОВЕРОВ (ТОЛЬКО ДЛЯ ПК С МЫШКОЙ)
   ========================================================================== */
   @media (hover: hover) {
    .mega-nav-item:hover { 
        color: var(--pink-jelly-deep); 
        background: rgba(255, 143, 163, 0.08); 
        transform: scale(1.05); 
    }

    .header-right-meta a[href="account.html"]:hover { 
        color: var(--pink-jelly-deep); 
        background: rgba(255, 143, 163, 0.08); 
        transform: scale(1.1); 
    }

    .jelly-bag-trigger:hover { 
        transform: scale(1.1) rotate(-5deg); 
        background: var(--pink-jelly-deep); 
    }

    .mystery-card:hover { 
        transform: translateY(-15px) scale(1.05) rotate(2deg); 
        box-shadow: 0 30px 70px rgba(255, 143, 163, 0.3); 
    }
    
    .mystery-card:hover::before { 
        animation: shine 1.5s infinite; 
    }

    .mystery-btn:hover { 
        background: var(--pink-jelly-deep); 
        transform: scale(1.05); 
    }

    .mystery-premium:hover { 
        transform: scale(1.1) translateY(-10px); 
    }

    .feature-card:hover { 
        transform: translateY(-10px) scale(1.03); 
        box-shadow: 0 20px 50px rgba(255, 143, 163, 0.2); 
        border-color: var(--pink-jelly); 
    }
    
    .feature-card:hover::before { 
        opacity: 1; 
    }
    
    .feature-card:hover .feature-icon { 
        transform: scale(1.2) rotate(10deg); 
    }

    .jelly-product-card:hover { 
        transform: translateY(-15px) scale(1.05) rotate(1deg); 
        border-color: var(--pink-jelly); 
        box-shadow: 0 35px 70px rgba(255, 92, 122, 0.2); 
    }

    .jelly-product-card:hover .prod-img { 
        transform: scale(1.15) rotate(5deg); 
    }

    .jelly-buy-btn:hover { 
        transform: translateY(-3px) scale(1.05); 
        box-shadow: 0 8px 0 var(--text-core); 
        background: var(--pink-jelly); 
        border-color: var(--pink-jelly-deep); 
    }

    .social-icon-link:hover { 
        background: var(--pink-jelly-deep); 
    }
}


/* ==========================================================================
   ПОЛНАЯ ИЗОЛЯЦИЯ МИСТЕРИ БОКСОВ (БЕЗ КОНФЛИКТОВ С JS)
   ========================================================================== */

   .boxes-isolated-section {
    padding: 80px 0; 
    background: #ffe8ec; 
    position: relative; 
    overflow: hidden; 
    z-index: 25;
}

.boxes-isolated-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 143, 163, 0.2) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(147, 225, 216, 0.2) 0%, transparent 40%);
    pointer-events: none;
}

/* Флекс-контейнер */
.boxes-flex-container {
    display: flex !important;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Базовая карточка (копия твоих стилей) */
.box-solo-card {
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(15px); 
    border-radius: 30px; 
    padding: 40px 30px;
    text-align: center; 
    box-shadow: 0 15px 40px rgba(255, 143, 163, 0.15); 
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; 
    overflow: hidden; 
    cursor: pointer;
}

.box-solo-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 143, 163, 0.1), transparent); transform: rotate(45deg);
    transition: all 0.5s; opacity: 0;
}

/* Иконки, тексты, цены */
.box-solo-icon { font-size: 4rem; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.box-solo-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: var(--text-core); }
.box-solo-card p { display: block !important; color: var(--text-muted); margin-bottom: 20px; font-size: 1rem; }
.box-solo-price { font-size: 2rem; font-weight: 800; color: var(--pink-jelly-deep); margin-bottom: 24px; }

/* Специфические стили типов боксов */
.style-premium { border: 3px solid var(--pink-jelly-deep); }
.box-solo-badge { position: absolute; top: 10px; right: 10px; background: var(--pink-jelly-deep); color: white; padding: 6px 16px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }

/* --- АДАПТИВ СТРОГО НА ФЛЕКСАХ --- */

/* На телефоне: строго в одну колонку, во всю ширину */
@media (max-width: 767px) {
    .boxes-flex-container {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .box-solo-card {
        width: 100% !important;
        height: auto !important;
    }
    .style-premium {
        transform: none !important; /* Убираем десктопное увеличение на мобилке */
    }
}

/* На ПК: строго в один ряд из 3 штук */
@media (min-width: 768px) {
    .boxes-flex-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 30px !important;
    }
    .box-solo-card {
        flex: 1 1 0% !important;
    }
    .style-premium {
        transform: scale(1.05);
    }
}

/* Ховеры для ПК */
@media (hover: hover) {
    .box-solo-card:hover { 
        transform: translateY(-15px) scale(1.05) rotate(2deg) !important; 
        box-shadow: 0 30px 70px rgba(255, 143, 163, 0.3); 
    }
    .box-solo-card:hover::before { animation: shine 1.5s infinite; }
    .style-premium:hover { transform: scale(1.1) translateY(-10px) !important; }
}