/* Intent Payment — dark analytics board + gaming login. Loaded last. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Orbitron:wght@600;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #071433;
  --bg-2: #061027;
  --bg-3: #0c2148;
  --bg-soft: #102754;

  --gold: #3b82f6;
  --gold-light: #7dd3fc;
  --gold-deep: #1d4ed8;
  --gold-soft: rgba(59, 130, 246, 0.18);

  --cream: #e8f1ff;
  --cream-dim: rgba(232, 241, 255, 0.72);
  --cream-faint: rgba(232, 241, 255, 0.48);
  --dim: #9fb4d8;
  --teal: #38bdf8;
  --red: #fb7185;
  --accent: #67e8f9;
  --accent-warm: #60a5fa;

  --line: rgba(125, 176, 255, 0.18);
  --line-strong: rgba(125, 176, 255, 0.32);
  --line-bright: rgba(56, 189, 248, 0.7);

  --violet: #3b82f6;
  --violet-light: #7dd3fc;
  --brand-orange: #3b82f6;
  --brand-orange-deep: #1d4ed8;

  --panel: #0c2148;
  --panel-hover: #12305c;
  --dash-dev-bg: #0c2148;
  --dash-dev-line: rgba(125, 176, 255, 0.2);
  --dash-dev-ink: #e8f1ff;
  --dash-dev-muted: #9fb4d8;
  --dash-dev-blue: #60a5fa;
  --dash-dev-blue-soft: rgba(59, 130, 246, 0.18);
}

body.portal {
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 40% at 80% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
    #071433;
  color: #e8f1ff;
}

body.portal h1,
body.portal h2,
body.portal h3,
body.portal h4,
body.portal .demo-wordmark {
  font-family: Outfit, sans-serif;
  color: #f8fbff;
  letter-spacing: -0.03em;
}

.demo-wordmark em {
  font-style: normal;
  color: #7dd3fc;
  background: none;
  -webkit-text-fill-color: #7dd3fc;
}

.ip-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 36px;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.45), 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Kill the leftover Bullishpe bull that bulls-theme paints beside the wordmark. */
body.portal .portal-login__brand-mark::before,
body.portal .portal-login__card-brand::before,
body.portal .dash-sidebar__logo::before,
body.portal .dash-sidebar__brand::before,
body.portal .dash-app.is-sidebar-collapsed .dash-sidebar__brand::before {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  box-shadow: none !important;
}

