/* ===== Admin Panel Styles ===== */

html, body {
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== Navigation ===== */

.admin-nav {
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  flex-shrink: 0;
}

.admin-nav-brand strong {
  color: #f1f5f9;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-right: 1.5rem;
}

.admin-nav .navbar-burger {
  color: #cbd5e1;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.admin-nav .navbar-burger span {
  display: block;
  height: 2px;
  width: 18px;
  background: #cbd5e1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.2s ease;
}

.admin-nav .navbar-burger span:nth-child(1) { top: 12px; }
.admin-nav .navbar-burger span:nth-child(2) { top: 19px; }
.admin-nav .navbar-burger span:nth-child(3) { top: 26px; }

.admin-nav .navbar-burger.is-active span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.admin-nav .navbar-burger.is-active span:nth-child(2) { opacity: 0; }
.admin-nav .navbar-burger.is-active span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

.admin-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-nav-links a {
  font-size: 0.78rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-links a:hover {
  background: #334155;
  color: #f1f5f9;
}

.admin-nav-links a i {
  font-size: 0.65rem;
}

/* ===== Main Content ===== */

.admin-content {
  padding: 1.25rem 1rem;
}

.level-left .level-item {
  display: flex;
  align-items: baseline;
}

.level-left .title.mb-0 { margin-bottom: 0 !important; font-size: 1rem !important; }
.level-left .subtitle.mb-0 { margin-bottom: 0 !important; color: #94a3b8; font-weight: 400; font-size: 0.85rem !important; }

/* ===== Tables ===== */

.admin-table {
  font-size: 0.85rem;
}

.admin-table th {
  padding: 0.5rem;
  font-weight: 600;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.table-container {
  position: relative;
  overflow: visible;
}

/* ===== Forms ===== */

.compact-form .field { margin-bottom: 0.5rem; }
.compact-form .field.is-grouped { align-items: flex-end; }
.compact-form .label { font-size: 0.75rem; margin-bottom: 0.15rem; color: #64748b; }
.compact-form .input { font-size: 0.85rem; padding: 0.35rem 0.5rem; height: 2rem; min-width: 220px; }
.compact-form .input[type="number"] { min-width: 70px; max-width: 80px; }
.compact-form .select select { font-size: 0.85rem; padding: 0.35rem 2rem 0.35rem 0.5rem; height: 2rem; min-width: 130px; }
.compact-form .select { height: 2rem; }
.compact-form .button { font-size: 0.8rem; padding: 0.35rem 0.75rem; height: 2rem; }

/* ===== Status Badges ===== */

.status-active { color: #16a34a; font-weight: 500; }
.status-inactive { color: #dc2626; font-weight: 500; }

.status-paying {
  background: #dcfce7;
  color: #166534;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

.status-free {
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

.status-quota-reached {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ===== Utility ===== */

.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.small-text { font-size: 0.75rem; color: #64748b; }

/* ===== Cards & Grid ===== */

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.compact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}

.compact-card h4 {
  font-size: 0.7rem;
  margin-bottom: 0.15rem;
  color: #64748b;
  font-weight: 500;
}

.compact-card strong {
  font-size: 1.1rem;
}

/* ===== Paying User Rows ===== */

.paying-user {
  background-color: #f0fdf4 !important;
  border-left: 3px solid #22c55e;
  font-weight: 500;
}

.paying-user:hover {
  background-color: #dcfce7 !important;
}

/* ===== Selects & Dropdowns ===== */

.select select { color: #475569; }
.select:not(.is-multiple):not(.is-loading)::after { border-color: #475569; }

.dropdown-menu {
  font-size: 0.85rem;
  z-index: 9999 !important;
}

.dropdown-item { padding: 0.5rem 1rem; }
.dropdown-item i { width: 1rem; }
.dropdown-divider { margin: 0.25rem 0; }
.dropdown-trigger .button { display: flex; align-items: center; }
.dropdown-trigger .button i.fa-angle-down { margin-left: 0.5rem; color: #94a3b8; }
.dropdown.is-active .dropdown-menu { display: block !important; }

.level { overflow: visible; }
.level-right { overflow: visible; }
.buttons.are-small { overflow: visible; }
.dropdown.is-hoverable { position: relative; overflow: visible; }

/* ===== Download Stats Badges ===== */

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  display: inline-block;
}

.badge.is-primary { background-color: #3273dc; color: white; }
.badge.is-success { background-color: #48c774; color: white; }
.badge.is-warning { background-color: #ffdd57; color: rgba(0, 0, 0, 0.7); }

/* ===== Code Blocks ===== */

pre.code-style {
  background: #0d1117;
  padding: 1rem;
  margin: 0;
}

pre.code-style code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ===== API Usage Styles ===== */

.api-usage .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.api-usage .stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.api-usage .stat-card .heading { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: #6b7280; font-weight: 600; }
.api-usage .stat-card .title { font-weight: 700; margin: 0.35rem 0 0; color: #111827; }
.api-usage .stat-card .title.is-4 { font-size: 1.75rem; }
.api-usage .stat-card .stat-subtext { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; display: block; }
.api-usage .request-breakdown-table .tag { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.api-usage .request-breakdown-table .tag + p { margin-top: 0.35rem; }
.api-usage .plan-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.api-usage .plan-chip { display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.65rem; background: #f3f4f6; color: #1f2937; }
.api-usage .plan-chip.is-primary { background: #dbeafe; color: #1d4ed8; }
.api-usage .plan-chip.is-link { background: #ede9fe; color: #5b21b6; }
.api-usage .plan-chip.is-warning { background: #fef3c7; color: #92400e; }
.api-usage .plan-chip.is-light { background: #e5e7eb; color: #374151; }
.api-usage .plan-chip.is-success { background: #dcfce7; color: #166534; }
.api-usage .plan-chip.is-info { background: #e0f2fe; color: #075985; }
.api-usage .plan-chip.is-danger { background: #fee2e2; color: #b91c1c; }
.api-usage .status-chip { display: inline-flex; align-items: center; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; padding: 0.32rem 0.6rem; background: #e5e7eb; color: #374151; }
.api-usage .status-chip.is-light { background: #e5e7eb; color: #374151; }
.api-usage .status-chip.is-danger { background: #fee2e2; color: #b91c1c; }
.api-usage .status-chip.is-success { background: #dcfce7; color: #166534; }
.api-usage .usage-row { transition: background 0.15s ease; }
.api-usage .usage-row--over-quota { background: #fef2f2 !important; border-left: 3px solid #ef4444; }
.api-usage .usage-row--over-quota:hover { background: #fee2e2 !important; }
.api-usage .usage-row--over-quota td { border-bottom-color: rgba(239, 68, 68, 0.2); }
.api-usage .table .tag + .tag { margin-left: 0.35rem; }
.api-usage .box { border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.25); }
.api-usage .top-table, .api-usage .detail-table { border-radius: 12px; overflow: hidden; }
.api-usage .top-table table, .api-usage .detail-table table { margin-bottom: 0; }
.api-usage .summary-divider { margin: 2rem 0 1rem; border-top: 1px dashed rgba(148, 163, 184, 0.4); }
.api-usage .status-col { text-align: center; }
.api-usage table.admin-table.is-hoverable tbody tr:hover { background: #f8f9fa !important; }
.api-usage .summary-alert { border-radius: 12px; }

/* ===== Usage History Styles ===== */

.usage-history .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.usage-history .stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.usage-history .stat-card .heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; font-weight: 600; }
.usage-history .stat-card .title { margin-top: 0.35rem; font-size: 1.75rem; font-weight: 700; color: #1f2937; }
.usage-history .stat-card .subtext { font-size: 0.75rem; color: #9ca3af; margin-top: 0.25rem; display: block; }
.usage-history .chart-wrapper { position: relative; height: 340px; }
.usage-history .table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.usage-history .table tbody tr:hover { background: #f8f9fa; }
.usage-history .filters .input { width: 120px; }
.usage-history .dataset-chip { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px; padding: 0.3rem 0.65rem; font-size: 0.75rem; font-weight: 600; background: rgba(15, 23, 42, 0.06); color: #1f2937; }
.usage-history .dataset-chip::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.usage-history .legend-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.usage-history .legend-list .dataset-chip { background: #fff; border: 1px solid rgba(148, 163, 184, 0.35); }

/* ===== Code Blocks (download stats) ===== */

.code-block {
  background-color: #f5f5f5;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.875rem;
}

/* ===== AI Generation (ads page) ===== */

.generate-ai-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

.generate-ai-btn:hover {
  opacity: 0.9;
}

#ai-modal-answer {
  line-height: 1.7;
  font-size: 0.95rem;
}

#ai-modal-answer code {
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

#ai-modal-answer pre {
  background: #282c34;
  color: #abb2bf;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

.modal-card-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* ===== Mobile ===== */

@media screen and (max-width: 768px) {
  .admin-nav-brand {
    width: 100%;
  }

  .admin-nav .navbar-burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid #334155;
    gap: 0;
  }

  .admin-nav-links.is-active {
    display: flex;
  }

  .admin-nav-links a {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 0;
    color: #cbd5e1;
  }

  .admin-nav-links a:hover {
    background: #334155;
  }

  .admin-content {
    padding: 0.75rem;
  }

  .admin-table {
    font-size: 0.75rem;
    min-width: 860px;
  }

  .admin-table th, .admin-table td {
    padding: 0.4rem 0.25rem;
  }

  .table-container {
    margin: 0;
    padding: 0;
    overflow-x: auto;
  }

  .compact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .compact-card { padding: 0.6rem; }

  .compact-form .field { margin-bottom: 0.75rem; }
  .compact-form .field.is-grouped { flex-direction: column; gap: 0; }
  .compact-form .field.is-grouped .control { margin-right: 0 !important; }
  .compact-form .control { width: 100%; margin-bottom: 0.5rem; }
  .compact-form .input,
  .compact-form .input[type="number"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    font-size: 16px !important;
    padding: 0.6rem 0.75rem !important;
  }
  .compact-form .select,
  .compact-form .select select {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }
  .compact-form .select select {
    padding: 0.6rem 2rem 0.6rem 0.75rem !important;
  }
  .compact-form .button {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .level { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .level-left, .level-right { width: 100%; margin-bottom: 0; }
  .level-right .buttons { flex-wrap: wrap; gap: 0.35rem; }
  .level-right .buttons .dropdown { width: auto; }
  .level-right .dropdown-trigger .button { width: auto; }

  .title.is-4 { font-size: 1.15rem; }
  .subtitle.is-6 { font-size: 0.85rem; margin-top: 0.15rem; }
}

/* ===== Dark Mode ===== */

@media (prefers-color-scheme: dark) {
  body { background: #0a0a0a; color: #e0e0e0; }

  .admin-nav { background: #0f172a; }
  .admin-nav-brand strong { color: #f1f5f9; }
  .admin-nav-links { border-top-color: #1e293b; }
  .admin-nav-links a { color: #64748b; }
  .admin-nav-links a:hover { background: #1e293b; color: #f1f5f9; }

  .admin-content { background: #0a0a0a; }

  .admin-table { background: #111; color: #e0e0e0; }
  .admin-table th { background: #1a1a1a; color: #a0a0a0; border-bottom-color: #333; }
  .admin-table td { border-bottom-color: #1f1f1f; color: #e0e0e0; }
  .admin-table tr:hover { background: #1a1a1a !important; }

  .compact-card { background: #111; border-color: #2a2a2a; }
  .compact-card h4, .compact-card h5 { color: #a0a0a0; }
  .compact-card strong { color: #fff; }

  .small-text { color: #888; }

  .compact-form .label { color: #ccc; }
  .compact-form .input, .compact-form .select select { background: #1a1a1a; color: #e0e0e0; border-color: #333; }
  .compact-form .input::placeholder { color: #555; }
  .compact-form textarea.textarea { background: #1a1a1a; color: #e0e0e0; border-color: #333; }

  .select select { color: #e0e0e0; background: #1a1a1a; }
  .select:not(.is-multiple):not(.is-loading)::after { border-color: #888; }

  .button { border-color: #333; }
  .button.is-light { background: #222; color: #e0e0e0; border-color: #333; }
  .button.is-light:hover { background: #2a2a2a; }
  .button.is-primary, .button.is-info { background: #2563eb; border-color: #2563eb; color: #fff; }
  .button.is-primary:hover, .button.is-info:hover { background: #3b82f6; }
  .button.is-success { background: #16a34a; border-color: #16a34a; color: #fff; }
  .button.is-success:hover { background: #22c55e; }
  .button.is-warning { background: #a16207; border-color: #a16207; color: #fff; }
  .button.is-warning:hover { background: #ca8a04; }
  .button.is-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
  .button.is-danger:hover { background: #ef4444; }

  .dropdown-menu, .dropdown-content { background: #1a1a1a; border-color: #333; }
  .dropdown-item { color: #e0e0e0; }
  .dropdown-item:hover { background: #252525; }
  .dropdown-item strong { color: #fff; }
  .dropdown-divider { background-color: #333; }
  .dropdown-trigger .button i.fa-angle-down { color: #888; }

  .status-paying { background: #14532d; color: #86efac; border: 1px solid #166534; }
  .status-free { background: #1a1a1a; color: #888; border: 1px solid #333; }
  .status-quota-reached { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }

  .paying-user { background-color: #0a1f0a !important; border-left-color: #22c55e; }
  .paying-user:hover { background-color: #0f2f0f !important; }

  .tag { background: #222; color: #e0e0e0; }
  .tag.is-success { background: #14532d; color: #86efac; }
  .tag.is-danger { background: #450a0a; color: #fca5a5; }
  .tag.is-small { border: 1px solid #333; }

  .title, .subtitle { color: #e0e0e0; }
  .has-text-grey { color: #888 !important; }
  .has-text-success { color: #86efac !important; }
  .navbar-item strong { color: #fff; }
  .level-item { color: #e0e0e0; }

  pre { background: #0a0a0a; color: #e0e0e0; border: 1px solid #333; padding: 0.5rem; }
  code, .mono { background: #0a0a0a; color: #93c5fd; border: 1px solid #333; }
  .label { color: #ccc; }

  .input, .textarea, select, input[type="text"], input[type="email"], input[type="number"] {
    background: #1a1a1a; color: #e0e0e0; border-color: #333;
  }
  .input:disabled, .textarea:disabled { background: #0a0a0a; color: #555; border-color: #222; }
  .input::placeholder, .textarea::placeholder { color: #555; }
  .checkbox input[type="checkbox"] { background: #1a1a1a; border-color: #333; }

  .box { background: #111; border-color: #2a2a2a; }
  .code-block { background-color: #0a0a0a; border-color: #333; color: #e0e0e0; }
  hr { border-top: 1px solid #2a2a2a; border-bottom: none; }
  a { color: #60a5fa; }
  a:hover { color: #93c5fd; }

  .api-usage .stat-card { background: #111; border-color: #222; box-shadow: none; }
  .api-usage .stat-card .heading { color: #a0a0a0; }
  .api-usage .stat-card .title { color: #f0f0f0; }
  .api-usage .stat-card .stat-subtext { color: #888; }
  .api-usage .box { background: #111; border-color: #2a2a2a; }
  .api-usage table.admin-table.is-hoverable tbody tr:hover { background: #1a1a1a !important; }
  .api-usage .usage-row--over-quota { background: rgba(239, 68, 68, 0.15) !important; border-left-color: #f87171; }
  .api-usage .plan-chip { background: #222; color: #e0e0e0; border: 1px solid #333; }
  .api-usage .plan-chip.is-primary { background: rgba(37, 99, 235, 0.3); color: #93c5fd; }
  .api-usage .plan-chip.is-link { background: rgba(76, 29, 149, 0.35); color: #c4b5fd; }
  .api-usage .plan-chip.is-warning { background: rgba(124, 45, 18, 0.3); color: #fde68a; }
  .api-usage .plan-chip.is-light { background: #2a2a2a; color: #e0e0e0; }
  .api-usage .plan-chip.is-success { background: rgba(22, 101, 52, 0.3); color: #86efac; }
  .api-usage .plan-chip.is-info { background: rgba(7, 89, 133, 0.3); color: #7dd3fc; }
  .api-usage .plan-chip.is-danger { background: rgba(185, 28, 28, 0.3); color: #fca5a5; }
  .api-usage .status-chip { background: #2a2a2a; color: #e0e0e0; border: 1px solid #333; }
  .api-usage .status-chip.is-danger { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border-color: #7f1d1d; }
  .api-usage .status-chip.is-success { background: rgba(34, 197, 94, 0.2); color: #86efac; border-color: #166534; }
  .api-usage .request-breakdown-table .tag { color: #e0e0e0; }
  .api-usage .summary-alert { background: rgba(37, 99, 235, 0.1); color: #93c5fd; border-color: rgba(96, 165, 250, 0.2); }

  .usage-history .stat-card { background: #111; border-color: #222; box-shadow: none; }
  .usage-history .stat-card .heading { color: #a0a0a0; }
  .usage-history .stat-card .title { color: #f0f0f0; }
  .usage-history .stat-card .subtext { color: #888; }
  .usage-history .table tbody tr:hover { background: #1a1a1a; }
  .usage-history .dataset-chip { background: #222; color: #e0e0e0; border: 1px solid #333; }
  .usage-history .legend-list .dataset-chip { background: #1a1a1a; }

  .badge.is-primary { background-color: #2563eb; }
  .badge.is-success { background-color: #16a34a; }

  /* Copy button dark mode */
  .copy-code-btn { background: #222; color: #a0a0a0; border-color: #444; }
  .copy-code-btn:hover { background: #333; color: #e0e0e0; border-color: #555; }

  /* Notifications */
  .notification { background: #1a1a1a; color: #e0e0e0; border: 1px solid #333; }
  .notification.is-light { background: #1a1a1a; color: #e0e0e0; border: 1px solid #333; }
  .notification.is-success { background: rgba(22, 163, 74, 0.15); color: #86efac; border: 1px solid #166534; }
  .notification.is-danger { background: rgba(220, 38, 38, 0.15); color: #fca5a5; border: 1px solid #7f1d1d; }
  .notification.is-info { background: rgba(37, 99, 235, 0.15); color: #93c5fd; border: 1px solid #1e40af; }
  .notification.is-warning { background: rgba(161, 98, 7, 0.15); color: #fde68a; border: 1px solid #92400e; }
  .notification .title, .notification .subtitle { color: inherit; }
  .notification .delete { background: rgba(255, 255, 255, 0.15); }
  .notification .delete:hover { background: rgba(255, 255, 255, 0.25); }
  .notification .icon { color: inherit; }

  /* Integration page specifics */
  .content p, .content li { color: #e0e0e0; }
  .section { background: #0a0a0a; }
  .has-text-weight-bold { color: #e0e0e0; }

  .integration-step-num { background: #1a1a1a; color: #60a5fa; border-color: #333; }
}

/* ===== Copy Code Button ===== */

.code-block-wrapper {
  position: relative;
}

.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  line-height: 1;
}

.copy-code-btn:hover {
  background: #e8e8e8;
  color: #333;
  border-color: #bbb;
}

.copy-code-btn.is-copied {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* ===== Integration Page ===== */

.integration-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid #bfdbfe;
  flex-shrink: 0;
}
