:root {
  --primary-red: #d32027;
  --primary-red-hover: #b8161c;
  --primary-red-light: #fef2f2;
  --primary-red-border: #fecaca;
  --amber-btn: #f59e0b;
  --amber-btn-hover: #d97706;
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --success-green: #10b981;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-family: 'Inter', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ========================================================
   AUTH PAGES (LOGIN & REGISTER)
======================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 32px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 16px rgba(211, 32, 39, 0.3);
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.admin-approval-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}

.notice-icon {
  font-size: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  transition: var(--transition);
  background: #fff;
}

.form-input:focus {
  border-color: var(--primary-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.12);
}

.form-help {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.auth-demo-hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-alert.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.auth-alert.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.auth-alert.alert-pending {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

/* ========================================================
   DASHBOARD LAYOUT (Matches User Screenshot)
======================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar */
.dashboard-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.user-card-header {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.user-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(211, 32, 39, 0.25);
}

.user-card-details {
  overflow: hidden;
}

.user-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Navigation items */
.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
  position: relative;
}

.nav-item:hover {
  background: #f8fafc;
  color: var(--text-main);
}

/* Active Nav State (Red Card Highlight matching screenshot) */
.nav-item.active {
  background: var(--primary-red-light);
  color: var(--primary-red);
  border: 1px solid var(--primary-red-border);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--primary-red);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.pending-badge {
  margin-left: auto;
  background: var(--amber-btn);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-logout {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Right Main Area */
.dashboard-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Topbar Header */
.dashboard-topbar {
  background: #ffffff;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

/* Gateway Live Pill (Top Right Badge) */
.gateway-live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 6px 14px;
}

.live-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  box-shadow: 0 0 10px var(--success-green);
}

.live-text {
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

/* Topbar Red Accent Line */
.topbar-red-accent {
  height: 3px;
  background: var(--primary-red);
  width: 100%;
}

/* Tab Panes */
.tab-pane {
  display: none;
  padding: 28px 32px;
}

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

/* Content Cards */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.card-icon-tag {
  font-size: 18px;
}

.card-title-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

/* Profile Form Styling */
.profile-grid-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field-wrap {
  display: flex;
  flex-direction: column;
}

.field-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.styled-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.styled-input:focus {
  border-color: var(--primary-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 32, 39, 0.12);
}

.styled-input.disabled-input {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.styled-input.key-font {
  font-family: monospace;
  font-size: 13px;
  background: #f8fafc;
  color: #1e293b;
}

.input-with-action {
  display: flex;
  gap: 8px;
}

.btn-action-verify {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action-verify:hover {
  background: #e2e8f0;
}

.link-verify-status {
  margin-top: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success-green);
  font-weight: 600;
}

.link-verify-status.is-invalid {
  color: #ef4444;
}

.form-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.save-notice-text {
  font-size: 13px;
  color: var(--success-green);
  font-weight: 600;
}

/* API Key Box Content */
.api-key-box-content {
  display: flex;
  flex-direction: column;
}

.api-key-display-row {
  display: flex;
  gap: 10px;
}

.btn-copy {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-copy:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-red {
  background: var(--primary-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(211, 32, 39, 0.25);
}

.btn-red:hover {
  background: var(--primary-red-hover);
  box-shadow: 0 6px 16px rgba(211, 32, 39, 0.35);
}

.btn-amber {
  background: var(--amber-btn);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-amber:hover {
  background: var(--amber-btn-hover);
}

.btn-green {
  background: #10b981;
  color: #ffffff;
}

.btn-green:hover {
  background: #059669;
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }

/* Metrics Grid (Overview) */
.metrics-grid, .admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.metric-card.alert-amber {
  border-color: #fde68a;
  background: #fffbeb;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-icon.green { background: #dcfce7; }
.metric-icon.blue { background: #e0f2fe; }
.metric-icon.emerald { background: #ccfbf1; }
.metric-icon.red { background: #fee2e2; }
.metric-icon.amber { background: #fef3c7; }

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.styled-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.styled-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

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

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.status-pill.success, .status-pill.active {
  background: #dcfce7;
  color: #15803d;
}

.status-pill.pending {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.scanned {
  background: #e0e7ff;
  color: #4338ca;
}

.status-pill.expired, .status-pill.suspended, .status-pill.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

/* Quick test */
.quick-test-row {
  display: flex;
  gap: 12px;
}

/* Transactions Filter Header */
.transactions-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.styled-select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
}

/* Code Snippet Box */
.api-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.api-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.api-meta-box .lbl {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.api-meta-box .val {
  font-family: monospace;
  font-size: 13px;
  color: var(--primary-red);
  font-weight: 700;
}

.code-example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.c-tab {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.c-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.c-tab.active {
  background: #00385d;
  border-color: #00385d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 56, 93, 0.25);
}

.code-snippet-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 18px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
}

.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .form-row, .metrics-grid, .admin-stats-grid, .api-meta-grid {
    grid-template-columns: 1fr;
  }
  .tab-pane {
    padding: 20px 16px;
  }
}

/* ========================================================
   MODALS (ADMIN SUBSCRIPTION & TRANSACTIONS)
======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.modal-lg {
  max-width: 960px;
}

@keyframes modalSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

/* Duration Presets Grid */
.duration-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.duration-btn {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.duration-btn:hover {
  border-color: #004b87;
  background: #f0f7ff;
  color: #004b87;
  transform: translateY(-1px);
}

.duration-btn.btn-lifetime {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.duration-btn.btn-lifetime:hover {
  border-color: #22c55e;
  background: #dcfce7;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.sub-badge.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sub-badge.expired {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.sub-badge.lifetime {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ========================================================
   API DOCUMENTATION ENHANCEMENTS
======================================================== */
.btn-copy-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-chip:hover {
  background: #004b87;
  color: #ffffff;
  border-color: #004b87;
}

.code-box-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  border: 1px solid #1e293b;
  margin-top: 14px;
}

.code-box-header {
  background: #0f172a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.code-box-lang-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

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

.code-copy-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.code-copy-btn:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
}

.code-snippet-box {
  background: #020617;
  color: #e2e8f0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  font-family: 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  margin: 0;
  border-radius: 0;
}

/* Syntax Highlighting Colors */
.hl-comment { color: #64748b; font-style: italic; }
.hl-string { color: #4ade80; }
.hl-var { color: #38bdf8; }
.hl-keyword { color: #c084fc; font-weight: 600; }
.hl-func { color: #facc15; }
.hl-num { color: #fb923c; }

/* Parameter Reference Table */
.param-name {
  font-family: monospace;
  font-weight: 700;
  color: #0284c7;
}

.param-type {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}

.badge-req {
  background: #fee2e2;
  color: #b91c1c;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-opt {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
