/* ===== CSS VARIABLES ===== */
:root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --bg3: #1c1c1c;
    --accent: #00e5a0;
    --accent2: #00b87a;
    --text: #f0f0f0;
    --text-muted: #888;
    --border: #2a2a2a;
    --card-bg: #161616;
    --radius: 14px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px;
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.logo { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; padding: 8px 16px; border-radius: 8px; font-size: 15px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.btn-nav { background: var(--accent) !important; color: #000 !important; font-weight: 600 !important; }
.btn-nav:hover { background: var(--accent2) !important; }
.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    padding: 100px 48px 80px; min-height: 88vh;
    position: relative; overflow: hidden; gap: 40px;
}
.hero::before {
    content: ''; position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,229,160,0.08), transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 560px; z-index: 1; }
.hero-badge {
    display: inline-block; background: var(--bg3); border: 1px solid var(--border);
    color: var(--accent); font-size: 13px; font-weight: 500;
    padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; letter-spacing: 0.3px;
}
.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px; }
.accent { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary { background: var(--accent); color: #000; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid var(--border); transition: all 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline.small { padding: 10px 20px; font-size: 13px; }

.hero-visual { position: relative; width: 400px; height: 400px; flex-shrink: 0; }
.blob { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0,229,160,0.12), transparent 70%); border-radius: 50%; animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.floating-card { position: absolute; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--text-muted); line-height: 1.5; box-shadow: var(--shadow); animation: float 3s ease-in-out infinite; }
.floating-card strong { color: var(--accent); display: block; font-size: 15px; }
.card1 { top: 20px; left: 30px; animation-delay: 0s; }
.card2 { top: 50%; right: 10px; animation-delay: 1s; }
.card3 { bottom: 30px; left: 50px; animation-delay: 2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== STATS ===== */
.stats { display: flex; justify-content: center; gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 36px 20px; border-right: 1px solid var(--border); gap: 4px; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); }
.stat span:last-child { font-size: 13px; color: var(--text-muted); }

/* ===== PRODUCTS / CUSTOMERS SECTION ===== */
.products-section { padding: 80px 48px; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-family: 'Syne', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.section-header p { color: var(--text-muted); margin-top: 8px; }

/* ===== CUSTOMER TABLE ===== */
.table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.customer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.customer-table thead tr {
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}
.customer-table th {
    padding: 16px 20px;
    text-align: left;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.customer-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.customer-table tbody tr:last-child { border-bottom: none; }
.customer-table tbody tr:hover { background: var(--bg3); }
.customer-table td { padding: 16px 20px; color: var(--text); }
.badge {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.email-link { color: var(--text-muted); text-decoration: none; }
.email-link:hover { color: var(--accent); text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 48px 0; }
.footer-inner { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 220px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ===== AUTH PAGES ===== */
.auth-page { background: var(--bg); }
.auth-container { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 44px 48px; width: 100%; max-width: 480px; box-shadow: var(--shadow); }
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h2 { font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.auth-header p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.form-group label small { color: var(--text-muted); font-weight: 400; }
.form-group input { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; color: var(--text); font-size: 15px; font-family: 'DM Sans', sans-serif; transition: border-color 0.2s; outline: none; }
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: #444; }
.btn-submit { background: var(--accent); color: #000; border: none; padding: 15px; border-radius: 10px; font-size: 16px; font-weight: 700; font-family: 'Syne', sans-serif; cursor: pointer; margin-top: 6px; transition: background 0.2s, transform 0.1s; }
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.auth-footer { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 24px; }
.auth-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.alert-error { background: rgba(255,60,60,0.12); border: 1px solid rgba(255,60,60,0.3); color: #ff8080; }
.alert-success { background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.3); color: var(--accent); }
.alert-success a { color: var(--accent); font-weight: 600; }

/* ===== DASHBOARD ===== */
.dashboard { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.dash-header p { color: var(--text-muted); margin-top: 4px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.dash-stat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 18px; transition: border-color 0.2s; }
.dash-stat-card:hover { border-color: var(--accent); }
.dash-icon { font-size: 32px; }
.dash-stat-card div { display: flex; flex-direction: column; gap: 2px; }
.dash-num { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--accent); }
.dash-stat-card span:last-child { font-size: 13px; color: var(--text-muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dash-card h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-muted); }
.info-row strong { color: var(--text); }
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link { display: block; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.quick-link:hover { border-color: var(--accent); color: var(--accent); }
.quick-link.danger:hover { border-color: #ff4444; color: #ff4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); padding: 20px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .hamburger { display: block; }
    .hero { flex-direction: column; padding: 60px 20px 40px; text-align: center; min-height: auto; }
    .hero-visual { display: none; }
    .hero-btns { justify-content: center; }
    .stats { flex-wrap: wrap; }
    .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
    .products-section { padding: 60px 20px; }
    .auth-box { padding: 32px 24px; }
    .dash-grid { grid-template-columns: 1fr; }
    .footer { padding: 40px 20px 0; }
    .footer-inner { flex-direction: column; gap: 30px; }
}
