/* ===== CSS VARIABLES ===== */
:root {
    --frame-border: rgba(255,255,255,0.12);
    --bg-scene: linear-gradient(180deg, #0D0815 0%, #100C1A 50%, #140E25 100%);
    --person-rgb: 255, 255, 255;
    --text-on-scene: rgba(255, 255, 255, 0.25);
    --floor-line: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 15%, rgba(255,255,255,0.06) 85%, transparent);
    --bg-dark: #0D0815;
    --bg-medium: #130E20;
    --bg-light: #1E1635;
    --bg-card: #181230;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --text-muted: #6B6580;
    --color-primary: #FF6B00;
    --color-secondary: #7B1FA2;
    --color-accent: #FFD700;
    --color-pink-light: #FF9E80;
    --color-blue-light: #CE93D8;
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF9E80 50%, #7B1FA2 100%);
    --gradient-pink: linear-gradient(135deg, #FF6B00 0%, #FF9E80 100%);
    --gradient-blue: linear-gradient(135deg, #7B1FA2 0%, #AB47BC 100%);
    --gradient-warm: linear-gradient(135deg, #FFD700 0%, #FF6B00 100%);
    --color-error: #EF4444;
    --color-success: #10B981;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 20px rgba(255, 107, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(255, 107, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --max-content: 1200px;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background-color: var(--bg-dark); }
body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
.page { display: none; min-height: 100vh; padding-bottom: 80px; background: var(--bg-dark); }
.page.active { display: block; animation: fadeIn 0.3s ease; }

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.loading-screen.fade-out { opacity: 0; transform: scale(1.03); pointer-events: none; }

/* Mini easel loader */
.mini-loader {
    position: relative; width: 40px; height: 52px;
    animation: miniEaselSpin 1.8s ease-in-out infinite;
}
.mini-loader-canvas {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 34px;
    background: linear-gradient(135deg, rgba(255,107,0,0.15), rgba(123,31,162,0.15));
    border: 2.5px solid var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(255,107,0,0.2);
}
.mini-loader-canvas::after {
    content: ''; position: absolute; inset: 4px;
    background: linear-gradient(135deg, #FF6B00, #7B1FA2, #FFD700);
    background-size: 300% 300%;
    border-radius: 1px; opacity: 0.4;
    animation: miniPaintShift 2s ease-in-out infinite;
}
.mini-loader-leg-l, .mini-loader-leg-r {
    position: absolute; bottom: 0; width: 2.5px; height: 22px;
    background: linear-gradient(180deg, rgba(255,107,0,0.5), rgba(255,107,0,0.2));
    border-radius: 1px;
}
.mini-loader-leg-l { left: 8px; transform: rotate(-6deg); transform-origin: top center; }
.mini-loader-leg-r { right: 8px; transform: rotate(6deg); transform-origin: top center; }

@keyframes miniEaselSpin {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    25% { transform: rotate(4deg) scale(1.05); }
    50% { transform: rotate(8deg) scale(1); }
    75% { transform: rotate(-4deg) scale(1.05); }
}
@keyframes miniPaintShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
/* Splash screen removed — styles cleaned up */


/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; background: var(--bg-medium);
    padding: 12px 16px; padding-top: calc(12px + var(--tg-content-safe-top)); display: flex; justify-content: space-between;
    align-items: center; z-index: 100; border-bottom: 1px solid var(--bg-light);
}
.header-inner {
    width: 100%; max-width: var(--max-content); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 26px; font-weight: 900; letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.cart-icon {
    position: relative; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 50%;
    background: transparent; transition: var(--transition);
}
.cart-icon:active { transform: scale(0.9); }
.cart-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--color-secondary); color: white;
    font-size: 11px; font-weight: 800; min-width: 22px; height: 22px;
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-medium); animation: bounce 0.3s ease;
}
.cart-badge.hidden { display: none; }
.page-header {
    display: flex; align-items: center; padding: 12px 16px; padding-top: calc(12px + var(--tg-content-safe-top)); gap: 12px;
    background: var(--bg-medium); position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--bg-light);
}
.back-button {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 50%; background: var(--bg-light); transition: var(--transition);
}
.back-button svg { stroke: var(--text-primary); }
.back-button:active { background: var(--color-primary); transform: scale(0.9); }
.page-title { flex: 1; font-size: 20px; font-weight: 800; }
.clear-cart { color: var(--color-primary); font-size: 14px; font-weight: 700; cursor: pointer; padding: 8px; }

/* ===== TAGLINE MARQUEE ===== */
.tagline-bar {
    padding: 12px 0; overflow: hidden; position: relative;
    background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.tagline-track { display: flex; width: max-content; animation: taglineScroll 18s linear infinite; }
.tagline-item { display: flex; align-items: center; gap: 16px; padding: 0 24px; white-space: nowrap; flex-shrink: 0; }
.tagline-text {
    font-size: 14px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(90deg, #FF6B00, #FF9E80, #FFD700, #7B1FA2, #CE93D8, #FF6B00);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: taglineGradient 4s ease infinite;
}
.tagline-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--color-primary); opacity: 0.5;
    animation: taglinePulse 2s ease-in-out infinite;
}
.tagline-dot:nth-child(2) { animation-delay: 0.3s; }
.tagline-emoji { font-size: 16px; animation: taglineEmoji 3s ease-in-out infinite; }
@keyframes taglineScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes taglineGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes taglinePulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 0.8; transform: scale(1.2); } }
@keyframes taglineEmoji { 0%, 100% { transform: scale(1) rotate(0deg); } 25% { transform: scale(1.15) rotate(-5deg); } 75% { transform: scale(1.15) rotate(5deg); } }

/* ===== STORIES CARDS ===== */
.stories-section { padding: 16px 0 4px; display: block; position: relative; max-width: var(--max-content); margin: 0 auto; }
.stories-row {
    display: flex; gap: 10px; padding: 0 16px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scroll-padding-left: 16px;
}
@media (min-width: 1024px) { .stories-row { scroll-padding-left: 32px; } .reviews-scroll { scroll-padding-left: 32px; } }
.stories-row::-webkit-scrollbar { display: none; }

/* Stories row — no arrows, just smooth scroll */
.story-card {
    flex-shrink: 0; width: 120px; min-height: 165px;
    border-radius: 16px; padding: 14px 12px 12px;
    color: white; cursor: pointer; position: relative; overflow: hidden;
    display: flex; flex-direction: column; scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.story-card:active { transform: scale(0.96); }
.story-card::before {
    content: ''; position: absolute; top: -25px; right: -25px;
    width: 80px; height: 80px; background: rgba(255,255,255,0.1);
    border-radius: 50%; pointer-events: none;
}
.story-card::after {
    content: ''; position: absolute; bottom: -15px; left: -15px;
    width: 55px; height: 55px; background: rgba(255,255,255,0.06);
    border-radius: 50%; pointer-events: none;
}
.story-card-emoji { font-size: 32px; margin-bottom: 8px; position: relative; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.story-card-title { font-size: 13px; font-weight: 900; line-height: 1.25; margin-bottom: 4px; position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.story-card-subtitle { font-size: 10px; font-weight: 600; opacity: 0.85; line-height: 1.3; position: relative; z-index: 1; margin-top: auto; }
.story-card-arrow { position: absolute; bottom: 8px; right: 10px; font-size: 14px; opacity: 0.5; z-index: 1; transition: transform 0.2s ease; }
.story-card:active .story-card-arrow { transform: translateX(2px); }

/* Placeholder story cards */
.story-card-placeholder {
    flex-shrink: 0; width: 120px; min-height: 165px;
    border-radius: 16px; padding: 14px 12px 12px;
    color: rgba(255,255,255,0.4); cursor: default; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    scroll-snap-align: start;
    background: linear-gradient(135deg, #1E1635 0%, #2a2050 100%);
    border: 2px dashed rgba(255,255,255,0.08);
    box-shadow: none;
    transition: border-color 0.3s ease;
}
.story-card-placeholder:hover { border-color: rgba(255,255,255,0.15); }
.story-card-placeholder .placeholder-icon {
    font-size: 28px; margin-bottom: 8px; opacity: 0.5;
    animation: placeholderPulse 3s ease-in-out infinite;
}
.story-card-placeholder .placeholder-title {
    font-size: 11px; font-weight: 800; text-align: center;
    line-height: 1.3; color: rgba(255,255,255,0.35);
    letter-spacing: 0.3px;
}
.story-card-placeholder .placeholder-sub {
    font-size: 9px; font-weight: 600; text-align: center;
    color: rgba(255,255,255,0.2); margin-top: 4px;
}
.story-card-placeholder::before {
    content: ''; position: absolute; top: -25px; right: -25px;
    width: 80px; height: 80px; background: rgba(255,255,255,0.02);
    border-radius: 50%; pointer-events: none;
}
@keyframes placeholderPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Light theme placeholder */
html.light-theme .story-card-placeholder {
    background: linear-gradient(135deg, #E8DDD0 0%, #F0E4D6 100%);
    border-color: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.25);
}
html.light-theme .story-card-placeholder:hover { border-color: rgba(0,0,0,0.12); }
html.light-theme .story-card-placeholder .placeholder-icon { opacity: 0.35; }
html.light-theme .story-card-placeholder .placeholder-title { color: rgba(0,0,0,0.25); }
html.light-theme .story-card-placeholder .placeholder-sub { color: rgba(0,0,0,0.15); }

/* ===== STORIES DOTS ===== */
.stories-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 0 12px;
    min-height: 28px;
}
.stories-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    cursor: default;
}
.stories-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
}
html.light-theme .stories-dot { background: rgba(0, 0, 0, 0.15); }
html.light-theme .stories-dot.active { background: var(--color-primary); }

/* ===== PROMO CARDS ===== */
.promo-section { padding: 6px 16px 20px; margin-top: 0; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.promo-title { font-size: 14px; font-weight: 800; margin-bottom: 8px; text-align: center; color: var(--text-muted); letter-spacing: 0.3px; }
.promo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.promo-card {
    padding: 8px 4px 6px; background: var(--bg-card); border-radius: 10px;
    text-align: center; transition: var(--transition);
    border: 1px solid var(--bg-light); cursor: pointer;
    position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: -15px; right: -15px;
    width: 35px; height: 35px; border-radius: 50%;
    background: rgba(255,107,0,0.04); pointer-events: none;
}
.promo-card:active { transform: scale(0.96); border-color: var(--color-primary); background: rgba(255,107,0,0.03); }
.promo-icon { font-size: 18px; margin-bottom: 2px; display: block; }
.promo-card-title { font-size: 8px; font-weight: 700; color: var(--text-muted); line-height: 1.25; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85); display: none;
    align-items: flex-end; justify-content: center;
    z-index: 1000; padding: 0; backdrop-filter: blur(8px); overflow: hidden;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease; }
.modal {
    background: var(--bg-card); border-radius: 24px 24px 0 0; padding: 28px 24px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    max-width: 540px; width: 100%; position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); border: 1px solid var(--bg-light);
    border-bottom: none; max-height: 90vh; overflow-y: auto;
}
.modal::-webkit-scrollbar { width: 0; }
@keyframes slideUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
    position: sticky; top: 0; float: right;
    width: 36px; height: 36px; background: var(--bg-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); z-index: 2;
}
.modal-close:active { background: var(--color-primary); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--text-secondary); stroke-width: 2.5; }
.modal-emoji { font-size: 56px; text-align: center; margin-bottom: 16px; clear: both; }
.modal-title { font-size: 20px; font-weight: 900; text-align: center; margin-bottom: 12px; }
.modal-text {
    font-size: 14px; color: var(--text-secondary); text-align: left;
    line-height: 1.8; margin-bottom: 20px; white-space: pre-line;
}
.modal-promo-code {
    background: var(--bg-light); border: 2px dashed var(--color-primary);
    border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 16px;
}
.modal-promo-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.modal-promo-value { font-size: 24px; font-weight: 900; color: var(--color-primary); letter-spacing: 3px; }
.modal-btn {
    width: 100%; padding: 16px; background: var(--gradient-pink);
    color: white; border: none; border-radius: 14px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    font-family: 'Nunito', sans-serif; box-shadow: var(--shadow-button);
    transition: var(--transition);
}
.modal-btn:active { transform: scale(0.98); }
.modal-btn-secondary {
    width: 100%; padding: 14px; background: transparent;
    color: var(--text-secondary); border: 2px solid var(--bg-light);
    border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: 'Nunito', sans-serif; margin-top: 10px; transition: var(--transition);
}
.modal-btn-secondary:active { background: var(--bg-light); }
.modal-btn.copied { background: var(--color-success) !important; box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important; }
.modal-buttons { display: flex; flex-direction: column; gap: 0; }

