:root {
  --bg: #080a0b;
  --bg-2: #14181a;
  --bg-card: #101314;
  --panel: #101314;
  --panel2: #16191b;
  --line: #252a2c;
  --border: #252a2c;
  --text: #f2f4f2;
  --text-1: #f2f4f2;
  --muted: #8a9290;
  --acid: #da7352;
  --purple: #b79aff;
  --red: #ff7068;
  --green: #73e2a7;
  --orange: #f3ad63;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4vw, 32px);
  background: rgba(8, 10, 11, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--acid);
  color: #ffffff;
  border-radius: 8px;
  font: 700 15px "DM Mono", monospace;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a,
.nav-actions .ghost {
  color: var(--muted);
  font-size: 13px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.lang-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238a9290' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--line);
  color: var(--text);
  font: 600 12px "DM Mono", monospace;
  padding: 7px 24px 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  outline: 0;
  transition: border-color 0.15s, background-color 0.15s;
  width: auto;
}

.lang-select:hover {
  border-color: #4d5555;
}

.lang-select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 2px rgba(218, 115, 82, 0.2);
}

body.light .lang-select {
  background-color: #ffffff;
  color: #151716;
  border-color: #dcdfd9;
}

.button {
  border: 0;
  border-radius: 8px;
  background: var(--acid);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 17px;
  cursor: pointer;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(218, 115, 82, 0.25);
}

.button.small {
  padding: 8px 13px;
  font-size: 13px;
}

.button.large {
  padding: 15px 20px;
}

.button.light {
  background: #ffffff;
  color: #080a0b;
}

.button.full {
  width: 100%;
  margin-top: 12px;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}

.ghost:hover {
  border-color: #4d5555;
}

.ghost.small {
  padding: 8px 11px;
}

.text-button {
  font-size: 13px;
  color: var(--muted);
  padding: 14px;
}

