:root {
    /* --- CYBERPUNK DEEP PALETTE --- */
    --bg-core: #050510;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a0b2e 0%, #050510 100%);
    
    --ghost-blue: #00f3ff;
    --ghost-purple: #9d00ff;
    --neon-pink: #ff0055;
    --neon-green: #00ff88;
    
    --glass: rgba(20, 20, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-tech: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* --- CUSTOM SCROLLBAR (НОВОЕ) --- */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--ghost-purple) var(--bg-core);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px; /* Ширина вертикального скролла */
    height: 8px; /* Высота горизонтального скролла */
}

::-webkit-scrollbar-track {
    background: #050510; /* Цвет фона трека */
}

::-webkit-scrollbar-thumb {
    background: #333; /* Цвет ползунка (покой) */
    border-radius: 10px;
    border: 2px solid #050510; /* Отступ от края */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ghost-purple); /* Цвет при наведении */
    box-shadow: 0 0 10px var(--ghost-purple); /* Неоновое свечение */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }

body {
    background-color: var(--bg-core);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: #fff;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 120px;
    position: relative;
}

body.locked { overflow: hidden; }

/* --- BACKGROUND ANIMATION --- */
.net-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(157, 0, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0; 
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, transparent 90%);
}

.floating-bottles {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1; 
    pointer-events: none;
    overflow: hidden;
}

.bottle-item {
    position: absolute;
    bottom: -10vh;
    color: rgba(255, 255, 255, 0.1);
    will-change: transform, opacity;
    animation: floatUp linear infinite;
    filter: drop-shadow(0 0 8px currentColor);
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* --- LAYOUT --- */
.container { 
    max-width: 1200px; margin: 0 auto; padding: 0 20px; 
    position: relative; 
    z-index: 10;
}

/* --- HEADER --- */
header { padding: 60px 0 20px; text-align: center; position: relative; }

.brand-logo { 
    font-family: var(--font-tech); font-size: 2.2rem; font-weight: 900; 
    letter-spacing: 2px; color: #fff;
    text-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
}

.edition-badge {
    display: inline-block;
    border: 1px solid var(--ghost-purple);
    color: var(--ghost-purple);
    font-size: 0.7rem; padding: 4px 12px; border-radius: 50px;
    font-family: var(--font-tech); letter-spacing: 1px;
    background: rgba(157, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.2);
    margin-top: 5px;
}

.auth-header-btn {
    position: absolute; top: 20px; right: 20px; width: 45px; height: 45px;
    border-radius: 50%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); color: var(--ghost-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: 0.3s; 
    z-index: 100; cursor: pointer;
}
.auth-header-btn:active { transform: scale(0.9); background: var(--ghost-blue); color: #000; }

/* NEW HELP BTN */
.help-header-btn {
    position: absolute; top: 20px; left: 20px; width: 45px; height: 45px;
    border-radius: 50%; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: 0.3s; z-index: 100; cursor: pointer;
}
.help-header-btn:active { transform: scale(0.9); background: var(--ghost-blue); color: #000; }

/* --- SEARCH --- */
.search-wrapper { margin: 25px auto 20px; max-width: 600px; position: relative; z-index: 20; }
.search-input { 
    width: 100%; padding: 14px 45px 14px 20px; 
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); 
    border-radius: 50px; color: #fff; font-size: 0.95rem; 
    transition: 0.3s;
}
.search-input:focus { border-color: var(--ghost-purple); box-shadow: 0 0 20px rgba(157, 0, 255, 0.2); background: #000; }
.search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #666; font-size: 0.9rem; }

/* --- FILTERS (ADAPTIVE FIX) --- */
.filters-bar { 
    display: flex; gap: 10px; padding: 10px 5px; margin-bottom: 25px; 
    position: relative; z-index: 20;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none; 
    -webkit-overflow-scrolling: touch; align-items: center;
}
.filters-bar::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .filters-bar { flex-wrap: wrap; justify-content: center; overflow-x: visible; white-space: normal; max-width: 900px; margin-left: auto; margin-right: auto; }
}

.filter-btn { 
    padding: 12px 24px; background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1); color: #aaa; border-radius: 12px; 
    font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; 
    cursor: pointer; flex-shrink: 0;
}
.filter-btn.active { background: var(--ghost-blue); color: #000; border-color: var(--ghost-blue); box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); font-weight: 800; transform: scale(1.05); }

.shop-btn-link { 
    border-color: var(--neon-pink) !important; color: var(--neon-pink) !important; 
    border-radius: 50px !important; cursor: pointer; background: rgba(255, 0, 85, 0.05) !important;
    transition: 0.3s; margin-left: auto; 
}
@media (min-width: 768px) { .shop-btn-link { margin-left: 15px; } }

/* --- GRID & CARDS --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 15px; position: relative; z-index: 10; }

.card { 
    background: var(--glass); border: 1px solid var(--glass-border); 
    border-radius: 16px; overflow: hidden; position: relative; 
    display: flex; flex-direction: column; backdrop-filter: blur(12px);
    transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.card:active { transform: scale(0.98); }

.card-visual { 
    height: 110px; 
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.05), transparent 70%); 
    display: flex; align-items: center; justify-content: center; position: relative; 
}
.card-icon { 
    font-size: 3rem; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    transition: 0.3s;
}
.card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px currentColor);
}

.card-tags { position: absolute; bottom: 5px; width: 100%; text-align: center; }
.tag { font-size: 0.5rem; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.6); color: #ccc; margin: 0 2px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1); }

.card-content { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.base-label { color: var(--ghost-blue); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; opacity: 0.8; margin-bottom: 4px; }
.card-title { font-family: var(--font-tech); font-size: 0.9rem; margin: 0 0 10px; color: #fff; line-height: 1.3; font-weight: 600; }

.btn-open { 
    width: 100%; padding: 10px; margin-top: auto;
    background: rgba(255,255,255,0.03); border: 1px solid var(--ghost-purple); 
    color: #fff; font-weight: bold; border-radius: 8px; 
    font-size: 0.75rem; font-family: var(--font-tech); cursor: pointer;
}
.fav-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5); color: #888; display: flex; align-items: center; justify-content: center; z-index: 10; font-size: 0.8rem; cursor: pointer; }
.fav-btn.active { color: var(--neon-pink); border-color: var(--neon-pink); background: rgba(255, 0, 85, 0.15); }

/* --- STOP LIST STYLES --- */
.stopped-card { opacity: 0.6; filter: grayscale(100%); pointer-events: none; border: 1px solid #333 !important; }
.stop-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-10deg); background: var(--neon-pink); color: #fff; font-weight: 900; padding: 5px 15px; font-size: 1.2rem; z-index: 100; border: 2px solid #fff; box-shadow: 0 0 20px rgba(0,0,0,0.5); font-family: var(--font-tech); letter-spacing: 2px; white-space: nowrap; }

/* --- MAIN SCANNER BUTTON (BIG CENTER) --- */
.main-scan-btn {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 70px;
    background: var(--bg-core);
    border: 2px solid var(--ghost-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ghost-blue);
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: 0.3s;
    animation: scanPulse 3s infinite;
}
.main-scan-btn:active { transform: translateX(-50%) scale(0.9); }

@keyframes scanPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

/* --- FLOATING CART (RIGHT SIDE) --- */
#floatingCart {
    position: fixed; 
    bottom: 110px; /* Чуть выше сканера */
    right: 20px; left: auto; transform: none;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--neon-pink);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700; font-family: var(--font-tech);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
    z-index: 990; display: none; align-items: center; gap: 15px; cursor: pointer;
    backdrop-filter: blur(10px);
    width: auto; white-space: nowrap; font-size: 0.8rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}
