@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #05070a;
    --bg-card: #0d1117;
    --bg-glass: rgba(0, 210, 255, 0.02);
    --border-glass: rgba(0, 210, 255, 0.15);
    
    --neon-green: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --neon-green-dim: rgba(0, 210, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Sora', sans-serif; scroll-behavior: smooth; }

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Preloader */
.preloader {
    position: fixed; inset: 0; background: var(--bg-base); z-index: 9999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-content { text-align: center; }
.glitch-text { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.loading-bar { width: 250px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin: 0 auto 15px; overflow: hidden; }
.loading-progress { width: 0%; height: 100%; background: var(--neon-green); animation: loadBar 1.5s ease forwards; }

@keyframes loadBar { to { width: 100%; } }

/* Utilities */
.highlight { color: var(--neon-green); }
.w-100 { width: 100%; }

/* Buttons */
.btn { 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    padding: 14px 28px; 
    border-radius: 40px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: var(--transition); 
    border: none; 
    text-decoration: none; 
    font-size: 1rem; 
}
.primary-btn { 
    background: var(--accent-gradient); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.primary-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5); 
}

.secondary-btn { background: var(--bg-glass); color: #fff; border: 1px solid var(--border-glass); }
.secondary-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Navbar */
.navbar-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.navbar {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 8px 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: var(--transition);
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
}

.logo { font-size: 1.4rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { color: var(--neon-green); font-size: 1.2rem; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: #fff; }

.nav-contact-btn {
    background: var(--neon-green-dim);
    color: var(--neon-green);
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(152, 255, 152, 0.2);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-contact-btn:hover { background: var(--neon-green); color: #000; }

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 80px;
    text-align: center;
    position: relative;
}

.decor-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    color: var(--border-glass);
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape.circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Products Section */
.products-section {
    padding: 40px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(152, 255, 152, 0.3);
}

.product-card.featured {
    border-color: var(--neon-green);
    background: #0a0a0a;
}

.p-image-box {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.02);
}
.p-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.product-card:hover .p-image-box img {
    transform: scale(1.05);
}

.p-header { margin-bottom: 40px; }
.p-badge { 
    color: var(--neon-green); 
    font-weight: 700; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.p-price { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}
.p-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-left: 4px; }

.p-limit { font-size: 0.9rem; color: var(--text-muted); }

.p-features-title { font-weight: 700; margin-bottom: 20px; color: #fff; font-size: 0.95rem; }

.p-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.p-features li { 
    margin-bottom: 16px; 
    color: var(--text-muted); 
    display: flex; 
    align-items: center; 
    gap: 12px;
    font-size: 0.95rem;
}
.p-features li i { 
    color: var(--text-muted); 
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured .p-features li i { color: var(--neon-green); border-color: rgba(152, 255, 152, 0.2); }

.recommended-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-green);
    padding: 14px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
    width: 100%;
    border: 1px solid var(--border-glass);
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 80px 48px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5), inset 0 0 0 1px var(--border-glass);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-green-dim) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 500px; }
.cta-actions { position: relative; z-index: 1; flex-shrink: 0; }


/* Stats Section */
.stats-section { padding: 60px 20px; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.stat-box { text-align: center; }
.stat-box h2 { font-size: 3rem; font-weight: 700; margin-bottom: 8px; }
.stat-box p { color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; font-weight: 600; }

/* Reviews */
.reviews-section { padding: 80px 0; }
.review-scroller { overflow: hidden; display: flex; width: 100%; }
.review-track { display: flex; gap: 24px; animation: scrollTrack 40s linear infinite; }
.review-item { 
    flex: 0 0 350px; 
    padding: 32px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-glass); 
    border-radius: var(--radius-md); 
}
.review-head { display: flex; justify-content: space-between; margin-bottom: 20px; }
.r-user { font-weight: 600; font-size: 1.1rem; }
.r-stars { color: var(--neon-green); margin-bottom: 16px; }
.r-text { color: var(--text-muted); font-size: 1rem; line-height: 1.5; }

@keyframes scrollTrack { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 12px)); } }

