/* FONT DECLARATIONS */


/* DESIGN SYSTEM VARIABLES */
:root {
  --ink: #0f172a;
  --ink2: #475569;
  --ink3: #94a3b8;
  --rule: #e2e8f0;
  --paper: #f8fafc;
  --paper2: #f1f5f9;
  --card: #ffffff;
  --navy: #0b2545;
  --onAccent: #ffffff;
  --cyan: #0891b2;
  --cyanL: #e0f2fe;
  --rose: #b91c1c;
  --rose2: #fef2f2;
  --roseRule: #fecaca;
  --amber: #b45309;
  --sidebarBg: #0b2545;
  --sidebarFg: #cbd5e1;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* BASE STYLES */
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.45;
  font-size: 14px;
}

/* LAYOUT & VIEWS */
.auth-shell {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: row;
}

.brand-panel {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  background: var(--sidebarBg);
  color: var(--sidebarFg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  min-height: 100vh;
  box-sizing: border-box;
}

.brand-panel-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 80%);
}

.brand-panel-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.18;
  filter: blur(80px);
}

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-w {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--onAccent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.logo-w-nav {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--onAccent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  flex-shrink: 0;
}

.brand-headline-container {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.brand-headline {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
  max-width: 460px;
}

.brand-subhead {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
}

.brand-tape {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.tape-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tape-dot {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
}

.tape-dot.big {
  height: 10px;
  background: var(--cyan);
}

.tape-bar {
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
}

.tape-bar.big {
  height: 10px;
  background: linear-gradient(90deg, var(--cyan), rgba(8,145,178,0.25));
}

.brand-trusted {
  margin-top: 28px;
  max-width: 360px;
}

.brand-trusted-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.brand-trusted-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.trusted-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.trusted-item span:first-child {
  color: var(--cyan);
  font-size: 10px;
}

.brand-stats {
  position: relative;
  display: flex;
  gap: 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.stat-val {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  margin-top: 2px;
}

.auth-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 22px;
  position: relative;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 36px 28px;
  box-sizing: border-box;
}

.auth-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 24px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form-input-container {
  display: flex;
  position: relative;
}

.form-input {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 11px 14px;
  flex: 1;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--ink2);
}

.form-input-suffix {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 6px;
}

.btn-toggle-password {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
  user-select: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--card);
  border: 1.5px solid var(--ink3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--onAccent);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
  transition: all 0.1s ease;
}

input[type="checkbox"]:checked + .checkbox-box {
  background: var(--navy);
  border-color: var(--navy);
}

.primary-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  background: var(--navy);
  color: var(--onAccent);
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-sizing: border-box;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.primary-btn:hover {
  background: #14355c;
  border-color: #14355c;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.recaptcha-notice {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.5;
  text-align: center;
  margin-top: 14px;
}

.recaptcha-notice span {
  color: var(--cyan);
  cursor: pointer;
}

.footer-link-container {
  width: 100%;
  max-width: 440px;
  font-size: 14px;
  color: var(--ink2);
  text-align: center;
}

.footer-link-container span {
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.footer-copyright {
  position: absolute;
  bottom: 16px;
  right: 24px;
  color: var(--ink3);
  font-size: 12px;
}

/* DASHBOARD PAGE STYLES */
.dashboard-wrapper {
  width: 100%;
  max-width: 1400px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.header-container {
  position: relative;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

.header-nav-item {
  color: var(--ink2);
  font-weight: 400;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  cursor: pointer;
}

.header-nav-item.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  min-width: 0;
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 28px;
  background: var(--paper2);
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.header-email {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* GENERAL BOX AND BUTTONS */
.wf-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-sizing: border-box;
  padding: 22px;
}

.wf-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.1px;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.1s ease;
}

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

.wf-btn-primary {
  background: var(--navy);
  color: var(--onAccent);
  border-color: var(--navy);
}

.wf-btn-primary:hover {
  background: #14355c;
  border-color: #14355c;
}

.wf-btn-danger {
  color: var(--rose);
  border-color: var(--roseRule);
}

.wf-btn-danger:hover {
  background: var(--rose2);
}

.wf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wf-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
}

.dashboard-content {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-title-group h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.dashboard-title-desc {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 4px;
}

/* PLAN DETAILS */
.plan-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.plan-name {
  font-size: 22px;
  font-weight: 600;
}

.plan-price-renew {
  font-size: 13px;
  color: var(--ink2);
  margin-top: 2px;
}

.plan-buttons {
  display: flex;
  gap: 8px;
}

.plan-usage-text {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink2);
}

.plan-progress-bar {
  height: 6px;
  background: var(--paper2);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.plan-progress-fill {
  height: 100%;
  background: var(--navy);
}

/* API KEY TABLE */
.api-keys-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-keys-table {
  margin-top: 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.api-keys-thead {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 100px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink2);
  background: var(--paper2);
  border-bottom: 1px solid var(--rule);
}

.api-keys-trow {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 100px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  font-size: 13px;
}

.api-keys-trow:last-child {
  border-bottom: none;
}

.api-key-code {
  font-family: var(--font-mono);
}

.api-key-empty {
  padding: 36px 14px;
  text-align: center;
  color: var(--ink2);
  font-size: 13px;
}

/* FOOTER */
.footer-container {
  display: flex;
  justify-content: space-between;
  padding: 12px 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink3);
  font-size: 12px;
  background: var(--card);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--ink3);
  text-decoration: none;
}

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

/* EMAIL BANNER */
.email-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 28px;
  background: var(--rose2);
  border-bottom: 1px solid var(--roseRule);
  color: var(--rose);
  font-size: 13px;
}