.hero,
.section {
  max-width: 1440px;
  margin: auto;
  padding: 110px max(6vw, 48px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-label,
.kicker {
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 12px;
  width: max-content;
  margin-bottom: 42px;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 5px rgba(218, 115, 82, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8vw;
  align-items: center;
}

.kicker {
  color: var(--acid);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(54px, 6.4vw, 102px);
  line-height: 0.95;
  letter-spacing: -6px;
  margin: 0 0 30px;
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
}

.lead {
  color: #aeb5b3;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 35px 0 48px;
}

.trust-row {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font: 11px "DM Mono", monospace;
}

.trust-row b {
  color: var(--text);
  font-size: 13px;
}

/* Hero Terminal Window */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.terminal,
.terminal-card {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-family: var(--font-mono, "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.terminal:hover,
.terminal-card:hover {
  border-color: rgba(218, 115, 82, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(218, 115, 82, 0.12);
}

.terminal-head,
.terminal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font: 11px/1 "DM Mono", monospace;
  color: var(--muted);
}

.terminal-head .dot,
.terminal-head i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 2px;
}

.terminal-head .dot:nth-child(1),
.terminal-head i:first-child {
  background: #ff5f56;
}

.terminal-head .dot:nth-child(2),
.terminal-head i:nth-child(2) {
  background: #ffbd2e;
}

.terminal-head .dot:nth-child(3),
.terminal-head i:nth-child(3) {
  background: #27c93f;
}

.terminal-head .term-title,
.terminal-head code {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.3px;
}

.terminal-body,
.terminal-card pre {
  margin: 0;
  padding: 22px 24px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  color: #e6edf3;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
}

.terminal-body code,
.terminal-card pre code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border: none;
}

.terminal .muted,
.terminal-card .muted,
.muted {
  color: #7d8590;
}

.terminal .term-green,
.green,
.success {
  color: #3fb950;
  font-weight: 600;
}

.terminal .term-dim {
  color: #8b949e;
}

.purple {
  color: var(--purple);
}

.orange {
  color: var(--orange);
}

.terminal-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
}

/* Light Mode Overrides for Terminal */
body.light .terminal,
body.light .terminal-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.light .terminal-head {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.light .terminal-head .term-title,
body.light .terminal-head code {
  color: #94a3b8;
}

body.light .terminal-body,
body.light .terminal-card pre {
  color: #f1f5f9;
}

body.light .terminal .muted,
body.light .terminal-card .muted {
  color: #94a3b8;
}

body.light .terminal .term-green {
  color: #4ade80;
}

body.light .terminal .term-dim {
  color: #94a3b8;
}

/* ==========================================================================
   LANDING PAGE SECTIONS & DESIGN SYSTEM
   ========================================================================== */

.page-section,
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px max(6vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

body.light .page-section,
body.light .section {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.section-label {
  font: 600 11px "DM Mono", monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 24px;
  display: inline-block;
}

.section-head,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2,
.section-heading h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.section-head h2 span,
.section-heading h2 span {
  color: var(--muted);
  font-weight: 400;
}

.section-head p,
.section-heading p {
  max-width: 460px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

/* Models Grid */
.model-cards,
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.model-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
  border-color: rgba(218, 115, 82, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.model-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(218, 115, 82, 0.08) 0%, var(--panel) 100%);
  border-color: rgba(218, 115, 82, 0.35);
}

@media (max-width: 900px) {
  .model-card.featured {
    grid-column: span 1;
  }
}

.badge {
  font: 700 10px "DM Mono", monospace;
  background: var(--acid);
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
  width: max-content;
  letter-spacing: 0.5px;
}

.model-id {
  font: 500 12px "DM Mono", monospace;
  color: var(--muted);
  margin-top: 14px;
}

.model-card h3 {
  font-size: 26px;
  margin: 10px 0 8px;
  letter-spacing: -0.8px;
  color: var(--text);
}

.model-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.model-prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}

@media (max-width: 600px) {
  .model-prices {
    grid-template-columns: repeat(2, 1fr);
  }
}

.model-prices span {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-prices b {
  display: block;
  color: var(--acid);
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

/* Features Grid */
.features-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}

@media (max-width: 1024px) {
  .features-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.feature-grid article {
  padding: 32px 28px;
  min-height: 240px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  flex-direction: column;
}

.feature-card:nth-child(4n),
.feature-grid article:nth-child(4n) {
  border-right: none;
}

.feature-num {
  font: 700 13px "DM Mono", monospace;
  color: var(--acid);
  margin-bottom: 20px;
}

.feature-card h3,
.feature-grid h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.feature-card p,
.feature-grid p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* Pricing Period Switcher (Monthly / Annual) */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.pricing-toggle-pills {
  display: inline-flex;
  align-items: center;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 30px;
  gap: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.pricing-toggle-btn:hover {
  color: var(--text);
}

.pricing-toggle-btn.active {
  background: var(--acid);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(218, 115, 82, 0.4);
}

.pricing-toggle-btn .discount-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.pricing-toggle-btn.active .discount-tag {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

body.light .pricing-toggle-pills {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Packages / Pricing Grid */
.price-cards,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: rgba(218, 115, 82, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.price-card.featured {
  border-color: var(--acid);
  background: linear-gradient(180deg, rgba(218, 115, 82, 0.08) 0%, var(--panel) 100%);
  box-shadow: 0 0 0 1px var(--acid), 0 16px 40px rgba(218, 115, 82, 0.12);
}

.price-card header h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 6px;
  color: var(--text);
}

.price-card p {
  color: var(--muted);
  font-size: 13.5px;
  min-height: 42px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.price-card .price {
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin: 12px 0 4px;
  color: var(--acid);
}

.price-card .price span,
.price-card .price b,
.price-amount {
  color: var(--acid) !important;
}

.price-card .credit {
  font: 600 12.5px "DM Mono", monospace;
  color: var(--acid);
  margin-top: 4px;
}

.price-card ul {
  list-style: none;
  padding: 18px 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.price-card li b {
  color: var(--text);
}

.price-card .button {
  width: 100%;
  margin-top: auto;
  padding: 12px;
  font-size: 14px;
  justify-content: center;
}

/* Key Lookup Section */
.lookup-grid,
.lookup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
}

@media (max-width: 900px) {
  .lookup-grid,
  .lookup {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

.lookup-grid h2,
.lookup h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}

.lookup-grid p,
.lookup p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.lookup-form,
.lookup-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lookup-form label span {
  display: block;
  font: 600 11px "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.lookup-form input {
  padding: 12px 14px;
}

.lookup-form .button {
  width: 100%;
  justify-content: center;
}

.lookup-result {
  font-size: 13px;
  color: var(--muted);
  padding: 14px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  line-height: 1.5;
}

/* Developer Docs Section */
.docs-layout,
.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  min-height: 480px;
}

@media (max-width: 840px) {
  .docs-layout,
  .docs-shell {
    grid-template-columns: 1fr;
  }
  .docs-nav,
  .docs-shell aside {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}

.docs-nav,
.docs-shell aside {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(0, 0, 0, 0.15);
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-title,
.docs-shell aside span {
  font: 700 10px "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 6px 8px;
}

.docs-nav button,
.docs-shell aside button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.docs-nav button:hover,
.docs-shell aside button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.docs-nav button.active,
.docs-shell aside button.active {
  background: rgba(218, 115, 82, 0.15);
  color: var(--acid);
  font-weight: 600;
}

.doc-view,
.doc-content {
  padding: 36px 40px;
  min-width: 0;
}

@media (max-width: 600px) {
  .doc-view,
  .doc-content {
    padding: 24px 18px;
  }
}

.doc-view h3,
.doc-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.doc-view > p,
.doc-content > p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

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

.info-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel2);
}

.info-box span {
  display: block;
  font: 700 9px "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.info-box code {
  font: 600 12px "DM Mono", monospace;
  color: var(--acid);
  word-break: break-all;
}

.code-block {
  position: relative;
  background: #090b0c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  overflow: auto;
  margin: 20px 0;
}

.code-block pre {
  margin: 0;
  font: 12.5px/1.7 "DM Mono", monospace;
  color: #e2e8f0;
  white-space: pre;
}

.code-block .copy {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 10px;
  font-size: 11.5px;
}

.notice {
  border-left: 3px solid var(--acid);
  padding: 12px 16px;
  background: rgba(218, 115, 82, 0.08);
  font-size: 13px;
  color: var(--text);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-list details[open] {
  border-color: rgba(218, 115, 82, 0.4);
  background: var(--panel2);
}

.faq-list summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--acid);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary:after {
  content: '−';
}

.faq-list details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* CTA Card */
.cta-card {
  padding: 72px 40px;
  text-align: center;
  background: linear-gradient(135deg, #da7352 0%, #be5b3c 100%);
  color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(218, 115, 82, 0.3);
}

.cta-card .section-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.cta-card h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 32px;
  color: #ffffff;
}

.cta-card .button {
  background: #ffffff;
  color: #0f172a;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-card .button:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer.footer,
footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px max(6vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link,
.inline-link {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.footer-link:hover,
.inline-link:hover {
  color: var(--acid);
}

.dot-sep {
  color: var(--line);
  font-weight: bold;
}

/* Legal Terms & Privacy Modal */
.legal-dialog {
  max-width: 840px !important;
  width: min(840px, calc(100% - 32px)) !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 32px !important;
}

.legal-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.legal-tab-btn {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.legal-tab-btn:hover {
  color: var(--text);
  border-color: var(--acid);
}

.legal-tab-btn.active {
  background: var(--acid);
  color: #ffffff;
  border-color: var(--acid);
}

.legal-content {
  overflow-y: auto;
  padding-right: 8px;
  max-height: 56vh;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}

.legal-article {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-article h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--acid);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-article p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.65;
}

.legal-article p:last-child {
  margin-bottom: 0;
}

.legal-article ul {
  margin: 8px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-badge-tag {
  display: inline-block;
  font: 700 10px "DM Mono", monospace;
  background: rgba(218, 115, 82, 0.15);
  color: var(--acid);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Light Theme Overrides for Landing Page */
body.light .page-section,
body.light .section {
  border-top-color: rgba(0, 0, 0, 0.06);
}

body.light .model-card,
body.light .price-card,
body.light .lookup-grid,
body.light .lookup,
body.light .docs-layout,
body.light .docs-shell,
body.light .features-grid,
body.light .feature-grid,
body.light .feature-card,
body.light .feature-grid article,
body.light .faq-list details {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light .model-card.featured {
  background: linear-gradient(135deg, rgba(218, 115, 82, 0.06) 0%, #ffffff 100%);
  border-color: rgba(218, 115, 82, 0.35);
}

body.light .price-card.featured {
  background: linear-gradient(180deg, rgba(218, 115, 82, 0.06) 0%, #ffffff 100%);
}

body.light .docs-nav,
body.light .docs-shell aside {
  background: #f8fafc;
  border-right-color: #e2e8f0;
}

body.light .info-box,
body.light .lookup-result {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light .faq-list details[open] {
  background: #f8fafc;
}

/* Modern Accessible Dialog / Modal */
/* Modern Accessible Dialog / Modal (Dark Theme Native) */
dialog,
.auth-dialog,
.setup-2fa-dialog {
  width: min(480px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  padding: 34px 30px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin: auto;
  position: fixed;
  inset: 0;
  color-scheme: dark;
}

dialog::backdrop,
.auth-dialog::backdrop,
.setup-2fa-dialog::backdrop {
  background: rgba(4, 6, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

dialog[open],
.auth-dialog[open],
.setup-2fa-dialog[open] {
  animation: dialogOpen 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.15s;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.dialog-brand {
  margin-bottom: 22px;
}

dialog h2,
.auth-dialog h2,
.setup-2fa-dialog h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--text);
}

dialog > p,
.auth-dialog > p,
.setup-2fa-dialog > p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 6px 0 22px;
  line-height: 1.5;
}

dialog label,
.auth-dialog label,
.setup-2fa-dialog label {
  display: block;
  margin: 14px 0 6px;
  font: 600 11px "DM Mono", monospace;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

dialog input,
.auth-dialog input,
.setup-2fa-dialog input {
  margin-top: 6px;
}

.setup-2fa-dialog .qr-box {
  display: inline-block;
  padding: 12px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin: 12px 0;
}

.setup-2fa-dialog .qr-box img {
  display: block;
  border-radius: 6px;
}

.setup-2fa-dialog .secret-container {
  margin: 14px 0;
}

.setup-2fa-dialog .secret-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.setup-2fa-dialog .secret-input-row input {
  flex: 1;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 9px 12px;
  background: var(--panel2);
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  margin: 0;
}

.setup-2fa-dialog .otp-code-input,
.auth-dialog .otp-code-input,
.otp-code-input {
  text-align: center !important;
  font-size: 24px !important;
  letter-spacing: 7px !important;
  font-weight: 700 !important;
  padding: 11px 14px !important;
  background: var(--panel2) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  font-family: "DM Mono", monospace !important;
}

.setup-2fa-dialog .otp-code-input:focus,
.auth-dialog .otp-code-input:focus,
.otp-code-input:focus {
  border-color: var(--acid) !important;
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.25) !important;
  outline: none !important;
}

.auth-otp-box {
  text-align: center;
  padding: 16px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}

.auth-otp-icon {
  margin: 0 auto 10px;
  width: 48px;
  height: 48px;
}

.auth-otp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.auth-otp-label {
  text-align: center;
}

.auth-otp-label span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.switch-auth {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  margin-top: 20px;
  font-size: 13px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: color 0.15s, background-color 0.15s;
}

.switch-auth:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.switch-auth b {
  color: var(--acid);
  font-weight: 600;
}

.auth-terms-notice {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
  opacity: 0.85;
}

.auth-terms-notice .inline-link {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms-notice .inline-link:hover {
  color: var(--acid);
}

#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  background: #15191b;
  color: #f2f4f2;
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

#toast.error {
  background: #231212;
  border-color: rgba(255, 112, 104, 0.35);
  color: #ff8e88;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 14px;
  animation: authAlertShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.auth-alert.error-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.auth-alert.success-alert {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.auth-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.auth-alert-text {
  flex: 1;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

@keyframes authAlertShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

html.is-dashboard-route header.topbar,
html.is-dashboard-route main#app,
html.is-dashboard-route footer {
  display: none !important;
}

html.is-dashboard-route #dashboardView {
  display: block !important;
}

.app-view {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  z-index: 45;
}

.app-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  padding: 0 10px 28px;
  border-bottom: 1px solid var(--line);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 22px;
}

.sidebar nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.sidebar nav button .nav-icon {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  stroke-width: 1.9;
  flex-shrink: 0;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.sidebar nav button.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 600;
}

.sidebar nav button.active .nav-icon {
  stroke: var(--acid);
}

.sidebar nav button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.sidebar nav button:hover:not(.active) .nav-icon {
  stroke: var(--text);
}

.sidebar .user-card-profile {
  margin-top: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .user-card-profile:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.user-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acid) 0%, #be5b3c 100%);
  color: #ffffff;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(218, 115, 82, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--panel, #121515);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.user-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.user-role-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--acid);
  background: rgba(218, 115, 82, 0.15);
  border: 1px solid rgba(218, 115, 82, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.user-card-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono, "DM Mono", monospace);
}

.user-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-action-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.user-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-action-btn.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.user-action-btn.logout-btn:hover svg {
  stroke: #f87171;
}

.app-main {
  padding: 36px 4vw 70px;
  min-width: 0;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.app-head h1 {
  font-size: 30px;
  margin: 0;
}

.app-head p {
  color: var(--muted);
  margin: 3px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.stat span {
  font: 9px "DM Mono", monospace;
  color: var(--muted);
  text-transform: uppercase;
}

.stat b {
  display: block;
  font-size: 25px;
  margin-top: 9px;
}

.stat small {
  color: var(--green);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  margin-bottom: 14px;
  overflow: auto;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 16px;
  margin: 0;
}

.panel p {
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

th {
  text-align: left;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 13px 10px;
  border-bottom: 1px solid #202525;
  white-space: nowrap;
}

.status {
  font: 9px "DM Mono", monospace;
  border-radius: 20px;
  padding: 5px 8px;
  background: #222827;
}

.status.approved,
.status.active {
  color: var(--green);
  background: rgba(115, 226, 167, 0.09);
}

.status.pending {
  color: var(--orange);
  background: rgba(243, 173, 99, 0.09);
}

.status.rejected,
.status.inactive {
  color: var(--red);
  background: rgba(255, 112, 104, 0.09);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px !important;
}

.key-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 9px;
}

.key-card code {
  color: var(--purple);
}

.key-card small {
  color: var(--muted);
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1/-1;
}

.settings-section-title {
  grid-column: 1/-1;
  font: 700 12px "DM Mono", monospace;
  letter-spacing: 1px;
  color: var(--acid);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-top: 18px;
  margin-bottom: 4px;
}

/* API Playground Modern Suite */
.playground {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}

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

.playground-editor,
.playground-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.playground-editor {
  gap: 14px;
}

.playground-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.preset-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.preset-chip:hover {
  background: rgba(218, 115, 82, 0.12);
  color: var(--acid);
  border-color: var(--acid);
}

.playground-params-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.playground-params-drawer {
  padding: 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.playground-params-drawer.hidden {
  display: none !important;
}

.playground-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.playground-view-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.playground-view-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 600;
}

.playground-view-tabs button.active {
  background: var(--acid);
  color: #ffffff;
}

.playground-output-box {
  background: #0b0f14;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  min-height: 380px;
  max-height: 600px;
  overflow-y: auto;
  font: 13px/1.65 "DM Mono", monospace;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}

.playground-output-box .output-placeholder {
  color: var(--muted);
  font-style: italic;
}

.playground-output-box .output-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font-weight: 600;
}

.package-dialog {
  max-width: 700px !important;
  padding: 26px 28px !important;
}

.package-calc-box {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-live-preview-box {
  background: linear-gradient(180deg, var(--panel2) 0%, rgba(0, 0, 0, 0.25) 100%);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 10px;
}

/* Admin Settings Refined Grid & Cards */
.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.settings-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(218, 115, 82, 0.12);
  color: var(--acid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.settings-card-head h3 {
  margin: 0 0 4px 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.settings-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

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

.settings-field.wide {
  grid-column: 1 / -1;
}

.settings-field > label {
  font: 700 11px "DM Mono", monospace;
  letter-spacing: 0.8px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
}

.settings-field .settings-help {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.color-picker-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-box input[type="color"] {
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel2);
  flex-shrink: 0;
}

.color-picker-box input[type="text"] {
  flex: 1;
}

.badge-picker-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-picker-box input {
  flex: 1;
}

.badge-live-preview {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--acid);
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
}

.settings-save-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .settings-grid-2 {
    grid-template-columns: 1fr;
  }
}

.color-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-input-group input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel2);
  flex-shrink: 0;
}

.color-input-group input[type="text"] {
  flex: 1;
}

.form-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.modal-key {
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 14px;
  word-break: break-all;
  color: var(--acid);
  border-radius: 7px;
  font: 12px "DM Mono", monospace;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}

.tabs button.active {
  color: var(--text);
  border-color: var(--acid);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
}

.admin-card h3 {
  margin: 0;
}

.admin-card p {
  font-size: 12px;
  margin: 4px 0;
}

.admin-card code {
  font-size: 10px;
  color: var(--purple);
}

.right {
  text-align: right;
}

.danger {
  color: var(--red);
}

[hidden],
.hidden {
  display: none !important;
}

/* Light Theme Overrides */
body.light {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --panel2: #eceeea;
  --line: #dcdfd9;
  --text: #151716;
  --muted: #68706d;
  --shadow: 0 30px 80px rgba(30, 40, 30, 0.12);
  color-scheme: light;
}

.light .topbar {
  background: rgba(245, 244, 240, 0.88);
}

.light .terminal-card,
.light .code-block {
  background: #171a1a;
  color: #f2f4f2;
}

.light .feature-grid article {
  background: #ffffff;
}

.light .app-view {
  background: var(--bg);
}

.light dialog {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.light .dialog-close {
  background: rgba(0, 0, 0, 0.05);
}

.light .dialog-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.light .switch-auth:hover {
  background: rgba(0, 0, 0, 0.04);
}

.light #toast {
  background: #ffffff;
  color: #151716;
  border-color: #dcdfd9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.light #toast.error {
  background: #fff3f2;
  border-color: #ffc2bf;
  color: #d12c24;
}

.light td {
  border-bottom: 1px solid #e7ebe5;
}

.light .sidebar nav button.active {
  background: #e2e5e0;
}

.light .sidebar nav button:hover:not(.active) {
  background: rgba(0, 0, 0, 0.03);
}

/* Responsive Media Queries */
@media (max-width: 1050px) {
  .hero-grid,
  .lookup {
    grid-template-columns: 1fr;
  }
  .terminal-card {
    margin-top: 30px;
    transform: none;
  }
  .model-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid article {
    border-bottom: 1px solid var(--line);
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 20px;
  }
  .hero h1 {
    letter-spacing: -4px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 16px;
  }
  .nav-actions .ghost:not(.small) {
    display: none;
  }
  .hero,
  .section {
    padding: 75px 22px;
  }
  .hero h1,
  .cta h2 {
    letter-spacing: -3px;
  }
  .model-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .model-card.featured {
    grid-column: auto;
  }
  .compat div {
    flex-wrap: wrap;
  }
  .docs-shell {
    grid-template-columns: 1fr;
  }
  .docs-shell aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow: auto;
  }
  .docs-shell aside span {
    display: none;
  }
  .docs-shell aside button {
    white-space: nowrap;
  }
  .doc-content {
    padding: 28px 20px;
  }
  .info-row {
    grid-template-columns: 1fr;
  }
  .lookup-box > div {
    display: block;
  }
  .lookup-box .button {
    margin-top: 8px;
    width: 100%;
  }
  footer {
    grid-template-columns: 1fr;
  }
  .trust-row {
    flex-wrap: wrap;
  }
  .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
  }
  .sidebar .user-mini {
    display: none;
  }
  .app-main {
    padding: 25px 16px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .key-card {
    grid-template-columns: 1fr;
  }
  .admin-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide,
  .form-actions {
    grid-column: auto;
  }
  .app-head {
    align-items: start;
  }
  .app-head .button {
    font-size: 11px;
  }
  .terminal-card pre {
    font-size: 10px;
  }
  .cta {
    padding: 80px 20px;
  }
}

/* Experience layer */
.pulse.warning {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(243, 173, 99, 0.09);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4px;
  font-size: 17px;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font: 22px "DM Mono", monospace;
  color: var(--muted);
  transition: 0.2s;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
  color: var(--acid);
}

.faq-list details p {
  color: var(--muted);
  max-width: 760px;
  margin: -6px 0 25px;
}

.sidebar-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
}

.sidebar-status .pulse {
  flex: 0 0 auto;
}

.sidebar-status b,
.sidebar-status small {
  display: block;
}

.sidebar-status b {
  font-size: 11px;
}

.sidebar-status small {
  font-size: 9px;
  color: var(--muted);
}

.sidebar-status + .user-mini {
  margin-top: 12px;
}

.welcome-strip {
  display: grid;
  grid-template-columns: 180px minmax(130px, 1fr) repeat(3, auto);
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid rgba(218, 115, 82, 0.28);
  background: linear-gradient(90deg, rgba(218, 115, 82, 0.1), transparent);
  border-radius: 10px;
  margin-bottom: 14px;
}

.welcome-strip span {
  display: block;
  font: 8px "DM Mono", monospace;
  color: var(--muted);
}

.welcome-strip b {
  font-size: 12px;
}

.progress {
  height: 4px;
  background: #242a29;
  border-radius: 5px;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--acid);
  border-radius: 5px;
}

.onboard-step {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.onboard-step i {
  font-style: normal;
  color: var(--orange);
  margin-right: 5px;
}

.onboard-step.done {
  color: #7f8885;
  text-decoration: line-through;
}

.onboard-step.done i {
  color: var(--green);
}

.panel-head > div > p {
  margin: 2px 0 0;
  font-size: 11px;
}

.chart {
  height: 220px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding-top: 22px;
}

.chart-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 32px;
}

.chart-value {
  height: 22px;
  font: 8px "DM Mono", monospace;
  color: var(--muted);
  opacity: 0;
  transition: 0.2s;
}

.chart-day:hover .chart-value {
  opacity: 1;
}

.chart-bar {
  flex: 1;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.chart-bar i {
  width: min(34px, 70%);
  min-height: 4px;
  background: linear-gradient(var(--acid), #944026);
  border-radius: 5px 5px 1px 1px;
  transition: 0.25s;
}

.chart-day:hover .chart-bar i {
  filter: brightness(1.2);
}

.chart-day b {
  font: 9px "DM Mono", monospace;
  margin-top: 8px;
  text-transform: uppercase;
}

.chart-day small {
  font-size: 8px;
  color: var(--muted);
}

.quick-panel label {
  display: block;
  margin-top: 17px;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  border: 1px solid var(--line);
  background: var(--panel2);
  border-radius: 7px;
  padding: 8px 8px 8px 11px;
}

.copy-row code {
  color: var(--purple);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-count {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #222827;
  font: 9px "DM Mono", monospace;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
  border: 0;
}

.notification-item b {
  font-size: 12px;
}

.notification-item p {
  font-size: 10px;
  margin: 2px 0;
}

.notification-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  margin-top: 7px;
  flex: 0 0 auto;
}

.notification-dot.success {
  background: var(--green);
}

.empty-state {
  text-align: center;
  padding: 25px 10px;
  color: var(--muted);
}

.empty-state i,
.empty-state b {
  display: block;
}

.empty-state i {
  font-style: normal;
  font-size: 26px;
  color: #4b5250;
}

.empty-state b {
  color: #a8afad;
  font-size: 12px;
  margin-top: 5px;
}

.empty-state p {
  font-size: 10px;
  margin: 2px;
}

.model-bars > div {
  margin: 19px 0;
}

.model-bars header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.model-bars header span {
  color: var(--muted);
}

.meter {
  height: 6px;
  background: #242928;
  border-radius: 5px;
  margin-top: 7px;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--bar);
  border-radius: 5px;
}

.table-search {
  width: 220px;
  padding: 8px 10px;
  font-size: 10px;
}

.playground {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  min-height: 620px;
}

.playground-editor,
.playground-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
}

.playground-editor label {
  display: block;
  margin: 14px 0;
}

.playground-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.playground-result {
  display: flex;
  flex-direction: column;
}

.playground-result pre {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  background: #090b0c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 0;
  font: 12px/1.8 "DM Mono", monospace;
  color: #cbd2d0;
  overflow: auto;
}

.playground-result .panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

@media (max-width: 1050px) {
  .welcome-strip {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-strip .onboard-step {
    display: none;
  }
  .playground {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .welcome-strip {
    grid-template-columns: 1fr;
  }
  .welcome-strip .progress {
    height: 6px;
  }
  .sidebar-status {
    display: none;
  }
  .playground-options {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 170px;
  }
  .table-search {
    width: 150px;
  }
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-chips .chip {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font: 600 12px "DM Mono", monospace;
  cursor: pointer;
  transition: 0.15s;
}

.quick-chips .chip:hover {
  border-color: #5d6565;
}

.quick-chips .chip.active {
  background: var(--acid);
  border-color: var(--acid);
  color: #ffffff;
}

.payment-info-card {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.payment-instructions-box {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
}

.payment-instructions-box pre {
  margin: 0;
  font: 12px/1.5 "DM Mono", monospace;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
}

.payment-instructions-box .copy-btn {
  margin-top: 10px;
}

.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  stroke: currentColor;
}

.svg-icon-lg {
  width: 28px;
  height: 28px;
}

.icon-badge-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(218, 115, 82, 0.12);
  color: var(--acid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-verify-banner {
  background: linear-gradient(135deg, rgba(218, 115, 82, 0.12) 0%, rgba(218, 115, 82, 0.04) 100%);
  border: 1px solid rgba(218, 115, 82, 0.35);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}

.email-verify-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 300px;
}

.email-verify-content b {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
  font-weight: 600;
}

.email-verify-content span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

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

.email-verify-actions .button {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 13px;
}

/* Confirmation Dialog */
.confirm-dialog {
  max-width: 440px !important;
  text-align: center;
  padding: 32px 28px !important;
}

.confirm-dialog-icon {
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog-icon.primary {
  background: rgba(218, 115, 82, 0.14);
  color: var(--acid);
}

.confirm-dialog-icon.danger {
  background: rgba(255, 112, 104, 0.14);
  color: var(--red);
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.confirm-dialog-actions .button,
.confirm-dialog-actions .ghost {
  margin: 0;
  padding: 11px 16px;
  font-size: 13.5px;
  justify-content: center;
}

.button.danger {
  background: #e04a43;
  color: #ffffff;
}

.button.danger:hover {
  background: #c93d37;
  box-shadow: 0 10px 30px rgba(224, 74, 67, 0.3);
}

/* Light Mode Overrides for Dialogs & Modals */
body.light dialog,
body.light .auth-dialog,
body.light .setup-2fa-dialog,
body.light .confirm-dialog {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  color-scheme: light;
}

body.light dialog::backdrop,
body.light .auth-dialog::backdrop,
body.light .setup-2fa-dialog::backdrop,
body.light .confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(8px);
}

body.light .dialog-close {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #64748b !important;
}

body.light .dialog-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

body.light .auth-otp-box,
body.light .setup-2fa-dialog .secret-input-row input,
body.light .setup-2fa-dialog .otp-code-input,
body.light .auth-dialog .otp-code-input,
body.light .otp-code-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light .ghost {
  border-color: #cbd5e1;
  color: #334155;
}

body.light .ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

/* Settings Security Features Grid & Subtle Faint Dividers */
.settings-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.settings-feature-card {
  padding: 28px 24px;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Subtle faint divider between the 3 features */
@media (min-width: 1024px) {
  .settings-features-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .settings-feature-card:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  body.light .settings-feature-card:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 1023px) {
  .settings-features-grid {
    display: flex;
    flex-direction: column;
  }
  .settings-feature-card:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  body.light .settings-feature-card:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

body.light .settings-features-grid {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Crypto Asset & Network Selector (Dashboard Orders / Deposit) */
.crypto-selector-container {
  margin: 14px 0 10px;
}

.crypto-selector-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crypto-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.crypto-chip {
  padding: 10px 10px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.crypto-chip small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.crypto-chip:hover {
  border-color: var(--acid);
  background: rgba(218, 115, 82, 0.08);
}

.crypto-chip.active {
  background: rgba(218, 115, 82, 0.18);
  border-color: var(--acid);
  color: var(--acid);
  box-shadow: 0 0 0 2px rgba(218, 115, 82, 0.22);
}

.crypto-chip.active small {
  color: var(--text);
}

.crypto-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(218, 115, 82, 0.12);
  color: var(--acid);
  border: 1px solid rgba(218, 115, 82, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.sub-asset-admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 12px;
}

.sub-asset-admin-row {
  display: grid;
  grid-template-columns: 90px 140px 1fr 34px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sub-asset-admin-row input {
  margin: 0;
  padding: 7px 10px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .sub-asset-admin-row {
    grid-template-columns: 1fr;
  }
}

body.light .crypto-chip {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light .crypto-chip.active {
  background: rgba(218, 115, 82, 0.14);
  border-color: var(--acid);
  color: var(--acid);
}

body.light .sub-asset-admin-row {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Modern Pagination Bar & Controls */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--panel2);
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 12.5px;
  color: var(--muted);
}

.pagination-info b {
  color: var(--text);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(218, 115, 82, 0.08);
}

.page-btn.active {
  background: var(--acid);
  border-color: var(--acid);
  color: #ffffff;
  cursor: default;
}

.page-btn:disabled, .page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.page-dots {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

/* =========================================================
   Ultra-Modern Combobox / Select Component Styling
   ========================================================= */
select,
.select,
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--panel2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23da7352' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 40px 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

select:hover,
.select:hover,
.form-select:hover {
  border-color: rgba(218, 115, 82, 0.65);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: 0 2px 8px rgba(218, 115, 82, 0.1);
}

select:focus,
.select:focus,
.form-select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.25), 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: var(--panel);
}

select option {
  background-color: #121517;
  color: #f2f4f2;
  padding: 12px;
  font-size: 13.5px;
}

body.light select,
body.light .select,
body.light .form-select {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light select:hover,
body.light .select:hover,
body.light .form-select:hover {
  border-color: var(--acid);
  background-color: #f8fafc;
  box-shadow: 0 2px 8px rgba(218, 115, 82, 0.1);
}

body.light select:focus,
body.light .select:focus,
body.light .form-select:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.18), 0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

body.light select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* =========================================================
   Wide Modern Model Form Modal Layout
   ========================================================= */
.wide-model-dialog {
  max-width: 980px !important;
  width: min(980px, calc(100% - 32px)) !important;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 34px !important;
  border-radius: 20px !important;
}

.model-dialog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .model-dialog-layout {
    grid-template-columns: 1fr;
  }
}

.model-section-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

.model-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.modal-card-col-title svg,
.model-section-title svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.model-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .model-price-grid {
    grid-template-columns: 1fr;
  }
}

.model-live-calc-box {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 4px;
}

.model-live-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 10px;
}

@media (max-width: 600px) {
  .model-live-breakdown-grid {
    grid-template-columns: 1fr;
  }
}

.model-live-item {
  background: var(--bg-card, #0f1315);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
}

body.light .model-section-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light .model-live-calc-box {
  background: #ffffff;
  border-color: #cbd5e1;
}

body.light .model-live-item {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* =========================================================
   Universal Wide Modal Dialogs & 2-Column Split Layouts
   ========================================================= */
.wide-modal-dialog {
  max-width: 960px !important;
  width: min(960px, calc(100% - 32px)) !important;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 32px !important;
  border-radius: 20px !important;
}

.modal-dialog-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 14px;
}

@media (max-width: 860px) {
  .modal-dialog-split {
    grid-template-columns: 1fr;
  }
}

.modal-card-col {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
}

.modal-card-col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--acid);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

body.light .modal-card-col {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Specialized Wide Payment Admin Dialog */
.payment-admin-dialog {
  max-width: 1200px !important;
  width: min(1200px, calc(100vw - 48px)) !important;
  padding: 30px 36px !important;
}

.payment-admin-dialog .modal-dialog-split {
  grid-template-columns: 380px 1fr !important;
  gap: 24px;
}

.payment-admin-dialog .sub-asset-admin-row {
  display: grid;
  grid-template-columns: 85px 150px 1fr 34px;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-admin-dialog .sub-asset-admin-row input {
  margin: 0;
  padding: 8px 12px;
  font-size: 12.5px;
  background: var(--bg-1, var(--panel));
  border: 1px solid var(--border, var(--line));
  border-radius: 6px;
  color: var(--text);
}

.payment-admin-dialog .sub-asset-admin-row input:focus {
  border-color: var(--acid);
  outline: none;
}

@media (max-width: 980px) {
  .payment-admin-dialog {
    width: min(100%, calc(100vw - 24px)) !important;
    padding: 20px !important;
  }
  .payment-admin-dialog .modal-dialog-split {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .payment-admin-dialog .sub-assets-header-labels {
    display: none !important;
  }
  .payment-admin-dialog .sub-asset-admin-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================================================
   Ultra-Modern Checkbox, Radio & Switch Component Suite
   ========================================================= */

/* Custom Modern Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background-color: var(--panel2);
  border: 1.8px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  margin: 0;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2.2px solid #ffffff;
  border-bottom: 2.2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: -2px;
}

input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--acid);
  background-color: rgba(218, 115, 82, 0.08);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.15);
}

input[type="checkbox"]:checked {
  background-color: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 2px 8px rgba(218, 115, 82, 0.38);
}

input[type="checkbox"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

input[type="checkbox"]:indeterminate {
  background-color: var(--acid);
  border-color: var(--acid);
}

input[type="checkbox"]:indeterminate::before {
  width: 10px;
  height: 0;
  border-left: none;
  border-bottom: 2.2px solid #ffffff;
  transform: rotate(0) scale(1);
  margin-top: 0;
}

input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.28), 0 2px 8px rgba(0, 0, 0, 0.25);
}

input[type="checkbox"]:active:not(:disabled) {
  transform: scale(0.92);
}

input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Custom Modern Radio Button */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background-color: var(--panel2);
  border: 1.8px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  margin: 0;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
}

input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type="radio"]:hover:not(:disabled) {
  border-color: var(--acid);
  background-color: rgba(218, 115, 82, 0.08);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.15);
}

input[type="radio"]:checked {
  background-color: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 2px 8px rgba(218, 115, 82, 0.38);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus-visible {
  outline: none;
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.28);
}

input[type="radio"]:active:not(:disabled) {
  transform: scale(0.92);
}

input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Modern Checkbox & Radio Labels */
.checkbox-label,
.radio-label,
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  user-select: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin: 6px 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"],
label:has(> input[type="checkbox"]) input[type="checkbox"],
label:has(> input[type="radio"]) input[type="radio"] {
  margin: 0 !important;
}

/* Modern Toggle Switch Component */
.toggle-switch,
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input[type="checkbox"],
.switch-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 44px;
  height: 24px;
  min-width: 44px;
  min-height: 24px;
  background-color: var(--panel2);
  border: 1.5px solid var(--line);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.toggle-switch input[type="checkbox"]::before,
.switch-label input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: #cbd2d0;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  border: none;
  transform: none;
  margin: 0;
}

.toggle-switch input[type="checkbox"]:checked,
.switch-label input[type="checkbox"]:checked {
  background-color: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 2px 10px rgba(218, 115, 82, 0.38);
}

.toggle-switch input[type="checkbox"]:checked::before,
.switch-label input[type="checkbox"]:checked::before {
  transform: translateX(20px);
  background-color: #ffffff;
}

.toggle-switch input[type="checkbox"]:hover:not(:disabled),
.switch-label input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(218, 115, 82, 0.15);
}

/* Light Theme Overrides for Checkbox & Radio */
body.light input[type="checkbox"],
body.light input[type="radio"],
body.light .toggle-switch input[type="checkbox"],
body.light .switch-label input[type="checkbox"] {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.light input[type="checkbox"]:hover:not(:disabled),
body.light input[type="radio"]:hover:not(:disabled),
body.light .toggle-switch input[type="checkbox"]:hover:not(:disabled) {
  background-color: #e2e8f0;
  border-color: var(--acid);
}

body.light input[type="checkbox"]:checked,
body.light input[type="radio"]:checked,
body.light .toggle-switch input[type="checkbox"]:checked {
  background-color: var(--acid);
  border-color: var(--acid);
}

/* =========================================================
   Ultra-Modern Textbox & Textarea Component Suite
   ========================================================= */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input:not([type]),
textarea,
.form-input,
.textbox {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--panel2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              transform 0.1s ease;
}

/* Hover State */
input[type="text"]:hover:not(:disabled):not(:focus),
input[type="password"]:hover:not(:disabled):not(:focus),
input[type="email"]:hover:not(:disabled):not(:focus),
input[type="number"]:hover:not(:disabled):not(:focus),
input[type="search"]:hover:not(:disabled):not(:focus),
input[type="url"]:hover:not(:disabled):not(:focus),
input[type="tel"]:hover:not(:disabled):not(:focus),
input[type="date"]:hover:not(:disabled):not(:focus),
input:not([type]):hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not(:focus),
.form-input:hover:not(:disabled):not(:focus),
.textbox:hover:not(:disabled):not(:focus) {
  border-color: rgba(218, 115, 82, 0.6);
  background-color: rgba(255, 255, 255, 0.035);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Focus State */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input:not([type]):focus,
textarea:focus,
.form-input:focus,
.textbox:focus {
  border-color: var(--acid);
  background-color: var(--panel);
  box-shadow: 0 0 0 3.5px rgba(218, 115, 82, 0.22), 0 4px 14px rgba(0, 0, 0, 0.25);
  outline: none;
}

/* Placeholder Styling */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.65;
  font-size: 13px;
  font-weight: 400;
}

/* Disabled & Readonly */
input:disabled,
textarea:disabled,
input[readonly],
textarea[readonly] {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Textarea Modernization */
textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.6;
}

/* Table Search Input with Embedded Search Icon */
.table-search,
input[type="search"] {
  width: 260px;
  padding: 9px 14px 9px 36px !important;
  font-size: 12.5px !important;
  border-radius: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a9290' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 12px center !important;
  background-size: 14px !important;
}

.table-search:focus,
input[type="search"]:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23da7352' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
}

/* Code & Key Textboxes */
input[type="password"],
input[name*="key"],
input[name*="secret"],
input[name*="token"],
input[name*="model"],
input[name*="url"],
input[name*="host"],
.code-input {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
}

input[type="password"] {
  letter-spacing: 2px;
}

/* Light Theme Overrides for Textboxes */
body.light input[type="text"],
body.light input[type="password"],
body.light input[type="email"],
body.light input[type="number"],
body.light input[type="search"],
body.light input[type="url"],
body.light input[type="tel"],
body.light input[type="date"],
body.light input:not([type]),
body.light textarea,
body.light .form-input,
body.light .textbox,
body.light .table-search {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light input[type="text"]:hover:not(:disabled):not(:focus),
body.light input[type="password"]:hover:not(:disabled):not(:focus),
body.light input[type="email"]:hover:not(:disabled):not(:focus),
body.light input[type="number"]:hover:not(:disabled):not(:focus),
body.light input[type="search"]:hover:not(:disabled):not(:focus),
body.light input[type="url"]:hover:not(:disabled):not(:focus),
body.light input[type="tel"]:hover:not(:disabled):not(:focus),
body.light input[type="date"]:hover:not(:disabled):not(:focus),
body.light input:not([type]):hover:not(:disabled):not(:focus),
body.light textarea:hover:not(:disabled):not(:focus),
body.light .table-search:hover:not(:disabled):not(:focus) {
  border-color: rgba(218, 115, 82, 0.65);
  background-color: #f8fafc;
  box-shadow: 0 2px 8px rgba(218, 115, 82, 0.1);
}

body.light input[type="text"]:focus,
body.light input[type="password"]:focus,
body.light input[type="email"]:focus,
body.light input[type="number"]:focus,
body.light input[type="search"]:focus,
body.light input[type="url"]:focus,
body.light input[type="tel"]:focus,
body.light input[type="date"]:focus,
body.light input:not([type]):focus,
body.light textarea:focus,
body.light .table-search:focus {
  border-color: var(--acid);
  background-color: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(218, 115, 82, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.light input::placeholder,
body.light textarea::placeholder {
  color: #94a3b8;
}

/* ==========================================================================
   Ultra-Modern Segmented Admin Tab Navigation
   ========================================================================== */
.dash-admin-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-btn:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line);
  transform: translateY(-1px);
}

.admin-tab-btn.active {
  background: rgba(218, 115, 82, 0.12);
  color: var(--acid);
  border-color: rgba(218, 115, 82, 0.35);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(218, 115, 82, 0.12);
}

.admin-tab-btn .admin-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: inherit;
  flex-shrink: 0;
}

.admin-tab-btn .admin-tab-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.admin-tab-btn .admin-tab-label {
  letter-spacing: 0.2px;
}

.admin-tab-btn .admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--border);
  line-height: 1.3;
  margin-left: 2px;
  transition: all 0.18s ease;
}

.admin-tab-btn.active .admin-tab-badge {
  background: rgba(218, 115, 82, 0.2);
  color: var(--acid);
  border-color: rgba(218, 115, 82, 0.45);
}

.admin-tab-badge.pending-alert {
  background: rgba(239, 68, 68, 0.2) !important;
  color: var(--red, #ef4444) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

@media (max-width: 768px) {
  .dash-admin-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-tab-btn {
    flex-shrink: 0;
  }
}

/* ==========================================================================
   Executive Admin Metric Cards
   ========================================================================== */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-stat-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.admin-stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-card-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.admin-stat-card-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.admin-stat-card-footer {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-stat-card-footer span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}









