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

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --card-bg: rgba(17, 24, 39, 0.72);
  --card-hover: rgba(31, 41, 55, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(99, 102, 241, 0.45);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-color: #6366f1;
  --accent-hover: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 35%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #10b981; }
  50% { transform: scale(1.25); opacity: 0.85; box-shadow: 0 0 18px #10b981; }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.1); }
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  word-break: break-word;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: inherit;
  word-break: normal;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyan-text {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 100%;
  line-height: 1.4;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

/* Navbar (Unified with Parse Everything) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  position: relative;
  z-index: 1002;
}

.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 1003;
}

.logo {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-color);
}

.logo-subpill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-item-dropdown:hover .nav-dropdown-trigger {
  color: var(--text-primary);
}

.nav-dropdown-trigger .dropdown-chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 330px;
  background: #090e1c;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  z-index: 1002;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}

.dropdown-link:hover {
  background: rgba(99, 102, 241, 0.14);
}

.dropdown-icon {
  font-size: 1.15rem;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-link-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
}

.dropdown-link-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cluster-pill-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.nav-backdrop {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 64px 0 48px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  height: 360px;
  background: var(--accent-gradient);
  opacity: 0.22;
  filter: blur(120px);
  pointer-events: none;
  border-radius: 50%;
  animation: floatGlow 8s infinite ease-in-out;
}

.hero-title {
  font-size: clamp(2.15rem, 4.3vw, 3.7rem);
  line-height: 1.14;
  margin-bottom: 18px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Hero Sandbox Card */
.hero-sandbox-card {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px -12px rgba(99, 102, 241, 0.28);
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 24px;
  text-align: left;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-sandbox-card:hover {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 30px 70px -10px rgba(99, 102, 241, 0.36);
}

/* Stats Counter Grid */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 40px 0 48px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Sections & Feature Grid */
.section {
  padding: 72px 0;
}

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

.section-title {
  font-size: clamp(1.85rem, 3.3vw, 2.65rem);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.06rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 14px 32px -8px rgba(99, 102, 241, 0.22);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #818cf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-link:hover {
  color: #a5b4fc;
}

/* Code Window */
.code-window {
  background: #060913;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.code-header {
  background: #0d1222;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.code-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
}

.code-tabs::-webkit-scrollbar { display: none; }

.code-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: all 0.2s;
  user-select: none;
}

.code-tab.active {
  background: rgba(99, 102, 241, 0.22);
  color: var(--text-primary);
  font-weight: 600;
}

.code-body {
  padding: 22px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.62;
  color: #e5e7eb;
}

.code-body pre {
  white-space: pre;
  word-break: normal;
  margin: 0;
}

.code-meta-strip {
  background: #0d1222;
  border-top: 1px solid var(--border-color);
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Tables */
.table-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
}

.comparison-table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: rgba(13, 18, 34, 0.95);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.comparison-table td {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-col {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 14px 32px -8px rgba(99, 102, 241, 0.2);
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(17, 24, 39, 0.88) 100%);
  box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.28);
}

.pricing-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 14px 0;
}

.pricing-price span {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 14px 0 26px;
  flex-grow: 1;
}

.pricing-features li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: #10b981;
  font-weight: 800;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-answer {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.94rem;
}

/* Legal Cards */
.legal-container {
  max-width: 860px;
  margin: 56px auto;
  padding: 0 24px;
}

.legal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-card h1 {
  color: var(--text-primary);
  font-size: 2.15rem;
  margin-bottom: 8px;
}

.legal-card h2 {
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-card p { margin-bottom: 14px; }
.legal-card ul { margin-left: 24px; margin-bottom: 16px; }
.legal-card li { margin-bottom: 8px; }

/* Dashboard Layout & Unified Console */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 77px);
}

.sidebar {
  background: #0d1222;
  border-right: 1px solid var(--border-color);
  padding: 28px 0;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li a,
.sidebar-menu li button {
  width: 100%;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  text-align: left;
  font-family: inherit;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active,
.sidebar-menu li button:hover,
.sidebar-menu li button.active {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
  border-left-color: var(--accent-color);
}

.dashboard-mobile-nav {
  display: none;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  background: #090e1c;
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.dashboard-mobile-nav::-webkit-scrollbar { display: none; }

.mobile-nav-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.mobile-nav-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--accent-color);
  color: var(--text-primary);
  font-weight: 600;
}

.main-content {
  padding: 36px;
  min-width: 0;
}

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
}

.stat-card-title {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.stat-card-value {
  font-size: 1.85rem;
  font-weight: 800;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: #060913;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--accent-color);
}

.token-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.token-input {
  background: #060913;
  border: 1px solid var(--border-color);
  color: #10b981;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  width: 100%;
  max-width: 420px;
  outline: none;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(6, 9, 19, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.toggle-row input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: #6366f1;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: #111827;
  border: 1px solid var(--accent-color);
  color: var(--text-primary);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s ease;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 0 36px;
  background: #070a12;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .nav-collapse,
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    z-index: 1002;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-container.mobile-open .nav-collapse {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 76px);
    background: rgba(9, 14, 28, 0.99);
    backdrop-filter: blur(28px);
    padding: 16px 20px 36px;
    overflow-y: auto;
    z-index: 1001;
    animation: slideDown 0.22s ease-out;
  }

  .nav-container.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: stretch;
  }

  .nav-container.mobile-open .nav-item-dropdown {
    width: 100%;
    display: block;
    margin-bottom: 6px;
  }

  .nav-container.mobile-open .nav-dropdown-trigger {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    padding: 10px 4px 6px;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-container.mobile-open .nav-dropdown-trigger .dropdown-chevron { display: none; }

  .nav-container.mobile-open .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 0;
  }

  .nav-container.mobile-open .dropdown-link-desc { display: none; }

  .nav-container.mobile-open .nav-links > a {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
  }

  .nav-container.mobile-open .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .nav-container.mobile-open .nav-actions .btn {
    width: 100%;
    padding: 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-mobile-nav { display: flex; }
  .main-content { padding: 20px 16px; }
  .table-scroll-hint { display: block; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 32px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .legal-card { padding: 24px 18px; }
}
