/* ================================================
   Minecraft AI API Hub — Premium Portal Styling
   Theme: Green-700 Professional API Portal
   ================================================ */

:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-green:
    0 0 0 1px rgba(21, 128, 61, 0.1), 0 4px 20px rgba(21, 128, 61, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAVIGATION ---- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.logo-icon.small {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--green-700);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--gray-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-800);
}

.user-dot {
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--green-700);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: 0.875rem;
}

.btn-logout:hover {
  background: var(--green-100);
}

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-ghost:hover {
  border-color: var(--gray-400);
  color: var(--text-primary);
  background: var(--gray-50);
}

.btn-primary {
  background: var(--green-700);
  color: white;
  border: none;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 4rem 6rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(21, 128, 61, 0.25);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--green-400);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.title-gradient {
  background: linear-gradient(
    135deg,
    var(--green-700) 0%,
    var(--green-500) 50%,
    var(--green-400) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: #475569;
  font-size: 1.125rem;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--green-600);
  color: white;
  border: none;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 4px 16px rgba(21, 128, 61, 0.35);
}

.btn-hero-primary:hover {
  background: var(--green-500);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 24px rgba(21, 128, 61, 0.45);
}

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #475569;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #2a333e;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-hero-ghost1 {
  background: rgba(255, 255, 255, 0.05);
  color: #dddddd;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-hero-ghost1:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #9d9a9a;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* Terminal */
.terminal-wrapper {
  position: relative;
  z-index: 2;
}

.terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(21, 128, 61, 0.1),
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(21, 128, 61, 0.08);
}

.terminal-header {
  background: #161b22;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dots {
  display: flex;
  gap: 0.375rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}

.term-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #4b5563;
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem 1.75rem;
  min-height: 260px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.term-line {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.term-prompt {
  color: var(--green-500);
  user-select: none;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.term-cmd {
  color: #e2e8f0;
}

.term-output.success {
  color: var(--green-400);
}

.term-output.ai {
  color: #a5b4fc;
  line-height: 1.6;
  font-size: 0.8125rem;
}

.term-cursor {
  color: var(--green-500);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.4s forwards;
}
.delay-1 {
  animation-delay: 1.2s;
}
.delay-2 {
  animation-delay: 2.2s;
}
.delay-3 {
  animation-delay: 3s;
}
.delay-4 {
  animation-delay: 4s;
}
.delay-5 {
  animation-delay: 5s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: white;
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
}

.trust-logo i {
  color: var(--green-700);
  font-size: 0.75rem;
}

/* ---- SECTIONS ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-large {
  grid-column: 1 / 3;
  grid-row: 1;
}

.card-wide {
  grid-column: 1 / 3;
  grid-row: 2;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-code {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-comment {
  color: #6b7280;
}
.code-keyword {
  color: #86efac;
}
.code-string {
  color: #67e8f9;
}

.feature-tag-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ftag {
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  border: 1px solid var(--green-200);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.2);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-800);
}

.sec-dot {
  width: 7px;
  height: 7px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Performance bars */
.perf-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.perf-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.bar-bg {
  height: 6px;
  background: var(--gray-100);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
  border-radius: 100px;
  animation: growBar 1.5s ease-out both;
}

@keyframes growBar {
  from {
    width: 0 !important;
  }
}

.perf-val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--green-700);
  font-size: 0.75rem;
}

/* ---- DOCS SECTION ---- */
.docs-section {
  background: var(--gray-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Code block */
.code-block,
.guide-code-block {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.code-header {
  background: #161b22;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
  display: flex;
  gap: 0.375rem;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ff5f57;
}
.code-dots span:nth-child(2) {
  background: #febc2e;
}
.code-dots span:nth-child(3) {
  background: #28c840;
}

.code-filename {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: #4b5563;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.code-content {
  padding: 1.5rem 1.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  line-height: 2;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 0;
}

.c-comment {
  color: #4b5563;
}
.c-cmd {
  color: #86efac;
}
.c-str {
  color: #67e8f9;
}
.c-var {
  color: #fbbf24;
}

/* ---- CTA ---- */
.cta-section {
  background: #0a0f0c;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(21, 128, 61, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: #94a3b8;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
.main-footer {
  background: #f4f4f4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-copy {
  color: #4b5563;
  font-size: 0.8125rem;
  flex: 1;
  text-align: center;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #4b5563;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

/* ---- DASHBOARD ---- */
.dashboard-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--gray-50);
}

.dashboard-sidebar {
  background: white;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-link i {
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
}

.sidebar-link:hover {
  background: var(--gray-50);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Dashboard Main */
.dashboard-main {
  padding: 2.5rem;
  max-width: 900px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.dash-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.dash-title span {
  color: var(--green-700);
}

.dash-subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.dash-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green-800);
  white-space: nowrap;
}

.status-dot.green {
  background: var(--green-500);
}

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-green);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-card-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.stat-card-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* OTP Card */
.otp-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.otp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.otp-card-header h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.otp-card-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.otp-display-wrap {
  animation: fadeUp 0.3s ease-out;
}

.otp-display {
  background: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.875rem;
}

.otp-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  white-space: nowrap;
}

.otp-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-400);
  letter-spacing: 0.15em;
  flex: 1;
  text-align: center;
}

