/* --- GLOBAL --- */
:root {
    --bg-dark: #02020a;
    --bg-card: #020247;
    --primary: #6366f1;
    --accent: #a855f7;
    --text-main: #ffffff;
    --text-gray: #9ca3af;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --success: #10b981;
    --warning: #d29922;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }




/* This tells the phone how to behave */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.container {
    width: 95%; /* Use almost the full width on mobile */
    margin: 0 auto;
}

img {
    max-width: 100%; /* Prevents images from being wider than the phone */
    height: auto;
}

/* Force mobile-friendly layout */
@media (max-width: 600px) {
    .product-box {
        width: 100%; /* Stack items vertically on phones */
        display: block;
    }
}







/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-grad { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- BUTTONS --- */
.btn { padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; }
.btn-outline:hover { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); }
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; margin-top: 10px; }

/* --- BACKGROUND GLOWS --- */
.glow-spot { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; pointer-events: none; z-index: -1; }
.glow-top-left { top: -200px; left: -200px; }
.glow-center { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.5; }

/* --- NAVBAR --- */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(2, 2, 10, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-weight: 500; color: var(--text-gray); transition: 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: white; }
.auth-buttons { display: flex; gap: 15px; align-items: center; }
.balance-badge { color: var(--success); font-weight: bold; background: rgba(16, 185, 129, 0.1); padding: 5px 10px; border-radius: 10px; }

/* --- HERO SECTION --- */
.hero { padding-top: 160px; padding-bottom: 80px; display: flex; align-items: center; justify-content: space-between; min-height: 90vh; }
.hero-text { max-width: 600px; }
.badge-pill { display: inline-block; padding: 6px 16px; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 30px; color: var(--primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero p { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }
.stats-row { display: flex; gap: 40px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat-item h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; }
.stat-item span { color: var(--text-gray); font-size: 0.9rem; }

/* --- HERO CARD (RIGHT) --- */
.hero-visual { position: relative; width: 400px; height: 300px; }
.secure-card {
    background: linear-gradient(180deg, #1e1e2f 0%, #13131f 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.icon-box { width: 50px; height: 50px; background: rgba(99, 102, 241, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.5rem; }
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--text-gray); font-size: 0.95rem; }
.feature-list i { color: var(--success); }

/* --- PRODUCTS & SWIPER --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.swiper-container { width: 100%; padding: 50px 0; }
.swiper-slide {
    background: #fff; width: 260px; height: 320px;
    border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.slide-content { text-align: center; color: #000; padding: 20px; }
.slide-icon { font-size: 3.5rem; margin-bottom: 15px; }
.slide-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.filter-btn { background: var(--bg-card); color: var(--text-gray); border: 1px solid rgba(255,255,255,0.1); padding: 8px 24px; border-radius: 30px; cursor: pointer; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; padding-bottom: 80px; }
.product-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15); }
.card-header { height: 140px; display: flex; align-items: center; justify-content: center; position: relative; }
.card-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.6); color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.card-body { padding: 20px; }
.p-category { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.p-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.p-price { font-size: 1.2rem; font-weight: 700; color: white; }

/* --- SOCIAL BUTTONS (Consolidated) --- */
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-btn {
    width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.05); /* Glass Effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

/* --- ANIMATIONS (Fixed Syntax) --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
.animate-float { animation: float 6s ease-in-out infinite; }

/* --- FOOTER --- */
footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 80px 0 30px; background: #010105; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; font-weight: 600; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-gray); transition: 0.3s; font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; color: var(--text-gray); font-size: 0.9rem; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

/* --- MODAL --- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); align-items: center; justify-content: center; animation: fadeIn 0.3s; }
.modal-content { background: #1e1e2f; padding: 30px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; width: 320px; position: relative; box-shadow: 0 0 30px rgba(239, 68, 68, 0.3); }
.close { position: absolute; top: 15px; right: 20px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: white; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   DASHBOARD FIXES (Added to Fix Collision & Layout) 
   ========================================================= */

/* The main wrapper that prevents collision */
.dashboard-container {
    display: flex;
    flex-wrap: wrap; /* Wraps on mobile */
    gap: 30px;       /* The "Safety Gap" between sidebar and table */
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Left Sidebar Styles */
.sidebar {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    width: 320px;
    flex-shrink: 0; /* Prevents squashing */
    box-shadow: -2px 0 20px rgba(99, 102, 241, 0.1); 
}

.profile-header { text-align: center; margin-bottom: 24px; }
.avatar-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    font-size: 2rem;
}

.info-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }
.status-badge.disabled { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Right Panel Styles */
.main-content {
    flex-grow: 1; /* Takes remaining width */
    min-width: 300px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* Table Styles (Dark Theme Optimized) */
.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
}
.order-table th { 
    text-align: left; 
    padding: 15px; 
    color: var(--text-gray); 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.order-table td { 
    padding: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    vertical-align: middle;
}
.status-completed { color: var(--success); font-weight: 600; }
.status-pending { color: var(--warning); font-weight: 600; }

/* Form Inputs inside Dashboard */
.dashboard-input {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 15px;
    outline: none;
}
.dashboard-input:focus { border-color: var(--primary); }