* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #000000;
    --primary-light: #333333;
    --secondary-color: #1a1a1a;
    --accent-color: #2d2d2d;
    --dark-color: #0a0a0a;
    --darker-color: #050505;
    --light-color: #f8fafc;
    --glass-light: rgba(255, 255, 255, 0.132);
    --glass-dark: rgba(0, 0, 0, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark: #000000;
}

body {
    background: linear-gradient(135deg, var(--darker-color), var(--dark-color));
    color: var(--text-light);
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

.glass {
    background: var(--glass-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/*navugation bar*/

.left-side {
    display: flex;
    align-items: center;
    gap: 2rem; /* відстань між логотипом і пошуком */
}

.right-side {
    display: flex;
    align-items: center;
    gap: 2rem; /* відстань між навігацією і кнопкою логіну */
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.nav-logo i {
    color: var(--text-light);
}

.search-container {
    flex: 0 1 400px;
}

.search-box {
    display: flex;
    background: var(--glass-light);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-box:focus-within {
    border-color: var(--text-light);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    width: 300px;
    padding: 0 1rem;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--text-gray);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.login-btn {
    background: var(--text-light);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    max-width: 150px;
    height: 40px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    background: var(--text-gray);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--text-light);
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-gray);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-gray);
}

.cta-btn {
    background: var(--text-light);
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.4);
    background: var(--text-gray);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.mirror-showcase {
    width: 300px;
    height: 400px;
    background: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid var(--glass-border);
}

.mirror-showcase:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.03);
}

.mirror-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Products */
.products {
    padding: 4rem 2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--text-light);
    margin: 1rem auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--glass-light);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
    border-color: var(--text-light);
}

.product-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--secondary-color);
}

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

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

.product-info {
    text-align: center;
    padding: 0 10px 15px 10px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-price {
    color: #4B72EE;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    text-align: left;
    margin: 0 auto 20px auto;
    padding: 0;
    width: fit-content;
    min-width: 200px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

.buy-btn {
    background: var(--text-light);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    background: #e0e0e0;
}

/* About */
.about {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.5);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #6968E0;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(76, 70, 239, 0.4);
}

/* Сама іконка (галочка або блискавка) */
.feature-icon i {
    color: white;
    font-size: 12px;
}

.feature {
    padding: 2rem 1rem;
    background: var(--glass-light);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    }

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature p {
    color: var(--text-gray);
    font-size: 0.9rem;
    }

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 1.25rem;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.85;
    color: var(--text-gray);
    max-width: 500px;
}

/* Contact Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.25s ease;
}

.social-icon:hover {
    background: white;
    transform: translateY(-4px);
}

.social-icon svg {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-icon:hover svg {
    color: var(--text-dark);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    opacity: 0.9;
}

.contact-info i {
    width: 22px;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--glass-border);
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--text-light);
}

.close-btn:hover {
    color: var(--text-gray);
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.modal h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--text-light);
    margin: 0.5rem auto;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-light);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.delivery-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    color: var(--text-light);
}

.option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option input[type="radio"] {
    width: auto;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.forgot-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--text-light);
}

.submit-btn {
    background: var(--text-light);
    border: none;
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    background: var(--text-gray);
}

.signup-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-gray);
}

.signup-link a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: var(--text-gray);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.profile-container {
    position: relative;
    display: inline-block;
}

/* Маленька аватарка в кнопці навігації */
.nav-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid var(--text-light);
}

/* Основна панель (випадаюче меню) */
.profile-dropdown {
    display: none; /* JS буде перемикати на block */
    position: absolute;
    top: 120%;
    right: 0;
    width: 320px; /* Ширше, як на референсі */
    background: rgba(20, 20, 20, 0.95); /* Дуже темний фон, майже непрозорий */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 10000;
    color: var(--text-light);
    overflow: hidden;
    animation: dropdownFade 0.2s ease;
}

.profile-dropdown.show {
    display: block;
}

/* 1. Header Section */
.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}

