/* ══════════════════════════════════════════════════════════
   Shopzen Landing — Global Styles
   ══════════════════════════════════════════════════════════ */

:root {
    --bg:      #050505;
    --bg1:     #0a0a0a;
    --bg2:     #111111;
    --bg3:     #1a1a1a;
    --bd:      #242424;
    --bd2:     #333;
    --tx:      #f0f0f0;
    --tx2:     #999;
    --tx3:     #666;
    --primary: #a78bfa;
    --primary2:#8b5cf6;
    --green:   #22c55e;
    --blue:    #3b82f6;
    --orange:  #f59e0b;
    --red:     #ef4444;
    --radius:  12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w:   1200px;
    --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ──────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5,5,5,.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bd);
    padding: 0 24px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.logo-icon {
    color: var(--primary);
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--tx2);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--tx);
    background: var(--bg3);
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--tx);
    border-radius: 1px;
    transition: var(--transition);
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary2);
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 16px 32px; font-size: 17px; border-radius: var(--radius); }

.btn-ghost {
    background: transparent;
    color: var(--tx2);
}

.btn-ghost:hover { color: var(--tx); background: var(--bg3); }

.btn-outline {
    background: transparent;
    color: var(--tx);
    border: 1px solid var(--bd2);
}

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

.btn-secondary {
    background: var(--bg3);
    color: var(--tx);
    border: 1px solid var(--bd);
}

.btn-secondary:hover { background: var(--bd); }

.btn-danger {
    background: rgba(239,68,68,.15);
    color: var(--red);
    border: 1px solid rgba(239,68,68,.3);
}

.btn-danger:hover { background: rgba(239,68,68,.25); }

.btn:disabled, .btn.loading {
    opacity: .5;
    pointer-events: none;
}

/* ── CARDS ────────────────────────────────────────────────── */

.card {
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: var(--radius);
    padding: 24px;
}

.card-lg { padding: 32px; border-radius: var(--radius-lg); }

/* ── FORMS ────────────────────────────────────────────────── */

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--tx2);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--radius-sm);
    color: var(--tx);
    font-family: var(--font);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}

.form-input::placeholder { color: var(--tx3); }

textarea.form-input { min-height: 100px; resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── BADGES ───────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.badge-primary { background: rgba(167,139,250,.15); color: var(--primary); }
.badge-green { background: rgba(34,197,94,.15); color: var(--green); }
.badge-orange { background: rgba(245,158,11,.15); color: var(--orange); }
.badge-red { background: rgba(239,68,68,.15); color: var(--red); }

/* ── TOAST ────────────────────────────────────────────────── */

.toast-container {
    position: fixed;
    top: 80px; right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 14px;
    color: var(--tx);
    animation: toastIn .3s ease;
    max-width: 360px;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── SECTION LAYOUT ───────────────────────────────────────── */

.section {
    padding: 100px 0;
}

.section-sm { padding: 60px 0; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 17px;
    color: var(--tx2);
    line-height: 1.7;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--bd);
    margin: 0;
}

/* ── GRID ─────────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── FOOTER ───────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--bd);
    padding: 60px 0 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--tx2);
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tx2);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--tx3);
    padding: 4px 0;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--bd);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--tx3);
}

/* ── TABS ─────────────────────────────────────────────────── */

.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tx2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
}

.tab:hover { color: var(--tx); }
.tab.active { background: var(--bg3); color: var(--tx); }

/* ── TABLE ────────────────────────────────────────────────── */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bd);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--bd);
}

th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tx2);
    background: var(--bg2);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg2); }

/* ── PROGRESS BAR ─────────────────────────────────────────── */

.progress {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width .5s ease;
}

.progress-bar.warning { background: var(--orange); }
.progress-bar.danger { background: var(--red); }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg1);
        border-bottom: 1px solid var(--bd);
        padding: 16px 24px;
        gap: 4px;
    }
    .nav-actions { display: none; }
    .nav-links.open + .nav-actions { display: flex; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
    .section-header p { font-size: 15px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .card { padding: 20px; }
    .btn-xl { padding: 14px 24px; font-size: 15px; }
}

/* ── UTILITY ──────────────────────────────────────────────── */

.text-center { text-align: center; }
.text-muted { color: var(--tx2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }
