/* ===== Me3ka Design System — Light Corporate Premium ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cinzel:wght@700;900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-input: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(37, 99, 235, 0.4);
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.08);
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #1d4ed8; }

::selection { background: rgba(37, 99, 235, 0.2); color: #0f172a; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1600px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 72px;
}

.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-img { width: 160px; height: auto; display: block; }
.logo-text { display: inline-flex; align-items: center; line-height: 1; font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.logo-3 { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav button {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary); background: none; border: none;
    cursor: pointer; transition: all var(--transition);
    white-space: nowrap; font-family: var(--font);
}
.nav a:hover, .nav button:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}
.nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 16px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: var(--font);
    cursor: pointer; border: none; transition: all var(--transition);
    text-decoration: none; white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}
.btn-danger:hover { color: #fff; box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3); }
.btn-success {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 12px; letter-spacing: -0.01em; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 64px 32px 32px; margin-top: 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 40%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), transparent);
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo-img { width: 140px; height: auto; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-col h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 20px;
}
.footer-col a { display: block; color: var(--text-secondary); font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1280px; margin: 40px auto 0; padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px;
}
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); font-size: 13px; }
.footer-legal a:hover { color: var(--text-secondary); }

/* ===== Cards — Glassmorphism ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}
.card::before {
    content: '';
    position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0,0,0,0.01), transparent);
    pointer-events: none;
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 700; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 11px 16px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: var(--font);
    outline: none; transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

/* ===== Tables ===== */
.table-wrap {
    overflow-x: auto; border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; }
th {
    padding: 14px 18px; background: rgba(0,0,0,0.02);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: var(--text-muted); text-align: left;
}
td { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
tr:hover td { background: rgba(37, 99, 235, 0.04); }

/* ===== Badges ===== */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: 999px; font-size: 11px; font-weight: 600;
}
.badge-success { background: rgba(5, 150, 105, 0.1); color: #059669; }
.badge-warning { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.badge-danger { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.badge-info { background: var(--accent-light); color: #2563eb; }
.badge-muted { background: rgba(0,0,0,0.04); color: var(--text-muted); }

/* ===== Stat Cards ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    backdrop-filter: blur(12px);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    opacity: 0; transition: opacity var(--transition);
}
.stat-card {
    box-shadow: var(--shadow-sm);
}
.stat-card:hover::before { opacity: 1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 4px; color: var(--text-primary); }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== Page Layout ===== */
.page-container { max-width: 1600px; margin: 0 auto; padding: 32px 40px; }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.page-subtitle { font-size: 16px; color: var(--text-secondary); }

/* ===== Hero Section ===== */
.hero {
    text-align: center; padding: 120px 32px 80px;
    background: var(--bg-primary);
    position: relative; overflow: hidden;
}
.hero-title {
    font-size: 56px; font-weight: 900; line-height: 1.08;
    margin-bottom: 24px; letter-spacing: -0.03em;
    position: relative; z-index: 2;
}
.hero-title .accent {
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 50%, #7c3aed 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px; color: var(--text-secondary);
    max-width: 580px; margin: 0 auto 40px;
    line-height: 1.7; position: relative; z-index: 2;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; position: relative; z-index: 2;
}

/* ===== Sidebar Layout ===== */
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); max-width: 1600px; margin: 0 auto; }
.sidebar {
    background: var(--bg-secondary); border-right: 1px solid var(--border);
    padding: 24px 16px; position: sticky; top: 72px;
    height: calc(100vh - 72px); overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--text-muted);
    padding: 0 12px; margin-bottom: 8px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: all var(--transition);
}
.sidebar-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.sidebar-link.active {
    color: var(--accent); background: var(--accent-light);
    font-weight: 600;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-content { padding: 32px; }

/* ===== Pricing Cards ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px; text-align: center;
    backdrop-filter: blur(12px);
    transition: all var(--transition); position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute; inset: 0; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(0,0,0,0.01), transparent);
    pointer-events: none;
}
.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
    background: rgba(37, 99, 235, 0.04);
}
.pricing-badge {
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff; padding: 6px 20px;
    border-radius: 0 0 12px 12px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.3px;
}
.pricing-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; margin-top: 8px; }
.pricing-price { font-size: 36px; font-weight: 800; margin-bottom: 4px; color: var(--text-primary); }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.pricing-feature svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 12px 20px; font-size: 14px; font-weight: 500;
    color: var(--text-muted); cursor: pointer; border: none; background: none;
    border-bottom: 2px solid transparent; transition: all var(--transition);
    font-family: var(--font);
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== Alert / Toast ===== */
.alert {
    padding: 14px 18px; border-radius: var(--radius-sm);
    font-size: 14px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(5, 150, 105, 0.08); border: 1px solid rgba(5,150,105,0.2); color: #059669; }
.alert-warning { background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217,119,6,0.2); color: #d97706; }
.alert-danger { background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220,38,38,0.2); color: #dc2626; }
.alert-info { background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37,99,235,0.2); color: #2563eb; }

.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    padding: 14px 24px; border-radius: var(--radius-sm);
    background: var(--bg-tertiary); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text-primary);
    transform: translateY(100px); opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); width: 90%; max-width: 500px;
    max-height: 80vh; overflow-y: auto; padding: 32px;
    box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* ===== Empty State ===== */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ===== Loading ===== */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 60px; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; }