/* Size modal details */
.size-modal-details { background: var(--bg-light); border-radius: 16px; padding: 4px 0; margin-bottom: 16px; }
.size-modal-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.size-modal-row:last-child { border-bottom: none; }
.size-modal-row-label { font-size: 14px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.size-modal-row-value { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.size-modal-row-value.price { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 18px; }
.size-modal-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.size-modal-feature { padding: 8px 12px; background: var(--bg-light); border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.04); }

/* ===== CATALOG / SIZES ===== */
.section-header { text-align: center; margin-bottom: 20px; padding: 0 16px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.section-title { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.section-line { width: 50px; height: 4px; background: var(--gradient-primary); margin: 0 auto; border-radius: 2px; }
.sizes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; margin: 0 auto 32px; max-width: var(--max-content); }
.size-card {
    background: var(--bg-card); border-radius: 20px; padding: 16px;
    position: relative; transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards; opacity: 0;
    border: 1px solid var(--bg-light); cursor: pointer;
}
.size-card:active { transform: scale(0.98); border-color: var(--color-primary); }
.size-badge {
    position: absolute; top: -10px; right: 12px; padding: 5px 12px;
    border-radius: 12px; font-size: 10px; font-weight: 800;
    color: white; z-index: 1; text-transform: uppercase;
}
.size-badge.hit { background: var(--gradient-pink); box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4); }
.size-badge.popular { background: var(--gradient-blue); box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4); }
.size-info-btn {
    position: absolute; top: 10px; left: 10px;
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: var(--transition);
}
.size-info-btn:active { background: rgba(255,255,255,0.15); }
.size-info-btn svg { width: 14px; height: 14px; stroke: var(--text-muted); stroke-width: 2.5; fill: none; }
.size-preview { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.size-preview-frame {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
    border-radius: 8px; border: 3px solid var(--color-primary);
    box-shadow: inset 0 0 20px rgba(255, 107, 0, 0.1), 0 4px 15px rgba(0,0,0,0.3);
}
.size-preview-image { font-size: 28px; }
.size-dimensions { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.size-price {
    font-size: 28px; font-weight: 900; text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 6px;
}
.size-info { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 14px; font-weight: 600; }
.add-to-cart-btn {
    width: 100%; padding: 14px; background: var(--gradient-pink);
    color: white; border: none; border-radius: 14px;
    font-size: 14px; font-weight: 800; cursor: pointer;
    transition: var(--transition-fast); box-shadow: var(--shadow-button);
    font-family: 'Nunito', sans-serif; position: relative; z-index: 3;
}
.add-to-cart-btn:active { transform: scale(0.95); }
.add-to-cart-btn.added { background: var(--color-success); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
.add-to-cart-btn.pulse-effect { animation: buttonPulse 0.4s ease; }
@keyframes buttonPulse { 0% { transform: scale(1); } 30% { transform: scale(0.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.flying-item { position: fixed; z-index: 9999; pointer-events: none; font-size: 36px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }

/* ===== SIZE COMPARISON ===== */
.size-comparison { margin: 0 auto 24px; padding: 0 16px; max-width: var(--max-content); }
.sc-card { background: var(--bg-card); border-radius: 24px; overflow: hidden; border: 1px solid var(--bg-light); box-shadow: var(--shadow-card); }
.sc-scene {
    position: relative; width: 100%; height: 340px;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 16px 28px; gap: 16px;
    background: var(--bg-scene);
    overflow: hidden;
}
.sc-floor-line { position: absolute; bottom: 27px; left: 28px; right: 28px; height: 1px; background: var(--floor-line); }
.sc-person-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; z-index: 2; }
.sc-person-label { font-size: 9px; font-weight: 700; color: var(--text-on-scene); letter-spacing: 0.5px; margin-bottom: 2px; }
.sc-frame-wrap { position: relative; flex-shrink: 0; z-index: 2; margin-top: 28px; margin-right: 36px; }
.sc-frame {
    background: linear-gradient(145deg, rgba(255,107,0,0.06), rgba(123,31,162,0.04));
    border: 3px solid var(--frame-border); border-radius: 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(255,107,0,0.04);
    transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1), height 0.5s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s ease;
    cursor: pointer; position: relative;
}
.sc-frame::after { content: ''; position: absolute; bottom: -12px; left: 10%; right: 10%; height: 10px; background: radial-gradient(ellipse, rgba(0,0,0,0.4), transparent); filter: blur(4px); pointer-events: none; }
.sc-frame:active { border-color: var(--color-primary); }
.sc-frame-emoji { opacity: 0.25; transition: font-size 0.3s ease; pointer-events: none; }
.sc-frame-dims { font-size: 10px; font-weight: 800; color: var(--text-on-scene); pointer-events: none; white-space: nowrap; transition: opacity 0.3s ease; }
.sc-ruler-h { position: absolute; bottom: calc(100% + 10px); left: 0; width: 100%; display: flex; align-items: center; pointer-events: none; }
.sc-ruler-h-line { flex: 1; height: 1px; background: rgba(255,107,0,0.45); position: relative; }
.sc-ruler-h-line::before, .sc-ruler-h-line::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: rgba(255,107,0,0.5); }
.sc-ruler-h-line::before { left: 0; }
.sc-ruler-h-line::after { right: 0; }
.sc-ruler-h-text { font-size: 11px; font-weight: 800; color: var(--color-primary); opacity: 0.8; padding-left: 8px; white-space: nowrap; }
.sc-ruler-v { position: absolute; left: calc(100% + 12px); top: 0; height: 100%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.sc-ruler-v-line { flex: 1; width: 1px; background: rgba(255,107,0,0.45); position: relative; }
.sc-ruler-v-line::before, .sc-ruler-v-line::after { content: ''; position: absolute; left: -4px; width: 9px; height: 1px; background: rgba(255,107,0,0.5); }
.sc-ruler-v-line::before { top: 0; }
.sc-ruler-v-line::after { bottom: 0; }
.sc-ruler-v-text { font-size: 11px; font-weight: 800; color: var(--color-primary); opacity: 0.8; padding-top: 6px; white-space: nowrap; }
.sc-info { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(180deg, var(--bg-light), var(--bg-card)); }
.sc-info-size { font-size: 20px; font-weight: 900; color: var(--text-primary); margin-bottom: 2px; line-height: 1.2; }
.sc-info-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; color: white; margin-left: 6px; vertical-align: middle; }
.sc-info-badge.hit { background: var(--gradient-pink); }
.sc-info-badge.popular { background: var(--gradient-blue); }
.sc-info-sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.sc-info-right { text-align: right; }
.sc-info-price { font-size: 28px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.sc-info-cart { font-size: 13px; color: var(--color-primary); font-weight: 700; cursor: pointer; padding: 4px 0; transition: var(--transition); }
.sc-info-cart:active { opacity: 0.6; }
.sc-pills { display: flex; gap: 6px; padding: 14px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sc-pills::-webkit-scrollbar { display: none; }
.sc-pill {
    flex-shrink: 0; padding: 10px 16px; background: var(--bg-light);
    border: 2px solid transparent; border-radius: 14px;
    font-size: 13px; font-weight: 800; color: var(--text-secondary);
    cursor: pointer; transition: var(--transition);
    font-family: 'Nunito', sans-serif; white-space: nowrap; text-align: center;
}
.sc-pill:active { transform: scale(0.95); }
.sc-pill.active { border-color: var(--color-primary); color: var(--text-primary); background: rgba(255,107,0,0.1); box-shadow: 0 0 20px rgba(255,107,0,0.12); }
.sc-pill-tag { font-size: 9px; display: block; margin-top: 1px; }
.sc-pill-tag.hit { color: var(--color-primary); }
.sc-pill-tag.popular { color: var(--color-secondary); }

/* ===== EXAMPLES ===== */
.examples-section { padding: 0 16px; margin-bottom: 24px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.example-card { background: var(--bg-card); border-radius: 18px; padding: 24px; text-align: center; transition: var(--transition); border: 1px solid var(--bg-light); }
.example-card:active { transform: scale(0.97); border-color: var(--color-secondary); }
.example-icon { font-size: 40px; margin-bottom: 10px; }
.example-category { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.example-size { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.examples-instagram { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 20px; font-weight: 600; }
.examples-instagram a { color: var(--color-primary); font-weight: 700; text-decoration: none; }

/* ===== REVIEWS ===== */
.reviews-section { padding: 0; margin-bottom: 24px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.reviews-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reviews-scroll::-webkit-scrollbar { display: none; }
.reviews-scroll::before, .reviews-scroll::after { content: ''; flex-shrink: 0; width: 16px; }
@media (min-width: 1024px) { .reviews-scroll::before, .reviews-scroll::after { width: 32px; } }
.review-card { min-width: 280px; max-width: 280px; background: var(--bg-card); border-radius: 18px; padding: 16px; border: 1px solid var(--bg-light); display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.review-author { font-weight: 800; font-size: 15px; }
.review-date { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.review-stars { color: #FFD700; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }

/* ===== FAQ ===== */
.faq-section { padding: 0 16px 24px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.faq-item { background: var(--bg-card); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--bg-light); overflow: hidden; transition: var(--transition); }
.faq-item.open { border-color: var(--color-primary); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; cursor: pointer; gap: 12px; transition: var(--transition); }
.faq-question:active { background: rgba(255,255,255,0.03); }
.faq-q-text { font-size: 14px; font-weight: 700; flex: 1; }
.faq-arrow { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-text { padding: 0 18px 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-medium); padding: 32px 16px; text-align: center; border-top: 1px solid var(--bg-light); }
.footer-logo { font-size: 26px; font-weight: 900; letter-spacing: 2px; margin-bottom: 14px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-instagram { color: var(--color-primary); text-decoration: none; font-size: 15px; font-weight: 700; }
.footer-text { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* ===== CART ===== */
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty-icon { font-size: 80px; margin-bottom: 20px; }
.cart-empty-text { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cart-empty-subtext { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.cart-items { padding: 16px; padding-bottom: 240px; max-width: 700px; margin: 0 auto; }
.cart-item { background: var(--bg-card); border-radius: 20px; padding: 18px; margin-bottom: 12px; position: relative; animation: fadeInUp 0.3s ease; border: 1px solid var(--bg-light); }

.cart-item-header { display: flex; gap: 14px; margin-bottom: 14px; }
.cart-item-preview { width: 75px; height: 75px; background: var(--bg-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--color-primary); }
.cart-item-preview span { font-size: 32px; }
.cart-item-info { flex: 1; }
.cart-item-size { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.cart-item-price { font-size: 24px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Clean cart item layout */
.cart-item-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 30px; }
.cart-item-emoji { font-size: 36px; flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); border-radius: 14px; border: 2px solid var(--color-primary); }
.cart-item.cert .cart-item-emoji, .cart-item-head .cart-item-emoji[style*="cert"] { border-color: var(--color-secondary); }
.cart-item-head-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 18px; font-weight: 800; line-height: 1.2; margin-bottom: 2px; }
.cart-item-price-tag { font-size: 22px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.cart-item-hint { font-size: 12px; color: var(--text-muted); font-weight: 600; padding: 4px 0 0; }

/* Orientation row */
.cart-orient-row { display: flex; gap: 8px; margin-bottom: 12px; }
.cart-orient-btn { flex: 1; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--bg-light); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 800; cursor: pointer; font-family: 'Nunito'; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.cart-orient-btn.active { border-color: var(--color-primary); color: var(--text-primary); background: rgba(255,107,0,0.06); }
.cart-orient-btn:active { transform: scale(0.97); }

/* Toggle row */
.cart-toggle-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-light); border-radius: 12px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; border: 2px solid transparent; }
.cart-toggle-row.active { border-color: var(--color-primary); background: rgba(255,107,0,0.06); }
.cart-toggle-row:active { transform: scale(0.98); }
.cart-toggle-label { flex: 1; font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.cart-toggle-row.active .cart-toggle-label { color: var(--text-primary); }
.cart-toggle-price { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.cart-toggle-row.active .cart-toggle-price { color: var(--color-primary); }
.cart-toggle-check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--bg-medium); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: white; transition: all 0.2s ease; }
.cart-toggle-row.active .cart-toggle-check { background: var(--color-primary); border-color: var(--color-primary); }

/* Form fields in cart */
.cart-field-input { width: 100%; padding: 12px 14px; background: var(--bg-light); border: 2px solid transparent; border-radius: 12px; font-size: 14px; font-family: 'Nunito', sans-serif; font-weight: 600; color: var(--text-primary); transition: border-color 0.2s; margin-bottom: 10px; }
.cart-field-input::placeholder { color: var(--text-muted); }
.cart-field-input:focus { outline: none; border-color: var(--color-primary); }
.cart-field-textarea { width: 100%; padding: 12px 14px; background: var(--bg-light); border: 2px solid transparent; border-radius: 12px; font-size: 14px; font-family: 'Nunito', sans-serif; font-weight: 600; color: var(--text-primary); resize: none; height: 48px; transition: all 0.2s; margin-bottom: 12px; }
.cart-field-textarea::placeholder { color: var(--text-muted); }
.cart-field-textarea:focus { outline: none; border-color: var(--color-primary); height: 72px; }

.cart-item-delete { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; background: var(--bg-light); transition: var(--transition); z-index: 2; }
.cart-item-delete svg { stroke: var(--text-muted); }
.cart-item-delete:active { background: var(--color-error); }
.cart-item-delete:active svg { stroke: white; }
.packaging-toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-light); border-radius: 14px; margin-bottom: 14px; cursor: pointer; }
.packaging-label { font-size: 15px; font-weight: 700; }
.packaging-price { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.toggle-switch { width: 54px; height: 30px; background: var(--bg-medium); border-radius: 15px; position: relative; transition: var(--transition); }
.toggle-switch.active { background: var(--gradient-pink); }
.toggle-switch::after { content: ''; position: absolute; width: 26px; height: 26px; background: white; border-radius: 50%; top: 2px; left: 2px; transition: var(--transition); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.toggle-switch.active::after { left: 26px; }
.cart-item-comment { width: 100%; padding: 14px; background: var(--bg-light); border: 2px solid var(--bg-medium); border-radius: 14px; font-size: 16px; font-family: 'Nunito', sans-serif; resize: none; height: 75px; transition: var(--transition); color: var(--text-primary); }
.cart-item-comment::placeholder { color: var(--text-muted); }
.cart-item-comment:focus { outline: none; border-color: var(--color-primary); }
.cart-qty-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 16px; padding: 14px 16px; background: var(--bg-light); border-radius: 14px; border: 1px solid rgba(255,255,255,0.04); }
.cart-qty-label { font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.cart-qty-controls { display: flex; align-items: center; background: var(--bg-medium); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.qty-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; font-weight: 800; color: var(--text-primary); border: none; background: transparent; font-family: 'Nunito', sans-serif; transition: var(--transition-fast); -webkit-tap-highlight-color: transparent; }
.qty-btn:active { background: rgba(255,255,255,0.1); }
.qty-btn.minus { color: var(--color-error); }
.qty-btn.plus { color: var(--color-success); }
.qty-value { min-width: 36px; text-align: center; font-size: 18px; font-weight: 900; color: var(--text-primary); }
.cart-empty-anim { animation: emptyCartFloat 3s ease-in-out infinite; display: inline-block; }
@keyframes emptyCartFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-12px) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(0deg); } 75% { transform: translateY(-9px) rotate(3deg); } }
.cart-empty-sparkles { font-size: 24px; margin-top: 12px; }
.cart-empty-sparkle { display: inline-block; animation: sparkleFloat 2s ease-in-out infinite; margin: 0 4px; }
.cart-empty-sparkle:nth-child(2) { animation-delay: 0.3s; }
.cart-empty-sparkle:nth-child(3) { animation-delay: 0.6s; }
@keyframes sparkleFloat { 0%, 100% { opacity: 0.3; transform: translateY(0) scale(0.8); } 50% { opacity: 1; transform: translateY(-8px) scale(1.1); } }
.promo-section-cart { background: var(--bg-card); border-radius: 20px; padding: 18px; margin: 0 0 16px; border: 1px solid var(--bg-light); }
.promo-input-wrapper { display: flex; gap: 10px; }
.promo-input { flex: 1; padding: 14px 16px; background: var(--bg-light); border: 2px solid var(--bg-medium); border-radius: 12px; font-size: 16px; font-family: 'Nunito', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--text-primary); }
.promo-input::placeholder { color: var(--text-muted); }
.promo-input:focus { outline: none; border-color: var(--color-secondary); }
.promo-apply-btn { padding: 14px 24px; background: var(--gradient-blue); color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4); }
.promo-message { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.promo-message.success { color: var(--color-success); }
.promo-message.error { color: var(--color-error); }
.add-more-btn { width: 100%; padding: 18px; background: transparent; border: 2px dashed var(--bg-light); border-radius: 16px; font-size: 15px; font-weight: 700; color: var(--color-primary); cursor: pointer; margin-top: 10px; margin-bottom: 16px; transition: var(--transition); font-family: 'Nunito', sans-serif; }
.add-more-btn:active { background: rgba(255, 107, 0, 0.1); }
.cart-summary {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(19, 14, 32, 0.65);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 18px 16px 24px; z-index: 100;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cart-summary.keyboard-open { transform: translateY(100%); opacity: 0; pointer-events: none; }
.cart-summary-inner { max-width: 700px; margin: 0 auto; }
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.cart-summary-row span:last-child { color: var(--text-primary); }
.cart-summary-row.discount { color: var(--color-success); }
.cart-summary-row.discount span:last-child { color: var(--color-success); }
.cart-summary-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 24px; font-weight: 900; }
.checkout-btn { width: 100%; padding: 18px; background: var(--gradient-pink); color: white; border: none; border-radius: 16px; font-size: 17px; font-weight: 800; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-button); font-family: 'Nunito', sans-serif; }
.checkout-btn:active { transform: scale(0.98); }

/* Cart suggestions (Empty State) */
.cart-empty-suggestions { margin-top: 36px; text-align: left; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; padding: 0 10px; animation: fadeInUp 0.5s ease 0.2s backwards; }
.cart-suggestions-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--text-secondary); text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.cart-suggestions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cart-suggestion-card { background: var(--bg-light); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 12px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.cart-suggestion-card:active { transform: scale(0.97); border-color: var(--color-primary); background: rgba(255,107,0,0.05); }
.cart-suggestion-size { font-size: 15px; font-weight: 800; margin-bottom: 2px; color: var(--text-primary); }
.cart-suggestion-price { font-size: 14px; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.cart-suggestion-btn { width: 100%; padding: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--text-secondary); transition: all 0.2s ease; }
.cart-suggestion-card:active .cart-suggestion-btn { background: var(--color-primary); color: white; border-color: var(--color-primary); }
html.light-theme .cart-suggestion-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
html.light-theme .cart-suggestion-btn { background: var(--bg-light); border-color: transparent; color: var(--text-muted); }
html.light-theme .cart-suggestion-card:active .cart-suggestion-btn { background: var(--gradient-pink); color: white; }

/* ===== CHECKOUT ===== */
.checkout-content { padding: 16px; max-width: 600px; margin: 0 auto; }
.progress-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 28px; }
.progress-step { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--text-secondary); transition: var(--transition); }
.progress-step.active { background: var(--gradient-pink); color: white; box-shadow: var(--shadow-button); }
.progress-step.completed { background: var(--color-success); color: white; }
.progress-line { width: 50px; height: 4px; background: var(--bg-light); border-radius: 2px; transition: var(--transition); }
.progress-line.active { background: var(--color-success); }
.checkout-step { display: none; animation: fadeInUp 0.3s ease; }
.checkout-step.active { display: block; }
.step-title { font-size: 24px; font-weight: 900; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.form-label .req { color: var(--color-error); }
.form-input { width: 100%; padding: 16px; background: var(--bg-card); border: 2px solid var(--bg-light); border-radius: 14px; font-size: 16px; font-family: 'Nunito', sans-serif; font-weight: 600; transition: var(--transition); color: var(--text-primary); }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--color-primary); }
.form-input.error { border-color: var(--color-error); animation: shake 0.4s ease; }
.form-input.valid { border-color: var(--color-success); }
.form-error { font-size: 12px; color: var(--color-error); margin-top: 6px; font-weight: 600; display: none; }
.form-error.visible { display: block; animation: fadeIn 0.2s ease; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.delivery-options { display: flex; flex-direction: column; gap: 12px; }
.delivery-option { padding: 20px; background: var(--bg-card); border: 2px solid var(--bg-light); border-radius: 18px; cursor: pointer; transition: var(--transition); }
.delivery-option.selected { border-color: var(--color-primary); background: rgba(255, 107, 0, 0.05); }
.delivery-option-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.delivery-option-name { font-size: 16px; font-weight: 800; }
.delivery-option-price { font-size: 15px; font-weight: 800; color: var(--color-primary); }
.delivery-option-price.free { color: var(--color-success); }
.delivery-option-address { font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.delivery-option-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.delivery-fields { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bg-light); display: none; }
.delivery-option.selected .delivery-fields { display: block; animation: fadeInUp 0.3s ease; }
.delivery-row { display: flex; gap: 12px; }
.delivery-row .form-group { flex: 1; }
.delivery-zone { display: flex; gap: 10px; margin-bottom: 16px; }
.delivery-zone-btn { flex: 1; padding: 12px; background: var(--bg-light); border: 2px solid var(--bg-medium); border-radius: 12px; text-align: center; cursor: pointer; transition: var(--transition); }
.delivery-zone-btn.active { border-color: var(--color-primary); background: rgba(255, 107, 0, 0.1); }
.delivery-zone-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.delivery-zone-price { font-size: 12px; font-weight: 600; color: var(--color-primary); }
.delivery-error-msg { text-align: center; padding: 12px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); border-radius: 12px; color: var(--color-error); font-size: 13px; font-weight: 700; margin-top: 12px; display: none; }
.delivery-error-msg.visible { display: block; animation: shake 0.4s ease; }
.confirm-card { background: var(--bg-card); border-radius: 18px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--bg-light); }
.confirm-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.confirm-card-title { font-size: 15px; font-weight: 800; }
.confirm-card-edit { color: var(--color-secondary); font-size: 14px; font-weight: 700; cursor: pointer; }
.confirm-card-content { font-size: 14px; color: var(--text-secondary); font-weight: 600; line-height: 1.7; }
.confirm-total { background: var(--bg-card); border: 2px solid var(--color-primary); border-radius: 20px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.confirm-total-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.confirm-total-row span:last-child { color: var(--text-primary); }
.confirm-total-row.discount { color: var(--color-success); }
.confirm-total-row.discount span:last-child { color: var(--color-success); }
.confirm-total-final { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--bg-light); font-size: 24px; font-weight: 900; }
.payment-info { background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 107, 0, 0.12) 100%); border: 2px solid var(--color-accent); border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.payment-info-title { font-weight: 800; color: var(--color-accent); margin-bottom: 10px; font-size: 15px; }
.payment-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.payment-row span:last-child { color: var(--text-primary); font-weight: 700; }
.payment-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.next-btn { width: 100%; padding: 18px; background: var(--gradient-pink); color: white; border: none; border-radius: 16px; font-size: 17px; font-weight: 800; cursor: pointer; transition: var(--transition); box-shadow: var(--shadow-button); margin-top: 20px; font-family: 'Nunito', sans-serif; }
.next-btn:active { transform: scale(0.98); }
.next-btn.pulse { animation: pulse 2s infinite; }

/* ===== SUCCESS ===== */
.success-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 1000; padding: 24px; padding-top: calc(24px + var(--tg-content-safe-top)); text-align: center; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.success-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.success-icon { width: 130px; height: 130px; background: var(--gradient-pink); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; animation: bounceIn 0.5s ease; box-shadow: 0 0 60px rgba(255, 107, 0, 0.5); }
.success-icon svg { width: 65px; height: 65px; stroke: white; stroke-width: 3; }
.success-title { font-size: 34px; font-weight: 900; margin-bottom: 10px; }
.success-order { font-size: 17px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 600; }
.success-text { font-size: 15px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.8; font-weight: 600; }
.success-buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.success-btn-primary { padding: 18px; background: var(--gradient-pink); color: white; border: none; border-radius: 16px; font-size: 17px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: var(--shadow-button); display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.success-btn-secondary { padding: 16px; background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; }
.confetti-piece { position: fixed; z-index: 1001; pointer-events: none; animation: confettiFall linear forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 2000;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 380px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}
.toast.show {
    transform: translateX(-50%) translateY(calc(12px + var(--tg-content-safe-top)));
    opacity: 1;
}
.toast.hiding {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1), opacity 0.3s ease;
}
.toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(13, 8, 21, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.3; }
.toast-subtitle { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-timer { width: 28px; height: 28px; flex-shrink: 0; position: relative; }
.toast-timer svg { width: 28px; height: 28px; transform: rotate(-90deg); }
.toast-timer-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 3; }
.toast-timer-fill {
    fill: none; stroke: var(--color-primary); stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 75.4;
    stroke-dashoffset: 0;
    transition: none;
}
.toast.show .toast-timer-fill { animation: toastTimer 2.5s linear forwards; }
@keyframes toastTimer { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 75.4; } }

/* ===== GIFT CERTIFICATE ===== */
/* gift-cert-btn kept for legacy compat */
.gift-cert-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--gradient-blue); color: white; border: none; border-radius: 14px; font-size: 15px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: 0 4px 15px rgba(123,31,162,0.4); transition: var(--transition); text-decoration: none; position: relative; z-index: 1; }
.gift-cert-btn:active { transform: scale(0.95); }

/* ===== SOCIAL ===== */
.social-section { padding: 0 16px 32px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.social-title { font-size: 16px; font-weight: 800; text-align: center; margin-bottom: 14px; color: var(--text-secondary); }
.social-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-size: 13px; font-weight: 700; text-decoration: none; color: white; transition: var(--transition); }
.social-btn:active { transform: scale(0.95); }
.social-btn.telegram { background: linear-gradient(135deg, #2AABEE, #229ED9); box-shadow: 0 4px 12px rgba(42,171,238,0.3); }
.social-btn.instagram { background: linear-gradient(135deg, #F56040, #C13584); box-shadow: 0 4px 12px rgba(193,53,132,0.3); }
.social-btn-icon { font-size: 18px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-size: 13px; font-weight: 700; color: white; cursor: pointer; border: none; font-family: 'Nunito'; background: linear-gradient(135deg, #FF6B00, #7B1FA2); box-shadow: 0 4px 12px rgba(255,107,0,0.25); transition: all 0.3s ease; }
.share-btn:active { transform: scale(0.95); }

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area { border: 2px dashed var(--color-primary); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.photo-upload-area:active { border-color: var(--color-primary); background: rgba(255,107,0,0.05); }
.photo-upload-area.has-photo { border-color: var(--color-success); border-style: solid; background: rgba(16,185,129,0.05); }
.photo-upload-icon { font-size: 28px; margin-bottom: 6px; }
.photo-upload-text { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.photo-upload-text strong { color: var(--color-primary); }
.photo-upload-preview { display: flex; align-items: center; gap: 12px; text-align: left; }
.photo-upload-thumb { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid var(--color-success); }
.photo-upload-info { flex: 1; min-width: 0; }
.photo-upload-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-upload-size { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.photo-upload-change { font-size: 12px; color: var(--color-primary); font-weight: 700; margin-top: 4px; }
/* Photo thumbnails grid (multiple photos) */
.photo-thumbs-grid {
    display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.photo-thumbs-grid::-webkit-scrollbar { display: none; }
.photo-thumb-item {
    flex-shrink: 0; width: 90px; position: relative;
    border-radius: 12px; overflow: hidden;
    border: 2px solid var(--color-success);
    background: var(--bg-light);
}
.photo-thumb-item img {
    width: 90px; height: 72px; object-fit: cover; display: block;
}
.photo-thumb-name {
    font-size: 8px; font-weight: 700; color: var(--text-muted);
    padding: 3px 6px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; text-align: center; background: var(--bg-card);
}
.photo-thumb-del {
    position: absolute; top: 3px; right: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(0,0,0,0.65); color: white;
    border: none; font-size: 10px; font-weight: 800;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: background 0.2s;
    line-height: 1; padding: 0;
}
.photo-thumb-del:active { background: var(--color-error); }

.photo-thumb-add {
    flex-shrink: 0; width: 72px; height: 72px;
    border-radius: 12px; border: 2px dashed rgba(255,107,0,0.3);
    background: rgba(255,107,0,0.04);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; cursor: pointer;
    color: var(--color-primary); font-weight: 800;
    transition: all 0.2s ease;
}
.photo-thumb-add:active { background: rgba(255,107,0,0.1); border-color: var(--color-primary); }
.photo-thumb-add span:first-child { font-size: 22px; line-height: 1; }
.photo-upload-count {
    font-size: 11px; font-weight: 700; color: var(--color-success);
    margin-top: 4px; text-align: center;
}

.photo-canvas-wrap { margin-top: 12px; text-align: center; }
.photo-canvas-frame { display: inline-block; position: relative; border: 3px solid var(--color-primary); border-radius: 4px; overflow: hidden; background: var(--bg-light); box-shadow: 0 8px 25px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,107,0,0.08); }
.photo-canvas-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-canvas-size { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,0.65)); font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.8); text-align: center; }

/* ===== FLOATING TELEGRAM ===== */
.float-telegram { position: fixed; bottom: 20px; right: 14px; z-index: 98; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: opacity 0.3s ease, transform 0.3s ease; }
.float-telegram.hide-float { opacity: 0; pointer-events: none; transform: scale(0.5) translateY(20px); }
.float-telegram-btn { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #1A1A1A, #2D2D2D); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,0.5); cursor: pointer; transition: var(--transition); animation: floatPulse 3s ease-in-out infinite; text-decoration: none; position: relative; }
.float-telegram-btn:active { transform: scale(0.9); }
.float-telegram-btn svg { width: 20px; height: 20px; fill: rgba(255,255,255,0.85); }
.float-telegram-online { position: absolute; top: 0; right: 0; width: 11px; height: 11px; background: #10B981; border-radius: 50%; border: 2px solid var(--bg-dark); animation: onlinePulse 2s ease-in-out infinite; }
.float-telegram-label { font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
@keyframes floatPulse { 0%, 100% { box-shadow: 0 3px 12px rgba(0,0,0,0.4); transform: scale(1); } 50% { box-shadow: 0 3px 18px rgba(0,0,0,0.6), 0 0 8px rgba(255,255,255,0.05); transform: scale(1.04); } }
@keyframes onlinePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* ===== SCROLL TO TOP ===== */
body.is-telegram .scroll-top { display: none !important; }

.scroll-top { position: fixed; bottom: 24px; left: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--bg-light); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 98; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; pointer-events: none; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:active { background: var(--color-primary); transform: scale(0.9) !important; }
.scroll-top svg { width: 20px; height: 20px; stroke: var(--text-secondary); stroke-width: 2.5; }
/* Move scroll top button up when cart summary is visible */
body.cart-active .scroll-top { bottom: 200px !important; transition: bottom 0.3s ease; }

/* ===== WALL VISUALIZER ===== */
.wall-viz { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-dark); z-index: 999; display: none; flex-direction: column; }
.wall-viz.active { display: flex; animation: fadeIn 0.3s ease; }
.wall-viz * { touch-action: manipulation; }
.wall-viz-header { display: flex; align-items: center; padding: 12px 16px; padding-top: calc(12px + var(--tg-content-safe-top)); gap: 12px; background: var(--bg-medium); border-bottom: 1px solid var(--bg-light); flex-shrink: 0; }
/* Telegram: hide in-page back button in wall viz, use native BackButton */
body.is-telegram .wall-viz-header .back-button { display: none !important; }
body.is-telegram .wall-viz-header { justify-content: center; }
.wall-viz-title { flex: 1; font-size: 18px; font-weight: 800; text-align: center; }
body.is-telegram .wall-viz-header > div[style*="width:44px"] { display: none !important; }
.wall-scene-wrap { flex: 1; overflow: hidden; position: relative; touch-action: manipulation; }
.wall-scene { width: 100%; height: 100%; position: relative; background: linear-gradient(180deg, #2d2345 0%, #342a50 25%, #3a305a 50%, #342a50 75%, #2d2345 100%); overflow: hidden; }
.wall-scene::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"); opacity: 0.7; pointer-events: none; z-index: 0; }
.wall-scene::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 4px); pointer-events: none; z-index: 0; }
.wall-light { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); width: 90%; height: 65%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,140,50,0.12) 0%, rgba(255,107,0,0.06) 30%, transparent 65%); pointer-events: none; z-index: 1; }
.wall-light-accent { position: absolute; top: 5%; left: 50%; transform: translateX(-50%); width: 50%; height: 55%; border-radius: 50%; background: radial-gradient(ellipse, rgba(123,31,162,0.08) 0%, rgba(255,107,0,0.05) 40%, transparent 70%); pointer-events: none; z-index: 1; }
.wall-floor { position: absolute; bottom: 0; width: 100%; height: 16%; background: linear-gradient(180deg, #251c34 0%, #140e1c 40%, #100a16 100%); z-index: 1; }
.wall-floor::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 80px), repeating-linear-gradient(90deg, transparent 0px, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px, transparent 40px, transparent 80px); }
.wall-floor::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: linear-gradient(180deg, rgba(0,0,0,0.3), transparent); pointer-events: none; }
.wall-baseboard { position: absolute; bottom: 16%; width: 100%; height: 2.5%; background: linear-gradient(180deg, #3d3358 0%, #342a4c 40%, #2c2240 100%); box-shadow: 0 3px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2); z-index: 2; }
.wall-baseboard::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,107,0,0.1) 30%, rgba(123,31,162,0.1) 70%, transparent); }
.wall-painting-container { position: absolute; top: 15%; left: 50%; transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1), height 0.5s cubic-bezier(0.34,1.56,0.64,1); cursor: grab; z-index: 10; touch-action: none; user-select: none; -webkit-user-select: none; }
.wall-painting-container:active { cursor: grabbing; }
.wall-painting-frame { width: 100%; height: 100%; background: #28203a; border: 5px solid #3d3358; box-shadow: 0 15px 60px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05), inset 0 0 20px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; touch-action: manipulation; }
.wall-painting-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-painting-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.15); pointer-events: none; }
.wall-painting-placeholder span:first-child { font-size: 32px; }
.wall-painting-placeholder span:last-child { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.wall-painting-label { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.8); white-space: nowrap; background: rgba(13,8,21,0.65); padding: 4px 14px; border-radius: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); }
.wall-shadow { position: absolute; bottom: -10px; left: 5%; right: 5%; height: 16px; background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); filter: blur(6px); pointer-events: none; }
.wall-sofa-shape { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); width: 55%; max-width: 240px; z-index: 2; }
.wall-sofa-back { height: 22px; margin: 0 6%; background: rgba(255,255,255,0.06); border-radius: 8px 8px 0 0; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15); }
.wall-sofa-body { height: 32px; background: rgba(255,255,255,0.08); border-radius: 4px 4px 8px 8px; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.wall-sofa-arm-l, .wall-sofa-arm-r { position: absolute; bottom: 0; width: 10%; height: 42px; background: rgba(255,255,255,0.04); }
.wall-sofa-arm-l { left: -4%; border-radius: 6px 2px 2px 6px; }
.wall-sofa-arm-r { right: -4%; border-radius: 2px 6px 6px 2px; }
.wall-sofa-cushion { position: absolute; top: 4px; left: 8%; right: 8%; height: 12px; background: rgba(255,255,255,0.03); border-radius: 4px; display: flex; gap: 4px; }
.wall-sofa-cushion::before, .wall-sofa-cushion::after { content: ''; flex: 1; background: rgba(255,255,255,0.02); border-radius: 3px; }
.wall-plant-deco { position: absolute; bottom: 20%; right: 7%; font-size: 36px; opacity: 0.25; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.wall-lamp-deco { position: absolute; bottom: 20%; left: 7%; font-size: 32px; opacity: 0.2; z-index: 2; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
/* Camera video */
.wall-camera-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #000; }
/* Custom wall bg */
.wall-custom-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Mode classes */
.wall-scene.mode-photo, .wall-scene.mode-camera { background: #1a1a1a; }
.wall-scene.mode-photo::before, .wall-scene.mode-camera::before { display: none; }
/* Change wall photo button */
.wall-photo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    line-height: 1;
}
.wall-photo-close:hover {
    background: rgba(239,68,68,0.7);
    transform: scale(1.1);
}
/* Drag hint */
.wall-drag-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 20; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.4); padding: 5px 14px; border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.5s ease; }
.wall-scene-wrap:has(.wall-painting-container:active) .wall-drag-hint { opacity: 0; }
.wall-viz.active .wall-drag-hint { animation: dragHintFade 4s ease 1.5s forwards; }
@keyframes dragHintFade { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
/* Mode buttons */
.wall-mode-row { display: flex; gap: 6px; margin-bottom: 12px; }
.wall-mode-btn { flex: 1; padding: 10px 6px; border: 2px solid var(--bg-light); border-radius: 12px; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; transition: all 0.2s ease; white-space: nowrap; }
.wall-mode-btn.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(255,107,0,0.08); }
.wall-mode-btn:active { transform: scale(0.96); }

.wall-controls { flex-shrink: 0; padding: 14px 16px; padding-bottom: calc(20px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-bottom))); background: var(--bg-medium); border-top: 1px solid var(--bg-light); }
.wall-btns-row { display: flex; gap: 10px; margin-bottom: 12px; }
.wall-upload-btn { flex: 1; padding: 14px; background: var(--gradient-pink); color: white; border: none; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: var(--shadow-button); transition: all 0.2s ease; }
.wall-upload-btn:active { transform: scale(0.98); }
.wall-add-btn { padding: 14px 20px; background: var(--gradient-blue); color: white; border: none; border-radius: 14px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: 'Nunito', sans-serif; box-shadow: 0 4px 15px rgba(123,31,162,0.4); transition: all 0.2s ease; }
.wall-add-btn:active { transform: scale(0.98); }
.wall-sizes-scroll { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wall-sizes-scroll::-webkit-scrollbar { display: none; }
.wall-sz-pill { flex-shrink: 0; padding: 8px 14px; background: var(--bg-light); border: 2px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 800; color: var(--text-secondary); cursor: pointer; font-family: 'Nunito'; white-space: nowrap; transition: all 0.2s ease; }
.wall-sz-pill.active { border-color: var(--color-primary); color: var(--text-primary); background: rgba(255,107,0,0.1); }
.wall-viz-trigger { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; margin: 0 auto 24px; background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(123,31,162,0.06)); border: 2px dashed rgba(255,107,0,0.25); border-radius: 20px; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--color-primary); transition: all 0.3s ease; font-family: 'Nunito'; position: relative; overflow: hidden; max-width: calc(var(--max-content) - 32px); width: calc(100% - 32px); }
.wall-viz-trigger::after { content: '→'; position: absolute; right: 18px; font-size: 18px; opacity: 0.5; transition: transform 0.3s ease; }
.wall-viz-trigger:active { background: rgba(255,107,0,0.12); transform: scale(0.98); }
.wall-viz-trigger:active::after { transform: translateX(4px); }

