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

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

:root {
  --bg: #0a0a0b;
  --bg-card: rgba(24,24,27,0.5);
  --bg-input: rgba(0,0,0,0.2);
  --border: rgba(255,255,255,0.1);
  --border-hover: rgba(0,201,122,0.3);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --primary: #00c97a;
  --primary-dark: #00a060;
  --primary-glow: rgba(0,201,122,0.4);
  --destructive: #ef4444;
  --success-bg: rgba(16,185,129,0.2);
  --success-text: #34d399;
  --warning-bg: rgba(245,158,11,0.2);
  --warning-text: #fbbf24;
  --danger-bg: rgba(239,68,68,0.2);
  --danger-text: #f87171;
  --sidebar-w: 256px;
  --radius: 12px;
}

html { font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; border-radius: 0.75rem; padding: 0.625rem 1.25rem; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: #000; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 0 20px var(--primary-glow); }
.btn-glow { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary-glow); border-color: var(--primary); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.05); }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-sm { font-size: 0.8125rem; padding: 0.375rem 0.875rem; border-radius: 0.5rem; }
.btn-lg { font-size: 1.125rem; padding: 0.875rem 2rem; border-radius: 1rem; }
.btn-xl { font-size: 1.25rem; padding: 1rem 2.5rem; border-radius: 1.5rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(8px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.5rem 1.5rem 0; }
.card:hover { border-color: var(--border-hover); }

.input, .textarea, .select { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.625rem 0.875rem; color: var(--text); font-size: 0.875rem; font-family: inherit; outline: none; height: 2.75rem; transition: border-color 0.2s; }
textarea.input, .textarea { height: auto; min-height: 2.75rem; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,201,122,0.15); }
.textarea { height: auto; min-height: 5rem; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }
label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.375rem; }
.form-group { margin-bottom: 1rem; }

.badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 9999px; text-transform: capitalize; }
.badge-primary { background: rgba(0,201,122,0.15); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.badge-secondary { background: rgba(255,255,255,0.08); color: var(--text-muted); }

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 0.75rem 1rem; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 0.8125rem; }
td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
tr:hover td { background: rgba(255,255,255,0.02); }

.navbar { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.75rem; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; }
.navbar-brand .logo { width: 2rem; height: 2rem; background: linear-gradient(135deg, var(--primary), #00e68a); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #000; font-size: 1rem; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.navbar-links a:hover, .navbar-links a.active { color: var(--text); }

.sidebar { position: fixed; top: 4rem; left: 0; bottom: 0; width: var(--sidebar-w); background: rgba(10,10,11,0.95); backdrop-filter: blur(16px); border-right: 1px solid var(--border); padding: 1.5rem 1rem; overflow-y: auto; z-index: 40; }
.sidebar-section { margin-bottom: 2rem; }
.sidebar-title { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: all 0.15s; }
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: var(--primary); background: rgba(0,201,122,0.08); }
.sidebar-link.admin-link:hover { color: #f87171; }
.sidebar-link.admin-link.active { color: #f87171; background: rgba(239,68,68,0.08); }

.main-with-sidebar { margin-left: var(--sidebar-w); padding: 2rem; min-height: calc(100vh - 4rem); }

.hero { text-align: center; padding: 6rem 1rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,201,122,0.08) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; position: relative; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 40rem; margin: 0 auto 2.5rem; position: relative; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; position: relative; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; }
.stat-card .stat-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-cols-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger-text); }
.text-warning { color: var(--warning-text); }
.text-white { color: #fff; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-display { font-family: 'Outfit', sans-serif; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.glass { background: rgba(10,10,11,0.6); backdrop-filter: blur(16px); border: 1px solid var(--border); }

.alert { padding: 1rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; }
.alert-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(16,185,129,0.2); }

.pricing-card { text-align: center; transition: transform 0.2s, border-color 0.2s; }
.pricing-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.pricing-card .price { font-size: 3rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; text-align: left; }
.pricing-card li { padding: 0.5rem 0; font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.pricing-card li::before { content: '✓'; color: var(--primary); font-weight: 700; }

.feature-card { padding: 1.5rem; transition: border-color 0.2s; }
.feature-card:hover { border-color: var(--border-hover); }
.feature-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }

.lander-hero { padding: 5rem 1rem; text-align: center; position: relative; }
.lander-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,201,122,0.1) 0%, transparent 70%); }
.lander-hero h1 { font-size: 4rem; font-weight: 800; letter-spacing: -0.02em; position: relative; }
.lander-hero .subtitle { font-size: 1.25rem; color: var(--text-muted); margin: 1rem 0 2rem; position: relative; }
.lander-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; position: relative; }
.lander-badge { display: inline-block; border: 1px solid var(--primary); color: var(--primary); font-size: 0.875rem; font-weight: 600; padding: 0.375rem 1.25rem; border-radius: 9999px; margin-bottom: 1.5rem; position: relative; }

.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(0,201,122,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; margin: 0 auto 1rem; }

.cta-section { padding: 5rem 1rem; text-align: center; position: relative; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,201,122,0.03); }

.footer { border-top: 1px solid var(--border); padding: 3rem 1rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.8125rem; }

.upgrade-card { text-align: center; }
.upgrade-card.current { border-color: var(--primary); }

.data-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 50rem; margin: 2rem auto; }
.data-strip-item { padding: 1.5rem; text-align: center; }
.data-strip-item .ds-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.data-strip-item .ds-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.search-bar { display: flex; gap: 0.75rem; max-width: 36rem; margin: 0 auto 2rem; }
.search-bar .input { border-radius: 9999px; padding-left: 1.25rem; }
.search-bar .btn { border-radius: 9999px; }

.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { display: none; }
  .main-with-sidebar { margin-left: 0; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .data-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .lander-hero h1 { font-size: 2.5rem; }
  .navbar-links { gap: 0.75rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; }
}