@keyframes popIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- OTHER UI --- */
.shop-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 12px; }
.shop-tab { flex: 1; padding: 12px; background: transparent; border: none; color: #777; font-family: var(--font-tech); border-radius: 8px; font-weight: 600; cursor: pointer; }
.shop-tab.active { background: var(--ghost-purple); color: #fff; box-shadow: 0 0 15px rgba(157, 0, 255, 0.3); }

.shop-item-card { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(255,255,255,0.03); margin-bottom: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.shop-add-btn, .shop-remove-btn { width: 35px; height: 35px; border-radius: 50%; border: none; font-weight: bold; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; }
.shop-add-btn { background: var(--ghost-blue); color: #000; }
.shop-remove-btn { background: rgba(255,0,85,0.15); color: var(--neon-pink); border: 1px solid var(--neon-pink); }

.auth-container { display: flex; flex-direction: column; gap: 15px; animation: fadeIn 0.4s; }
.auth-tabs { display: flex; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.auth-tab { flex: 1; padding: 12px; background: transparent; border: none; color: #666; font-family: var(--font-tech); font-weight: 700; cursor: pointer; border-radius: 8px; transition: 0.3s; }
.auth-tab.active { background: var(--ghost-blue); color: #000; box-shadow: 0 0 15px rgba(0,243,255,0.3); }
.auth-tab.reg-mode.active { background: var(--neon-pink); color: #fff; box-shadow: 0 0 15px rgba(255,0,85,0.3); }

.cyber-input-group { position: relative; margin-bottom: 5px; }
.cyber-input-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #555; transition: 0.3s; }

/* ОБНОВЛЕННЫЕ ПОЛЯ ВВОДА (СВЕТЛЕЕ) */
.auth-input { 
    width: 100%; 
    padding: 16px 20px 16px 50px; 
    background: rgba(255, 255, 255, 0.07); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 12px; 
    color: #fff; 
    font-size: 1rem; 
    outline: none; 
    transition: 0.3s; 
}
.auth-input:focus { 
    background: rgba(0, 243, 255, 0.05); 
    border-color: var(--ghost-blue); 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
.auth-input:focus + .cyber-input-icon { color: var(--ghost-blue); }

.cyber-btn { width: 100%; padding: 16px; background: linear-gradient(90deg, transparent, rgba(0,243,255,0.1), transparent); border: 1px solid var(--ghost-blue); color: var(--ghost-blue); font-family: var(--font-tech); font-weight: 800; border-radius: 12px; cursor: pointer; margin-top: 10px; transition: 0.3s; }
.cyber-btn:hover { background: var(--ghost-blue); color: #000; box-shadow: 0 0 25px rgba(0,243,255,0.4); }

.profile-card { text-align: center; padding-top: 10px; }
.avatar-wrapper { width: 100px; height: 100px; margin: 0 auto 15px; position: relative; cursor: pointer; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--ghost-purple); box-shadow: 0 0 20px rgba(157,0,255,0.4); }
.avatar-edit-icon { position: absolute; bottom: 0; right: 0; background: var(--ghost-blue); color: #000; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; border: 2px solid #000; }
.profile-name { font-family: var(--font-tech); font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.profile-status { color: var(--ghost-blue); font-size: 0.7rem; text-transform: uppercase; margin-bottom: 20px; letter-spacing: 2px; }
.profile-stats { display: flex; gap: 10px; margin-bottom: 25px; }
.p-stat-box { flex: 1; background: rgba(255,255,255,0.03); padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); }
.logout-btn { width: 100%; padding: 14px; background: rgba(255,0,85,0.1); border: 1px solid var(--neon-pink); color: var(--neon-pink); border-radius: 10px; font-weight: 700; transition: 0.3s; cursor: pointer; }
.logout-btn:hover { background: var(--neon-pink); color: #fff; }

.mybar-section-title { color: #fff; font-family: var(--font-tech); margin: 20px 0 10px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.ingredients-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ing-check-label { display: inline-block; padding: 8px 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: #888; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: 0.2s; user-select: none; }
.ing-check-label input { display: none; }
.ing-check-label:has(input:checked) { background: rgba(157, 0, 255, 0.2); border-color: var(--ghost-purple); color: #fff; box-shadow: 0 0 15px rgba(157, 0, 255, 0.3); }

#recipeModal .modal-box { background: linear-gradient(160deg, rgba(20,20,35,0.95), rgba(10,10,15,0.98)); border: 1px solid var(--ghost-purple); box-shadow: 0 0 40px rgba(157, 0, 255, 0.15); }
#mTitle { font-family: var(--font-tech); font-size: 1.8rem; color: #fff; text-align: center; margin: 0; text-shadow: 0 0 15px var(--ghost-purple); letter-spacing: 2px; }
.tools-section { margin-bottom: 20px; }
.tools-grid { display: flex; justify-content: center; gap: 20px; }
.tool-item { text-align: center; }
.tool-icon-box { width: 60px; height: 60px; background: rgba(255,255,255,0.03); border: 1px solid var(--ghost-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--ghost-blue); margin: 0 auto 5px; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.tool-item span { font-size: 0.7rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
#mIngredients { display: flex; flex-direction: column; gap: 8px; }
.ing-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: rgba(255,255,255,0.02); border-radius: 8px; border-left: 3px solid rgba(255,255,255,0.1); transition: 0.2s; }
.ing-row:hover { background: rgba(255,255,255,0.05); border-left-color: var(--ghost-blue); }
.ing-name { font-weight: 500; color: #eee; font-size: 0.95rem; }
.ing-amount { font-family: var(--font-tech); color: var(--ghost-blue); font-weight: bold; }
.steps-container { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.step-card { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.step-num { font-family: var(--font-tech); font-size: 0.7rem; color: var(--ghost-purple); margin-bottom: 5px; font-weight: bold; letter-spacing: 1px; }
.step-text { font-size: 0.95rem; line-height: 1.5; color: #ddd; }
.portion-control button { width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: #fff; font-weight: bold; cursor: pointer; transition: 0.2s; }
.portion-control button:hover { background: var(--ghost-blue); color: #000; }
#portion-display { font-family: var(--font-tech); color: var(--ghost-blue); font-size: 1rem; }

/* AGE GATE */
#age-gate { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 10, 0.98); z-index: 99999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(20px); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
#age-gate.visible { opacity: 1; pointer-events: auto; }
.age-box { background: rgba(15, 10, 20, 0.9); border: 2px solid var(--neon-pink); box-shadow: 0 0 50px rgba(255, 0, 85, 0.2); padding: 40px; border-radius: 20px; text-align: center; max-width: 90%; width: 400px; position: relative; overflow: hidden; }
.age-box::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--neon-pink); box-shadow: 0 0 15px var(--neon-pink); animation: scanLine 3s infinite linear; opacity: 0.5; }
@keyframes scanLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(500px); } }
.age-logo { font-family: var(--font-tech); font-size: 2rem; color: #fff; margin-bottom: 10px; text-shadow: 0 0 10px var(--ghost-blue); }
.age-title { font-family: var(--font-tech); font-size: 3rem; color: var(--neon-pink); margin: 10px 0 30px; font-weight: 900; text-shadow: 0 0 20px var(--neon-pink); letter-spacing: 2px; }
.age-text { color: #aaa; margin-bottom: 30px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.age-buttons { display: flex; gap: 15px; justify-content: center; }
.age-btn { flex: 1; padding: 15px; border: none; font-family: var(--font-tech); font-weight: 800; font-size: 1.2rem; border-radius: 12px; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-yes { background: var(--neon-pink); color: #fff; box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }
.btn-yes:hover { background: #fff; color: var(--neon-pink); }
.btn-no { background: transparent; border: 1px solid #555; color: #555; }
.btn-no:hover { border-color: #fff; color: #fff; }

.legal-footer-block { text-align: center; padding: 30px 20px 50px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 40px; font-size: 0.7rem; color: #666; line-height: 1.6; position: relative; z-index: 10; }
.legal-text { margin-bottom: 10px; }
.footer-link { cursor:pointer; text-decoration:underline; transition:0.3s; }
.footer-link:hover { color:#fff; text-shadow:0 0 10px #fff; }
.legal-content { font-size:0.95rem; line-height:1.6; color:#ddd; text-align:left; }
.legal-content p { margin-bottom: 15px; border-left: 2px solid var(--ghost-blue); padding-left: 15px; }

/* ОБНОВЛЕННЫЕ СТИЛИ МОДАЛЬНЫХ ОКОН */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.65); /* Исправлен черный фон на полупрозрачный */
    z-index: 10000; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(12px); 
    pointer-events: auto;
    transition: 0.3s;
}

.modal-box { 
    background: rgba(13, 13, 20, 0.95); 
    width: 100%; 
    max-width: 500px; 
    border-radius: 20px; 
    padding: 25px; 
    border: 1px solid rgba(0, 243, 255, 0.3); /* Неоновая обводка */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 243, 255, 0.1);
    display: flex; 
    flex-direction: column; 
    max-height: 90vh; 
    position: relative;
    transform: translateY(0);
    animation: floatIn 0.3s ease-out;
}

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

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-body { overflow-y: auto; }

.floating-controls { position: fixed; bottom: 30px; right: 25px; display: flex; flex-direction: column; gap: 15px; z-index: 900; pointer-events: auto; }
.fab-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--bg-core); color: var(--ghost-blue); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 0 20px rgba(0, 243, 255, 0.2); border: 1px solid var(--ghost-blue); transition: 0.3s; cursor: pointer; }
.fab-btn:active { transform: scale(0.9); }

.shop-btn-big { width: 100%; padding: 15px; border-radius: 12px; border: none; font-weight: 800; font-family: var(--font-tech); cursor: pointer; display: flex; justify-content: center; gap: 10px; align-items: center; font-size: 1rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SCANNER STYLES */
#reader { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: none; background: #000; }
#reader video { object-fit: cover; width: 100% !important; height: 100% !important; border-radius: 12px; }
#scanModal .modal-box { padding: 0; background: transparent; border: none; box-shadow: none; width: 100%; max-width: 400px; height: 60vh; display: flex; align-items: center; justify-content: center; }
#scanModal .modal-header { position: absolute; top: 20px; right: 20px; z-index: 1000; width: auto; margin: 0; }
#scanModal .modal-header span { color: #fff; background: rgba(0,0,0,0.6); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); font-size: 2rem; cursor: pointer; }
#scanModal .modal-header h2 { display: none; }

.btn-share-neon { width: 100%; background: rgba(0, 243, 255, 0.1) !important; border: 1px solid var(--ghost-blue) !important; color: var(--ghost-blue) !important; margin-top: 20px; padding: 15px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; font-family: var(--font-tech); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-share-neon:hover { background: var(--ghost-blue) !important; color: #000 !important; box-shadow: 0 0 30px rgba(0, 243, 255, 0.4); }

/* --- TOAST NOTIFICATIONS (НОВОЕ) --- */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(13, 13, 20, 0.95);
    border: 1px solid var(--ghost-blue);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

.toast i { font-size: 1.2rem; }

/* Styles for success */
.toast.success { border-color: var(--neon-green); }
.toast.success i { color: var(--neon-green); }

/* Styles for warning/error */
.toast.warning { border-color: var(--neon-pink); }
.toast.warning i { color: var(--neon-pink); }

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