.copy-otp-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-otp-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

.otp-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.5;
}

.otp-warning i {
  color: #f97316;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Connection guide */
.conn-guide {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.guide-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.guide-code-block {
  margin-bottom: 1.25rem;
}

.guide-info-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.info-chip i {
  color: var(--green-700);
  font-size: 0.75rem;
}

/* Admin Requests */
.admin-request-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.admin-request-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-request-header h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.admin-request-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 560px;
}

.admin-refresh-btn {
  white-space: nowrap;
}

.admin-request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.request-summary-chip {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.request-summary-chip span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.request-summary-chip small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.request-summary-chip.total {
  background: white;
}

.request-summary-chip.pending {
  background: #fff7ed;
  border-color: #fed7aa;
}

.request-summary-chip.pending span {
  color: #9a3412;
}

.request-summary-chip.approved {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.request-summary-chip.approved span {
  color: #166534;
}

.request-summary-chip.rejected {
  background: #fef2f2;
  border-color: #fecaca;
}

.request-summary-chip.rejected span {
  color: #991b1b;
}

.admin-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-request-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--gray-50);
  padding: 1rem 1.125rem;
}

.admin-request-main {
  min-width: 0;
}

.admin-request-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-request-email {
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.admin-request-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.admin-request-purpose {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.request-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.request-status-pending {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.request-status-approved {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.request-status-rejected {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.admin-empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  background: #fcfcfc;
}

/* ---- MODALS ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 0.625rem;
}

.modal-header h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.field-group {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.field-input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.field-input {
  width: 100%;
  padding: 0.75rem 0.875rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.08);
}

.field-input::placeholder {
  color: var(--text-muted);
}

.field-input.textarea {
  padding: 0.75rem 0.875rem;
  resize: vertical;
  min-height: 100px;
}

.btn-modal-submit {
  width: 100%;
  background: var(--green-700);
  color: white;
  border: none;
  padding: 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-modal-submit:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
}

.modal-footer-text {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-footer-text a {
  color: var(--green-700);
  font-weight: 500;
  text-decoration: none;
}

.modal-footer-text a:hover {
  text-decoration: underline;
}

/* ---- TOAST ---- */
/* ---- WIKI SECTION ---- */
.wiki-section {
  padding: 5rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.wiki-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--gray-800);
  padding: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.wiki-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at right center,
    rgba(21, 128, 61, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.wiki-content {
  flex: 1;
  max-width: 500px;
}

.wiki-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.2;
}

.wiki-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.wiki-desc strong {
  color: var(--green-700);
}

.wiki-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(21, 128, 61, 0.1);
  color: var(--green-400);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

.wiki-link-btn:hover {
  background: rgba(21, 128, 61, 0.15);
  border-color: rgba(21, 128, 61, 0.3);
  transform: translateY(-1px);
}

.wiki-logo-wrapper {
  flex-shrink: 0;
}

.wiki-logo-img {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s;
}
.wiki-logo-img:hover {
  opacity: 1;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gray-900);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1rem;
}
.toast.success .toast-icon {
  color: var(--green-400);
}
.toast.error .toast-icon {
  color: #f87171;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 4rem;
    gap: 3rem;
  }

  .terminal-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-large,
  .card-wide {
    grid-column: 1 / 3;
  }

  .steps-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wiki-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .admin-request-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .terminal-wrapper {
    font-size: 0.85rem; /* Make terminal text slightly smaller on mobile */
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .card-large,
  .card-wide {
    grid-column: 1;
  }

  .wiki-content {
    max-width: 100%;
  }

  .wiki-logo-img {
    max-width: 150px;
  }

  .admin-request-card {
    padding: 1.25rem;
  }

  .admin-request-header {
    flex-direction: column;
  }

  .admin-request-summary {
    grid-template-columns: 1fr;
  }

  .admin-request-item {
    padding: 0.875rem 1rem;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .otp-card-header {
    flex-direction: column;
  }

  .otp-code {
    font-size: 1.375rem;
    letter-spacing: 0.1em;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
