:root {
    --bg-dark: #020617;
    --bg-panel: #0f172a;
    --bg-panel-hover: #1e293b;
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --border: #334155;
    --accent: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.mt-4 { margin-top: 1rem; }

/* Utilities */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-panel-hover);
    border-color: var(--primary);
}

.dark-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.dark-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.whatsapp-btn {
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.cart-icon, .user-icon {
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    color: var(--text-main);
}

.cart-icon:hover, .user-icon:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Main Content */
main {
    flex: 1;
    padding: 0 0 2rem 0; /* Removing top padding for hero */
}
.inner-padding {
    padding: 2rem 5%;
}

.page-header-small {
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-image: url('assets/hero_giftcards_1783327824253.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.3) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.badge i {
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-panel);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

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

.feat-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* Product Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    text-transform: uppercase;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

/* Product Card - Cyber Style */
.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.product-card:hover::before { opacity: 1; }

.product-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, var(--bg-panel), transparent);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-price {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.add-cart-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    font-weight: 600;
    text-transform: uppercase;
}

.add-cart-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Page Layouts */
.page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cat-list {
    list-style: none;
    margin-bottom: 2rem;
}

.cat-list li {
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    transition: all 0.3s;
    font-weight: 500;
}

.cat-list li:hover, .cat-list li.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.cat-list li span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-main);
}

.why-buy h3 { margin-bottom: 1rem; }
.why-buy ul { list-style: none; }
.why-buy li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: var(--text-muted);
}
.why-buy li i { color: var(--primary); }

.product-sections {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.detail-image {
    border-radius: 16px;
    height: 450px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-price {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.detail-meta p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-meta p i {
    color: var(--primary);
    width: 20px;
    font-size: 1.2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: white;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
}

.qty-input {
    width: 60px;
    height: 40px;
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.detail-actions {
    display: flex;
    gap: 1.5rem;
}

.detail-actions button {
    flex: 1;
}

/* About Us Layout */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4rem;
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background-image: url('assets/about_giftcards_1783327834997.png');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.about-points .point-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.about-points .point-item i {
    font-size: 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-box {
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-dark));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.stat-box h2 { color: var(--primary); font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: 800; }
.stat-box p { color: var(--text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Contact Us Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info-panel, .contact-form-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

/* Checkout Layout */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
}

.checkout-form, .checkout-summary {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-dark);
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.payment-option input {
    accent-color: var(--primary);
    width: 22px;
    height: 22px;
    margin-left: auto;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 450px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-sidebar.open {
    right: 0;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

/* =========================================
   RESPONSIVE DESIGN (Mobile & Tablet)
========================================= */

@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 4rem 5%;
        text-align: center;
        background-position: center right 20%;
    }
    .hero::before {
        background: rgba(2, 6, 23, 0.5); /* Much lighter overlay for mobile */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-badges {
        justify-content: center;
    }

    /* Page Layout */
    .page-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    /* Product Detail */
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .detail-image {
        height: 300px;
    }
    .detail-info h1 {
        font-size: 1.8rem;
    }
    .detail-price {
        font-size: 1.8rem;
    }
    .detail-actions {
        flex-direction: column;
    }

    /* About Layout */
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    .about-image {
        height: 250px;
    }
    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat-box {
        padding: 1.5rem;
    }
    .stat-box h2 {
        font-size: 1.8rem;
    }

    /* Contact Layout */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 1.5rem;
    }

    /* Checkout Layout */
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-form, .checkout-summary {
        padding: 1.5rem;
    }
    .payment-option {
        padding: 1rem;
    }
    
    /* Cart Sidebar */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    /* Inner padding */
    .inner-padding {
        padding: 2rem 1rem;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .detail-image {
        height: 220px;
    }
}

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

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

/* --- Navbar Right Align Fix --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#auth-nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
