/* ==========================================================================
   Figma MCP Server Hub & Devin Skill - Green & White Premium Design System
   Primary Accent: #00AB4E | Secondary Accents: #72BF44, #BFD730, #FFC54F
   Background: #FFFFFF (White)
   ========================================================================== */

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

:root {
  /* Brand Accents */
  --accent-primary: #00AB4E;
  --accent-secondary: #72BF44;
  --accent-lime: #BFD730;
  --accent-amber: #FFC54F;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00AB4E 0%, #72BF44 100%);
  --gradient-fresh: linear-gradient(135deg, #00AB4E 0%, #72BF44 60%, #BFD730 100%);
  --gradient-warm: linear-gradient(135deg, #FFC54F 0%, #BFD730 100%);
  --gradient-subtle: linear-gradient(145deg, #ffffff 0%, #f4faf6 100%);

  /* Backgrounds (White & Soft Mint Whites) */
  --bg-main: #ffffff;
  --bg-surface: #f8fbf9;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f9f5;
  --bg-tag: rgba(0, 171, 78, 0.08);
  --bg-code: #0f1c14;

  /* Borders */
  --border-light: rgba(0, 171, 78, 0.14);
  --border-medium: rgba(0, 171, 78, 0.3);
  --border-focus: #00AB4E;
  --border-amber: rgba(255, 197, 79, 0.4);

  /* Text Colors */
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-on-accent: #ffffff;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 171, 78, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 171, 78, 0.09);
  --shadow-lg: 0 16px 36px rgba(0, 171, 78, 0.14);
  --shadow-glow: 0 4px 20px rgba(0, 171, 78, 0.3);
  --shadow-amber: 0 4px 16px rgba(255, 197, 79, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Gentle Nature & Green Atmospheric Ambient Glows */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
}

body::before {
  top: -120px;
  right: -100px;
  background: radial-gradient(circle, #00AB4E, #72BF44);
}

body::after {
  bottom: 0;
  left: -150px;
  background: radial-gradient(circle, #BFD730, #FFC54F);
}

/* App Container */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ==========================================================================
   Header Navbar
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 32px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-title);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
  color: #ffffff;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-title);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 171, 78, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 171, 78, 0.3);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 171, 78, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  color: var(--accent-primary);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-accent-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(191, 215, 48, 0.15);
  color: #4b6600;
  border: 1.5px solid rgba(191, 215, 48, 0.5);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-accent-lime:hover {
  background: rgba(191, 215, 48, 0.3);
  transform: translateY(-2px);
}

.btn-accent-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 197, 79, 0.18);
  color: #925400;
  border: 1.5px solid var(--border-amber);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-accent-amber:hover {
  background: rgba(255, 197, 79, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 48px 40px;
  background: var(--gradient-subtle);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(114, 191, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hero-tag.green {
  background: rgba(0, 171, 78, 0.1);
  color: var(--accent-primary);
  border-color: rgba(0, 171, 78, 0.3);
}

.hero-tag.leaf {
  background: rgba(114, 191, 68, 0.15);
  color: #437920;
  border-color: rgba(114, 191, 68, 0.4);
}

.hero-tag.lime {
  background: rgba(191, 215, 48, 0.2);
  color: #557500;
  border-color: rgba(191, 215, 48, 0.5);
}

.hero-tag.amber {
  background: rgba(255, 197, 79, 0.2);
  color: #925400;
  border-color: var(--border-amber);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-title);
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--gradient-fresh);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 840px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* Quick Action Download & Config Box */
.hero-cta-card {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1.3fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 960px) {
  .hero-cta-card {
    grid-template-columns: 1fr;
  }
}

.skill-info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skill-icon-avatar {
  font-size: 32px;
  width: 64px;
  height: 64px;
  background: rgba(0, 171, 78, 0.1);
  border: 1.5px solid rgba(0, 171, 78, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.skill-info-details h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-title);
}

.skill-info-details p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.skill-path-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-weight: 600;
}

.skill-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-normal);
}

.btn-hero-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 171, 78, 0.45);
}

.btn-hero-download:active {
  transform: translateY(0);
}

.btn-hero-copy-json {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0, 171, 78, 0.08);
  color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-hero-copy-json:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.tabs-navigation {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--accent-primary);
  background: var(--bg-surface);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 171, 78, 0.35);
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease forwards;
}

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

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

