:root {
    --bg-color: #050508;
    --bg-card: #0b0b12;
    --text-main: #ffffff;
    --text-muted: #8b8b9e;
    --accent-glow: #ffffff;
    --glow-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Текстура сетки как на референсе */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffffff 0%, #333333 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffffff 0%, #555555 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 100;
    background: rgba(15, 15, 22, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.02);
    transition: all 0.3s ease;
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 40px; /* Дополнительный отступ внутри пилюли */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    cursor: pointer;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--text-main);
    border-radius: 50%;
    box-shadow: var(--glow-shadow);
    position: relative;
    overflow: hidden;
}
.logo-icon::after {
    content: '';
    position: absolute;
    top: -15%;
    right: -15%;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 50%;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-city-selector {
    position: relative;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.city-selector-header {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.city-selector-header:hover {
    background-color: rgba(255,255,255,0.1);
}

.city-selector-header.active svg {
    transform: rotate(180deg);
}

.city-selector-list {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(15, 15, 22, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.city-selector-list.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.city-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.city-option:hover {
    background: rgba(255,255,255,0.1);
    color: #5b8def;
}

.cart-btn {
    position: relative;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #5b8def;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(91, 141, 239, 0.6);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 -10px 40px rgba(255, 255, 255, 0.2);
    z-index: 20;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.moon-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.7;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.4));
    animation: pulseGlow 4s infinite alternate;
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.glow-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -2;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transform: translateY(-5vh); /* Сдвигаем весь блок (Moon Shop и Заказать) немного выше центра, так как внизу будет текст */
}

.main-title {
    font-size: 6rem;
    line-height: 1;
    display: flex;
    flex-direction: column;
    text-shadow: var(--glow-shadow);
}

.main-title .title-moon {
    font-weight: 900;
    letter-spacing: 5px;
    animation: neonBlink 3s infinite alternate ease-in-out;
}

.main-title .title-shop {
    font-weight: 400;
    letter-spacing: 20px;
    font-size: 2.5rem;
    padding-left: 20px;
}

.promo-text {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: -15px; /* Сдвигаем ближе к заголовку Moon */
    z-index: 20;
}

.floating-badge {
    animation: float 4s ease-in-out infinite reverse;
}

.promo-text .stars {
    font-size: 0.9rem;
    text-shadow: 0 0 8px #fff;
    color: rgba(255, 255, 255, 0.8);
}

.transition-section {
    padding: 60px 0 20px;
    position: relative;
    z-index: 20;
    background: transparent;
}

.hero-bottom-text {
    text-align: center;
}

.hero-bottom-text h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.hero-bottom-text p {
    color: #4a90e2; /* Синий акцент как на первом референсе */
    font-size: 1.1rem;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(145deg, #2a2a35 0%, #0d0d12 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding: 18px 60px;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #353545 0%, #151520 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Floating Elements */
.floating {
    position: absolute;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.gift-1 {
    width: 250px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.gift-2 {
    width: 200px;
    bottom: 5%;
    right: 15%;
    animation-delay: 2s;
    transform: rotate(15deg);
}

.tag-1 {
    width: 180px;
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    transform: rotate(20deg);
}

.tag-2 {
    width: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
    transform: rotate(-15deg);
}

.text-center {
    text-align: center;
}

.bordered-box {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px 50px;
    background: rgba(15, 15, 22, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.bordered-box p {
    margin-bottom: 0;
}

/* Chat Section */
.chat-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.chat-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.chat-bg-elements {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.chat-vape-img {
    height: 140%;
    max-height: 700px;
    object-fit: contain;
    opacity: 0.8;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 1));
}

.chat-messages {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    position: relative;
    font-size: 0.95rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.message p {
    flex-grow: 1;
}

.message .time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.message.left {
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.right {
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    background: rgba(25, 25, 35, 0.8);
}

.message .highlight {
    color: #5b8def;
    text-decoration: none;
}

/* Stats Section */
.stats-section {
    padding: 80px 0 40px;
}

.stats-box {
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
}

.stats-header {
    margin-bottom: 40px;
    max-width: 600px;
}

.stats-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.accent-glow {
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.stats-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-light);
    padding-top: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-light);
}

.stat-item h3 {
    font-size: 2rem;
    color: #b062ff; /* Фиолетовый акцент из референса 2 для разнообразия, или можно белый */
    text-shadow: 0 0 10px rgba(176, 98, 255, 0.4);
    margin-bottom: 5px;
}

.stat-item:nth-child(even) h3 {
    color: #5b8def; /* Синий */
    text-shadow: 0 0 10px rgba(91, 141, 239, 0.4);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    background: #030305;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(auto); }
    50% { transform: translateY(-20px) rotate(auto); }
    100% { transform: translateY(0px) rotate(auto); }
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 30px rgba(255,255,255,0.3)); opacity: 0.7; }
    100% { filter: drop-shadow(0 0 50px rgba(255,255,255,0.6)); opacity: 0.9; }
}

@keyframes neonBlink {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.5); }
    40%, 60% { opacity: 0.9; text-shadow: 0 0 10px rgba(255,255,255,0.6), 0 0 20px rgba(255,255,255,0.3); }
    50% { opacity: 0.5; text-shadow: 0 0 5px rgba(255,255,255,0.2); }
}

@keyframes siteLoad {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Info Section (Delivery & Payment) */
.info-section {
    padding: 20px 0 100px;
}

.about-title {
    text-align: center;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-family: var(--font-heading);
    animation: neonBlink 3s infinite alternate ease-in-out;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.info-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}
.info-list .stars {
    color: #5b8def;
}

.contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.contact-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* Catalog Page */
.catalog-page-main {
    padding-top: 100px;
}

.catalog-hero {
    padding: 60px 0 20px;
}

.catalog-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 10px;
}

.catalog-section {
    padding: 40px 0 100px;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-img {
    transform: scale(1.1);
}

.product-no-image {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: 1px dashed rgba(255,255,255,0.1);
    margin: 10px;
    border-radius: 10px;
    width: calc(100% - 20px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #5b8def;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 10px rgba(91, 141, 239, 0.5);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.product-stock {
    font-size: 0.8rem;
    color: #5b8def;
    margin-bottom: 20px;
}

.discount-timer {
    background: rgba(255, 85, 85, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.4);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.price-container {
    display: flex;
    flex-direction: column;
}

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

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

.add-to-cart-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.catalog-empty-msg {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

/* Admin Page */
.admin-body {
    background-color: var(--bg-card);
}

.admin-main {
    padding-top: 120px;
    padding-bottom: 50px;
}

.admin-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.admin-panel {
    padding: 30px;
    width: 100%;
}

.admin-panel h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-sans);
    outline: none;
    transition: 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #5b8def;
    box-shadow: 0 0 10px rgba(91, 141, 239, 0.3);
}

.admin-btn {
    background: #5b8def;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.admin-btn:hover {
    background: #4a75cc;
    box-shadow: 0 0 15px rgba(91, 141, 239, 0.5);
}

.admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.admin-product-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-info h4 {
    margin-bottom: 5px;
}

.admin-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.delete-btn {
    background: rgba(255, 50, 50, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 50, 50, 0.5);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #ff5555;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .main-title { font-size: 4rem; }
    .main-title .title-shop { font-size: 1.8rem; letter-spacing: 15px; }
    .floating { display: none; } /* Скрываем 3D элементы на планшетах/мобилках для чистоты */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .stat-item:nth-child(2)::after { display: none; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { background-attachment: scroll; }
    
    .header { width: 100%; top: 0; border-radius: 0; background: rgba(15, 15, 22, 0.98); }
    .header-inner { padding: 0 15px; height: 60px; }
    
    .logo-icon::after { background-color: rgba(15, 15, 22, 1); } /* Match header bg */
    
    .logo span { display: none; }
    .logo { order: 1; }
    
    .header-actions { order: 2; margin-left: auto; gap: 10px; }
    .city-selector-header { padding: 6px 10px; font-size: 0.8rem; }
    .cart-btn { width: 36px; height: 36px; }
    .cart-btn svg { width: 18px; height: 18px; }
    
    .mobile-menu-btn { order: 3; display: flex; margin-left: 10px; }
    
    .nav {
        position: fixed;
        top: 60px;
        left: -100vw;
        width: 100vw;
        height: calc(100vh - 60px);
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease;
        transform: none;
    }
    .nav.active { left: 0; }
    .nav a { font-size: 1.5rem; }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-title { font-size: 3rem; }
    .main-title .title-shop { font-size: 1.2rem; letter-spacing: 10px; padding-left: 10px; }
    .promo-text { font-size: 0.8rem; letter-spacing: 1px; }
    .hero-bottom-text h2 { font-size: 1.8rem; }
    .hero-bottom-text p { font-size: 1rem; }
    .cta-button { font-size: 1.1rem; padding: 12px 30px; }
    
    .chat-section { padding: 60px 0; }
    .chat-vape-img { height: 100%; opacity: 0.2; }
    .message { max-width: 95%; font-size: 0.85rem; padding: 12px 15px; }
    
    .stats-box { padding: 30px 20px; }
    .stats-header h2 { font-size: 1.8rem; }
    .stat-item::after { display: none !important; }
    .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .info-grid { grid-template-columns: 1fr; }
    .catalog-grid { grid-template-columns: 1fr; }
    
    .catalog-filters { flex-wrap: wrap; gap: 10px; }
    .filter-btn { padding: 8px 15px; font-size: 0.9rem; flex-grow: 1; text-align: center; }
    
    .product-image { height: 220px; }
    .product-title { font-size: 1.2rem; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    
    .cart-modal { width: 100vw; right: -100vw; border-left: none; }
    .cart-modal.show { right: 0; }
    
    .product-modal { width: 95%; padding: 20px; }
    
    .delivery-cards, .payment-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .main-title { font-size: 2.2rem; }
    .main-title .title-shop { font-size: 0.9rem; letter-spacing: 6px; }
    .bordered-box { padding: 20px 30px; }
    .city-selector-header { padding: 4px 8px; font-size: 0.75rem; }
    .cart-btn { width: 32px; height: 32px; }
    .logo-icon { width: 20px; height: 20px; }
}
/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cart-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-light);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-modal.show {
    right: 0;
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}
.close-cart-btn:hover {
    color: var(--text-main);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 25px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 20px;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    object-fit: cover;
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 6px;
}
.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
}
.cart-item-price {
    font-weight: 700;
    color: #5b8def;
}

.cart-item-remove {
    background: rgba(255, 85, 85, 0.1);
    color: #ff5555;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.cart-item-remove:hover {
    background: #ff5555;
    color: white;
}

.cart-empty-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cart-footer {
    padding: 30px 30px;
    border-top: 1px solid var(--border-light);
    background: rgba(0,0,0,0.2);
}

/* Multi-step Checkout Styles */
.checkout-content {
    padding: 0 30px 30px;
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.back-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.checkout-group {
    margin-bottom: 25px;
}
.checkout-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.checkout-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.checkout-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 15px;
    border-radius: 12px;
    font-family: var(--font-sans);
    outline: none;
    transition: 0.3s;
}
.checkout-input:focus {
    border-color: #5b8def;
    background: rgba(255,255,255,0.06);
}

/* Checkout Cards */
.checkout-cards {
    display: grid;
    gap: 10px;
}
.delivery-cards {
    grid-template-columns: 1fr 1fr;
}
.payment-cards {
    grid-template-columns: repeat(3, 1fr);
}

.checkout-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.checkout-card:hover {
    background: rgba(255,255,255,0.06);
}
.checkout-card.active {
    background: #2a4e8c; /* Moon Shop dark blue accent */
    border-color: #5b8def;
    box-shadow: 0 0 15px rgba(91, 141, 239, 0.3);
}

.card-emoji {
    font-size: 1.5rem;
}
.card-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Checkout Summary */
.checkout-summary {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Promo Code Area */
#promoInput {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 12px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.3s;
}
#promoInput:focus {
    border-color: #5b8def;
}
.promo-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.promo-btn {
    background: #2a2a35;
    border: 1px solid var(--border-light);
    color: white;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
}
.promo-btn:hover {
    background: rgba(255,255,255,0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.cart-total-value {
    color: #5b8def;
}
.cart-checkout-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: linear-gradient(145deg, #2a2a35 0%, #0d0d12 100%);
    color: white;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s;
}
.cart-checkout-btn:hover {
    background: linear-gradient(145deg, #353545 0%, #151520 100%);
    box-shadow: 0 8px 25px rgba(0,0,0,0.8);
    transform: translateY(-2px);
}

/* Toast */
.cart-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(91, 141, 239, 0.3);
    z-index: 10000;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-toast.show {
    top: 40px;
}
.cart-toast-text {
    font-weight: 500;
}
.cart-toast-actions {
    display: flex;
    gap: 10px;
}
.toast-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}
.toast-btn.primary {
    background: #5b8def;
}
.toast-btn:hover {
    background: rgba(255,255,255,0.2);
}
.toast-btn.primary:hover {
    background: #6a9cf5;
}

/* Catalog Inline Quantity Controls */
.catalog-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 15, 22, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 6px 12px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.catalog-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.catalog-qty-btn:hover {
    background: rgba(255,255,255,0.1);
}
.catalog-qty-btn.plus {
    background: #2a4e8c;
}
.catalog-qty-btn.plus:hover {
    background: #5b8def;
}
.catalog-qty-val {
    font-weight: 700;
    font-size: 1rem;
    min-width: 15px;
    text-align: center;
}

/* Product Details Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.product-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.close-product-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-product-btn:hover {
    background: #ff5555;
}

.product-modal-content {
    display: flex;
    flex-direction: column;
}

/* Admin Auth Styles */
.admin-auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 22, 0.8) 0%, rgba(5, 5, 8, 0.98) 100%);
    backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

@keyframes authGlowPulse {
    0% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.02), inset 0 0 20px rgba(255, 255, 255, 0.02); }
    50% { box-shadow: 0 0 60px rgba(255, 255, 255, 0.08), inset 0 0 30px rgba(255, 255, 255, 0.05); }
    100% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.02), inset 0 0 20px rgba(255, 255, 255, 0.02); }
}

.admin-auth-box {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    color: #ffffff;
    animation: authSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, authGlowPulse 4s infinite alternate ease-in-out;
    position: relative;
    overflow: hidden;
}

.admin-auth-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.admin-auth-box h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.admin-auth-box .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.admin-auth-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.admin-auth-box .form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-auth-box .form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.admin-auth-box .admin-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    width: 100%;
}

.admin-auth-box .admin-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 30px rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.admin-auth-switch {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.admin-auth-switch a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.admin-auth-switch a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

#adminLogoutBtn {
    background: rgba(255, 50, 50, 0.2);
    color: #ff5555;
    border: 1px solid rgba(255, 50, 50, 0.5);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#adminLogoutBtn:hover {
    background: #ff5555;
    color: white;
}

/* Mobile Toast Fix */
@media (max-width: 768px) {
    .cart-toast {
        top: -100px;
        bottom: auto;
        transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: calc(100% - 40px);
        max-width: 400px;
    }
    .cart-toast.show {
        top: 80px;
        bottom: auto;
    }
}
