/* ==========================================================================
   YNA WEB API — Master Design System (Antislop Compliant)
   High contrast, zero slop, responsive, accessible, dark/light adaptive
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Color Palette - Dark Mode Default */
  --bg-primary: #0a0d14;
  --bg-secondary: #111622;
  --bg-tertiary: #192030;
  --bg-card: rgba(17, 22, 34, 0.75);
  --bg-card-hover: rgba(25, 32, 48, 0.85);
  --border-color: #232c3f;
  --border-focus: #3b82f6;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  
  /* Semantic Color System (Strict Antislop High-Contrast) */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.3);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  --info: #06b6d4;
  --info-accent: #3b82f6;
  --info-bg: rgba(6, 182, 212, 0.12);
  --info-border: rgba(6, 182, 212, 0.3);

  --cyber-primary: #00f2fe;
  --cyber-secondary: #4facfe;
  --cyber-primary-glow: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --cyber-glow-shadow: 0 0 24px rgba(0, 242, 254, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);

  /* Semantic Color System (Light Mode High-Contrast) */
  --success: #059669;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.35);

  --danger: #dc2626;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.35);

  --warning: #d97706;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-border: rgba(245, 158, 11, 0.35);

  --info: #0891b2;
  --info-accent: #2563eb;
  --info-bg: rgba(6, 182, 212, 0.12);
  --info-border: rgba(6, 182, 212, 0.35);

  --cyber-primary: #0284c7;
  --cyber-secondary: #2563eb;
  --cyber-primary-glow: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --cyber-glow-shadow: 0 4px 20px rgba(2, 132, 199, 0.25);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto !important;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.18s ease;
  min-height: 40px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  min-height: 32px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
  min-height: 48px;
}