.email-banner u {
  cursor: pointer;
}

.email-banner-close {
  cursor: pointer;
  color: var(--ink2);
  font-weight: bold;
}

/* MODAL OVERLAY (PRICING) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  display: none; /* Controlled by js */
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

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

.modal-card {
  width: 100%;
  max-width: 980px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  box-sizing: border-box;
}

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

.modal-header-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink2);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink2);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--paper2);
}

/* BILLING TOGGLE */
.billing-toggle-container {
  padding: 24px 28px 4px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.billing-toggle-group {
  display: inline-flex;
  background: var(--paper2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px;
  max-width: 100%;
}

.billing-toggle-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  background: transparent;
  color: var(--ink2);
  border: none;
  border-radius: 3px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.billing-toggle-btn.active {
  background: var(--navy);
  color: var(--onAccent);
}

.billing-discount-notice {
  text-align: center;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
  margin-top: 8px;
}

/* PLANS GRID */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 28px 28px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.pricing-card.featured {
  border-color: var(--navy);
}

.pricing-card-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--navy);
  color: var(--onAccent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.pricing-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink2);
  text-align: center;
}

.pricing-card-price-group {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pricing-card-price {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.pricing-card-price-period {
  font-size: 12px;
  color: var(--ink2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-card-price-annual {
  text-align: center;
  font-size: 11px;
  color: var(--ink3);
  margin-top: 4px;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  flex: 1;
}

.pricing-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card-features li span.checkmark {
  flex-shrink: 0;
  color: var(--cyan);
  font-weight: 600;
}

.pricing-card-select-btn {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  background: var(--navy);
  color: var(--onAccent);
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 12px 18px;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.2px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.pricing-card-select-btn:hover {
  background: #14355c;
  border-color: #14355c;
}

/* ALERT MESSAGES */
.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.alert-danger {
  background-color: var(--rose2);
  border-color: var(--roseRule);
  color: var(--rose);
}

.alert-warning {
  background-color: #fffbef;
  border-color: #fef3c7;
  color: var(--amber);
}

.alert-close {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 1024px) {
  .auth-shell {
    flex-direction: column;
  }
  .brand-panel {
    flex: 0 0 auto;
    min-height: auto;
    padding: 36px;
  }
  .brand-panel-glow {
    display: none;
  }
  .brand-headline-container {
    justify-content: flex-start;
  }
  .brand-headline {
    font-size: 26px;
  }
  .auth-form-container {
    padding: 40px 24px 32px;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 20px 16px;
  }
  .header-inner {
    padding: 12px 16px;
  }
  .header-nav {
    display: none; /* Hide on mobile/tablet */
  }
  .plan-detail-row {
    flex-direction: column;
    align-items: stretch;
  }
  .plan-buttons {
    flex-direction: column-reverse;
  }
  .plan-buttons .wf-btn {
    width: 100%;
  }
  .api-keys-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .api-keys-header-row .wf-btn {
    width: 100%;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
  }
}

@media (max-width: 600px) {
  .brand-panel {
    padding: 28px 20px;
    gap: 18px;
  }
  .brand-headline {
    font-size: 22px;
  }
  .brand-subhead {
    font-size: 13px;
  }
  .brand-stats {
    display: none; /* Hide stats on smallest mobile */
  }
  .auth-form-container {
    padding: 28px 16px 24px;
  }
  .auth-card {
    border: none;
    padding: 8px 0 0;
  }
  .auth-title {
    font-size: 22px;
  }
  .form-input {
    font-size: 16px; /* Prevents iOS auto-zoom */
    padding: 13px 14px;
    min-height: 44px;
  }
  .primary-btn {
    padding: 14px 28px;
    min-height: 44px;
  }
}


/* TOAST SYSTEM STYLES */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  pointer-events: none;
}

.toast-item {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  pointer-events: auto;
  animation: slideIn 0.2s ease-out forwards;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-weight: 600;
  color: var(--ink);
}

.toast-desc {
  color: var(--ink2);
}

.toast-item.success {
  border-left: 3px solid var(--cyan);
}

.toast-item.error {
  border-left: 3px solid var(--rose);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* DOCUMENTATION PAGE LAYOUT */
.docs-layout {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
}

.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--rule);
  background: var(--card);
  padding: 28px 18px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.docs-sidebar-title {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink3);
  padding: 0 10px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}

.docs-sidebar-nav {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar-group {
  margin-bottom: 8px;
}

.docs-sidebar-group-title {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-sidebar-group-items {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
  margin-left: 10px;
  padding-left: 4px;
}

.docs-sidebar-item {
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink2);
  border-left: 2px solid transparent;
  margin-left: -4px;
}

.docs-sidebar-item:hover {
  color: var(--ink);
  background: var(--paper2);
}

.docs-sidebar-item.active {
  color: var(--ink);
  background: var(--paper2);
  border-left-color: var(--navy);
}

.docs-main {
  flex: 1;
  min-width: 0;
  padding: 40px 48px 80px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.docs-main section {
  scroll-margin-top: 80px;
}

.docs-main h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.docs-main h1:first-of-type {
  margin-top: 0;
}

.docs-main h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}

.docs-main h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 24px;
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}

.docs-eyebrow {
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.docs-main p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink2);
}

.docs-main p b {
  color: var(--ink);
}

.docs-main code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--paper2);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.docs-code-block {
  margin-top: 14px;
  position: relative;
  background: var(--sidebarBg);
  color: #e2e8f0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.docs-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.docs-code-copy-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.docs-code-copy-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.docs-code-copy-btn.copied {
  color: var(--cyan);
  border-color: var(--cyan);
}

.docs-code-block pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.docs-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.55;
}