/* Sidebar */
body.portal .dash-sidebar {
  background: linear-gradient(180deg, #08142e 0%, #050d20 100%);
  border-right: 1px solid rgba(96, 165, 250, 0.16);
  color: rgba(232, 241, 255, 0.78);
}
body.portal .dash-sidebar__logo {
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
}
body.portal .dash-sidebar__logo img.ip-mark { width: 36px; height: 36px; }
body.portal .dash-sidebar__logo .demo-wordmark { color: #fff; font-size: 1.05rem; }
body.portal .dash-sidebar__tag { color: #7dd3fc; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.62rem; }
body.portal .dash-menu-label { color: rgba(159, 180, 216, 0.7); }
body.portal .dash-side-link { color: rgba(232, 241, 255, 0.72); border-radius: 10px; }
body.portal .dash-side-link:hover { color: #fff; background: rgba(59, 130, 246, 0.16); }
body.portal .dash-side-link.is-active,
body.portal .dash-side-link--sub.is-active {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}
body.portal .dash-sidebar__logout .dash-side-link { color: #fecdd3; }

body.portal .dash-main-wrap,
body.portal .dash-main-wrap.dash-main--dashboard {
  background:
    linear-gradient(180deg, rgba(14, 42, 92, 0.35), transparent 220px),
    #071433;
}
body.portal .dash-toolbar,
body.portal .dash-main--dashboard .dash-toolbar,
body.portal .dash-mobile-bar {
  background: rgba(7, 20, 51, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.18);
  color: #e8f1ff;
}
body.portal .dash-toolbar__title,
body.portal .dash-toolbar__sub,
body.portal .dash-user-name,
body.portal .dash-mobile-bar__title { color: #e8f1ff; }
body.portal .dash-toolbar__sub,
body.portal .dash-mobile-bar__links a { color: #9fb4d8; }
body.portal .dash-toolbar__icon-btn { color: #c5d8f5; }
body.portal .dash-toolbar__icon-btn:hover { background: rgba(59, 130, 246, 0.2); color: #fff; }
body.portal .dash-mobile-bar__title em { color: #7dd3fc; font-style: normal; }
body.portal .dash-mobile-bar__links a.is-active { color: #fff; background: #2563eb; }
body.portal .dash-avatar { background: #2563eb; color: #fff; }

body.portal .dash-ticker {
  background: #0a1c40;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  color: #dbeafe;
}

body.portal .dash-section,
body.portal .dash-home { color: #e8f1ff; }

body.portal .dash-hero-bank-art { display: none; }

body.portal .dash-home-hero,
body.portal .dash-home-hero--glow {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(56, 189, 248, 0.28), transparent 60%),
    linear-gradient(135deg, #0b1d44 0%, #12356f 70%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
body.portal .dash-home-hero__eyebrow,
body.portal .dash-home-hero__sub,
body.portal .dash-home-hero__title,
body.portal .dash-home-hero--glow .dash-home-hero__title,
body.portal .dash-home-hero--glow .dash-home-hero__sub,
body.portal .dash-home-hero--glow .dash-home-hero__eyebrow { color: #fff; }
body.portal .dash-home-hero__eyebrow { letter-spacing: 0.16em; color: #7dd3fc; }

body.portal .dash-hero-glass-chip {
  background: rgba(6, 16, 40, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.28);
  color: #fff;
  box-shadow: none;
}
body.portal .dash-hero-glass-chip__label { color: rgba(255, 255, 255, 0.7); }
body.portal .dash-hero-glass-chip__value { color: #fff; }
body.portal .dash-hero-glass-chip__icon--payin { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
body.portal .dash-hero-glass-chip__icon--payout { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
body.portal .dash-hero-glass-chip__fill--payin { background: #3b82f6; }
body.portal .dash-hero-glass-chip__fill--payout { background: #38bdf8; }

/* KPI tiles — outlined like the payment boards */
body.portal .dash-flat-stat,
body.portal .dash-flat-stat--orange,
body.portal .dash-flat-stat--dark,
body.portal .dash-flat-stat--teal,
body.portal .dash-flat-stat--blue {
  background: rgba(8, 24, 58, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-left: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 16px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
body.portal .dash-flat-stat__label {
  color: #9ec5ff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.portal .dash-flat-stat__value { color: #fff; }
body.portal .dash-flat-stat__icon,
body.portal .dash-flat-stat--dark .dash-flat-stat__icon,
body.portal .dash-flat-stat--teal .dash-flat-stat__icon,
body.portal .dash-flat-stat--blue .dash-flat-stat__icon {
  background: rgba(59, 130, 246, 0.18);
  color: #7dd3fc;
}

/* Chart cards with sky-blue title bars */
body.portal .dash-home-report,
body.portal .dash-home-compare,
body.portal .dash-home-txn,
body.portal .dash-panel,
body.portal .dash-table-card,
body.portal .dash-report-stat,
body.portal .dash-stat-card,
body.portal .dash-dev-panel,
body.portal .dash-profile-card,
body.portal .dash-stat-mini {
  background: #0c2148;
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #e8f1ff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  overflow: hidden;
}

body.portal .dash-home-report__head,
body.portal .dash-home-compare__head,
body.portal .dash-home-txn__head,
body.portal .dash-report-head,
body.portal .dash-panel__head,
body.portal .dash-dev-panel__head {
  background: linear-gradient(90deg, #2b7de0 0%, #63b3ff 100%);
  color: #fff;
  margin: 0 0 1rem;
  padding: 0.72rem 1.1rem;
  border-radius: 0;
  border: 0;
}
body.portal .dash-home-report__title,
body.portal .dash-home-txn__title,
body.portal .dash-report-head__title,
body.portal .dash-panel__title,
body.portal .dash-dev-panel__head h3,
body.portal .dash-home-report__head h2 { color: #fff; margin: 0; }
body.portal .dash-home-report__sub,
body.portal .dash-report-head__sub,
body.portal .dash-panel__lead { color: rgba(255, 255, 255, 0.86); }

body.portal .dash-home-report__filters,
body.portal .dash-home-report__body,
body.portal .dash-home-compare__chart,
body.portal .dash-home-txn__scroll,
body.portal .dash-home-txn__tabs { padding-left: 1rem; padding-right: 1rem; }
body.portal .dash-home-report__total,
body.portal .dash-home-report__list,
body.portal .dash-home-report__list li,
body.portal .dash-home-report__ratio-label,
body.portal .dash-home-gauge__value { color: #e8f1ff; }
body.portal .dash-home-gauge__track { stroke: rgba(255, 255, 255, 0.12); }
body.portal .dash-home-gauge__arc--payin { stroke: #3b82f6; }
body.portal .dash-home-gauge__arc--payout { stroke: #38bdf8; }

body.portal .dash-home-chip,
body.portal .dash-home-txn__tabs button {
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 999px;
}
body.portal .dash-home-chip.is-active,
body.portal .dash-home-txn__tabs button.is-active {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
}

body.portal .dash-table th,
body.portal .dash-home-table th,
body.portal .dash-dev-table th {
  background: #12315f;
  color: #dbeafe;
  border-color: rgba(125, 176, 255, 0.16);
}
body.portal .dash-table td,
body.portal .dash-home-table td,
body.portal .dash-dev-table td {
  border-color: rgba(125, 176, 255, 0.12);
  color: #d5e4f8;
  background: transparent;
}
body.portal .dash-table tbody tr:hover,
body.portal .dash-home-table tbody tr:hover { background: rgba(59, 130, 246, 0.12); }
body.portal .dash-home-table,
body.portal .dash-table { background: transparent; }

body.portal .form-control,
body.portal input:not([type="checkbox"]):not([type="radio"]),
body.portal select,
body.portal textarea,
body.portal .dash-dev-input,
body.portal .dash-select-sm {
  background: #071833;
  border: 1px solid rgba(125, 176, 255, 0.28);
  color: #e8f1ff;
  border-radius: 12px;
}
body.portal input:focus,
body.portal select:focus,
body.portal textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
  outline: none;
}

body.portal .dash-btn-primary,
body.portal .btn-submit,
body.portal .dash-dev-btn--primary,
body.portal .dash-pager__page.is-active {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}
body.portal .dash-btn-secondary,
body.portal .dash-btn-outline,
body.portal .dash-dev-btn {
  background: transparent;
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 12px;
}

body.portal .dash-badge--ok { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
body.portal .dash-badge--pending { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
body.portal .dash-badge--fail { background: rgba(251, 113, 133, 0.18); color: #fecdd3; }

body.portal .dash-filter-drawer,
body.portal .dash-dev-modal {
  background: #0c2148;
  color: #e8f1ff;
  border: 1px solid rgba(96, 165, 250, 0.3);
}
body.portal .dash-footer-note,
body.portal .dash-pager,
body.portal .dash-inline-label { color: #9fb4d8; }

body.portal .dash-dev-code {
  background: #07101f;
  color: #e2e8f0;
}
body.portal .dash-dev-label,
body.portal .dash-field label,
body.portal label { color: #c5d8f5; }

body.portal * { scrollbar-color: #24508a transparent; }

/* ── Gaming login ─────────────────────────────────────────────────────── */
body.portal.portal-login {
  min-height: 100vh;
  font-family: Rajdhani, Outfit, sans-serif;
  background: #040814;
  color: #e8f7ff;
  overflow: auto;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  box-sizing: border-box;
}
body.portal.portal-login .gx-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 15% 10%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(ellipse 35% 30% at 90% 80%, rgba(34, 211, 238, 0.22), transparent 55%),
    #040814;
}
body.portal.portal-login .gx-grid {
  position: absolute;
  inset: -20% -10% -40%;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  animation: gxDrift 18s linear infinite;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
}
body.portal.portal-login .gx-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 18%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.35), transparent 70%);
  filter: blur(8px);
}
body.portal.portal-login .gx-scan {
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.12), transparent);
  animation: gxScan 5.5s linear infinite;
}
body.portal.portal-login .gx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
body.portal.portal-login .gx-orb--a {
  width: 220px; height: 220px; top: 8%; left: 6%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
}
body.portal.portal-login .gx-orb--b {
  width: 260px; height: 260px; right: 4%; bottom: 6%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
}
@keyframes gxDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 48px, 48px 0; }
}
@keyframes gxScan {
  from { top: -20%; }
  to { top: 110%; }
}

body.portal.portal-login .portal-login__shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 48px));
  max-width: 1080px;
  flex: 0 0 auto;
  margin: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  gap: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  align-items: start;
}
body.portal.portal-login .portal-login__brand-panel,
body.portal.portal-login .portal-login__form-panel {
  position: relative;
  background: rgba(6, 14, 32, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(34, 211, 238, 0.05);
  color: #e8f7ff;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  padding: 28px 26px 22px;
  overflow: visible;
}
body.portal.portal-login .gx-corners::before,
body.portal.portal-login .gx-corners::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #22d3ee;
  z-index: 2;
}
body.portal.portal-login .gx-corners::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
body.portal.portal-login .gx-corners::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }

body.portal.portal-login .portal-login__brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}
body.portal.portal-login .gx-ring {
  position: absolute;
  width: 74px;
  height: 74px;
  left: -11px;
  top: -11px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.7);
  animation: gxSpin 12s linear infinite;
}
@keyframes gxSpin { to { transform: rotate(360deg); } }
body.portal.portal-login .ip-mark--lg,
body.portal.portal-login .portal-login__brand-mark img.ip-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
body.portal.portal-login .demo-wordmark {
  font-family: Orbitron, sans-serif;
  color: #fff;
  letter-spacing: 0.04em;
}
body.portal.portal-login .demo-wordmark em { color: #22d3ee; -webkit-text-fill-color: #22d3ee; }
body.portal.portal-login .gx-kicker {
  margin: 1.1rem 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4b5fd;
}
body.portal.portal-login .portal-login__headline {
  font-family: Orbitron, sans-serif;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  margin: 0.35rem 0 0.7rem;
}
body.portal.portal-login .portal-login__tagline { margin: 0 0 0.9rem; line-height: 1.45; }
body.portal.portal-login .portal-login__features { margin: 0 0 1rem; gap: 0.55rem; }
body.portal.portal-login .ip-ledger { margin-top: 0.4rem; }
body.portal.portal-login .portal-login__headline span {
  color: #22d3ee;
  background: none;
  -webkit-text-fill-color: #22d3ee;
}
body.portal.portal-login .portal-login__tagline,
body.portal.portal-login .portal-login__features li { color: #d7f6ff; }
body.portal.portal-login .portal-login__feature-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(34, 211, 238, 0.55);
  color: #22d3ee;
  font-family: Orbitron, sans-serif;
  font-size: 0.62rem;
  box-shadow: none;
}
body.portal.portal-login .ip-ledger {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
body.portal.portal-login .gx-meter__top {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}
body.portal.portal-login .gx-meter__top span {
  color: rgba(215, 246, 255, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.portal.portal-login .gx-meter__top strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
body.portal.portal-login .gx-meter__top em {
  margin-left: auto;
  font-style: normal;
  color: #67e8f9;
  font-weight: 700;
  font-size: 0.82rem;
}
body.portal.portal-login .gx-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0;
}
body.portal.portal-login .gx-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #67e8f9);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}
body.portal.portal-login .gx-bar--out i {
  background: linear-gradient(90deg, #a855f7, #e9d5ff);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}
body.portal.portal-login .portal-login__copyright { color: rgba(215, 246, 255, 0.45); }

body.portal.portal-login .portal-login__card h1 {
  font-family: Orbitron, sans-serif;
  color: #fff;
  font-size: 1.55rem;
}
body.portal.portal-login .portal-login__card > p.sub { color: #a5f3fc; }
body.portal.portal-login .portal-login__form-panel .form-control,
body.portal.portal-login .portal-login__form-panel input:not([type="checkbox"]) {
  background: rgba(4, 12, 28, 0.8);
  border-color: rgba(34, 211, 238, 0.35);
  color: #f0fdff;
}
body.portal.portal-login .portal-login__form-panel input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
body.portal.portal-login .portal-login__card .btn-submit {
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
  color: #fff;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.35);
}
body.portal.portal-login .dash-pin-box {
  background: rgba(4, 12, 28, 0.8);
  border-color: rgba(34, 211, 238, 0.4);
  color: #fff;
}
body.portal.portal-login .dash-pin-back { color: #a5f3fc; background: transparent; border: 0; }
body.portal.portal-login .portal-login__demo-hint {
  background: rgba(34, 211, 238, 0.08);
  border: 1px dashed rgba(34, 211, 238, 0.45);
  color: #cffafe;
}
body.portal.portal-login .portal-login__error { color: #fecdd3; }
body.portal.portal-login .portal-field__toggle { color: #a5f3fc; background: transparent; border: 0; }

@media (max-width: 860px) {
  body.portal.portal-login { overflow: auto; }
  body.portal.portal-login .portal-login__shell { grid-template-columns: 1fr; }
  body.portal.portal-login .portal-login__brand-panel { display: none; }
}
/* ── Analytics board (dashboard home) ─────────────────────────────────── */
body.portal .bd-intro { margin: 0 0 0.9rem; }
body.portal .bd-intro h1 { margin: 0; font-size: 1.65rem; color: #f8fbff; }
body.portal .bd-intro p { margin: 0.3rem 0 0; color: #9fb4d8; max-width: 62ch; }

body.portal .bd-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
body.portal .bd-kpi {
  background: rgba(8, 24, 58, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 14px;
  padding: 0.85rem 0.95rem 0.45rem;
  min-height: 132px;
}
body.portal .bd-kpi p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ec5ff;
}
body.portal .bd-kpi strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  color: #fff;
}
body.portal .bd-kpi__delta { display: block; margin: 0.15rem 0 0.2rem; font-size: 0.75rem; font-weight: 700; }
body.portal .bd-kpi__delta--up { color: #6ee7b7; }
body.portal .bd-kpi__delta--down { color: #fda4af; }
body.portal .bd-kpi canvas { width: 100% !important; height: 42px !important; }

body.portal .bd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
body.portal .bd-row--main { grid-template-columns: 1.45fr 0.85fr; }
body.portal .bd-card {
  background: #0b1d42;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
body.portal .bd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(90deg, #2f86ea, #67b7ff);
  padding: 0.55rem 0.9rem;
}
body.portal .bd-card__head h2 { margin: 0; color: #fff; font-size: 0.98rem; font-weight: 700; }
body.portal .bd-legend { margin: 0; color: #fff; font-size: 0.75rem; display: flex; align-items: center; gap: 0.35rem; }
body.portal .bd-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
body.portal .bd-swatch--a { background: #dbeafe; }
body.portal .bd-swatch--b { background: #1d4ed8; }
body.portal .bd-chart { position: relative; height: 280px; padding: 0.7rem 0.6rem 0.4rem; }
body.portal .bd-chart--donut { height: 280px; }

body.portal .bd-people { list-style: none; margin: 0; padding: 0.85rem 1.1rem 1rem; }
body.portal .bd-people li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0 0.55rem 1rem;
  border-bottom: 1px solid rgba(125, 176, 255, 0.12);
  color: #e8f1ff;
  position: relative;
}
body.portal .bd-people li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-radius: 50%;
  background: #7dd3fc;
}
body.portal .bd-people li:last-child { border-bottom: 0; }
body.portal .bd-people strong { color: #fff; font-weight: 700; }

body.portal .bd-reasons { list-style: none; margin: 0; padding: 0.9rem 1rem 1rem; display: grid; gap: 0.7rem; }
body.portal .bd-reasons li { display: grid; grid-template-columns: 9.5rem 1fr 2.2rem; align-items: center; gap: 0.6rem; color: #dbeafe; font-size: 0.82rem; }
body.portal .bd-reasons b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
body.portal .bd-reasons b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #dbeafe);
}
body.portal .bd-reasons em { font-style: normal; color: #9fb4d8; text-align: right; }

body.portal .bd-rings {
  display: flex;
  justify-content: space-around;
  gap: 0.75rem;
  padding: 1.3rem 0.8rem 1.2rem;
  flex-wrap: wrap;
}
body.portal .bd-ring { text-align: center; width: 120px; }
body.portal .bd-ring__dial {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0);
  display: grid;
  place-items: center;
}
body.portal .bd-ring__dial span {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0b1d42;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
body.portal .bd-ring p { margin: 0; color: #c5d8f5; font-size: 0.8rem; }

@media (max-width: 980px) {
  body.portal .bd-kpis,
  body.portal .bd-row,
  body.portal .bd-row--main { grid-template-columns: 1fr; }
  body.portal .bd-reasons li { grid-template-columns: 1fr; }
}

/* Real provider pages use .kpi-card / .panel, not only the demo classes. */
body.portal .kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
body.portal .kpi-card {
  background: rgba(8, 24, 58, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  box-shadow: none;
}
body.portal .kpi-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec5ff;
}
body.portal .kpi-value { margin: 0.35rem 0 0; font-size: 1.35rem; font-weight: 800; color: #fff; }
body.portal .charts-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
body.portal .charts-row.bd-row--main { grid-template-columns: 1.2fr 1fr 1fr; }
body.portal .charts-row.bd-row--main .revenue-panel { grid-column: 1 / -1; }
body.portal .bottom-row {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
body.portal .activity-list { list-style: none; margin: 0; padding: 0.4rem 0.2rem 0.8rem; }
body.portal .activity-item { display: flex; gap: 0.75rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(125, 176, 255, 0.12); color: #e8f1ff; }
body.portal .activity-title { margin: 0; color: #fff; font-weight: 700; }
body.portal .activity-desc,
body.portal .activity-value { margin: 0.15rem 0 0; color: #9fb4d8; }
body.portal .activity-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(59, 130, 246, 0.18); color: #7dd3fc; flex: 0 0 36px;
}
body.portal .activity-icon svg { width: 18px; height: 18px; }
body.portal .bulls-report .dash-table,
body.portal .dash-table--txn { background: transparent; color: #e8f1ff; }
body.portal .bulls-report .dash-table th,
body.portal .dash-table--txn th { background: #12315f; color: #dbeafe; }
body.portal .bulls-report .dash-table td,
body.portal .dash-table--txn td { color: #d5e4f8; border-color: rgba(125, 176, 255, 0.12); }
@media (max-width: 1100px) {
  body.portal .charts-row.bd-row--main,
  body.portal .bottom-row { grid-template-columns: 1fr; }
  body.portal .charts-row.bd-row--main .revenue-panel { grid-column: auto; }
}
body.portal .charts-row > .revenue-panel { grid-column: span 1; }
body.portal .panel {
  background: #0b1d42;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  overflow: hidden;
  color: #e8f1ff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
body.portal .panel-head,
body.portal .panel .panel-head {
  background: linear-gradient(90deg, #2f86ea, #67b7ff);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border: 0;
}
body.portal .panel-head h2,
body.portal .panel h2 { color: #fff; margin: 0; }
body.portal .ghost-select { color: rgba(255, 255, 255, 0.85); }
body.portal .chart-wrap { position: relative; height: 240px; padding: 0.6rem; }
body.portal .dash-home-report__total,
body.portal .dash-home-report__list,
body.portal .dash-home-report__list li { color: #e8f1ff; }
@media (max-width: 980px) {
  body.portal .kpi-grid,
  body.portal .charts-row { grid-template-columns: 1fr; }
}

/* Payment loader — spinning rupee coin, no bull. */
body.portal .pay-loader {
  background:
    radial-gradient(ellipse 50% 40% at 50% 42%, rgba(46, 196, 214, 0.18), transparent 62%),
    #071433;
}
body.portal .pay-loader .bull-loader__brand { letter-spacing: 0.18em; color: #fff; font-family: Orbitron, Outfit, sans-serif; }
body.portal .pay-loader .bull-loader__brand span {
  background: linear-gradient(135deg, #2ec4d6, #c6e04a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body.portal .pay-stage { position: relative; width: 160px; height: 120px; }
body.portal .pay-card {
  position: absolute;
  left: 8px;
  top: 28px;
  width: 92px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(160deg, #16356f, #0b1f4d);
  border: 1px solid rgba(126, 236, 246, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
body.portal .pay-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 14px;
  height: 12px;
  background: #2ec4d6;
}
body.portal .pay-coin {
  position: absolute;
  right: 6px;
  top: 18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
  color: #0b1f4d;
  background: radial-gradient(circle at 32% 30%, #f3f8c4, #c6e04a 55%, #8ea832);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(11, 31, 77, 0.15);
  animation: payFlip 1.15s ease-in-out infinite;
}
@keyframes payFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.portal .pay-coin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.portal.portal-login .gx-grid,
  body.portal.portal-login .gx-scan,
  body.portal.portal-login .gx-ring { animation: none; }
}

/* Page layout — structure, not only color */
body.portal .ip-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.portal .ip-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 26px 28px 22px;
  border-radius: 22px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(56, 189, 248, 0.22), transparent 70%),
    linear-gradient(145deg, #12305c 0%, #0a162c 58%, #071018 100%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
body.portal .ip-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}
body.portal .ip-banner h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #f5f8ff;
}
body.portal .ip-banner p {
  margin: 10px 0 0;
  max-width: 640px;
  color: #b7c9e6;
  font-size: 15px;
}
body.portal .ip-banner__tag {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.portal .kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
  background: #091426;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 20px;
  overflow: hidden;
}
body.portal .kpi-card {
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-right: 1px solid rgba(125, 211, 252, 0.16) !important;
  background: linear-gradient(180deg, rgba(18, 48, 92, 0.55), rgba(8, 18, 36, 0.15)) !important;
  box-shadow: none !important;
  padding: 22px 22px 18px !important;
}
body.portal .kpi-card:last-child { border-right: 0 !important; }
body.portal .kpi-label {
  font-size: 11px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8eb4de !important;
}
body.portal .kpi-value {
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-size: 46px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #f4f8ff !important;
  margin: 10px 0 0 !important;
}
body.portal .report-kpis .kpi-card:nth-child(3) .kpi-value { color: #4ade80 !important; }
body.portal .report-kpis .kpi-card:nth-child(4) .kpi-value { color: #fb7185 !important; }

body.portal .panel,
body.portal .dash-dev-panel {
  border-radius: 20px !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  background: #0b172b !important;
  box-shadow: none !important;
  overflow: hidden;
}
body.portal .panel-head h2,
body.portal .dash-dev-panel__head span {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 28px;
  font-weight: 400;
}
body.portal .charts-row.bd-row--main,
body.portal .charts-row--analytics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start;
}
body.portal .charts-row.bd-row--main > .revenue-panel,
body.portal .charts-row.bd-row--main > .dash-home-report {
  grid-column: auto !important;
  grid-row: auto !important;
}
body.portal .bulls-analytics.ip-page {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
body.portal .bulls-analytics.ip-page > .ip-banner,
body.portal .bulls-analytics.ip-page > .an-toolbar,
body.portal .bulls-analytics.ip-page > .an-error,
body.portal .bulls-analytics.ip-page > .dash-footer-note {
  grid-column: 1 / -1;
}
body.portal .bulls-analytics .an-row {
  display: contents !important;
}
body.portal .chart-wrap,
body.portal .bulls-dash .chart-wrap,
body.portal .bulls-analytics .chart-wrap,
body.portal .chart-wrap.an-tall {
  height: 220px !important;
  max-height: 220px !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
}
body.portal .bottom-row.bd-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}
body.portal .activity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body.portal .activity-item {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: #0e1c34;
}

body.portal table.dash-table--txn,
body.portal table.dash-home-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  width: 100%;
}
body.portal table.dash-table--txn thead th,
body.portal table.dash-home-table thead th {
  background: transparent !important;
  color: #8eb4de !important;
  font-size: 11px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 0 !important;
}
body.portal table.dash-table--txn tbody td,
body.portal table.dash-home-table tbody td {
  background: #101e36 !important;
  border-top: 1px solid rgba(125, 211, 252, 0.12) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12) !important;
  color: #e8f0ff;
}
body.portal table.dash-table--txn tbody td:first-child,
body.portal table.dash-home-table tbody td:first-child {
  border-left: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 12px 0 0 12px;
}
body.portal table.dash-table--txn tbody td:last-child,
body.portal table.dash-home-table tbody td:last-child {
  border-right: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 0 12px 12px 0;
}

body.portal .dash-dev-shell,
body.portal .dash-settings-shell {
  max-width: 920px;
}
body.portal .ip-empty {
  border: 1px dashed rgba(125, 211, 252, 0.35);
  border-radius: 20px;
  padding: 56px 28px;
  text-align: center;
  background: #0b172b;
  color: #d5e4f8;
}
body.portal .ip-empty strong {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 36px;
  letter-spacing: 0.04em;
  font-weight: 400;
}
body.portal .ip-empty p { color: #9fb4d4; margin: 8px 0 0; }

body.portal .ip-docs .dash-dev-doc-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
body.portal .ip-docs .dash-dev-toc {
  position: sticky;
  top: 12px;
  background: #0b172b;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  padding: 14px 12px;
}
body.portal .ip-docs .dash-dev-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #c5d7f2;
  text-decoration: none;
}
body.portal .ip-docs .dash-dev-toc a.is-active,
body.portal .ip-docs .dash-dev-toc a:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}
body.portal .ip-doc-notes,
body.portal .ip-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #d5e4f8;
  line-height: 1.55;
}
body.portal .ip-doc-notes li,
body.portal .ip-steps li { margin: 6px 0; }
body.portal .ip-doc-label {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb4de;
}
body.portal .dash-dev-code-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 0;
}
body.portal .dash-dev-code-tabs button {
  border: 1px solid rgba(125, 211, 252, 0.25);
  background: transparent;
  color: #c5d7f2;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
body.portal .dash-dev-code-tabs button.is-active {
  background: #38bdf8;
  color: #062033;
  border-color: #38bdf8;
}
body.portal .dash-dev-code-wrap { position: relative; margin-top: 8px; }
body.portal .dash-dev-code {
  display: block;
  margin: 0;
  background: #071018;
  color: #d7e6ff;
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 14px;
  padding: 16px 72px 16px 16px;
  overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
}
body.portal .dash-dev-code[hidden] { display: none !important; }
body.portal .dash-dev-code-copy,
body.portal .dash-dev-icon-btn {
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: #10233f;
  color: #e8f4ff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
body.portal .dash-dev-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
body.portal .dash-dev-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
body.portal .dash-dev-table th,
body.portal .dash-dev-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  vertical-align: top;
  color: #d5e4f8;
}
body.portal .dash-dev-table code {
  color: #7dd3fc;
}

body.portal .cred-key {
  text-transform: none !important;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  color: #7dd3fc !important;
}

#dash-section-apidocs.ref {
  display: block;
  color: #dbe7f5;
}
#dash-section-apidocs .ref-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 24px;
  align-items: end;
  padding: 8px 4px 22px;
  margin-bottom: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#dash-section-apidocs .ref-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}
#dash-section-apidocs .ref-hero h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #f8fbff;
}
#dash-section-apidocs .ref-hero p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #9fb4d0;
  font-size: 15px;
  line-height: 1.5;
}
#dash-section-apidocs .ref-base {
  justify-self: end;
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 16px;
  background: #07111f;
  border: 1px solid rgba(125, 211, 252, 0.25);
}
#dash-section-apidocs .ref-base span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8eb4de;
}
#dash-section-apidocs .ref-base code {
  display: block;
  margin-bottom: 12px;
  color: #f8fbff;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}
#dash-section-apidocs .ref-base button,
#dash-section-apidocs .dash-dev-code-copy {
  border: 0;
  border-radius: 999px;
  background: #e8f6ff;
  color: #072033;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}
#dash-section-apidocs .ref-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
}
#dash-section-apidocs .ref-nav {
  position: sticky;
  top: 12px;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
#dash-section-apidocs .ref-nav p {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f8aaf;
}
#dash-section-apidocs .ref-nav a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  color: #c5d7ee;
  text-decoration: none;
  font-size: 14px;
}
#dash-section-apidocs .ref-nav a.is-active { color: #7dd3fc; }
#dash-section-apidocs .ref-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  gap: 0;
  margin: 0 0 22px;
  border-radius: 18px;
  overflow: hidden;
  background: #0c1730;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: none;
}
#dash-section-apidocs .ref-copy { padding: 22px 22px 26px; }
#dash-section-apidocs .ref-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
#dash-section-apidocs .ref-title h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: #f8fbff;
  letter-spacing: -0.02em;
}
#dash-section-apidocs .ref-title code {
  display: block;
  margin-top: 4px;
  color: #9fd4ff;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
}
#dash-section-apidocs .ref-verb {
  flex: none;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #14532d;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
#dash-section-apidocs .ref-verb--in { background: #1e3a8a; color: #dbeafe; }
#dash-section-apidocs .ref-verb--err { background: #7f1d1d; color: #fecaca; }
#dash-section-apidocs .ref-copy p { margin: 0 0 14px; color: #b7c8e0; line-height: 1.55; }
#dash-section-apidocs .ref-copy h3 {
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8eb4de;
}
#dash-section-apidocs .ref-copy,
#dash-section-apidocs .ref-sample,
#dash-section-apidocs .ref-main,
#dash-section-apidocs .ref-block { min-width: 0; }
#dash-section-apidocs .ref-title code,
#dash-section-apidocs .ref-base code { overflow-wrap: anywhere; }
#dash-section-apidocs .ref-fields { width: 100%; border-collapse: collapse; }
#dash-section-apidocs .ref-fields,
#dash-section-apidocs .ref-fields tbody,
#dash-section-apidocs .ref-fields tr,
#dash-section-apidocs .ref-fields th,
#dash-section-apidocs .ref-fields td { display: block; width: auto; }
#dash-section-apidocs .ref-fields tr {
  padding: 12px 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}
#dash-section-apidocs .ref-fields th,
#dash-section-apidocs .ref-fields td {
  text-align: left;
  padding: 0;
  border: 0;
  color: #d5e4f8;
  font-weight: 400;
}
#dash-section-apidocs .ref-fields td { margin-top: 4px; color: #b7c8e0; }
#dash-section-apidocs .ref-fields code { color: #7dd3fc; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 12.5px; }
#dash-section-apidocs .ref-fields em {
  display: inline;
  margin-left: 8px;
  font-style: normal;
  font-family: inherit;
  font-size: 11px;
  color: #7f97b8;
}

.keys-page { padding-top: 8px; }
.keys-wrap { max-width: 860px; }
.keys-kicker {
  margin: 0 0 8px;
  color: #7dd3fc;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
}
.keys-intro h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 0.95;
  color: #f8fbff;
}
.keys-intro p { margin: 12px 0 0; max-width: 520px; color: #b7c8e0; }
.keys-board {
  margin-top: 22px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background: #0c1730;
  overflow: hidden;
}
.keys-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
}
.keys-actions { display: flex; gap: 8px; justify-content: flex-end; }
.keys-row:first-child { border-top: 0; }
.keys-name small { display: block; margin-top: 3px; color: #8eabcc; font-size: 12px; }
.keys-value {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #07111c;
  color: #f4f8ff;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.keys-btn {
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: transparent;
  color: #e8f4ff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.keys-btn--solid { background: #e8f6ff; color: #072033; border: 0; font-weight: 700; }
.keys-board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 18px 8px;
}
.keys-board__head h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: #f8fbff;
}
.keys-board__head p { margin: 4px 0 0; color: #9fb4d0; }
.keys-ips { padding: 8px 18px 18px; }
@media (max-width: 800px) {
  .keys-row { grid-template-columns: 1fr auto auto; }
  .keys-name { grid-column: 1 / -1; }
  .keys-intro h1 { font-size: 40px; }
}
#dash-section-apidocs .ref-json,
#dash-section-apidocs .dash-dev-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #071018 !important;
  color: #d7e7ff !important;
  border: 1px solid rgba(125, 211, 252, 0.12) !important;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
}
#dash-section-apidocs .ref-sample {
  background: #07111c;
  padding: 14px !important;
  border-left: 1px solid rgba(125, 211, 252, 0.12);
}
#dash-section-apidocs .dash-dev-code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
#dash-section-apidocs .dash-dev-code-tabs button {
  border: 0;
  background: transparent;
  color: #9fb4d0;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
}
#dash-section-apidocs .dash-dev-code-tabs button.is-active {
  background: #e8f6ff;
  color: #072033;
}
#dash-section-apidocs .dash-dev-code-wrap { position: relative; }
#dash-section-apidocs .dash-dev-code { padding-right: 72px !important; }
#dash-section-apidocs .dash-dev-code[hidden] { display: none !important; }
#dash-section-apidocs .dash-dev-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
@media (max-width: 980px) {
  #dash-section-apidocs .ref-hero,
  #dash-section-apidocs .ref-layout,
  #dash-section-apidocs .ref-block {
    grid-template-columns: 1fr;
  }
  #dash-section-apidocs .ref-base { justify-self: stretch; }
  #dash-section-apidocs .ref-nav { position: static; }
  #dash-section-apidocs .ref-hero h1 { font-size: 44px; }
  #dash-section-apidocs .ref-sample { border-left: 0; border-top: 1px solid rgba(125, 211, 252, 0.12); }
}

@media (max-width: 980px) {
  body.portal .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.portal .kpi-card:nth-child(2) { border-right: 0 !important; }
  body.portal .charts-row.bd-row--main,
  body.portal .charts-row--analytics,
  body.portal .bulls-analytics.ip-page,
  body.portal .an-row,
  body.portal .ip-docs .dash-dev-doc-shell,
  body.portal .activity-list {
    grid-template-columns: 1fr !important;
  }
  body.portal .charts-row.bd-row--main > .revenue-panel { grid-row: auto !important; }
  body.portal .ip-banner h1 { font-size: 40px; }
  body.portal .ip-docs .dash-dev-toc { position: static; }
}