.btn-icon {
  padding: 8px;
  min-height: 40px;
  min-width: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

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

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

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

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Feature Grid */
.features-section {
  padding: 60px 0;
}

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

.section-badge {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px var(--accent-glow);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.pricing-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-method-get {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-method-post {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-plan {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.badge-plan-basic { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-plan-standard { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.badge-plan-pro { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-plan-max { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

/* Semantic High-Contrast Badges */
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-danger, .badge-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-warning, .badge-alert {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.badge-info, .badge-pending {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.badge-cyber {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyber-primary);
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Status Indicator Dots */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-success {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot-danger, .status-dot-error {
  background-color: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-dot-warning {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.status-dot-info {
  background-color: var(--info);
  box-shadow: 0 0 8px var(--info);
}

.status-dot-cyber {
  background-color: var(--cyber-primary);
  box-shadow: 0 0 8px var(--cyber-primary);
}

/* Alert Notification Callouts */
.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}

.alert-box svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.alert-danger, .alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-select, select.form-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  background-color: var(--bg-tertiary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-select:hover, select.form-input:hover {
  border-color: rgba(0, 242, 254, 0.45);
}

.form-select:focus, select.form-input:focus {
  border-color: var(--cyber-primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

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

.table th {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

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

/* Code block */
.code-block {
  background: #0d1117;
  color: #c9d1d9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GLOBAL CUSTOM SCROLLBARS (Antislop High Performance)
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
}

/* ==========================================================================
   60 FPS GPU-ACCELERATED MICRO-ANIMATIONS (Zero-Slop High Performance)
   ========================================================================== */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-skeleton {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* 1. Smooth Enter Animation for Cards and Sections */
@keyframes fadeSlideUp {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 2. Smooth Exit Animation for Modals */
@keyframes fadeScaleOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* 3. Icon Pulse Hover & Interactive Animation */
@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

/* 4. Glow Wave Pulse for Badges and Buttons */
@keyframes glowWave {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 242, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
  }
}

/* 5. Sleek Skeleton Loading Shimmer for Data Fetching */
@keyframes shimmerLoading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 6. Bouncy Celebration Animation on Success Actions */
@keyframes successCheckBounce {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
  75% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 7. Subtle Horizontal Shake on Validation Error / Failed Request */
@keyframes alertShake {
  0%, 100% {
    transform: translateX(0);
  }
  15%, 45%, 75% {
    transform: translateX(-6px);
  }
  30%, 60%, 90% {
    transform: translateX(6px);
  }
}

/* GPU-Accelerated Animation Classes */
.fade-slide-up,
.animate-fade-slide-up {
  animation: fadeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.fade-scale-out,
.modal-closing {
  animation: fadeScaleOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.icon-pulse,
.animate-icon-pulse {
  animation: iconPulse 2s ease-in-out infinite;
  will-change: transform;
}

.glow-wave,
.animate-glow-wave {
  animation: glowWave 2.4s infinite;
  will-change: box-shadow;
}

.skeleton {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  animation: pulse-skeleton 1.5s ease-in-out infinite;
}

.shimmer-loading,
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255, 255, 255, 0.08) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmerLoading 1.8s infinite;
  will-change: background-position;
}

.bounce-success,
.animate-success-bounce {
  animation: successCheckBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  will-change: transform, opacity;
}

.alert-shake,
.animate-shake {
  animation: alertShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  will-change: transform;
}

/* Cyber Button Styling */
.btn-cyber {
  background: var(--cyber-primary-glow);
  color: #0a0d14;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--cyber-glow-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-cyber:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.55);
  color: #0a0d14;
}

/* Responsive & Mobile-First Alignment Perfection */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Minimum 44x44px Touch Targets */
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-secondary,
  .btn-cyber,
  .btn-icon,
  .hamburger-btn,
  .sidebar-close-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-sub-link,
  .sidebar-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form-input,
  .form-select,
  .form-textarea {
    min-height: 44px;
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   SIDEBAR NAVIGATION & TWO-COLUMN DOCUMENTATION LAYOUT
   ========================================================================== */

.docs-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar Drawer Backdrop (Mobile) */
.docs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.sidebar-open .docs-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* Left Sidebar */
.docs-sidebar {
  width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.docs-sidebar-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.sidebar-close-btn {
  display: none;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* Sidebar Search Box */
.docs-sidebar-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
}

.sidebar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.sidebar-search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 34px 9px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.sidebar-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
  line-height: 1;
}

.sidebar-search-clear:hover {
  color: var(--text-primary);
}

/* Sidebar Scrollable Body */
.docs-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  scrollbar-width: thin;
}

.sidebar-section {
  margin-bottom: 22px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 4px 10px;
  margin-bottom: 6px;
}

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

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 44px;
  transition: all 0.15s ease;
}

.sidebar-nav-link svg {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.sidebar-nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-nav-link:hover svg {
  color: var(--text-primary);
}

.sidebar-nav-link.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-weight: 600;
}

.sidebar-nav-link.active svg {
  color: var(--accent-primary);
}

/* Sidebar Menu Navigation Structure */
.menu-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 12px 6px 12px;
  list-style: none;
}

.nav-item {
  list-style: none;
  margin-bottom: 3px;
}

button.nav-group-btn,
.nav-group-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 12px !important;
  border-radius: var(--radius-sm) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-left: 3px solid transparent !important;
  color: var(--text-secondary) !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  min-height: 42px !important;
  text-align: left !important;
  transition: all 0.15s ease !important;
}

button.nav-group-btn:hover,
.nav-group-btn:hover {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

button.nav-group-btn.expanded,
.nav-group-btn.expanded {
  background: rgba(59, 130, 246, 0.08) !important;
  border-left: 3px solid var(--accent-primary) !important;
  color: var(--text-primary) !important;
}

.nav-group-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.nav-group-title svg,
button.nav-group-btn svg {
  color: var(--text-muted) !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  transition: color 0.15s ease !important;
}

.nav-group-btn:hover .nav-group-title svg,
.nav-group-btn.expanded .nav-group-title svg {
  color: var(--accent-primary) !important;
}

.nav-group-arrow,
button.nav-group-btn svg.nav-group-arrow {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  color: var(--text-muted) !important;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.nav-group-btn.expanded .nav-group-arrow {
  transform: rotate(180deg) !important;
  color: var(--text-primary) !important;
}

.nav-sub-list {
  display: none;
  list-style: none;
  padding: 4px 0 6px 14px;
  margin-left: 10px;
  border-left: 1px solid var(--border-color);
  flex-direction: column;
  gap: 2px;
}

.nav-sub-list.open {
  display: flex;
}

.nav-sub-link {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 34px;
  transition: all 0.12s ease;
}

.nav-sub-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-sub-link.active {
  color: var(--accent-primary);
  font-weight: 700;
  background: var(--accent-glow);
}

/* Category Accordion */
.category-accordion {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.accordion-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  text-align: left;
  transition: all 0.15s ease;
}

.accordion-header:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.accordion-header.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.accordion-title-left {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-icon-svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.accordion-header:hover .cat-icon-svg,
.accordion-header.active .cat-icon-svg {
  color: var(--accent-primary);
}

.accordion-title-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.accordion-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  flex-shrink: 0;
}

.accordion-header.expanded .accordion-chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.accordion-panel {
  display: none;
  padding: 3px 0 6px 14px;
  margin-left: 6px;
  border-left: 1px solid var(--border-color);
}

.accordion-panel.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.endpoint-subnav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 38px;
  transition: all 0.12s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-subnav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.endpoint-subnav-link.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  font-weight: 600;
}

.method-mini {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.method-mini.get {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.method-mini.post {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Sidebar Footer */
.docs-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Main Content Area */
.docs-main-wrapper {
  margin-left: 300px;
  width: calc(100% - 300px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  transition: margin-left 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), width 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Unified Topbar (Desktop & Mobile) */
.docs-mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  box-sizing: border-box;
}

.docs-mobile-topbar-inner {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 1. Menu Navigasi & Brand */
.topbar-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.topbar-brand-link:hover {
  opacity: 0.85;
}

.hamburger-btn {
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.hamburger-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

body.sidebar-collapsed .docs-sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .docs-main-wrapper {
  margin-left: 0;
  width: 100%;
}

/* 2. Topbar Actions: Jam & Profile */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Jam Real-Time */
.topbar-clock-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  user-select: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

@keyframes clock-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
    box-shadow: 0 0 2px #10b981;
  }
}

/* 3. Profile Dropdown */
.topbar-profile-container {
  position: relative;
}

.topbar-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 4px 12px 4px 5px;
  border-radius: 9999px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.topbar-profile-trigger:hover,
.topbar-profile-container.open .topbar-profile-trigger {
  background: var(--bg-card);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.topbar-profile-trigger .user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.topbar-profile-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.topbar-profile-container.open .topbar-profile-chevron {
  transform: rotate(180deg);
}

.topbar-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  animation: profile-menu-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-profile-container.open .topbar-profile-menu {
  display: flex;
}

@keyframes profile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-menu-header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-menu-meta {
  overflow: hidden;
}

.profile-menu-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 4px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.profile-menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.profile-menu-item svg {
  color: var(--text-muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.profile-menu-item:hover svg {
  color: var(--accent-primary);
}

.profile-menu-item.profile-logout-item {
  color: #f87171;
}

.profile-menu-item.profile-logout-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.profile-menu-item.profile-logout-item svg {
  color: #f87171;
}

@media (max-width: 640px) {
  .docs-mobile-topbar {
    padding: 10px 14px;
  }
  .topbar-profile-username {
    display: none;
  }
  .topbar-profile-trigger {
    padding: 4px;
  }
  .topbar-profile-chevron {
    display: none;
  }
  .topbar-clock-widget {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
}

.docs-main-container {
  padding: 36px 32px 64px 32px;
  max-width: 1340px;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Highlight Pulse for active scrolled endpoint */
.endpoint-card.target-highlight {
  outline: 2px solid var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .docs-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  }

  body.sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: inline-flex;
  }

  .docs-main-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .docs-mobile-topbar {
    display: flex;
  }

  .docs-main-container {
    padding: 24px 18px 48px 18px;
  }
}

/* ==========================================================================
   Documentation System (Category Chips, Cards & Keys Modal)
   ========================================================================== */

/* Category Chips (Horizontal Scrollable Filter Bar) */
.category-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px 2px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-chips-container::-webkit-scrollbar {
  height: 4px;
}

.category-chips-container::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
}

.category-chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.category-chip.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.category-chip-count {
  font-size: 0.72rem;
  opacity: 0.75;
  font-family: var(--font-mono);
}

/* Category Card (Accordion Group) */
.cat-doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-doc-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.cat-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.cat-doc-header:hover {
  background: var(--bg-tertiary);
}

.cat-doc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cat-doc-title .cat-icon-svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

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

.cat-doc-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.cat-doc-card.expanded .cat-doc-chevron {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.cat-doc-body {
  display: flex;
  flex-direction: column;
}

.cat-doc-card.collapsed .cat-doc-body {
  display: none;
}

/* Endpoint Item Inside Category */
.endpoint-item {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.12s ease;
}

.endpoint-item:last-child {
  border-bottom: none;
}

.endpoint-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  gap: 12px;
  min-height: 48px;
}

.endpoint-summary-bar:hover {
  background: var(--bg-tertiary);
}

.endpoint-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.method-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.method-tag.get {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.method-tag.post {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.endpoint-path-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.endpoint-name-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.endpoint-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.endpoint-chevron-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.endpoint-item.open .endpoint-chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .endpoint-summary-bar {
    padding: 10px 14px;
    gap: 8px;
  }
  .endpoint-meta-left {
    gap: 8px;
  }
  .endpoint-path-text {
    font-size: 0.82rem;
  }
  .endpoint-name-text {
    display: none;
  }
}

.endpoint-detail-panel {
  display: none;
  padding: 18px 20px 22px 20px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
}

.endpoint-item.open .endpoint-detail-panel {
  display: block;
}

/* Modal API Keys */
.keys-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.keys-modal-backdrop.show {
  display: flex;
}

.keys-modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.keys-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.keys-modal-body {
  padding: 20px;
}

.keys-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-primary);
}

/* Copy path button in endpoint row */
.btn-copy-path {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-copy-path:hover {
  color: var(--accent-primary);
  background: var(--bg-tertiary);
  transform: scale(1.1);
}

/* ============================================================
   MODERN DASHBOARD COMPONENT STYLES
   ============================================================ */

/* 4 Stat Cards Grid */
.beta-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .beta-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .beta-stats-grid {
    grid-template-columns: 1fr;
  }
}

.beta-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.beta-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.beta-stat-left {
  display: flex;
  flex-direction: column;
}

.beta-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.beta-stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.beta-stat-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.beta-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beta-stat-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.beta-stat-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.beta-stat-icon.teal {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
}

.beta-stat-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

/* 2-Column Main Section */
.beta-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .beta-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.beta-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.beta-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Request Metrics 2x2 colored boxes */
.beta-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.beta-metric-box {
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.15s ease;
}

.beta-metric-box:hover {
  transform: scale(1.02);
}

.beta-metric-box.blue {
  background: rgba(59, 130, 246, 0.08);
}
.beta-metric-box.blue .beta-metric-val {
  color: #3b82f6;
}

.beta-metric-box.green {
  background: rgba(16, 185, 129, 0.08);
}
.beta-metric-box.green .beta-metric-val {
  color: #10b981;
}

.beta-metric-box.amber {
  background: rgba(245, 158, 11, 0.08);
}
.beta-metric-box.amber .beta-metric-val {
  color: #f59e0b;
}

.beta-metric-box.purple {
  background: rgba(168, 85, 247, 0.08);
}
.beta-metric-box.purple .beta-metric-val {
  color: #a855f7;
}

.beta-metric-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.beta-metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Status & Info API List */
.beta-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beta-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.beta-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.beta-info-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.beta-info-val {
  font-weight: 700;
  color: var(--text-primary);
}

/* Promotion Cards */
.beta-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .beta-promo-grid {
    grid-template-columns: 1fr;
  }
}

.beta-promo-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.beta-promo-card.blue {
  border: 1.5px solid rgba(59, 130, 246, 0.4);
}
.beta-promo-card.blue:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.beta-promo-card.green {
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}
.beta-promo-card.green:hover {
  border-color: #10b981;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.beta-promo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.beta-promo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-promo-red {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.beta-promo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.beta-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.beta-promo-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.beta-promo-card.blue .beta-promo-features li svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.beta-promo-card.green .beta-promo-features li svg {
  color: #10b981;
  flex-shrink: 0;
}

.btn-promo-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-promo-blue:hover {
  background: #2563eb;
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-promo-green {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: #10b981;
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-promo-green:hover {
  background: #059669;
  transform: translateY(-1px);
  color: #ffffff;
}

/* CEK APIKEY Card */
.beta-apikey-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.beta-apikey-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #6366f1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ============================================================
   LIVE ENDPOINT & MULTIMEDIA ADVANCED SUITE (v1.0)
   ============================================================ */

/* Favorite Star ⭐ Button */
.btn-favorite-star {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  flex-shrink: 0;
}

.btn-favorite-star:hover {
  color: #f59e0b;
  transform: scale(1.22);
}

.btn-favorite-star.starred {
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.btn-favorite-star.starred svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}

/* Category Chip & Accordion Item Favorit */
.category-chip.chip-favorite {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.category-chip.chip-favorite:hover,
.category-chip.chip-favorite.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  font-weight: 700;
}

.accordion-header.header-favorite {
  color: #f59e0b;
}

.accordion-header.header-favorite:hover,
.accordion-header.header-favorite.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

/* 1-Click Example Preset Button */
.btn-preset-example {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--accent-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-preset-example:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.param-input.highlight-fill {
  animation: inputPresetGlow 1s ease;
}

@keyframes inputPresetGlow {
  0% { border-color: var(--accent-primary); box-shadow: 0 0 10px rgba(59, 130, 246, 0.6); }
  50% { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
  100% { border-color: var(--border-color); box-shadow: none; }
}

/* Cyber Media Container */
.cyber-media-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.cyber-media-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.cyber-media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.cyber-media-title {
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.cyber-media-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* Image Preview Card */
.cyber-image-preview-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #05070a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  max-height: 440px;
}

.cyber-image-preview-wrap img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.cyber-image-preview-wrap:hover img {
  transform: scale(1.02);
}

.cyber-image-overlay-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Audio Player Card */
.cyber-audio-player-wrap {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cyber-audio-player-wrap audio {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  outline: none;
}

/* Video Player Card */
.cyber-video-player-wrap {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
}

.cyber-video-player-wrap video {
  width: 100%;
  max-height: 440px;
  display: block;
  background: #000;
}

/* Action Buttons inside Media Cards */
.cyber-media-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* JSON Cyber Neon Syntax Highlighting */
.json-highlighted {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  color: #cbd5e1;
}

.json-key {
  color: #38bdf8;
  font-weight: 600;
}

.json-string {
  color: #34d399;
}

.json-number {
  color: #f59e0b;
}

.json-boolean {
  color: #ec4899;
  font-weight: 700;
}

.json-null {
  color: #94a3b8;
  font-style: italic;
}

/* JSON Media Live Preview Box */
.json-media-preview-box {
  background: var(--bg-primary);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.12);
}

.json-media-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-wrap: wrap;
  gap: 8px;
}

.media-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.media-live-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 8px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Snippet Language Buttons Bar */
.snippet-tab-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-snippet-tab {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-snippet-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.btn-snippet-tab.wa {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
}

.btn-snippet-tab.wa:hover {
  background: #25d366;
  color: #ffffff;
}

/* Fullscreen Lightbox Zoom Modal */
.image-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
}

.image-lightbox-modal.show {
  display: flex;
  animation: modalFadeIn 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.lightbox-content-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content-wrap img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  background: rgba(17, 22, 34, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 999px;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: scale(1.1);
}

/* Mobile Clean Responsive & Zero Overflow */
@media (max-width: 768px) {
  .endpoint-summary-bar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .endpoint-meta-left {
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .endpoint-path-text {
    font-size: 0.82rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cyber-media-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cyber-media-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .snippet-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .snippet-tab-bar .btn-snippet-tab {
    justify-content: center;
  }
}





/* ============================================================
   PROFILE & SECURITY CENTER STYLES
   ============================================================ */

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}

/* Cyber Avatar */
.cyber-avatar-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.cyber-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  position: relative;
}

.cyber-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 2px solid var(--bg-card);
  text-transform: uppercase;
}

.profile-header-meta {
  flex: 1;
  min-width: 240px;
}

.profile-username {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Security Sections Grid */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.security-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.security-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.security-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* PIN 6-Digit Segmented Box */
.pin-boxes-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.pin-digit-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.pin-digit-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  background: var(--bg-tertiary);
}

/* Active Session Cards */
.session-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.session-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  transition: all 0.15s ease;
}

.session-card.current {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.05);
}

.session-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.session-details {
  flex: 1;
  min-width: 180px;
}

.session-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Multi-API Key Vault */
.key-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.key-vault-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.key-vault-card:hover {
  border-color: var(--border-focus);
}

.key-vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.key-label-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: #38bdf8;
}

.key-hits-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Audit Table */
.audit-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.audit-table th {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.audit-table tr:hover td {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Multi-Quota Visual Cards */
.dual-quota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .dual-quota-grid {
    grid-template-columns: 1fr;
  }
}

.quota-card-neon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quota-card-neon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quota-card-neon.subscription {
  border-left: 4px solid #3b82f6;
}

.quota-card-neon.tokens {
  border-left: 4px solid #10b981;
}

.quota-card-neon.wallet {
  border-left: 4px solid #f59e0b;
}

.neon-progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
  margin: 12px 0 8px 0;
}

.neon-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  transition: width 0.4s ease;
}

/* Leaderboard Widget */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.leaderboard-row:hover {
  background: var(--bg-tertiary);
}

.leaderboard-rank {
  width: 28px;
  font-weight: 800;
  color: var(--text-muted);
}

.leaderboard-rank.top1 { color: #f59e0b; font-size: 1.1rem; }
.leaderboard-rank.top2 { color: #94a3b8; font-size: 1.05rem; }
.leaderboard-rank.top3 { color: #b45309; font-size: 1rem; }

.leaderboard-user {
  flex: 1;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-hits {
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

/* Starred Favorites Section */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.favorite-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.favorite-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.favorite-badge-method {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.favorite-badge-method.get { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.favorite-badge-method.post { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

/* Auth Modal Required */
.auth-req-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Login Tabs */
.auth-tabs-nav {
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
