:root {
    --bg-color: #05050f;
    --card-bg: rgba(20, 20, 40, 0.6);
    --primary-color: #00f0ff;
    --secondary-color: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --border-glow: rgba(0, 240, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Cyber Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    perspective: 1000px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(3);
    animation: gridMove 20s linear infinite;
    opacity: 0.15;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) scale(3);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) scale(3);
    }
}

/* Typography & Neons */
.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    font-weight: 800;
}

.neon-heading {
    text-align: center;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(5, 5, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--border-glow);
}

.glass-btn.primary {
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.2), rgba(112, 0, 255, 0.2));
    border-color: var(--primary-color);
}

.glass-btn.primary:hover {
    box-shadow: 0 0 20px var(--primary-color);
}

/* Hero */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    min-height: 40vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    color: #00ff96;
    font-weight: 600;
}

.chatgpt-logo {
    width: 24px;
    height: 24px;
    filter: invert(1) drop-shadow(0 0 5px #00ff96);
}

/* Products */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.product-card:hover::before {
    left: 150%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #fff;
    min-height: 3rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qty-input {
    width: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.buy-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Certifications */
.certifications {
    padding: 4rem 5%;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.tg_list_patvn {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
}

.tg_list_patvn li figure img {
    height: 40px;
    filter: grayscale(100%) opacity(0.7);
    transition: 0.3s;
}

.tg_list_patvn li figure img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.modal::-webkit-scrollbar {
    display: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Checkout content */
.checkout-items {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: right;
    margin-bottom: 2rem;
}

.qr-container {
    text-align: center;
    background: transparent;
    border-radius: 16px;
    width: 250px;
    height: 250px;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.qr-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.status-pending {
    color: #ffa500;
    font-weight: bold;
}

.status-approved {
    color: #00ff96;
    font-weight: bold;
}

.upload-section {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px dashed var(--glass-border);
}

.upload-section input[type="file"] {
    margin: 1rem 0;
    display: block;
    width: 100%;
}

.feedback {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 255, 150, 0.2);
    border: 1px solid #00ff96;
    color: #00ff96;
    border-radius: 5px;
    text-align: center;
}

/* Admin Form */
.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.order-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.toast {
    background: rgba(20, 20, 40, 0.95);
    border-left: 4px solid var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .products-container {
        grid-template-columns: 1fr;
    }
}