.docs-list-dot {
  flex-shrink: 0;
  margin-top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: var(--cyan);
}

.docs-table-wrapper {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--ink);
}

.docs-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink2);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  background: var(--paper2);
}

.docs-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-top: 1px solid var(--rule);
  line-height: 1.55;
}

.docs-table td.code-font {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.docs-table tr:first-child td {
  border-top: none;
}

.docs-callout {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
}

.docs-callout-info {
  background: var(--cyanL);
  border-left: 3px solid var(--cyan);
  color: var(--ink);
}

.docs-callout-warn {
  background: var(--rose2);
  border-left: 3px solid var(--rose);
  color: var(--ink);
}

.docs-callout-neutral {
  background: var(--paper2);
  border-left: 3px solid var(--rule);
  color: var(--ink);
}

.docs-callout-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.docs-callout-info .docs-callout-title {
  color: var(--cyan);
}

.docs-callout-warn .docs-callout-title {
  color: var(--rose);
}

.docs-callout-neutral .docs-callout-title {
  color: var(--ink2);
}

.docs-endpoint-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  scroll-margin-top: 80px;
}

.docs-endpoint-method {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--navy);
  color: var(--onAccent);
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.docs-endpoint-path {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-all;
}

.docs-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.docs-code-tabs {
  margin-top: 14px;
}

.docs-tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.docs-tab-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  color: var(--ink2);
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.docs-tab-btn:hover {
  color: var(--ink);
}

.docs-tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--navy);
  font-weight: 600;
}

.docs-tab-content {
  display: none;
}

.docs-tab-content.active {
  display: block;
}

.docs-mobile-contents-toggle {
  display: none;
}

.docs-group-arrow {
  font-size: 10px;
  color: var(--ink3);
  transition: transform 120ms;
}

@media (max-width: 900px) {
  .docs-layout {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    position: static;
    max-height: none;
    padding: 0;
  }
  .docs-sidebar-title {
    display: none;
  }
  .docs-sidebar-nav {
    margin-top: 0;
    display: none;
    padding: 14px 18px;
    background: var(--card);
  }
  .docs-main {
    padding: 24px 16px 48px;
  }
  .docs-plans-grid {
    grid-template-columns: 1fr;
  }
  .docs-mobile-contents-toggle {
    display: block;
    background: var(--card);
    border-bottom: 1px solid var(--rule);
  }
  .docs-mobile-contents-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