.pagination button {
    padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 13px; cursor: pointer; transition: all var(--transition);
    font-family: var(--font);
}
.pagination button:hover { border-color: var(--accent); color: var(--text-primary); }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== Code Block ===== */
.code-block {
    background: #0d1117; border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 24px; overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px; line-height: 1.75; color: #c9d1d9;
}
.code-block .keyword { color: #ff7b72; }
.code-block .string { color: #a5d6ff; }
.code-block .comment { color: #484f58; }
.code-block .param { color: #ffa657; }

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Mobile Nav — Hamburger ===== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    margin-left: 8px;
}
.nav-burger:hover { background: rgba(255, 255, 255, 0.06); }
.nav-burger-line {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.nav-burger.open .nav-burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open .nav-burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open .nav-burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 199;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    z-index: 200;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 16px 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-logo {
    font-size: 22px; font-weight: 800;
    color: var(--text-primary); text-decoration: none;
}
.mobile-nav-close {
    background: none; border: none;
    color: var(--text-secondary); cursor: pointer;
    padding: 8px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.mobile-nav-close:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }

.mobile-nav a {
    display: flex; align-items: center;
    padding: 13px 14px;
    color: var(--text-secondary); text-decoration: none;
    font-size: 15px; font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.mobile-nav a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

.mobile-nav-divider {
    height: 1px; background: var(--border);
    margin: 8px 0;
}

.mobile-nav-auth {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav-auth .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .header-inner { padding: 0 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 64px; }
    .nav { display: none; }
    .nav-burger { display: flex; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero { padding: 80px 20px 60px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { justify-content: center; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .sidebar-content { padding: 16px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .page-container { padding: 20px 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.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; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hidden { display: none !important; }

/* ===== Page Background Animation (aurora + grid) ===== */
.page-aurora {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.page-aurora::before,
.page-aurora::after {
    content: '';
    position: absolute;
    width: 140%; height: 50%;
    border-radius: 50%;
    filter: blur(120px);
    animation: pageAuroraShift 25s ease-in-out infinite alternate;
}
.page-aurora::before {
    top: -30%; left: -20%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, rgba(99,102,241,0.03) 40%, transparent 70%);
}
.page-aurora::after {
    bottom: -25%; right: -20%;
    background: radial-gradient(ellipse, rgba(124,58,237,0.04) 0%, rgba(37,99,235,0.02) 40%, transparent 70%);
    animation-delay: -12s;
    animation-direction: alternate-reverse;
}
@keyframes pageAuroraShift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, -2%) scale(1.03); }
    100% { transform: translate(-2%, 1%) scale(0.98); }
}

.page-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 70%);
}

/* Reveal animation for scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
