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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header Styles */

.header {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.80rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ADE80; /* Changed to green */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: #4ADE80;
}

.nav-link:hover {
    color: #4ADE80;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.10rem;
}

.telegram-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0088cc;
}

.telegram-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav .nav-link.active,
.mobile-nav .nav-link:hover {
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.1);
}

/* Main Content */
.main {
    padding: 4rem 0;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: left;
    margin-bottom: 5rem;
    max-width: none;
    width: 100%;
}

.welcome-text {
    color: #4ADE80;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 800px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
}

.browse-btn {
    background: #4ADE80;
    color: #000000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
    display: inline-block;
}

.browse-btn:hover {
    background: #4ADE80;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 222, 128, 0.4);
}

.stats-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -3rem;
}

/* TIGHTER STATS ON ALL DEVICES */
.stats {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem;
    margin-top: -3rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap !important;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 120px;
    flex: 1;
    max-width: 180px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ADE80;
    margin-bottom: 0.5rem;
    line-height: 1;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 6rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

/* ----------  FOOTER  ---------- */

.footer {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #e5e7eb;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Top area with columns - responsive grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #4ADE80;
}

.footer-tag {
    margin-top: .75rem;
    font-size: .9rem;
    color: rgba(255,255,255,0.7);
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4ADE80;
}

.footer-link {
    display: block;
    margin-bottom: .55rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color .25s ease;
}

.footer-link:hover {
    color: #4ADE80;
}

/* Disabled footer links */
.footer-link-disabled {
    display: block;
    margin-bottom: .55rem;
    color: rgba(255,255,255,0.4);
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

/* Bottom strip */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.2rem;
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    font-size: .85rem;
    text-align: center; /* Added for extra centering */
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.5rem;
        font-size: 0.9rem;
    }

    /* Stack columns vertically on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Brand section on mobile */
    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-logo {
        justify-content: center;
        font-size: 1.2rem;
    }

    .footer-tag {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    /* Column headers */
    .footer-col h3 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    /* Links */
    .footer-link {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    /* Bottom section - stack on mobile */
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1rem;
    }

    /* Telegram button on mobile */
    .footer-bottom .telegram-btn {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .footer-tag {
        font-size: 0.8rem;
    }

    .footer-col h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .footer-link {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 0.8rem;
    }
}

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

.cart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cart-icon {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 0 2px #0002);
}

.cart-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #4ADE80;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(1);}
    50% { transform: scale(1.2);}
    100% { transform: scale(1);}
}
.cart-badge.pulse {
    animation: pulse 0.3s;
}

.cart-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.cart-indicator-show {
    opacity: 1;
    transform: scale(1);
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4ADE80;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(74, 222, 128, 0.5);
    z-index: 1000;
    cursor: pointer;
}

.floating-cart-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.floating-cart-icon:hover {
    transform: scale(1.1);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4ADE80;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgb(255, 255, 255, 0.9);
}

.cart-bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 20%, 60%, 100% { transform: scale(1); }
    40% { transform: scale(1.15); }
    80% { transform: scale(1.05); }
}

/* Product Card Styling */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 20px 40px rgb(255, 255, 255, 0.3);
}

/* Product Image Container */
.product-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.product-custom-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
}

/* Purchase Button States */
.purchase-btn {
    transition: all 0.3s ease;
}

.purchase-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Out of Stock Styling */
.product-card.out-of-stock {
    opacity: 0.7;
    position: relative;
}

.out-of-stock-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.in-stock-text {
    color: #4ADE80;
    font-weight: 500;
}

.out-of-stock-text {
    color: #ef4444;
    font-weight: 500;
}

.purchase-btn.disabled {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.purchase-btn.disabled:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* Hide desktop nav and show mobile toggle */
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header .container {
        position: relative;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .hero {
        text-align: center;
    }

    /* KEEP STATS SIDE BY SIDE ON MOBILE */
    .stats {
        gap: 0.8rem !important;
        padding: 0 15px;
    }

    .stat {
        min-width: 70px !important;
        flex: 1 !important;
        max-width: none !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    /* Footer responsive */
    .footer-grid{
        gap:1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* COMPACT STATS FOR VERY SMALL SCREENS */
    .stats {
        gap: 0.5rem !important;
        padding: 0 10px !important;
    }

    .stat {
        min-width: 60px !important;
    }

    .stat-number {
        font-size: 1.4rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* EMERGENCY OVERRIDE - IF STATS ARE STILL STACKING */
@media screen and (max-width: 768px) {
    .stats-container .stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .stats-container .stats .stat {
        flex: 1 !important;
        min-width: 0 !important;
    }
}