:root {
    --navy: #0a1128;
    --navy-light: #162048;
    --gray: #2c3e50;
    --gray-light: #4a627a;
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --text-light: #e8e8e8;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(10, 17, 40, 0.7);
    --glass-border: rgba(255, 215, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a1128 0%, #0d1b2a 50%, #1b263b 100%);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated stars background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars {
    background: #000 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="10" cy="10" r="1" fill="white"/><circle cx="150" cy="80" r="1.5" fill="white"/><circle cx="300" cy="200" r="1" fill="white"/><circle cx="450" cy="50" r="2" fill="white"/><circle cx="600" cy="150" r="1" fill="white"/><circle cx="750" cy="90" r="1.5" fill="white"/><circle cx="900" cy="300" r="1" fill="white"/><circle cx="80" cy="400" r="1" fill="white"/><circle cx="200" cy="500" r="2" fill="white"/><circle cx="400" cy="600" r="1" fill="white"/><circle cx="550" cy="450" r="1.5" fill="white"/><circle cx="700" cy="700" r="1" fill="white"/><circle cx="850" cy="550" r="2" fill="white"/><circle cx="950" cy="800" r="1" fill="white"/></svg>') repeat;
    background-size: 200px 200px;
    animation: starMove 200s linear infinite;
    opacity: 0.4;
}

.twinkling {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="50" cy="150" r="1" fill="white"/><circle cx="250" cy="350" r="1.5" fill="white"/><circle cx="480" cy="180" r="1" fill="white"/><circle cx="620" cy="520" r="2" fill="white"/><circle cx="780" cy="280" r="1" fill="white"/><circle cx="920" cy="650" r="1.5" fill="white"/></svg>') repeat;
    background-size: 300px 300px;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes starMove {
    from { background-position: 0 0; }
    to { background-position: -2000px 2000px; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 2px;
}

.navbar-brand i {
    color: var(--gold);
    margin-right: 10px;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li a, .nav-logout-btn {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a:hover, .nav-logout-btn:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

.glitch-text {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.05em -0.025em 0 rgba(0,255,0,0.75); }
    25% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75), 0.025em 0.05em 0 rgba(0,255,0,0.75); }
    50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75), 0.05em 0 0 rgba(0,255,0,0.75); }
    75% { text-shadow: -0.025em 0 0 rgba(255,0,0,0.75), 0.025em 0.025em 0 rgba(0,255,0,0.75); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filters Section */
.filters-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.category-filter select {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    cursor: pointer;
}

.btn-gold, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
}

/* Product Cards */
.products-grid {
    padding: 3rem 2rem;
}

.grid-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
    border-color: var(--gold);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge-hot, .badge-trending {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.badge-hot {
    background: rgba(255, 69, 58, 0.9);
    color: white;
}

.badge-trending {
    background: rgba(255, 215, 0, 0.9);
    color: var(--navy);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.category-tag {
    font-size: 0.8rem;
    color: var(--gold);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.currency {
    font-size: 1rem;
}

.clicks {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn-details, .btn-affiliate {
    flex: 1;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-details {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.btn-affiliate {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
}

.btn-details:hover, .btn-affiliate:hover {
    transform: translateY(-2px);
}

/* Admin Table */
.admin-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.admin-table-wrapper {
    overflow-x: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    color: var(--gold);
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.action-edit, .action-delete {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.action-edit {
    color: #4CAF50;
}

.action-delete {
    color: #ff4444;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin-top: 4rem;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-brand h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .product-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-form button, .filter-form a {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Navigation Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 32px; /* Match the size of the rocket icon */
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    transition: transform 0.3s ease;
}

    .nav-logo:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    }

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .nav-logo {
        width: 28px;
        height: 28px;
    }

    .navbar-brand {
        gap: 8px;
    }
}