.user-text p {
    font-size: 0.8rem;
    color: var(--text-gray);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 2. Credits Card (Сірий блок посередині) */
.credits-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credits-top {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.credits-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-flask {
    font-size: 1.5rem;
}

.amount-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.info-icon {
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.6;
}

.credits-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    opacity: 0.8;
}

.upgrade-full-btn {
    width: 100%;
    background: var(--text-light); /* Біла кнопка */
    color: black; /* Чорний текст */
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-full-btn:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

/* 3. Menu Items */
.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    width: 24px; /* Фіксована ширина для іконок */
    margin-right: 10px;
    color: var(--text-gray);
    text-align: center;
}

.lang-val {
    margin-left: auto; /* Притискає текст вправо */
    font-size: 0.8rem;
    color: var(--text-gray);
}

.close-profile-panel {
    display: none;
}

/* 4. Logout Footer */
.dropdown-footer {
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2); /* Пунктирна лінія */
}

.logout-item {
    color: #ff6b6b; /* Червонуватий відтінок */
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
}

.logout-item i {
    color: #ff6b6b;
}

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

.nav-badge {
    background-color: #ff4757;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
    font-size: 1rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.lang-btn.active {
    border-color: #10e6cc;
    background: rgba(16, 230, 204, 0.1);
}

.lang-flag {
    font-size: 1.5rem;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0px);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0px);
    }
}

@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.animate-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

@media (max-width: 1024px) {
    .search-container {
        flex: 0 1 250px;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .mirror-showcase {
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .left-side {
        width: 100%;
        justify-content: space-between;
    }

    .search-container {
        width: 100%;
        order: 3;
    }

    .search-box {
        width: 100%;
    }

    .right-side {
        width: 100%;
        justify-content: space-between;
    }

    .burger {
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
        display: flex;
    }

    .burger span {
        width: 28px;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    .nav-links {
        display: none !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .left-side .search-container {
        display: none;
    }
    .right-side .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        background: rgba(0,0,0,0.95);
        width: 70%;
        height: 100vh;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 1500;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Затемнение */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1400;
    }

    .menu-overlay.active {
        display: block;
    }
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.burger span {
    width: 28px;
    height: 3px;
    border-radius: 20px;
    background: #fff;
    transition: 0.35s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    padding: 4rem 2rem;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);

    transition: 0.45s ease;
    z-index: 1500;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    padding: 0;
}

.mobile-menu ul li a {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: 0.2s;
}

.mobile-menu ul li a:hover {
    opacity: 0.7;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 1400;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 768px) {

    .nav-links,
    .search-container {
        display: none;
    }

    .burger {
        width: 30px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1100;
    }

    .burger span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* MOBILE MENU */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        padding: 80px 30px;
        backdrop-filter: blur(10px);
        transition: 0.3s ease;
        z-index: 1500;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 1.4rem;
    }

    /* OVERLAY */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(2px);
        background: rgba(0,0,0,0.5);
        z-index: 1400;
    }

    .menu-overlay.active {
        display: block;
    }

    .profile-container {
        width: 100%;
    }

     #profilePanel {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        margin: auto;
        width: 90%;
        max-width: 360px;

        border-radius: 16px;
        z-index: 2001;

        /* Чтобы выглядело красиво */
        background: var(--glass-light);
        opacity: 200%;
        border-radius: 18px;
        backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        padding: 20px !important;

        animation: slideDown 0.25s ease;
    }

     /* USER HEADER */
    #profilePanel .user-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    #profilePanel .avatar-big {
        width: 45px;
        height: 45px;
    }

    #profilePanel .user-info h3 {
        font-size: 1rem;
    }

    #profilePanel .user-info p {
        font-size: .8rem;
    }

    .account-type {
        font-size: .8rem;
        padding: 4px 10px;
    }

    /* CREDITS BOX */
    .credits-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .credits-info h2 {
        font-size: 1.4rem;
    }

    .credits-info p {
        font-size: .9rem;
    }

    .upgrade-btn {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }

    /* MENU ITEMS */
    .profile-menu .menu-item,
    .logout-box .menu-item {
        font-size: 1rem;
        padding: 12px 10px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-menu .menu-item i,
    .logout-box .menu-item i {
        font-size: 1.1rem;
    }

      /* затемнение фона */
    .profile-container::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        z-index: 1900;
        display: none;
    }

    .profile-container.active::before {
        display: block;
    }

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

    /* крестик */
    .close-profile-panel {
        display: block;
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(255,255,255,0.15);
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        z-index: 2100;
        backdrop-filter: blur(5px);
    }

    .close-profile-panel:hover {
        background: rgba(255,255,255,0.25);
    }

     /* уменьшаем высоту navbar */
    .navbar {
        padding: 0.6rem 1.2rem;
        height: 65px;
        display: flex;
        align-items: center;
    }

    /* основная линия */
    .nav-container {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 0;
    }

    /* бургер слева */
    .burger {
        order: 1;
    }

    /* логотип по центру */
    .left-side {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        gap: 0.5rem;
        order: 2;
    }

    .nav-logo {
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* кнопка профиля справа */
    .right-side {
        order: 3;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
    }

    .login-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
        height: auto;
    }

    /* Уменьшаем аватар в кнопке */
    .nav-avatar-small {
        width: 22px;
        height: 22px;
    }

    /* скрываем поиск в мобильной версии */
    .search-container {
        display: none !important;
    }
}

