/* [Previous Content + New Chat Styles] */

/* ... KEEPING PREVIOUS CSS ... */
/* Global Vars & Reset */
:root {
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    --primary: #00d2ff;
    --secondary: #928DAB;
    --accent: #ff00de;
    /* Neon Pink */
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: var(--bg-dark);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), #3a7bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

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

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

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 12, 41, 0.8);
    border-bottom: 1px solid var(--border);
}

/* Updated Logo Style */
.nav-logo-img {
    height: 70px;
    /* Increased from 40px */
    vertical-align: middle;
    margin-right: 15px;
}

.logo {
    font-size: 1.8rem;
    /* Increased size */
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    background: -webkit-linear-gradient(0deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    background-image: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
}

.hero h1 {
    font-size: 5rem;
    /* Bigger title */
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero span {
    color: var(--primary);
}

/* Products Grid */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(5px);
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    pointer-events: none;
    text-transform: uppercase;
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #000;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.buy-btn {
    width: 100%;
    margin-top: 15px;
    border-radius: 12px;
    /* More rounded */
}

/* Footer */
footer {
    background: #111;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.trust-badges {
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-badges span {
    display: inline-block;
    margin: 0 10px;
}

/* Disabled Button */
.btn-disabled {
    background: #333 !important;
    color: #777 !important;
    cursor: not-allowed;
    border: 1px solid #444 !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        text-align: center;
    }
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    outline: none;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary);
}

/* Product Detail Page */
.detail-container {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.15);
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.package-option {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.package-option:hover,
.package-option.active {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--primary);
}

.price-tag {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
    font-weight: normal;
}

.promo-tag-detail {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* === CHAT SYSTEM === */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    font-size: 24px;
    transition: 0.3s;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(to right, #3a7bd5, var(--primary));
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.chat-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: #1a1a2e;
    border-bottom-right-radius: 2px;
}

.msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 2px;
}

/* Promo Popup */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    /* JS triggers flex */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.promo-content {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.3);
    position: relative;
    max-width: 400px;
    width: 90%;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-promo {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.promo-code {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-top: 15px;
    border-radius: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border: 1px dashed var(--primary);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.admin-chat-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    height: 70vh;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.chat-list {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.chat-list-item {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.chat-list-item:hover,
.chat-list-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.admin-chat-area {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 12, 41, 0.95);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .chat-window {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}
/* Admin Dashboard Enhancements */
.admin-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

.admin-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.admin-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.admin-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.admin-value.primary { color: var(--primary); }
.admin-value.success { color: #00ff00; }
.admin-value.warning { color: #ffd700; }

.admin-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 20px;
}

.admin-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.admin-product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.admin-product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.admin-product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary);
}

.admin-product-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.admin-action-group {
    display: flex;
    gap: 8px;
}

.admin-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Loading Spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #1a1a2e;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    animation: modalIn 0.3s ease-out;
}

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

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--primary);
}
