/* QubixPay Dashboard — Light theme (matches landing page) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --dash-bg: #f8fafc;
  --dash-surface: #ffffff;
  --dash-surface-muted: #f1f5f9;
  --dash-border: #e2e8f0;
  --dash-border-bright: #cbd5e1;
  --dash-text: #0f172a;
  --dash-muted: #64748b;
  --dash-accent: #059669;
  --dash-accent-hover: #047857;
  --dash-accent-light: #ecfdf5;
  --dash-accent-border: #a7f3d0;
  --dash-sky: #0284c7;
  --dash-success: #059669;
  --dash-warning: #d97706;
  --dash-danger: #e11d48;
  --dash-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --dash-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --dash-radius: 16px;
  --dash-radius-lg: 22px;
  --dash-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

body.dash-app {
  font-family: var(--dash-font);
  color: var(--dash-text);
  background: var(--dash-bg);
  -webkit-font-smoothing: antialiased;
}

/* Background — same feel as landing page */
.dash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(to bottom right, #ffffff, #f8fafc, #f1f5f9);
}

.dash-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.1), transparent 45%),
    radial-gradient(circle at 90% 60%, rgba(56, 189, 248, 0.1), transparent 45%),
    radial-gradient(circle at 40% 110%, rgba(99, 102, 241, 0.08), transparent 45%);
  pointer-events: none;
}

.dash-bg-grid {
  display: none;
}

/* Sidebar */
.dash-sidebar {
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--dash-border);
  backdrop-filter: blur(12px);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.dash-sidebar .border-white\/5 {
  border-color: var(--dash-border) !important;
}

.dash-brand-icon {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #a7f3d0;
  box-shadow: var(--dash-shadow-sm);
  color: #047857;
}

.dash-brand-icon svg,
.dash-brand-icon i {
  color: #047857 !important;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--dash-muted);
  transition: all 0.2s ease;
  text-align: left;
}

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

.dash-nav-item--active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: var(--dash-text);
  box-shadow: var(--dash-shadow-sm);
}

.dash-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  flex-shrink: 0;
  color: #475569;
  transition: all 0.2s ease;
}

.dash-nav-item--active .dash-nav-icon {
  background: rgba(16, 185, 129, 0.12);
  border-color: #6ee7b7;
  color: #059669;
}

.dash-nav-item--active .dash-nav-icon svg {
  stroke: #059669;
}

.dash-btn-logout {
  background: #fff;
  border: 1px solid #fecdd3;
  color: #e11d48;
  transition: all 0.2s ease;
}

.dash-btn-logout:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

/* Header */
.dash-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--dash-border);
  backdrop-filter: blur(12px);
}

.dash-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.dash-page-title {
  color: var(--dash-text);
  background: none;
  -webkit-text-fill-color: unset;
}

/* Cards */
.dash-card {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  box-shadow: var(--dash-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  border-color: var(--dash-border-bright);
  box-shadow: var(--dash-shadow);
}

.dash-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dash-text);
}

.dash-card-sub {
  font-size: 0.75rem;
  color: var(--dash-muted);
  margin-top: 4px;
}

/* Dashboard home layout */
.dash-home:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash-home-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-home-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dash-text);
}

.dash-hero-sub {
  font-size: 0.875rem;
  color: var(--dash-muted);
  margin-top: 4px;
}

.dash-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.dash-panel {
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--dash-shadow-sm);
}

@media (min-width: 640px) {
  .dash-panel {
    padding: 1.5rem 1.75rem;
  }
}

.dash-panel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dash-border), transparent);
  margin: 1.5rem 0;
}

.dash-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash-section-head--standalone {
  margin-bottom: 0.25rem;
}