/* ===== ORIENTATION PICKER ===== */
.orient-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-light); border-radius: 14px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.04); }
.orient-label { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.orient-btns { display: flex; gap: 6px; }
.orient-btn { padding: 7px 12px; border-radius: 10px; border: 2px solid var(--bg-medium); background: transparent; color: var(--text-secondary); font-size: 11px; font-weight: 800; cursor: pointer; font-family: 'Nunito'; transition: all 0.2s ease; display: flex; align-items: center; gap: 5px; }
.orient-btn.active { border-color: var(--color-primary); color: var(--text-primary); background: rgba(255,107,0,0.08); }
.orient-icon { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; transition: all 0.2s ease; }
.orient-icon.landscape { width: 16px; height: 11px; }
.orient-icon.portrait { width: 11px; height: 16px; }
.orient-icon.square-icon { width: 13px; height: 13px; }

/* ===== CART REMINDER ===== */
.cart-reminder {
    position: fixed; bottom: -140px; left: 16px; right: 16px;
    background: rgba(13, 8, 21, 0.55);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; padding: 16px 18px;
    display: flex; align-items: center; gap: 12px;
    z-index: 97;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: bottom 0.5s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 600px; margin: 0 auto;
}
.cart-reminder.show { bottom: 24px; }
.cart-reminder-icon { font-size: 28px; flex-shrink: 0; animation: emptyCartFloat 3s ease-in-out infinite; }
.cart-reminder-info { flex: 1; min-width: 0; }
.cart-reminder-title { font-size: 14px; font-weight: 800; }
.cart-reminder-sub { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.cart-reminder-btn { padding: 10px 18px; background: var(--gradient-pink); color: white; border: none; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: 'Nunito'; box-shadow: var(--shadow-button); white-space: nowrap; flex-shrink: 0; transition: all 0.2s ease; }
.cart-reminder-btn:active { transform: scale(0.95); }
.cart-reminder-close { position: absolute; top: -8px; right: -4px; width: 26px; height: 26px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.06); }
.cart-reminder-close:active { background: var(--color-error); color: white; }

/* ===== CART RECOMMENDATIONS ===== */
.cart-reco { margin: 0 0 16px; padding: 16px; background: linear-gradient(135deg, rgba(255,107,0,0.06), rgba(123,31,162,0.06)); border: 1px solid rgba(255,107,0,0.15); border-radius: 18px; display: flex; align-items: center; gap: 12px; animation: fadeInUp 0.4s ease; }
.cart-reco-icon { font-size: 28px; flex-shrink: 0; }
.cart-reco-text { flex: 1; min-width: 0; }
.cart-reco-title { font-size: 13px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.cart-reco-sub { font-size: 11px; color: var(--text-secondary); font-weight: 600; line-height: 1.4; }
.cart-reco-btn { padding: 10px 16px; background: var(--gradient-pink); color: white; border: none; border-radius: 12px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: 'Nunito'; flex-shrink: 0; box-shadow: 0 2px 10px rgba(255,107,0,0.3); transition: all 0.2s ease; }
.cart-reco-btn:active { transform: scale(0.95); }
.cart-reco.success { border-color: rgba(16,185,129,0.2); background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(16,185,129,0.03)); }
.cart-reco.success .cart-reco-title { color: var(--color-success); }

/* ===== ANALYTICS ===== */
.analytics-section { padding: 0 16px 24px; max-width: var(--max-content); margin-left: auto; margin-right: auto; }
.analytics-card { background: var(--bg-card); border-radius: 24px; padding: 24px; border: 1px solid var(--bg-light); box-shadow: var(--shadow-card); }
.analytics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.analytics-title { font-size: 18px; font-weight: 900; }
.analytics-badge { padding: 5px 12px; border-radius: 10px; font-size: 11px; font-weight: 800; background: rgba(255,107,0,0.1); color: var(--color-primary); }
.analytics-item { margin-bottom: 16px; }
.analytics-item:last-child { margin-bottom: 0; }
.analytics-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.analytics-item-size { font-size: 15px; font-weight: 800; }
.analytics-item-tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 8px; }
.analytics-item-tag.hit { background: rgba(255,107,0,0.15); color: var(--color-primary); }
.analytics-item-tag.popular { background: rgba(123,31,162,0.15); color: var(--color-secondary); }
.analytics-item-percent { font-size: 14px; font-weight: 800; color: var(--color-primary); }
.analytics-bar-bg { width: 100%; height: 8px; background: var(--bg-light); border-radius: 4px; overflow: hidden; position: relative; }
.analytics-bar-fill { height: 100%; border-radius: 4px; min-width: 4px; transition: width 1.2s cubic-bezier(0.34,1.56,0.64,1); position: relative; overflow: hidden; }
.analytics-bar-fill::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: barShine 2s ease-in-out infinite; }
@keyframes barShine { 0% { left: -100%; } 100% { left: 200%; } }
.analytics-item-info { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.analytics-item-orders { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.analytics-item-price { font-size: 12px; color: var(--text-secondary); font-weight: 700; }

/* Theme toggle removed — auto-detection only */

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes bounceIn { 0% { transform: scale(0); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: var(--shadow-button); } 50% { transform: scale(1.02); box-shadow: 0 6px 30px rgba(255, 107, 0, 0.5); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ===== RESPONSIVE — TABLET ===== */
@media (min-width: 768px) {
    .sizes-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .examples-grid { grid-template-columns: repeat(4, 1fr); }
    .promo-cards { grid-template-columns: repeat(8, 1fr); gap: 8px; }
    .promo-card-title { font-size: 9px; }
    .promo-icon { font-size: 22px; }
    .promo-card { padding: 10px 6px 8px; }

    /* Stories — bigger, scrollable carousel on tablet+ with arrows */
    .stories-section { padding: 16px 0 4px; }
    .stories-row { gap: 12px; padding: 0 16px; }
    .story-card { width: 160px; min-height: 190px; padding: 16px 14px 14px; }
    .story-card-placeholder { width: 160px; min-height: 190px; }
    .story-card-emoji { font-size: 36px; }
    .story-card-title { font-size: 14px; }
    .story-card-subtitle { font-size: 11px; }
    .story-card-placeholder .placeholder-icon { font-size: 32px; }
    .story-card-placeholder .placeholder-title { font-size: 12px; }
    .story-card-placeholder .placeholder-sub { font-size: 10px; }
    .review-card { min-width: 320px; max-width: 320px; }
    .sc-scene { height: 400px; }
    .delivery-row { gap: 16px; }

    /* Modal — center vertically on desktop */
    .modal-overlay { align-items: center; padding: 24px; }
    .modal {
        border-radius: 24px;
        border-bottom: 1px solid var(--bg-light);
        max-height: 85vh;
    }

    /* Hover effects for desktop */
    .size-card:hover { border-color: rgba(255,107,0,0.3); transform: translateY(-2px); }
    .add-to-cart-btn:hover { filter: brightness(1.1); }
    .promo-card:hover { border-color: rgba(255,107,0,0.2); }
    .faq-item:hover { border-color: rgba(255,255,255,0.08); }
    .example-card:hover { border-color: rgba(123,31,162,0.3); transform: translateY(-2px); }
    .story-card:hover { transform: translateY(-2px); }
    .social-btn:hover, .gift-cert-btn:hover, .share-btn:hover { transform: translateY(-2px); }
    .wall-viz-trigger:hover { background: rgba(255,107,0,0.08); border-color: rgba(255,107,0,0.4); }
    .wall-viz-trigger:hover::after { transform: translateX(4px); }
    .back-button:hover { background: rgba(255,107,0,0.15); }
    .cart-icon:hover { background: rgba(255,255,255,0.05); }
    .review-card:hover { border-color: rgba(255,107,0,0.15); }
    .delivery-option:hover { border-color: rgba(255,107,0,0.2); }
    .checkout-btn:hover, .next-btn:hover, .modal-btn:hover { filter: brightness(1.1); }
    .sc-pill:hover { background: rgba(255,107,0,0.05); }
    .cart-reco-btn:hover { filter: brightness(1.1); }
    .wall-upload-btn:hover, .wall-add-btn:hover { filter: brightness(1.1); }
    .success-btn-primary:hover, .success-btn-secondary:hover { filter: brightness(1.1); }
}

/* ===== RESPONSIVE — DESKTOP ===== */
@media (min-width: 1024px) {
    /* Stories — even bigger on desktop */
    .stories-row { gap: 14px; padding: 0 32px; }
    .story-card { width: 180px; min-height: 200px; padding: 18px 16px 16px; border-radius: 20px; }
    .story-card-placeholder { width: 180px; min-height: 200px; border-radius: 20px; }
    .story-card-emoji { font-size: 40px; margin-bottom: 10px; }
    .story-card-title { font-size: 15px; }
    .story-card-subtitle { font-size: 12px; }
    .story-card-placeholder .placeholder-icon { font-size: 36px; }
    .story-card-placeholder .placeholder-title { font-size: 13px; }
    .story-card-placeholder .placeholder-sub { font-size: 11px; }
    .sizes-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .examples-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .section-title { font-size: 28px; }
    .header { padding: 12px 32px; }
    .stories-row { gap: 14px; padding: 0 32px; }
    .section-header { padding: 0 32px; }
    .faq-section { padding: 0 32px 24px; }
    .social-section { padding: 0 32px 32px; }
    .reviews-section { padding: 0; }
    .examples-section { padding: 0 32px; }
    .analytics-section { padding: 0 32px 24px; }
    .promo-section { padding: 6px 32px 20px; }
    .sizes-grid { padding: 0 32px; }
    .size-comparison { padding: 0 32px; }
    .wall-viz-trigger { width: calc(100% - 64px); }
    .gift-cert { padding: 32px 28px; }
    .footer { padding: 40px 32px; }
}

/* ===== RESPONSIVE — LARGE DESKTOP ===== */
@media (min-width: 1400px) {
    .sizes-grid { grid-template-columns: repeat(6, 1fr); }
    /* Even larger story cards on big screens */
    .stories-row { gap: 16px; padding: 0 32px; }
}

/* ===== GIFT CERTIFICATE ===== */
.gift-cert {
    margin: 0 16px 24px; padding: 28px 20px; width: calc(100% - 32px);
    background: linear-gradient(135deg, rgba(123,31,162,0.12) 0%, rgba(255,107,0,0.12) 100%);
    border: 2px solid rgba(123,31,162,0.2); border-radius: 24px;
    text-align: center; position: relative; overflow: hidden;
    max-width: var(--max-content); margin-left: auto; margin-right: auto;
}
.gift-cert::before { content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; background: rgba(255,107,0,0.08); border-radius: 50%; pointer-events: none; }
.gift-cert::after { content: ''; position: absolute; bottom: -30px; left: -30px; width: 110px; height: 110px; background: rgba(123,31,162,0.08); border-radius: 50%; pointer-events: none; }
.gift-cert-emoji { font-size: 48px; margin-bottom: 10px; position: relative; z-index: 1; }
.gift-cert-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; position: relative; z-index: 1; }
.gift-cert-text { font-size: 14px; color: var(--text-secondary); font-weight: 600; margin-bottom: 16px; line-height: 1.6; position: relative; z-index: 1; }

/* Cert features badges */
.cert-features { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; position: relative; z-index: 1; }
.cert-feat { padding: 6px 12px; background: rgba(255,107,0,0.08); border: 1px solid rgba(255,107,0,0.12); border-radius: 10px; font-size: 11px; font-weight: 700; color: var(--color-pink-light); white-space: nowrap; }

/* Certificate visual preview card */
.cert-preview { display: flex; justify-content: center; margin: 0 0 20px; perspective: 800px; position: relative; z-index: 1; }
.cert-card {
    width: 320px; max-width: 100%; aspect-ratio: 1.6 / 1;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a0e2e 0%, #2d1654 50%, #0D0815 100%);
    border: 1.5px solid rgba(255,107,0,0.2);
    position: relative; overflow: hidden;
    padding: 20px 24px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255,107,0,0.06);
    transform: rotateY(-2deg) rotateX(1deg);
    transition: transform 0.4s ease;
}
.cert-card:hover { transform: rotateY(0) rotateX(0); }
.cert-card-decor-tl { position: absolute; top: -30px; left: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,107,0,0.06); pointer-events: none; }
.cert-card-decor-br { position: absolute; bottom: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(123,31,162,0.08); pointer-events: none; }
.cert-card-border { position: absolute; inset: 10px; border: 1px solid rgba(255,107,0,0.08); border-radius: 10px; pointer-events: none; }
.cert-card-logo {
    font-size: 14px; font-weight: 900; letter-spacing: 3px;
    background: linear-gradient(135deg, #FF6B00, #FF9E80);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 2px;
}
.cert-card-label { font-size: 7px; font-weight: 800; letter-spacing: 2.5px; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 8px; }
.cert-card-amount {
    font-size: 38px; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, #FFD700, #FF6B00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 4px; transition: all 0.3s ease;
}
.cert-card-recipient { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.4); min-height: 18px; transition: all 0.3s ease; }
.cert-card-heart { font-size: 18px; opacity: 0.15; margin-top: 4px; }
.cert-card-footer { position: absolute; bottom: 10px; font-size: 7px; font-weight: 600; color: rgba(255,255,255,0.15); letter-spacing: 0.5px; }

/* Certificate form */
.cert-form {
    background: var(--bg-card); border: 1px solid var(--bg-light);
    border-radius: 18px; padding: 20px;
    margin-bottom: 16px; position: relative; z-index: 1; text-align: left;
}
.cert-section-label { font-size: 13px; font-weight: 800; color: var(--text-secondary); margin-bottom: 10px; }
.cert-presets { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cert-preset-btn {
    flex: 1; min-width: 50px; padding: 12px 6px;
    border: 2px solid var(--bg-light); border-radius: 12px;
    background: transparent; color: var(--text-secondary);
    font-size: 15px; font-weight: 800; cursor: pointer;
    font-family: 'Nunito', sans-serif; transition: all 0.2s ease;
}
.cert-preset-btn:active { transform: scale(0.95); }
.cert-preset-btn.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(255,107,0,0.08); }
.cert-custom-input, .cert-recipient-input {
    width: 100%; padding: 14px; background: var(--bg-light);
    border: 2px solid transparent; border-radius: 12px;
    font-size: 16px; font-family: 'Nunito', sans-serif;
    font-weight: 600; color: var(--text-primary);
    transition: border-color 0.2s; margin-bottom: 10px;
}
.cert-custom-input::placeholder, .cert-recipient-input::placeholder { color: var(--text-muted); }
.cert-custom-input:focus, .cert-recipient-input:focus { outline: none; border-color: var(--color-primary); }
.cert-add-btn {
    width: 100%; padding: 16px; background: var(--gradient-blue);
    color: white; border: none; border-radius: 14px;
    font-size: 16px; font-weight: 800; cursor: pointer;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px rgba(123,31,162,0.4);
    transition: all 0.2s; margin-top: 4px;
}
.cert-add-btn:active { transform: scale(0.98); }
.cert-add-btn.added { background: var(--color-success) !important; box-shadow: 0 4px 15px rgba(16,185,129,0.4) !important; }

/* How it works steps */
.cert-how { margin-top: 4px; position: relative; z-index: 1; }
.cert-how-title { font-size: 14px; font-weight: 800; color: var(--text-muted); margin-bottom: 10px; text-align: center; }
.cert-step { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.cert-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,107,0,0.1); color: var(--color-primary);
    font-size: 11px; font-weight: 900;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Cart certificate item */
.cart-cert-preview {
    width: 75px; height: 75px; border-radius: 14px;
    background: linear-gradient(135deg, #2d1654, #1a0e2e);
    border: 2px solid var(--color-secondary);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
}
.cart-cert-preview .cert-emoji { font-size: 24px; }
.cart-cert-preview .cert-label { font-size: 7px; font-weight: 800; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; }

/* Certificate download section on success */
.cert-download-section {
    width: 100%; max-width: 320px; margin-top: 16px;
    background: linear-gradient(135deg, rgba(123,31,162,0.1), rgba(255,107,0,0.1));
    border: 1px solid rgba(123,31,162,0.2);
    border-radius: 18px; padding: 20px; text-align: center;
}
.cert-download-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.cert-download-sub { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-bottom: 14px; }
#certDownloadButtons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-download-btn {
    width: 100%; padding: 14px; background: var(--gradient-blue);
    color: white; border: none; border-radius: 14px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px rgba(123,31,162,0.4);
    transition: all 0.2s; display: flex; align-items: center;
    justify-content: center; gap: 8px;
}
.cert-download-btn:active { transform: scale(0.98); }

/* Responsive cert */
@media (min-width: 768px) {
    .cert-card { width: 380px; }
    .cert-card-amount { font-size: 44px; }
    .cert-card-logo { font-size: 16px; }
    .cert-preset-btn:hover { border-color: rgba(255,107,0,0.3); }
    .cert-add-btn:hover { filter: brightness(1.1); }
    .cert-download-btn:hover { filter: brightness(1.1); }
}
@media (min-width: 1024px) {
    .gift-cert { width: calc(100% - 64px); padding: 32px 28px; }
    .cert-card { width: 420px; }
    .cert-card-amount { font-size: 48px; }
}

/* ===== LIGHT THEME ===== */
html.light-theme {
    --bg-scene: linear-gradient(180deg, #E6DACC 0%, #FFF8F0 100%);
    --person-rgb: 90, 75, 55;
    --text-on-scene: rgba(90, 75, 55, 0.4);
    --floor-line: linear-gradient(90deg, transparent, rgba(90,75,55,0.1) 15%, rgba(90,75,55,0.1) 85%, transparent);
    --frame-border: rgba(90,75,55,0.15);
    --bg-dark: #FFF7F0;
    --bg-medium: #FFFFFF;
    --bg-light: #F0E0D0;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 4px 20px rgba(255, 107, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 107, 0, 0.15);
}
html.light-theme { background-color: var(--bg-dark); }
html.light-theme body { background-color: var(--bg-dark); }
html.light-theme .page { background: var(--bg-dark); }
html.light-theme .header { background: var(--bg-medium); border-bottom-color: var(--bg-light); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
html.light-theme .page-header { background: var(--bg-medium); border-bottom-color: var(--bg-light); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
html.light-theme .cart-badge { border-color: var(--bg-medium); }
html.light-theme .back-button { background: var(--bg-light); }
html.light-theme .back-button svg { stroke: var(--text-primary); }
html.light-theme .tagline-bar { background: linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%); border-bottom-color: var(--bg-light); }
html.light-theme .banner { color: white; }
html.light-theme .promo-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
html.light-theme .size-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
html.light-theme .example-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
html.light-theme .review-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
html.light-theme .faq-item { background: var(--bg-card); border-color: var(--bg-light); }
html.light-theme .modal { background: var(--bg-card); border-color: var(--bg-light); border-bottom: none; }
html.light-theme .modal-close { background: var(--bg-light); }
html.light-theme .modal-close svg { stroke: var(--text-secondary); }
html.light-theme .cart-item { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
html.light-theme .cart-item-emoji { background: var(--bg-light); }
html.light-theme .cart-toggle-row { background: var(--bg-light); }
html.light-theme .cart-toggle-row.active { background: rgba(255,107,0,0.04); }
html.light-theme .cart-toggle-check { border-color: var(--bg-light); }
html.light-theme .cart-field-input { background: var(--bg-light); color: var(--text-primary); }
html.light-theme .cart-field-textarea { background: var(--bg-light); color: var(--text-primary); }
html.light-theme .cart-orient-btn { border-color: var(--bg-light); }
html.light-theme .packaging-toggle { background: var(--bg-light); }
html.light-theme .toggle-switch { background: #ccc; }
html.light-theme .cart-item-comment { background: var(--bg-light); border-color: var(--bg-light); color: var(--text-primary); }
html.light-theme .promo-section-cart { background: var(--bg-card); border-color: var(--bg-light); }
html.light-theme .promo-input { background: var(--bg-light); border-color: var(--bg-light); color: var(--text-primary); }
/* ===== KEYBOARD DONE BAR ===== */
.keyboard-done-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9998;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex; justify-content: center;
    transform: translateY(120%); opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    pointer-events: none;
}
.keyboard-done-bar.show {
    transform: translateY(0); opacity: 1; pointer-events: auto;
}
.keyboard-done-bar.show ~ .float-telegram { opacity: 0; pointer-events: none; }

.keyboard-done-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(30, 22, 53, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: transform 0.15s ease, background 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.keyboard-done-btn svg {
    width: 22px; height: 22px;
    stroke: rgba(255, 255, 255, 0.7);
    fill: none;
}
.keyboard-done-btn:active {
    transform: scale(0.9);
    background: rgba(255, 107, 0, 0.3);
}



/* Light theme */
html.light-theme .keyboard-done-btn {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
html.light-theme .keyboard-done-btn svg { stroke: rgba(0, 0, 0, 0.45); }
html.light-theme .keyboard-done-btn:active {
    background: rgba(255, 107, 0, 0.2);
}

html.light-theme .cart-summary {
    background: rgba(255, 255, 255, 0.55);
    border-top-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.06);
}
html.light-theme .footer { background: var(--bg-medium); border-top-color: var(--bg-light); }
html.light-theme .gift-cert { border-color: rgba(123,31,162,0.2); }
html.light-theme .form-input { background: var(--bg-light); border-color: var(--bg-light); color: var(--text-primary); }
html.light-theme .delivery-option { background: var(--bg-card); border-color: var(--bg-light); }
html.light-theme .delivery-zone-btn { background: var(--bg-light); border-color: var(--bg-light); }
html.light-theme .confirm-card { background: var(--bg-card); border-color: var(--bg-light); }
html.light-theme .confirm-total { background: var(--bg-card); }
html.light-theme .payment-info { background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,107,0,0.08)); }
html.light-theme .hero { background: var(--bg-medium); }
html.light-theme .hero-instagram { background: var(--bg-light); border-color: var(--bg-light); color: var(--text-primary); }
html.light-theme .sc-card { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html.light-theme .sc-info { background: linear-gradient(180deg, var(--bg-light), var(--bg-card)); }
html.light-theme .sc-pill { background: var(--bg-light); color: var(--text-secondary); }
html.light-theme .cart-reminder {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
html.light-theme .cart-reminder-close { background: var(--bg-light); }
html.light-theme .toast-inner {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
html.light-theme .toast-title { color: var(--text-primary); }
html.light-theme .toast-subtitle { color: var(--text-muted); }
html.light-theme .toast-timer-bg { stroke: rgba(0,0,0,0.06); }
html.light-theme .scroll-top { background: var(--bg-card); border-color: var(--bg-light); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
html.light-theme .float-telegram-btn { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); border-color: rgba(0,0,0,0.1); box-shadow: 0 3px 12px rgba(0,0,0,0.15); }
html.light-theme .float-telegram-btn svg { fill: rgba(0,0,0,0.7); }
html.light-theme .float-telegram-label { color: rgba(0,0,0,0.5); text-shadow: none; }
html.light-theme .wall-viz { background: var(--bg-dark); }
html.light-theme .wall-scene { background: linear-gradient(180deg, #e8ddd0 0%, #ddd0c0 30%, #d4c5b0 60%, #cbb99f 100%); }
html.light-theme .wall-scene::after { background: none; }
html.light-theme .wall-light { background: radial-gradient(ellipse, rgba(255,248,230,0.25) 0%, rgba(255,240,210,0.1) 40%, transparent 70%); }
html.light-theme .wall-light-accent { background: radial-gradient(ellipse, rgba(255,230,180,0.08) 0%, transparent 70%); }
html.light-theme .wall-floor { background: linear-gradient(180deg, #9a8a72 0%, #7d6b52 40%, #6d5a45 100%); }
html.light-theme .wall-floor::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 80px); }
html.light-theme .wall-floor::after { background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent); }
html.light-theme .wall-baseboard { background: linear-gradient(180deg, #f0e8dc 0%, #e0d4c6 40%, #d0c4b4 100%); box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
html.light-theme .wall-baseboard::after { background: rgba(255,255,255,0.3); }
html.light-theme .wall-painting-frame { background: #f5f0e8; border-color: #c5b8a8; }
html.light-theme .wall-painting-label { color: rgba(70,55,35,0.9); background: rgba(255,255,255,0.7); border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
html.light-theme .wall-sofa-back { background: rgba(80,65,50,0.15); }
html.light-theme .wall-sofa-body { background: rgba(80,65,50,0.18); }
html.light-theme .wall-sofa-arm-l, html.light-theme .wall-sofa-arm-r { background: rgba(80,65,50,0.13); }
html.light-theme .wall-sofa-cushion { background: rgba(80,65,50,0.06); }
html.light-theme .wall-sofa-cushion::before, html.light-theme .wall-sofa-cushion::after { background: rgba(80,65,50,0.04); }
html.light-theme .wall-viz-header { background: var(--bg-medium); border-bottom-color: var(--bg-light); }
html.light-theme .wall-controls { background: var(--bg-medium); border-top-color: var(--bg-light); }
html.light-theme .wall-sz-pill { background: var(--bg-light); color: var(--text-secondary); }
html.light-theme .wall-mode-btn { border-color: var(--bg-light); color: var(--text-secondary); }
html.light-theme .wall-mode-btn.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(255,107,0,0.06); }
/* wall-photo-close light theme: inherits from dark, no override needed */
html.light-theme .wall-drag-hint { color: rgba(0,0,0,0.6); background: rgba(255,255,255,0.6); }
html.light-theme .orient-row { background: var(--bg-light); }
html.light-theme .orient-btn { border-color: var(--bg-light); }
html.light-theme .cart-qty-row { background: var(--bg-light); }
html.light-theme .qty-btn { color: var(--text-primary); }
html.light-theme .photo-upload-area { border-color: var(--bg-light); }
html.light-theme .size-preview-frame { background: linear-gradient(135deg, var(--bg-light), #f9f9f9); }
html.light-theme .success-overlay { background: var(--bg-dark); }
html.light-theme .loading-screen { background: var(--bg-dark); }
html.light-theme .story-card {
    flex-shrink: 0; width: 120px; min-height: 165px;
    border-radius: 16px; padding: 14px 12px 12px;
    color: white; cursor: pointer; position: relative; overflow: hidden;
    display: flex; flex-direction: column; scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
html.light-theme .analytics-card { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
html.light-theme .cert-card { background: linear-gradient(135deg, #f8f0ff 0%, #fff5e6 50%, #f0e8ff 100%); border-color: rgba(123,31,162,0.12); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
html.light-theme .cert-card-label { color: rgba(0,0,0,0.25); }
html.light-theme .cert-card-recipient { color: rgba(0,0,0,0.35); }
html.light-theme .cert-card-footer { color: rgba(0,0,0,0.15); }
html.light-theme .cert-card-heart { opacity: 0.1; }
html.light-theme .cert-form { background: var(--bg-card); border-color: var(--bg-light); }
html.light-theme .cert-custom-input, html.light-theme .cert-recipient-input { background: var(--bg-light); color: var(--text-primary); }
html.light-theme .cert-feat { background: rgba(255,107,0,0.05); border-color: rgba(255,107,0,0.08); }
html.light-theme .cert-download-section { background: linear-gradient(135deg, rgba(123,31,162,0.05), rgba(255,107,0,0.05)); border-color: rgba(123,31,162,0.1); }
html.light-theme .cart-cert-preview { background: linear-gradient(135deg, #f0e8ff, #fff5e6); border-color: var(--color-secondary); }

/* ===== NON-TELEGRAM (WEBSITE) MODE ===== */
/* Вне Telegram: ВСЕГДА тёмная тема */
body:not(.is-telegram) {
    background-color: #0D0815 !important;
    color: #FFFFFF !important;
}
html body:not(.is-telegram) {
    background-color: #0D0815 !important;
}
body:not(.is-telegram) .page {
    background: #0D0815 !important;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}
/* Шапка в браузере: нормальный layout */
/* page-header в браузере: выравниваем по высоте с .header (12+39+12=63px, back-button=44px → padding=(63-44)/2≈10px) */
body:not(.is-telegram) .page-header {
    padding-top: 12px;
    padding-bottom: 12px;
}
body:not(.is-telegram) .header {
    max-width: 100%;
    justify-content: space-between !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}
/* Корзина в шапке */
body:not(.is-telegram) .header .header-right {
    display: flex !important;
    visibility: visible !important;
}
/* Лого в шапке браузера — нормальный размер */
body:not(.is-telegram) .header .logo {
    font-size: 26px !important;
    letter-spacing: 2px !important;
}
/* Float Telegram: показываем в браузере */
body:not(.is-telegram) .float-telegram {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}
/* Кнопка наверх */
body:not(.is-telegram) .scroll-top {
    display: flex !important;
}
/* Социальные кнопки */
body:not(.is-telegram) .social-btn.telegram {
    display: flex !important;
}
body:not(.is-telegram) .footer-instagram {
    display: block !important;
}
body:not(.is-telegram) .success-btn-secondary {
    display: block !important;
}
/* Панель итого корзины */
body:not(.is-telegram) .cart-summary {
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 28px 28px 0 0;
    transform: none;
}

/* ===== TELEGRAM MINI APP SAFE AREAS ===== */
:root {
    --tg-safe-top: 0px;
    --tg-safe-bottom: 0px;
    --tg-safe-left: 0px;
    --tg-safe-right: 0px;
    --tg-content-safe-top: 0px;
    --tg-content-safe-bottom: 0px;
}

/* Fullscreen Telegram mode — extra top padding for native overlay buttons */
html.tg-fullscreen {
    --tg-content-safe-top: 56px;
}

/* When keyboard is visible, hide floating elements */
body.keyboard-visible .float-telegram { opacity: 0 !important; pointer-events: none !important; transform: scale(0.5) translateY(20px) !important; }
body.keyboard-visible .scroll-top { opacity: 0 !important; pointer-events: none !important; }
body.keyboard-visible .cart-reminder { bottom: -140px !important; }

/* Telegram safe area padding for header — now handled inline in .header / .page-header rules above */

/* Cart summary: account for safe area bottom */
.cart-summary { padding-bottom: calc(24px + var(--tg-safe-bottom)); }

/* Checkout next-btn: bottom safe area */
.checkout-content { padding-bottom: calc(16px + var(--tg-safe-bottom)); }

/* Done bar: above keyboard, account for nothing extra in Telegram */
.keyboard-done-bar { padding-bottom: calc(10px + var(--tg-safe-bottom)); }

/* Success overlay safe areas */
.success-overlay { padding-bottom: calc(24px + var(--tg-safe-bottom)); }

/* ===== TELEGRAM MINI APP MODE ===== */
/* Prevent pull-to-close swipe & rubber-band bounce in Telegram */
html.tg-fullscreen {
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
}
html.tg-fullscreen body {
    overscroll-behavior: none !important;
    overscroll-behavior-y: none !important;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    height: var(--tg-viewport-height, 100dvh);
}
body.is-telegram {
    overscroll-behavior: none !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
}
body.is-telegram .page {
    overscroll-behavior: none;
    overscroll-behavior-y: contain;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Hide elements useless inside Telegram */
body.is-telegram .float-telegram { display: none !important; }
body.is-telegram .theme-toggle { display: none !important; }
body.is-telegram .share-btn { display: none !important; }
body.is-telegram .social-btn.telegram { display: none !important; }
body.is-telegram .success-btn-primary[href*="t.me"] { display: none !important; }
body.is-telegram .social-section .social-title { display: none !important; }
body.is-telegram .social-buttons { justify-content: center; }
body.is-telegram .footer-instagram { display: none !important; }
/* In fullscreen mode, show our back buttons since TG header is hidden */
/* BackButton API still works as overlay, but our buttons are more visible */

/* Hide in-page buttons when TG MainButton is active */
body.tg-main-active .checkout-btn { display: none !important; }
body.tg-main-active .checkout-step > .next-btn { display: none !important; }
body.tg-main-active .checkout-step > .next-btn.pulse { display: none !important; }

/* Extra bottom padding for MainButton space (~56px button + safe area) */
body.is-telegram .cart-items { padding-bottom: 320px; }
body.is-telegram .checkout-content { padding-bottom: calc(100px + var(--tg-safe-bottom)); }
body.is-telegram .page { padding-bottom: calc(100px + var(--tg-safe-bottom)); }
body.tg-main-active .cart-items { padding-bottom: 350px; }
body.tg-main-active .page { padding-bottom: calc(120px + var(--tg-safe-bottom)); }

/* When MainButton is visible, push cart summary above MainButton */
body.tg-main-active .cart-summary {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    bottom: 0;
    padding-bottom: calc(16px + var(--tg-safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
body.tg-main-active .cart-summary .checkout-btn { display: none !important; }

/* Success overlay — add close via TG button hint */
body.is-telegram .success-btn-secondary { display: none; }

.success-btn-tg-close {
    padding: 16px; background: transparent;
    color: var(--text-muted); border: 1px solid var(--bg-light);
    border-radius: 16px; font-size: 15px; font-weight: 700;
    cursor: pointer; font-family: 'Nunito', sans-serif;
    transition: var(--transition); width: 100%;
}
.success-btn-tg-close:active { background: var(--bg-light); color: var(--text-primary); }

/* ===== TELEGRAM: hide back buttons, use native BackButton API ===== */
body.is-telegram .page-header .back-button {
    display: none !important;
}
body.is-telegram .page-header {
    justify-content: center;
}
body.is-telegram .page-header .page-title {
    text-align: center;
}

/* Cart page header in Telegram: match home header height exactly */
body.is-telegram #cartPage .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: calc(4px + var(--tg-content-safe-top));
    padding-bottom: 6px;
}
body.is-telegram #cartPage .page-header .page-title {
    display: none !important;
}
body.is-telegram #cartPage .page-header .clear-cart {
    display: block !important;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    padding: 0;
    line-height: 27px;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
body.is-telegram #cartPage .page-header .clear-cart:active {
    color: var(--text-muted);
    transform: scale(0.96);
}

/* Hide inline clear cart button (header one is used) */
.clear-cart-inline { display: none; }
body.is-telegram .clear-cart-inline { display: none; }

/* ===== TELEGRAM HEADER: compact centered logo, no cart icon ===== */
body.is-telegram .header {
    justify-content: center;
    padding-top: calc(4px + var(--tg-content-safe-top));
    padding-bottom: 6px;
    
}
body.is-telegram .header .header-right {
    display: none !important;
}
body.is-telegram .header .logo {
    font-size: 18px;
    letter-spacing: 3px;
}


/* ===== REALISTIC DARK DESIGNER ROOM UPGRADE ===== */
.wall-scene.mode-room {
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 25%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,0.25) 0%, transparent 55%),
        linear-gradient(180deg, #2b2238 0%, #1a1424 55%, #120d1a 100%);
    position: relative;
}

.wall-scene.mode-room::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.wall-scene.mode-room .wall-floor {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.65) 100%),
        linear-gradient(90deg, #2a1f2f 0%, #241a29 50%, #2a1f2f 100%);
    box-shadow: inset 0 25px 60px rgba(0,0,0,0.7);
}

.wall-scene.mode-room .wall-baseboard {
    background: linear-gradient(90deg, #21182a, #2c2236, #21182a);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.wall-scene.mode-room .wall-sofa-body {
    background: linear-gradient(180deg, #2c2335 0%, #221a2a 100%);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.6),
        inset 0 4px 12px rgba(255,255,255,0.04);
}

.wall-scene.mode-room .wall-sofa-back {
    background: linear-gradient(180deg, #30263a 0%, #231b2c 100%);
    box-shadow: inset 0 6px 14px rgba(255,255,255,0.05);
}

.wall-scene.mode-room .wall-sofa-cushion {
    background: linear-gradient(180deg, #342a40 0%, #251d2e 100%);
}

.wall-scene.mode-room .wall-sofa-arm-l,
.wall-scene.mode-room .wall-sofa-arm-r {
    background: linear-gradient(180deg, #2b2134 0%, #1f1726 100%);
}

.wall-scene.mode-room .wall-plant-deco,
.wall-scene.mode-room .wall-lamp-deco {
    font-size: 32px;
    opacity: 0.25;
    filter: blur(0.3px) saturate(0.8);
}