/*
.checkout-modal {
    max-width: 700px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-modal h2 {
    padding: 20px 30px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.checkout-container {
    display: flex;
    flex-direction: row;
}

@media (max-width: 700px) {
    .checkout-container {
        flex-direction: column;
    }
}

.checkout-details {
    flex: 1.2;
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.product-preview {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.product-preview img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-text h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.credits-badge {
    display: inline-block;
    background: rgba(16, 230, 204, 0.15);
    color: #10e6cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-methods-preview .label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.icons-row {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0.8;
}

.usdt-icon {
    font-weight: bold;
    color: #2ecc71;
}

.sub-label {
    font-size: 0.8rem;
    color: #666;
}

.checkout-summary {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1rem;
}

.free-text {
    color: #2ecc71;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.summary-row.total {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.pay-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.4);
}

.pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.terms-text {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: 15px;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

.pay-btn.loading .btn-text {
    opacity: 0;
}

.pay-btn.loading .spinner {
    display: block;
} 
*/

.checkout-content {
    max-width: 450px; /* Компактний розмір */
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.checkout-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.secure-badge {
    font-size: 0.75rem;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkout-body {
    padding: 25px;
}

/* Product Section */
.checkout-product {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.checkout-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.checkout-desc {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #aaa;
}

.checkout-credits {
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Summary Section */
.checkout-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ddd;
}

.checkout-summary .total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.green-text { color: #2ecc71; }

/* Methods */
.payment-methods {
    margin: 25px 0;
    text-align: center;
}

.payment-methods span {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 8px;
}

.methods-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    color: #ccc;
}

.checkout-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    margin-top: 15px;
}

/* Pay Button */
.pay-now-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #10e6cc; /* Ваш фірмовий колір */
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pay-now-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(16, 230, 204, 0.4);
}

.pay-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner for button */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

.pay-now-btn.loading .btn-text { display: none; }
.pay-now-btn.loading .spinner { display: block; margin: 0; }

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    animation: slideInToast 0.3s forwards;
}

/* Кольори статусів */
.toast.success { border-left: 4px solid #2ecc71; }
.toast.success i { color: #2ecc71; }

.toast.error { border-left: 4px solid #e74c3c; }
.toast.error i { color: #e74c3c; }

.toast.info { border-left: 4px solid #3498db; }
.toast.info i { color: #3498db; }

.toast.hiding {
    animation: slideOutToast 0.3s forwards;
}

@keyframes slideInToast {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToast {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

.profile-toggle-btn {
    background: none;
    background: var(--text-light);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.profile-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--text-light);
}