.dash-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-section-icon--payments {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.dash-section-icon--account {
  background: #f5f3ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.dash-section-icon--actions {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-text);
  letter-spacing: -0.02em;
}

.dash-section-desc {
  font-size: 0.75rem;
  color: var(--dash-muted);
  margin-top: 2px;
}

.dash-metrics-grid {
  display: grid;
  gap: 0.75rem;
}

.dash-metrics-grid--payments {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .dash-metrics-grid--payments {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dash-metrics-grid--account {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .dash-metrics-grid--account {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dash-actions-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dash-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Stat cards — pastel (landing-style) */
.dash-stat {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--dash-radius-lg);
  border: 1px solid var(--dash-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  background: #fff;
}

.dash-stat--tall {
  min-height: 140px;
}

.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--dash-shadow-sm);
}

.dash-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.95;
}

.dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.dash-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

.dash-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: auto;
  padding-top: 6px;
  line-height: 1.1;
  color: var(--dash-text);
}

.dash-stat-value--sm {
  font-size: 1.35rem;
}

.dash-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dash-stat-head .dash-stat-label {
  margin: 0;
}

.dash-stat-meta {
  font-size: 11px;
  line-height: 1.45;
  color: var(--dash-muted);
  margin-top: 6px;
}

.dash-stat-meta-group {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-stat--neutral {
  background: linear-gradient(to bottom right, #fff, #f8fafc);
}
.dash-stat--neutral::before { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.dash-stat--neutral .dash-stat-icon { background: #f1f5f9; color: #475569; }

.dash-stat--success {
  background: linear-gradient(to bottom right, #ecfdf5, #d1fae5);
  border-color: #a7f3d0;
}
.dash-stat--success::before { background: linear-gradient(90deg, #10b981, #34d399); }
.dash-stat--success .dash-stat-icon { background: rgba(16, 185, 129, 0.15); color: #059669; }
.dash-stat--success .dash-stat-value { color: #047857; }

.dash-stat--warning {
  background: linear-gradient(to bottom right, #fffbeb, #fef3c7);
  border-color: #fde68a;
}
.dash-stat--warning::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dash-stat--warning .dash-stat-icon { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.dash-stat--warning .dash-stat-value { color: #b45309; }

.dash-stat--danger {
  background: linear-gradient(to bottom right, #fff1f2, #ffe4e6);
  border-color: #fecdd3;
}
.dash-stat--danger::before { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.dash-stat--danger .dash-stat-icon { background: rgba(244, 63, 94, 0.12); color: #e11d48; }
.dash-stat--danger .dash-stat-value { color: #be123c; }

.dash-stat--info {
  background: linear-gradient(to bottom right, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}
.dash-stat--info::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.dash-stat--info .dash-stat-icon { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.dash-stat--info .dash-stat-value { color: #1d4ed8; }

.dash-stat--accent {
  background: linear-gradient(to bottom right, #faf5ff, #f3e8ff);
  border-color: #e9d5ff;
}
.dash-stat--accent::before { background: linear-gradient(90deg, #a855f7, #c084fc); }
.dash-stat--accent .dash-stat-icon { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.dash-stat--accent .dash-stat-value { color: #7e22ce; }

.dash-stat--cyan {
  background: linear-gradient(to bottom right, #ecfeff, #cffafe);
  border-color: #a5f3fc;
}
.dash-stat--cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.dash-stat--cyan .dash-stat-icon { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.dash-stat--cyan .dash-stat-value { color: #0e7490; }

/* Buttons — emerald primary like landing */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.dash-btn-primary {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.dash-btn-primary:hover {
  background: #047857;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
  transform: translateY(-1px);
}

.dash-btn-secondary {
  background: #fff;
  border-color: var(--dash-border);
  color: var(--dash-text);
}

.dash-btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--dash-border-bright);
}

.dash-btn-ghost {
  background: transparent;
  border-color: var(--dash-border);
  color: var(--dash-muted);
}

.dash-btn-ghost:hover {
  color: var(--dash-text);
  background: #f8fafc;
}

.dash-btn-danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.dash-btn-danger:hover {
  background: #ffe4e6;
  color: #9f1239;
}

.dash-btn-success {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.dash-btn-success:hover {
  background: #047857;
}

.dash-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 11px;
  border-radius: 8px;
}

.dash-btn-app {
  background: #fff;
  border: 1px solid var(--dash-border);
  color: var(--dash-text);
}

.dash-btn-app:hover {
  background: #f8fafc;
  border-color: #a7f3d0;
  color: #047857;
}

/* Form inputs */
.dash-input,
.dash-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--dash-border);
  color: var(--dash-text);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dash-input::placeholder {
  color: #94a3b8;
}

.dash-input:focus,
.dash-select:focus {
  outline: none;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.dash-select option {
  background: #fff;
  color: var(--dash-text);
}

.dash-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dash-muted);
  margin-bottom: 6px;
}

/* Tables */
.dash-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
  background: #fff;
}

.dash-table {
  width: 100%;
  font-size: 0.8125rem;
  border-collapse: collapse;
}

.dash-table thead {
  background: #f8fafc;
}

.dash-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-muted);
  border-bottom: 1px solid var(--dash-border);
}

.dash-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.dash-table tbody tr {
  transition: background 0.15s ease;
}

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

/* Badges */
.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-badge--success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.dash-badge--pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.dash-badge--muted {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.dash-badge--danger {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* Plan cards */
.dash-plan-card {
  padding: 1.5rem;
  border-radius: var(--dash-radius-lg);
  border: 1px solid var(--dash-border);
  background: #fff;
  box-shadow: var(--dash-shadow-sm);
  transition: all 0.25s ease;
}

.dash-plan-card:hover {
  border-color: #a7f3d0;
  transform: translateY(-4px);
  box-shadow: var(--dash-shadow);
}

.dash-plan-card--current {
  border-color: #6ee7b7;
  box-shadow: 0 0 0 1px #a7f3d0, var(--dash-shadow-sm);
}

/* Quick action cards */
.dash-action-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--dash-radius-lg);
  border: 1px solid var(--dash-border);
  background: #fff;
  box-shadow: var(--dash-shadow-sm);
  transition: all 0.2s ease;
  min-height: 200px;
}

.dash-action-card:hover {
  border-color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: var(--dash-shadow);
}

.dash-action-card-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.dash-action-content {
  min-width: 0;
  flex: 1;
}

.dash-action-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dash-text);
  letter-spacing: -0.02em;
}

.dash-action-desc {
  font-size: 0.8125rem;
  color: var(--dash-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.dash-action-btn {
  width: 100%;
  padding: 0.75rem 1rem;
}

.dash-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Modals — light */
.dash-modal-backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.dash-modal,
.dash-modal-light {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
  color: var(--dash-text);
}

.dash-modal .dash-breadcrumb,
.dash-modal-light .dash-breadcrumb {
  color: var(--dash-muted);
}

.dash-modal .border-white\/10,
.dash-modal-light .border-white\/10 {
  border-color: var(--dash-border) !important;
}

.dash-modal .bg-white\/\[0\.03\],
.dash-modal-light .bg-white\/\[0\.03\] {
  background: #f8fafc !important;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
}

.dash-modal .text-slate-300,
.dash-modal-light .text-slate-300 {
  color: #475569 !important;
}

/* Docs */
.dash-view-docs,
#view-history,
#view-apikeys {
  min-width: 0;
  max-width: 100%;
}

.dash-apikeys-card {
  overflow: visible;
}

.dash-apikeys-card .dash-input {
  max-width: 100%;
}

.dash-docs-card {
  overflow: visible !important;
}

.dash-docs-card .dash-inset-panel,
.dash-docs-card .grid {
  min-width: 0;
  max-width: 100%;
}

.dash-code {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #0f766e;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: pre;
  word-break: normal;
}

.dash-code-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.dash-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--dash-muted);
  margin: 0 0 8px;
}

@media (max-width: 767px) {
  .dash-scroll-hint {
    display: block;
  }

  .dash-table-wrap--history,
  .dash-table-wrap--apikeys {
    border: none;
    background: transparent;
    overflow: visible;
  }

  .dash-table--stack .dash-table-empty {
    display: block;
    text-align: center;
    padding: 2rem 1rem;
  }

  .dash-table--stack .dash-table-empty::before {
    display: none;
  }

  .dash-table--stack td[data-label='Key ID'] {
    font-family: ui-monospace, monospace;
    font-size: 11px;
  }

  .dash-table--stack td[data-label='Secret'] {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .dash-table--stack td[data-label='Secret']::before {
    align-self: flex-start;
  }

  .dash-table--stack td[data-label='Secret'] .dash-apikeys-secret-cell {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dash-table--stack td[data-label='Secret'] input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dash-table--stack td[data-label='Secret'] .flex {
    justify-content: flex-start;
  }

  .dash-table--stack {
    width: 100%;
    min-width: 0 !important;
  }

  .dash-table--stack thead {
    display: none;
  }

  .dash-table--stack tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--dash-shadow-sm);
    overflow: hidden;
  }

  .dash-table--stack tbody tr:hover {
    background: #fff;
  }

  .dash-table--stack td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
    word-break: break-word;
    text-align: right;
  }

  .dash-table--stack td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dash-muted);
    text-align: left;
    flex-shrink: 0;
    padding-top: 2px;
  }

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

  .dash-table--stack td[data-label='Actions'] > div {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .dash-table--stack td[data-label='Order ID'] {
    font-family: ui-monospace, monospace;
    font-size: 11px;
  }

  .dash-docs-card .flex.items-center.gap-2,
  .dash-docs-card .flex.flex-col {
    width: 100%;
  }

  .dash-docs-card .dash-code {
    font-size: 10px;
    padding: 0.75rem;
  }
}

.dash-callout {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
}

.dash-callout .text-cyan-300 {
  color: #047857 !important;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.dash-link-result {
  color: #047857;
  font-size: 12px;
}

/* ── Light theme text — force readable on white backgrounds ── */
.dash-app {
  color: #0f172a;
}

.dash-app .text-slate-900 { color: #0f172a !important; }
.dash-app .text-slate-800 { color: #1e293b !important; }
.dash-app .text-slate-700 { color: #334155 !important; }
.dash-app .text-slate-600 { color: #475569 !important; }
.dash-app .text-slate-500 { color: #64748b !important; }
.dash-app .text-slate-400 { color: #64748b !important; }
.dash-app .text-slate-300 { color: #475569 !important; }
.dash-app .text-slate-200 { color: #64748b !important; }

.dash-body-text {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dash-inset-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
}

.dash-inset-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

/* Device / status badges */
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.dash-status--verified {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.dash-status--pending {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.dash-status--neutral {
  color: #475569 !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Light overrides for inline dark-theme utilities in HTML */
.dash-sidebar .text-white {
  color: #0f172a !important;
}

.dash-sidebar .text-slate-400 {
  color: #64748b !important;
}

.dash-app .text-cyan-400,
.dash-app .text-cyan-300 {
  color: #0e7490 !important;
}

.dash-app .text-emerald-400 {
  color: #059669 !important;
}

.dash-app .text-violet-400 {
  color: #7c3aed !important;
}

.dash-app .text-rose-400 {
  color: #e11d48 !important;
}

.dash-app .border-white\/10 {
  border-color: var(--dash-border) !important;
}

.dash-app .bg-white\/\[0\.03\] {
  background: #f8fafc !important;
}

.dash-app .text-slate-300 {
  color: #475569 !important;
}

.dash-app .text-slate-500 {
  color: #64748b !important;
}

.dash-app .text-slate-400 {
  color: #64748b !important;
}

.dash-inset-panel .font-semibold,
.dash-inset-panel .font-bold {
  color: #0f172a;
}

.dash-modal .font-semibold,
.dash-modal .font-bold,
.dash-modal-light .font-semibold,
.dash-modal-light .font-bold {
  color: #0f172a;
}

.dash-app #mobileMenuBtn,
.dash-app #mobileMenuClose {
  background: #fff !important;
  border: 1px solid var(--dash-border) !important;
  color: #334155 !important;
}

.dash-app #mobileMenuBtn:hover,
.dash-app #mobileMenuClose:hover {
  background: #f8fafc !important;
}

#mobileMenuOverlay {
  backdrop-filter: blur(4px);
}

.dash-sidebar::-webkit-scrollbar,
.dash-table-wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.dash-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.dash-main-offset {
  padding-left: 0;
}

@media (min-width: 768px) {
  .dash-main-offset {
    padding-left: 280px;
  }
}

#view-dashboard.hidden,
#view-plans.hidden,
#view-paylink.hidden,
#view-apikeys.hidden,
#view-history.hidden,
#view-settings.hidden,
#view-docs.hidden {
  display: none !important;
}

#view-plans:not(.hidden),
#view-paylink:not(.hidden),
#view-apikeys:not(.hidden),
#view-history:not(.hidden),
#view-settings:not(.hidden),
#view-docs:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Device verify modal emerald block — light */
.dash-app .border-emerald-500\/30.bg-emerald-500\/10 {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.dash-app .text-emerald-300,
.dash-app .text-emerald-200,
.dash-app .text-emerald-400 {
  color: #047857 !important;
}

.dash-app #deviceVerifyModalText {
  background: #fff !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

.dash-blocked-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.dash-blocked-overlay.hidden {
  display: none !important;
}

.dash-blocked-card {
  max-width: 22rem;
  width: 100%;
  padding: 1.5rem 1.35rem;
  border-radius: var(--dash-radius-lg);
  background: #fff;
  border: 1px solid #fecaca;
  box-shadow: var(--dash-shadow);
}