/* Footer */
.cyber-footer { padding: 100px 20px 40px; max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border-glass); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; gap: 40px; }
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); max-width: 400px; }
.social-links { display: flex; gap: 16px; }
.social-btn { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    background: var(--bg-glass); 
    border: 1px solid var(--border-glass); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none;
    transition: var(--transition);
}
.social-btn:hover { background: var(--neon-green); color: #000; transform: translateY(-4px); }

.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border-glass); padding-top: 40px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-window { 
    background: var(--bg-card); 
    border: 1px solid var(--border-glass); 
    border-radius: var(--radius-lg);
    width: 100%; 
    max-width: 420px; 
    padding: 32px; 
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.5s var(--transition);
}
/* Ensure smooth scrolling inside modal */
.modal-window::-webkit-scrollbar { width: 8px; }
.modal-window::-webkit-scrollbar-track { background: transparent; }
.modal-window::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.close-modal-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }

.modal-step { display: flex; flex-direction: column; }
.modal-product-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 24px; border: 1px solid var(--border-glass); }
.modal-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.modal-p-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; }
.modal-p-features { list-style: none; margin-bottom: 30px; }
.modal-p-features li { margin-bottom: 12px; color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.modal-p-features li::before { content: '✓'; color: var(--neon-green); font-weight: bold; }

.crypto-item { background: var(--bg-card); border: 1px solid var(--border-glass); padding: 16px 20px; }
.crypto-item:hover { border-color: var(--neon-green); background: rgba(152, 255, 152, 0.05); }
.c-head span img { width: 32px; height: 32px; object-fit: contain; margin-right: 16px; border-radius: 50%; }
.c-head span { font-weight: 600; font-size: 1rem; color: #fff; }
.c-address-box { display: flex; gap: 10px; margin-top: 10px; }
.c-address-box input { flex-grow: 1; min-width: 0; background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass); color: var(--text-muted); padding: 10px 16px; border-radius: 8px; font-size: 0.9rem; }
.c-address-box .copy-btn { background: var(--bg-glass); border: 1px solid var(--border-glass); color: #fff; padding: 0 20px; border-radius: 8px; cursor: pointer; transition: var(--transition); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.c-address-box .copy-btn:hover { background: var(--neon-green); color: #000; border-color: var(--neon-green); }

.payment-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.btn-back { background: var(--bg-glass); border: 1px solid var(--border-glass); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.btn-back:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Mobile */
@media(max-width: 768px) {
    .navbar { gap: 10px; padding: 8px 16px; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .products-container { grid-template-columns: 1fr; }
    .cta-section { flex-direction: column; text-align: center; padding: 48px 24px; gap: 32px; }
    .cta-title { font-size: 1.8rem; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { width: 100%; }
    .footer-grid { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    
    /* Modal mobile fixes */
    .modal-window { padding: 24px; border-radius: var(--radius-md); max-height: 85vh; }
    .close-modal-btn { top: 16px; right: 16px; }
    .modal-product-img { height: 160px; margin-bottom: 16px; }
    .modal-price { font-size: 2rem; }

    /* Navbar specific mobile fixes */
    .logo { font-size: 1.1rem; gap: 5px; }
    .logo i { font-size: 1rem; }
    .nav-contact-btn { padding: 6px 16px; font-size: 0.8rem; }
    
    /* Wallet mobile fix */
    .c-address-box { gap: 5px; }
    .c-address-box input { font-size: 0.8rem; padding: 10px 12px; }
    .c-address-box .copy-btn { padding: 0 12px; font-size: 0.8rem; }
}
/* Admin Styles */
.admin-window { max-width: 800px !important; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; }
.admin-tab { 
    background: none; border: none; color: var(--text-muted); padding: 8px 16px; 
    cursor: pointer; font-weight: 600; transition: var(--transition); border-radius: 8px;
}
.admin-tab.active { color: var(--neon-green); background: var(--neon-green-dim); }

.admin-input { 
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); 
    color: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 1rem;
}
.admin-input:focus { border-color: var(--neon-green); outline: none; box-shadow: 0 0 10px var(--neon-green-dim); }

.product-edit-list { display: flex; flex-direction: column; gap: 12px; }
.product-edit-item { 
    background: rgba(255,255,255,0.02); border: 1px solid var(--border-glass); 
    padding: 16px 20px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center;
}
.p-edit-actions { display: flex; gap: 10px; }
.p-edit-actions .btn { padding: 8px 16px; font-size: 0.85rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