/* ==========================================================================
   Section Cards & Components
   ========================================================================== */
.content-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  transition: var(--transition-normal);
}

.content-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-title);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Prompt Box */
.prompt-container {
  background: linear-gradient(145deg, rgba(255, 197, 79, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1.5px solid var(--border-amber);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #925400;
}

.prompt-body {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-title);
  line-height: 1.65;
  white-space: pre-wrap;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Interactive Checklist with Progress
   ========================================================================== */
.checklist-container {
  margin-top: 20px;
}

.progress-wrapper {
  margin-bottom: 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-title);
}

.progress-bar-bg {
  height: 10px;
  background: rgba(0, 171, 78, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.checklist-group-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 20px 0 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.checklist-item.checked {
  background: rgba(0, 171, 78, 0.06);
  border-color: rgba(0, 171, 78, 0.35);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
  background: #ffffff;
  transition: var(--transition-fast);
}

.checklist-item.checked .custom-checkbox {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.custom-checkbox::after {
  content: '✓';
  color: white;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-fast);
}

.checklist-item.checked .custom-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

.checklist-text {
  font-size: 0.93rem;
  color: var(--text-body);
}

.checklist-item.checked .checklist-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ==========================================================================
   Code Blocks & Snippets (Dark & Crisp contrast with #00AB4E headers)
   ========================================================================== */
.code-block-wrapper {
  background: var(--bg-code);
  border: 1.5px solid rgba(0, 171, 78, 0.3);
  border-radius: var(--radius-md);
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: rgba(0, 171, 78, 0.12);
  border-bottom: 1px solid rgba(0, 171, 78, 0.25);
}

.code-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.code-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-primary);
  border: none;
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 171, 78, 0.3);
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 171, 78, 0.5);
}

.btn-copy:active {
  transform: translateY(0);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2f4ea;
  line-height: 1.55;
}

/* ==========================================================================
   Step Cards
   ========================================================================== */
.step-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-left: 5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateX(4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 12px;
}

/* ==========================================================================
   Callout Boxes
   ========================================================================== */
.problem-box {
  background: #fff5f5;
  border: 1.5px solid #fed7d7;
  border-left: 4px solid #e53e3e;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 14px 0;
}

.problem-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #c53030;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.solution-box {
  background: rgba(0, 171, 78, 0.07);
  border: 1.5px solid rgba(0, 171, 78, 0.25);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 14px 0;
}

.solution-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #007c39;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.key-learning-box {
  background: rgba(255, 197, 79, 0.12);
  border: 1.5px solid var(--border-amber);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 14px 0;
}

.key-learning-header {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #925400;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Troubleshooting & Search
   ========================================================================== */
.search-wrapper {
  margin-bottom: 24px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 171, 78, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-size: 18px;
}

.faq-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
}

.faq-header:hover {
  background: var(--bg-surface);
}

.faq-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-icon {
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.faq-card.open .faq-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   Rate Limits Table
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.specs-table th {
  background: var(--bg-surface);
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-title);
  border-bottom: 1.5px solid var(--border-light);
}

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

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

.specs-table tr:hover td {
  background: var(--bg-surface);
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-tag.green {
  background: rgba(0, 171, 78, 0.12);
  color: #007c39;
}

.badge-tag.leaf {
  background: rgba(114, 191, 68, 0.2);
  color: #437920;
}

.badge-tag.lime {
  background: rgba(191, 215, 48, 0.25);
  color: #557500;
}

.badge-tag.amber {
  background: rgba(255, 197, 79, 0.25);
  color: #925400;
}

/* ==========================================================================
   Download Center Cards
   ========================================================================== */
.download-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.dl-card-icon {
  font-size: 34px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.dl-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.dl-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.dl-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--text-title);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 171, 78, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-exit {
  animation: slideOut 0.25s forwards ease-in;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 40px 20px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1.5px solid var(--border-light);
  margin-top: 60px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 640px) {
  .app-container {
    padding: 16px 12px 60px;
  }
  .navbar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .nav-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hero {
    padding: 28px 20px;
  }
  .content-card {
    padding: 20px;
  }
  .tab-btn {
    padding: 10px 14px;
    font-size: 0.86rem;
  }
}