@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090b;
  --fg: #fafafa;
  --card: #0f0f12;
  --card-60: rgba(15,15,18,0.6);
  --primary: #06b6d4;
  --primary-10: rgba(6,182,212,0.1);
  --primary-20: rgba(6,182,212,0.2);
  --accent: #6366f1;
  --destructive: #ff3366;
  --muted: #9a9aa8;
  --emerald: #34d399;
  --emerald-dark: #059669;
  --yellow: #facc15;
  --yellow-dark: #ca8a04;
  --border: rgba(255,255,255,0.05);
  --border-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);
  --white-10: rgba(255,255,255,0.1);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

::selection { background: rgba(6,182,212,0.3); }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 28rem; margin: 0 auto; padding: 0 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.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; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: ui-monospace, monospace; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted); }
.text-emerald { color: var(--emerald); }
.text-yellow { color: var(--yellow); }
.text-destructive { color: var(--destructive); }
.text-accent { color: var(--accent); }

.bg-dark { background-color: var(--bg); }

.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }

.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-32 { padding-top: 8rem; }
.pt-16 { padding-top: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.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; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-primary { border-color: var(--primary-20); }
.border-destructive { border-color: rgba(255,51,102,0.5); }
.border-white-10 { border-color: var(--white-10); }

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.glass-card {
  background: var(--card-60);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.glass-panel {
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border-bottom: 1px solid var(--border);
}

.text-glow { text-shadow: 0 0 20px rgba(6,182,212,0.4); }

.gradient-text {
  background: linear-gradient(to right, var(--primary), #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-emerald {
  background: linear-gradient(to right, var(--emerald), #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,11,0.6), rgba(9,9,11,0.9), var(--bg));
}

nav.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 4rem;
}
nav.top-nav .nav-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.75rem; font-weight: 600;
  font-size: 0.875rem; font-family: var(--font-sans); cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none; line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(to right, var(--primary), #3b82f6);
  color: #fff; box-shadow: 0 4px 14px rgba(6,182,212,0.2);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(6,182,212,0.3); filter: brightness(1.1); }
.btn-outline {
  background: transparent; color: var(--fg);
  border: 1px solid var(--white-10);
}
.btn-outline:hover { background: var(--white-5); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: #fff; background: var(--white-5); }
.btn-destructive { background: rgba(255,51,102,0.1); color: var(--destructive); border: 1px solid rgba(255,51,102,0.3); }
.btn-destructive:hover { background: rgba(255,51,102,0.2); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.input, .select {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem;
  color: var(--fg); font-family: var(--font-sans); transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.1);
}
.input::placeholder { color: var(--muted); }
.label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.5rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
thead { background: var(--white-5); }
thead th { padding: 1rem 1.5rem; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--white-10); }
tbody td { padding: 1rem 1.5rem; }
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:hover { background: var(--white-5); }
tbody tr:last-child { border-bottom: none; }

.badge {
  display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-success { background: rgba(52,211,153,0.15); color: var(--emerald); }
.badge-warning { background: rgba(250,204,21,0.15); color: var(--yellow); }
.badge-danger { background: rgba(255,51,102,0.15); color: var(--destructive); }
.badge-info { background: var(--primary-10); color: var(--primary); }
.badge-neutral { background: var(--white-5); color: var(--muted); }

.stat-card {
  background: var(--card-60); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 1.5rem; padding: 1.5rem;
}
.stat-card .stat-label { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }
.stat-card .stat-value { font-size: 1.875rem; font-weight: 700; color: #fff; font-family: var(--font-display); }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
}
.icon-box-primary { background: var(--primary-10); color: var(--primary); }
.icon-box-emerald { background: rgba(52,211,153,0.1); color: var(--emerald); }
.icon-box-accent { background: rgba(99,102,241,0.1); color: var(--accent); }

.fraud-meter {
  height: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.05); overflow: hidden;
}
.fraud-meter-fill {
  height: 100%; border-radius: 9999px; transition: width 0.3s;
}
.fraud-low { background: var(--emerald); }
.fraud-medium { background: var(--yellow); }
.fraud-high { background: var(--destructive); }

.feature-card {
  background: var(--card-60); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 1rem; padding: 2rem;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--primary-20); }

.pricing-card {
  background: var(--card-60); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem;
}
.pricing-card.highlight {
  border-color: var(--primary-20);
  box-shadow: 0 0 0 1px var(--primary-20);
}

.check-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.check-icon { flex-shrink: 0; margin-top: 0.125rem; }
.check-icon-primary { color: var(--primary); }
.check-icon-emerald { color: var(--emerald); }

.section-divider { border-top: 1px solid var(--border); }

.sidebar {
  width: 18rem; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  background: rgba(9,9,11,0.8); backdrop-filter: blur(48px); -webkit-backdrop-filter: blur(48px);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
}
.sidebar-logo { padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.sidebar-logo img { width: 2.5rem; height: 2.5rem; }
.sidebar-logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }

.sidebar-user {
  margin: 0 1.5rem 1rem; padding: 1rem; background: var(--white-5);
  border-radius: 0.75rem; border: 1px solid var(--border);
}
.sidebar-user-email { font-size: 0.875rem; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

.sidebar nav { flex: 1; padding: 1rem; overflow-y: auto; }
.sidebar nav .space-y-1 > * + * { margin-top: 0.25rem; }

.nav-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500;
  color: var(--muted); transition: all 0.2s; text-decoration: none;
  border: 1px solid transparent;
}
.nav-link:hover { color: #fff; background: var(--white-5); }
.nav-link.active {
  background: var(--primary-10); color: var(--primary);
  border-color: var(--primary-20); box-shadow: 0 0 15px rgba(6,182,212,0.1);
}
.nav-link svg { width: 1.25rem; height: 1.25rem; }

.sidebar-footer { padding: 1rem; margin-top: auto; }

.main-content { margin-left: 18rem; padding: 2rem 3rem; }

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.page-header p { color: var(--muted); font-size: 0.875rem; }
.page-header-actions { display: flex; align-items: center; gap: 0.75rem; }

.alert {
  padding: 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.alert-error { background: rgba(255,51,102,0.1); border: 1px solid rgba(255,51,102,0.2); color: var(--destructive); }
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--emerald); }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.empty-state {
  padding: 3rem; text-align: center; color: var(--muted);
  background: var(--card-60); border-radius: 1.5rem;
}

.mobile-nav { display: none; }

@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-nav {
    display: flex; position: fixed; top: 0; left: 0; right: 0; height: 4rem;
    z-index: 50; align-items: center; justify-content: space-between; padding: 0 1rem;
    background: rgba(9,9,11,0.9); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border);
  }
  .mobile-nav-menu {
    position: fixed; top: 4rem; left: 0; right: 0; bottom: 0;
    background: rgba(9,9,11,0.95); backdrop-filter: blur(24px); padding: 1rem;
    z-index: 40; overflow-y: auto; border-top: 1px solid var(--border);
  }
  .mobile-nav-menu a {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    border-radius: 0.75rem; font-size: 1.125rem; font-weight: 500; color: #fff;
  }
  .mobile-nav-menu a:hover { background: var(--white-5); }
  .main-content { margin-left: 0; padding: 5rem 1rem 2rem; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .text-5xl, .text-7xl { font-size: 2.25rem; }
  .text-4xl { font-size: 1.875rem; }
  .py-24 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-32 { padding-top: 4rem; padding-bottom: 4rem; }
  .pt-32 { padding-top: 6rem; }
  .hero-actions { flex-direction: column; }
  .p-16 { padding: 2rem; }
  .p-12 { padding: 2rem; }
  .p-10 { padding: 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cols-4, .cols-5 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

.list-none { list-style: none; }
.object-cover { object-fit: cover; }
.opacity-20 { opacity: 0.2; }
.pointer-events-none { pointer-events: none; }
.italic { font-style: italic; }
.underline { text-decoration: underline; }

.bg-white-5 { background: var(--white-5); }
.bg-primary-10 { background: var(--primary-10); }
.bg-emerald-10 { background: rgba(52,211,153,0.1); }
.bg-yellow-10 { background: rgba(250,204,21,0.1); }
.bg-destructive-10 { background: rgba(255,51,102,0.1); }
.bg-black-50 { background: rgba(0,0,0,0.5); }
.bg-card { background: var(--card); }

.border-primary-20 { border-color: var(--primary-20); }
.border-emerald-20 { border-color: rgba(52,211,153,0.2); }
.border-yellow-20 { border-color: rgba(250,204,21,0.2); }
.border-destructive-20 { border-color: rgba(255,51,102,0.2); }

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
@media (max-width: 768px) {
  .col-span-2, .col-span-3 { grid-column: span 1; }
}
