/* Client portal — login + dashboard (uses :root tokens from style.css) */

body.portal {
  min-height: 100vh;
  background: var(--bg-2);
}

/* ─── Login — split branding / form layout ────────────────────────────── */
body.portal-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--pad);
  background: var(--bg-2);
}

.portal-login__shell {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

@media (max-width: 860px) {
  .portal-login__shell {
    grid-template-columns: 1fr;
  }
}

.portal-login__brand-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%);
  color: #0f172a;
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 860px) {
  .portal-login__brand-panel {
    display: none;
  }
}

.portal-login__brand-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 42, 158, 0.16) 0%, transparent 70%);
  top: -140px;
  right: -100px;
  pointer-events: none;
}

.portal-login__brand-mark img {
  height: 64px;
  position: relative;
  z-index: 1;
}

.portal-login__headline {
  position: relative;
  z-index: 1;
  font-family: var(--f-body), system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.portal-login__headline span {
  color: var(--gold);
}

.portal-login__tagline {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: #475569;
  max-width: 26rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.portal-login__features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-login__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
}

.portal-login__feature-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  color: var(--gold);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-login__mockup {
  position: relative;
  z-index: 1;
  margin-top: auto;
  height: 210px;
}

.portal-login__phone {
  position: absolute;
  left: 0.5rem;
  bottom: 0;
  width: 128px;
  height: 208px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.portal-login__phone-notch {
  width: 44px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 8px;
}

.portal-login__phone-screen {
  height: calc(100% - 13px);
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 100%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.portal-login__phone-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-login__phone-label {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.portal-login__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fff;
  border: 1px solid rgba(75, 42, 158, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  animation: dashHeroFloat 6s ease-in-out infinite;
}

@keyframes dashHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .portal-login__float {
    animation: none;
  }
}

.portal-login__float--payin {
  top: 8px;
  left: 128px;
  animation-delay: 0s;
}

.portal-login__float--payout {
  top: 92px;
  left: 158px;
  animation-delay: 0.8s;
}

.portal-login__float--secure {
  bottom: 6px;
  left: 148px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  animation-delay: 1.6s;
}

.portal-login__pcard-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.portal-login__float--payin .portal-login__pcard-ico {
  background: #10b981;
}

.portal-login__float--payout .portal-login__pcard-ico {
  background: #a855f7;
}

.portal-login__pcard-label {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.portal-login__pcard-value {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .portal-login__float--payin,
  .portal-login__float--payout,
  .portal-login__float--secure {
    display: none;
  }
}

.portal-login__copyright {
  position: relative;
  z-index: 1;
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.portal-login__form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 2rem 2.5rem;
}

.portal-login__card {
  width: 100%;
  max-width: 380px;
}

.portal-login__card-brand {
  margin-bottom: 1.5rem;
}

.portal-login__card-brand img {
  height: 52px;
}

.portal-login__card h1 {
  font-family: var(--f-body);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.portal-login__card > p.sub {
  font-size: 0.9rem;
  color: var(--cream-dim);
  margin-bottom: 1.75rem;
}

.portal-field {
  margin-bottom: 1.1rem;
}

.portal-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.4rem;
}

.portal-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-field__control > svg {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  pointer-events: none;
}

.portal-field__control input {
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--cream);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.portal-field__control input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.portal-field__toggle {
  position: absolute;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.portal-field__toggle:hover,
.portal-field__toggle.is-active {
  color: var(--gold);
}

.portal-login__remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  margin: -0.3rem 0 1rem;
  cursor: pointer;
  user-select: none;
}

.portal-login__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.portal-msg {
  font-size: 0.875rem;
  color: var(--red);
  margin-bottom: 0.75rem;
  min-height: 1.25em;
}

.portal-msg:empty {
  display: none;
}

.portal-login__card .btn-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast);
}

.portal-login__card .btn-submit:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(75, 42, 158, 0.3);
}

.portal-login__hint {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--cream-faint);
  line-height: 1.5;
}

.portal-back {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.portal-back a {
  color: var(--gold);
}

/* ─── Dashboard app shell ─────────────────────────────────────────────── */
.dash-app {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 216px;
  flex-shrink: 0;
  background: #261558;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e4ee;
  padding: 1.5rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.dash-sidebar__brand {
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-sidebar__logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.dash-sidebar__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.dash-sidebar__tag {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #8b8fa3;
  letter-spacing: 0.04em;
}

.dash-menu-label {
  margin: 1.25rem 0.75rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6f85;
}

.dash-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.dash-side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #a4a8bc;
  border: none;
  background: transparent;
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
}

.dash-side-link > span:not(.dash-nav-chevron) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-side-link:hover {
  color: var(--gold-light);
  background: rgba(159, 122, 234, 0.12);
  padding-left: 1rem;
}

.dash-side-link.is-active {
  color: var(--gold-light);
  background: rgba(159, 122, 234, 0.14);
  box-shadow: inset 3px 0 0 var(--gold-light);
  font-weight: 700;
}

.dash-side-ico {
  flex-shrink: 0;
  opacity: 0.85;
}

.dash-side-link--ghost {
  color: #f87171;
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.32);
  font-weight: 600;
}

.dash-side-link--ghost:hover {
  color: #fff;
  background: #dc2626;
  border-color: #f87171;
}

.dash-menu-label--developer {
  margin-top: 1.35rem;
}

.dash-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dash-nav-toggle {
  justify-content: flex-start;
}

.dash-nav-toggle__text {
  flex: 1;
  text-align: left;
}

.dash-nav-chevron {
  flex-shrink: 0;
  margin-left: auto;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.dash-nav-group.is-open .dash-nav-chevron {
  transform: rotate(90deg);
}

.dash-nav-sub {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.35rem 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 1.1rem;
}

.dash-nav-group.is-open > .dash-nav-sub {
  display: flex;
}

.dash-side-link--sub {
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  color: #8b8fa3;
}

.dash-side-link--sub:hover {
  color: var(--gold-light);
}

.dash-side-link--sub.is-active {
  color: var(--gold-light);
  background: rgba(159, 122, 234, 0.14);
  border-left: none;
  padding-left: 0.75rem;
  font-weight: 700;
}

.dash-sidebar__logout {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}

.dash-main-wrap.dash-main--dashboard {
  background: #f1f5f9;
}

/* Mobile bar */
.dash-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  color: var(--cream);
  gap: 1rem;
}

.dash-mobile-bar__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
}

.dash-mobile-bar__title em {
  color: var(--gold-light);
  font-style: normal;
}

.dash-mobile-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
}

.dash-mobile-bar__links--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: min(72vw, 520px);
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  gap: 0.5rem 0.75rem;
}

.dash-mobile-bar__links--scroll button.is-active,
.dash-mobile-bar__links--scroll a.is-active {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dash-mobile-bar__links button,
.dash-mobile-bar__links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  background: none;
  border: none;
  padding: 0.25rem 0;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}

.dash-mobile-bar__links button:hover,
.dash-mobile-bar__links a:hover {
  color: var(--gold);
}

/* Toolbar — gateway-style top bar */
.dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.dash-main--dashboard .dash-toolbar {
  background: #fff;
}

.dash-sidebar-toggle {
  flex-shrink: 0;
}

/* ─── Payments ticker ──────────────────────────────────────────────────── */
.dash-ticker {
  overflow: hidden;
  background: #261558;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.dash-ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: dashTickerScroll 28s linear infinite;
}

.dash-ticker__track span {
  color: rgba(226, 228, 238, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes dashTickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-ticker__track {
    animation: none;
  }
}

/* ─── Collapsible sidebar ──────────────────────────────────────────────── */
.dash-app.is-sidebar-collapsed .dash-sidebar {
  width: 76px;
}

.dash-app.is-sidebar-collapsed .dash-sidebar__tag,
.dash-app.is-sidebar-collapsed .dash-menu-label,
.dash-app.is-sidebar-collapsed .dash-side-link > span:not(.dash-nav-chevron),
.dash-app.is-sidebar-collapsed .dash-nav-chevron,
.dash-app.is-sidebar-collapsed .dash-sidebar__logo,
.dash-app.is-sidebar-collapsed .dash-nav-sub {
  display: none;
}

.dash-app.is-sidebar-collapsed .dash-sidebar__brand {
  display: flex;
  justify-content: center;
  padding: 0 0 1.25rem;
}

.dash-app.is-sidebar-collapsed .dash-sidebar__brand::before {
  content: 'V';
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--portal-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.1rem;
}

.dash-app.is-sidebar-collapsed .dash-side-link {
  justify-content: center;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.dash-app.is-sidebar-collapsed .dash-side-link:hover {
  padding-left: 0.6rem;
}

.dash-app.is-sidebar-collapsed .dash-nav-sub {
  border: none;
  margin: 0;
  padding: 0;
}

.dash-toolbar__search-block {
  flex: 1;
  min-width: 200px;
  max-width: 520px;
}

.dash-toolbar__search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem 0.45rem 0.85rem;
  background: #f4f6f9;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
}

.dash-toolbar__search:focus-within {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.dash-toolbar__search-ico {
  flex-shrink: 0;
  color: var(--dim);
}

.dash-toolbar__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--cream);
  outline: none;
  font-family: inherit;
}

.dash-toolbar__search input::placeholder {
  color: var(--dim);
}

.dash-toolbar__kbd {
  display: none;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--dim);
}

@media (min-width: 768px) {
  .dash-toolbar__kbd {
    display: inline-flex;
  }
}

.dash-toolbar__kbd kbd {
  font-family: ui-monospace, monospace;
  padding: 0.12rem 0.35rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.62rem;
}

.dash-toolbar__page {
  flex: 1;
  min-width: 0;
}

.dash-toolbar__page .dash-toolbar__title {
  color: var(--cream);
}

.dash-toolbar__page .dash-toolbar__sub {
  color: var(--dim);
}

.dash-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.dash-toolbar__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cream-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dash-toolbar__icon-btn:hover {
  background: #f1f5f9;
  color: var(--cream);
}

.dash-toolbar__icon-btn--notify {
  position: relative;
}

.dash-toolbar__avatar-wrap {
  position: relative;
  margin-left: 0.25rem;
}

.dash-avatar--toolbar {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.dash-toolbar__online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
}

.dash-user-name--toolbar {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream-dim);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-toolbar__title {
  font-family: var(--f-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.dash-toolbar__sub {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
}

/* Sections */
.dash-section {
  padding: 1.5rem 1.75rem 2.5rem;
  flex: 1;
}

/* Generic panels (Profile, Report, forms, API docs) */
.dash-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.5rem 1.5rem;
  max-width: 720px;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.dash-panel__title {
  font-family: var(--f-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.dash-panel__lead {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.dash-panel__hint {
  font-size: 0.82rem;
  color: var(--dim);
  margin: 0 0 1rem;
}

.dash-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
}

.dash-dl dt {
  color: var(--dim);
  font-weight: 600;
}

.dash-dl dd {
  margin: 0;
  color: var(--cream);
}

.dash-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-field {
  margin-bottom: 1rem;
}

.dash-field label,
.dash-fieldset legend {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.35rem;
}

.dash-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem 1rem;
  margin: 0 0 1rem;
}

.dash-fieldset legend {
  padding: 0 0.35rem;
}

.dash-field input[type='text'],
.dash-field input[type='url'],
.dash-field input[type='password'],
.dash-field input[type='tel'],
.dash-field input[type='email'],
.dash-field input[type='number'],
.dash-field input[type='date'],
.dash-field select,
.dash-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--cream);
}

.dash-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.dash-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.dash-input-row input {
  flex: 1;
  min-width: 0;
}

.dash-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--cream);
  margin: 0.35rem 0;
  cursor: pointer;
}

.dash-form-msg {
  font-size: 0.85rem;
  color: var(--teal);
  min-height: 1.25em;
  margin: 0 0 0.75rem;
}

.dash-form-msg:empty {
  display: none;
}

.dash-form-msg--ok {
  padding: 0.6rem 0.85rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 10px;
  color: #4ade80;
  font-weight: 600;
}

.dash-form-msg--err {
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  color: #f87171;
  font-weight: 600;
}

/* ─── Settings — change password / change PIN ─────────────────────────── */
.dash-settings-shell {
  max-width: 620px;
}

.dash-settings-panel .dash-dev-panel__body {
  padding-top: 1.3rem;
}

.dash-pwd-rules {
  list-style: none;
  margin: -0.35rem 0 1.1rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.7;
}

.dash-pwd-rules li {
  position: relative;
  padding-left: 1.1rem;
}

.dash-pwd-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
}

.dash-pin-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

.dash-pin-step {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dash-pin-step[hidden] {
  display: none;
}

.dash-pin-step:not([hidden]) {
  display: flex;
}

.dash-pin-group.is-checking .dash-pin-box {
  opacity: 0.55;
  pointer-events: none;
}

.dash-pin-verify-trigger {
  display: none;
}

.dash-pin-step__dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.dash-pin-step__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dash-pin-step__dots span.is-active {
  background: var(--gold);
  width: 18px;
  border-radius: 999px;
}

.dash-pin-step label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 0.85rem;
}

.dash-pin-group {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.dash-pin-box {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--cream);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.dash-pin-box:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  transform: translateY(-1px);
}

.dash-pin-back {
  margin-top: 1.1rem;
  border: none;
  background: none;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.dash-pin-back:hover {
  color: var(--gold);
}

.dash-pin-submit {
  display: flex;
  justify-content: center;
}

.dash-pin-submit .dash-btn-primary {
  width: 100%;
  max-width: 260px;
}

@media (max-width: 420px) {
  .dash-pin-box {
    width: 13vw;
    height: 14.5vw;
    max-width: 44px;
    max-height: 50px;
  }
}

.dash-btn-primary,
.dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dash-btn-primary {
  background: var(--gold);
  color: #fff;
  width: fit-content;
}

.dash-btn-primary:hover {
  background: var(--gold-deep);
}

.dash-btn-secondary {
  background: var(--bg-3);
  color: var(--cream);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.dash-btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dash-docs-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--cream-dim);
  line-height: 1.65;
  font-size: 0.9rem;
}

.dash-docs-list code {
  font-size: 0.82rem;
}

.dash-link {
  font-weight: 600;
  color: var(--gold);
}

.dash-link:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.dash-panel--wide {
  max-width: none;
}

.dash-panel--stack {
  margin-bottom: 1rem;
}

.dash-panel__headrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.dash-panel__muted {
  font-size: 0.8rem;
  color: var(--dim);
}

.dash-subpanel-title {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.dash-report-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.dash-report-table-head .dash-subpanel-title {
  margin: 0;
}

.dash-report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-report-head__title {
  margin-bottom: 0.25rem;
}

.dash-report-head__sub {
  margin: 0;
  max-width: 36rem;
}

.dash-report-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* ─── Report summary stat cards + status donut ────────────────────────── */
.dash-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .dash-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dash-report-stats {
    grid-template-columns: 1fr;
  }
}

.dash-report-stat {
  background: #fff;
  border: 1px solid var(--line, #eef0f5);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.dash-report-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--portal-card-shadow);
}

.dash-report-stat--ok {
  border-left-color: #0d9488;
}

.dash-report-stat--fail {
  border-left-color: #ef4444;
}

.dash-report-stat__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.dash-report-stat__value {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.dash-report-chart-card {
  margin-bottom: 1.1rem;
}

.dash-report-donut-wrap {
  position: relative;
  height: 220px;
}

.dash-report-donut-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0;
}

.dash-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.dash-select-sm {
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--cream);
  font-size: 0.8rem;
}

.dash-btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

.dash-report-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--bg-3);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.dash-report-tab {
  border: none;
  background: transparent;
  color: var(--cream-dim);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  box-sizing: border-box;
}

.dash-report-tab:hover {
  color: var(--cream);
}

.dash-report-tab.is-active {
  background: var(--bg);
  color: var(--cream);
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.08);
}

.dash-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.dash-field--span {
  grid-column: 1 / -1;
}

.dash-select-full {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--cream);
  font-size: 0.9rem;
}

.dash-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dash-table-scroll--mt {
  margin-top: 0.75rem;
}

.dash-profile-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dash-profile-top {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .dash-profile-top {
    grid-template-columns: 1fr;
  }
}

.dash-profile-card {
  padding: 1.5rem 1.25rem;
}

.dash-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 2px solid var(--line);
}

.dash-profile-card-name {
  margin: 0;
  font-size: 1.15rem;
  color: var(--cream);
}

.dash-profile-card-role {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--dim);
}

.dash-profile-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-profile-stats .dash-stat-mini {
  width: 220px;
}

@media (max-width: 600px) {
  .dash-profile-stats .dash-stat-mini {
    width: 100%;
  }
}

.dash-stat-mini {
  padding: 1rem;
  text-align: center;
}

.dash-stat-mini h6 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.dash-stat-mini__val {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cream);
}

.dash-stat-mini__val--ok {
  color: var(--teal);
}

.dash-stat-mini--mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dash-stat-mini__copy {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.dash-stat-mini__copy:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dash-activity-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--dim);
}

.dash-activity-empty {
  color: var(--dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem 0;
}

.dash-profile-row {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .dash-profile-row {
    grid-template-columns: 1fr;
  }
}

.dash-panel--grow {
  max-width: none;
}

.dash-profile-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-security-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dash-btn-outline:hover {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.dash-btn-outline--warn {
  border-color: #f59e0b;
  color: #fbbf24;
}

.dash-btn-outline--warn:hover {
  background: rgba(245, 158, 11, 0.12);
}

.dash-btn-outline--danger {
  border-color: #ef4444;
  color: #f87171;
}

.dash-btn-outline--danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dash-btn-wide {
  width: 100%;
}

.dash-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--cream-dim);
  line-height: 1.45;
}

.dash-activity-list li {
  margin-bottom: 0.85rem;
}

.dash-activity-list li:last-child {
  margin-bottom: 0;
}

.dash-act-label {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.dash-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--cream);
  resize: vertical;
  min-height: 72px;
}

/* Stats */
.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.08);
}

.dash-stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dash-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-card__icon--blue {
  background: rgba(30, 91, 219, 0.1);
  color: var(--gold);
}
.dash-stat-card__icon--purple {
  background: rgba(124, 58, 237, 0.1);
  color: var(--gold);
}
.dash-stat-card__icon--teal {
  background: rgba(15, 185, 138, 0.12);
  color: var(--teal);
}
.dash-stat-card__icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}

.dash-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.dash-pill--ok {
  background: rgba(15, 185, 138, 0.15);
  color: var(--teal);
}
.dash-pill--muted {
  background: var(--bg-3);
  color: var(--dim);
}
.dash-pill--warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.dash-stat-card__label {
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.25rem;
}

.dash-stat-card__value {
  font-family: var(--f-body);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

/* Charts */
.dash-charts-row {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .dash-charts-row {
    grid-template-columns: 1fr;
  }
}

.dash-chart-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}

.dash-chart-card--wide {
  min-width: 0;
}

.dash-chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.dash-chart-card__head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
}

.dash-chart-card__hint {
  font-size: 0.75rem;
  color: var(--cream-faint);
}

.dash-chart-box {
  position: relative;
  height: 260px;
}

.dash-chart-box--donut {
  height: 220px;
}

.dash-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--dim);
}

.dash-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dash-dot--ok {
  background: #10b981;
}
.dash-dot--pending {
  background: #f59e0b;
}
.dash-dot--fail {
  background: #ef4444;
}

/* Table */
.dash-table-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
  margin-bottom: 1.5rem;
}

.dash-table-card__head {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.dash-table-card__head h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.dash-table-scroll {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dash-table thead tr {
  background: var(--bg-soft);
  text-align: left;
}

.dash-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.4rem;
}

.dash-table th.is-sortable:hover {
  color: var(--gold);
}

.dash-table th.is-sortable::after {
  content: '⇅';
  position: absolute;
  right: 0.5rem;
  opacity: 0.4;
  font-size: 0.7rem;
}

.dash-table th.is-sortable[data-sort-dir="asc"]::after {
  content: '↑';
  opacity: 1;
  color: var(--gold);
}

.dash-table th.is-sortable[data-sort-dir="desc"]::after {
  content: '↓';
  opacity: 1;
  color: var(--gold);
}

.dash-table th {
  padding: 0.65rem 1.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.dash-table td {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
}

.dash-table td.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--cream);
}

.dash-table tbody tr:hover {
  background: var(--bg-soft);
}

/* ─── Transaction table — richer per-column typography ────────────────── */
.dash-table--txn thead tr {
  background: #fff;
  border-bottom: 2px solid var(--line, #eef0f5);
}

.dash-table--txn th {
  padding: 0.75rem 1.35rem;
}

.dash-table--txn td {
  padding: 1rem 1.35rem;
  vertical-align: middle;
}

.dash-table--txn tbody tr {
  border-bottom: 1px solid var(--line, #eef0f5);
}

.dash-table--txn tbody tr:last-child {
  border-bottom: none;
}

.dash-txn-date {
  display: block;
  font-weight: 700;
  color: var(--cream);
  font-size: 0.85rem;
}

.dash-txn-time {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 0.15rem;
}

.dash-txn-id {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--cream);
  background: var(--bg-soft);
  border: 1px solid var(--line, #eef0f5);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  width: fit-content;
}

.dash-txn-ref {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 0.3rem;
}

.dash-txn-amount {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.dash-txn-fee {
  display: block;
  font-size: 0.7rem;
  color: var(--dim);
  margin-top: 0.2rem;
}

.dash-txn-balance {
  font-weight: 700;
  color: var(--cream);
  text-align: right;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.dash-badge--ok {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.dash-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.dash-badge--fail {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.dash-footer-note {
  text-align: center;
  font-size: 0.7rem;
  color: var(--cream-faint);
  padding: 0.5rem 0 0;
}

/* ─── Report pagination ───────────────────────────────────────────────── */
.dash-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line, #eef0f5);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dash-pager__info {
  font-size: 0.78rem;
  color: #6b7280;
  font-family: var(--f-body), system-ui, sans-serif;
}

.dash-pager__info strong {
  color: var(--cream);
  font-weight: 600;
}

.dash-pager__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dash-pager__nav-btn,
.dash-pager__page {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--cream-dim);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--f-body), system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dash-pager__nav-btn:hover:not(:disabled),
.dash-pager__page:hover:not(.is-active) {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--cream);
}

.dash-pager__nav-btn:disabled,
.dash-pager__nav-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.dash-pager__page.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.dash-pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.25rem;
  color: #9ca3af;
  font-size: 0.85rem;
  user-select: none;
}

@media (max-width: 640px) {
  .dash-pager {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-pager__info {
    text-align: center;
  }

  .dash-pager__nav {
    justify-content: center;
  }
}

/* Services grid */
.dash-services-intro {
  margin-bottom: 1.25rem;
  color: var(--cream-dim);
  font-size: 0.9rem;
  max-width: 40rem;
}

.dash-services-intro a {
  color: var(--gold);
  font-weight: 600;
}

.dash-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.dash-svc-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dash-svc-card:hover {
  border-color: var(--line-bright);
  box-shadow: 0 10px 28px rgba(30, 91, 219, 0.12);
  transform: translateY(-3px);
}

.dash-svc-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.dash-svc-card:focus:not(:focus-visible) {
  box-shadow: none;
}

.dash-svc-card:focus-visible {
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.dash-svc-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.dash-svc-icon--blue {
  background: rgba(30, 91, 219, 0.1);
}
.dash-svc-icon--purple {
  background: rgba(124, 58, 237, 0.1);
}
.dash-svc-icon--teal {
  background: rgba(15, 185, 138, 0.12);
}
.dash-svc-icon--amber {
  background: rgba(245, 158, 11, 0.12);
}
.dash-svc-icon--rose {
  background: rgba(244, 63, 94, 0.1);
}
.dash-svc-icon--cyan {
  background: rgba(6, 182, 212, 0.12);
}
.dash-svc-icon--indigo {
  background: rgba(79, 70, 229, 0.1);
}
.dash-svc-icon--emerald {
  background: rgba(16, 185, 129, 0.12);
}

.dash-svc-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
}

.dash-svc-cat {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.dash-svc-desc {
  font-size: 0.8rem;
  color: var(--cream-dim);
  line-height: 1.45;
}

/* Detail panel */
.dash-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.dash-detail__back:hover {
  text-decoration: underline;
}

.dash-detail__card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 37, 64, 0.08);
}

.dash-detail__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.dash-detail__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.dash-detail__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.15rem;
}

.dash-detail__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.25;
}

.dash-detail__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.dash-detail__body p {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.dash-detail__body ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.dash-detail__body li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--cream-dim);
  margin-bottom: 0.5rem;
}

.dash-detail__body li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--teal);
}

.dash-detail__intro {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.65;
  margin: 0 0 1.1rem;
}

.dash-svc-form {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dash-svc-form .dash-field:last-of-type {
  margin-bottom: 0.75rem;
}

.dash-svc-form-msg {
  font-size: 0.82rem;
  color: var(--teal);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.dash-svc-form-msg[hidden] {
  display: none !important;
}

.dash-svc-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.dash-detail__extras {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.dash-detail__extras-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin: 0 0 0.5rem;
}

.dash-detail__extras-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-detail__extras-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--cream-dim);
  margin-bottom: 0.45rem;
}

.dash-detail__extras-list li:last-child {
  margin-bottom: 0;
}

.dash-detail__foot {
  padding: 0 1.5rem 1.5rem;
}

.dash-detail__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

@media (max-width: 900px) {
  .dash-sidebar {
    display: none;
  }

  .dash-mobile-bar {
    display: flex;
  }

  .dash-toolbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dash-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dash-user-name {
    display: none;
  }
}

/* ─── Dashboard home (gateway-style) ─────────────────────────────────── */
.dash-section--home {
  padding-top: 0.5rem;
}

.dash-home {
  max-width: 1200px;
  margin: 0 auto;
}

.dash-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dash-home-hero__title {
  margin: 0;
  font-family: var(--f-body), system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.03em;
}

.dash-home-hero__sub {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--dim);
}

/* ─── Dark glassmorphic glow hero ──────────────────────────────────────── */
.dash-home-hero--glow {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  background-color: #261558;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.04) 100%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.9rem 1.9rem 1.75rem;
  box-shadow: 0 10px 30px rgba(8, 4, 20, 0.4);
}

.dash-hero-bank-art {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  width: 230px;
  height: auto;
  color: #fff;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-4deg);
}

.dash-hero-glow-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dash-hero-glow-fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  animation: dashGlowDrift 9s ease-in-out infinite;
}

.dash-hero-glow-fx__orb--1 {
  width: 320px;
  height: 320px;
  top: -160px;
  right: -60px;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
}

.dash-hero-glow-fx__orb--2 {
  width: 260px;
  height: 260px;
  bottom: -160px;
  left: 10%;
  background: radial-gradient(circle, #0fb98a 0%, transparent 70%);
  animation-delay: 2.5s;
}

@keyframes dashGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero-glow-fx__orb {
    animation: none;
  }
}

.dash-home-hero__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-home-hero__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.dash-home-hero--glow .dash-home-hero__eyebrow {
  color: var(--gold-light);
}

.dash-home-hero--glow .dash-home-hero__title {
  color: #fff;
}

.dash-home-hero--glow .dash-home-hero__sub {
  color: rgba(226, 228, 238, 0.68);
}

.dash-filter-trigger--glass {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}

.dash-filter-trigger--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(159, 122, 234, 0.5);
  box-shadow: 0 4px 16px rgba(159, 122, 234, 0.2);
}

.dash-hero-glass-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.dash-hero-glass-chip {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dash-hero-glass-chip__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-hero-glass-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.dash-hero-glass-chip__icon--payin {
  background: rgba(159, 122, 234, 0.18);
  color: var(--gold-light);
}

.dash-hero-glass-chip__icon--payout {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.dash-hero-glass-chip__label {
  font-size: 0.7rem;
  color: rgba(226, 228, 238, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.dash-hero-glass-chip__value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.dash-hero-glass-chip__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.dash-hero-glass-chip__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.7s ease;
}

.dash-hero-glass-chip__fill--payin {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
}

.dash-hero-glass-chip__fill--payout {
  background: linear-gradient(90deg, #059669, #34d399);
}

/* ─── Flat solid-color balance stat cards ─────────────────────────────── */
.dash-flat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 980px) {
  .dash-flat-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dash-flat-stats {
    grid-template-columns: 1fr;
  }
}

.dash-flat-stat {
  position: relative;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  color: var(--cream);
  background: #fff;
  border: 1px solid var(--line, #eef0f5);
  border-left: 3px solid var(--gold);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.dash-flat-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--portal-card-shadow);
}

.dash-flat-stat__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dash-flat-stat--dark {
  border-left-color: #64748b;
}

.dash-flat-stat--dark .dash-flat-stat__icon {
  background: rgba(100, 116, 139, 0.12);
  color: var(--cream-dim);
}

.dash-flat-stat--teal {
  border-left-color: #0d9488;
}

.dash-flat-stat--teal .dash-flat-stat__icon {
  background: rgba(13, 148, 136, 0.12);
  color: #4ade80;
}

.dash-flat-stat--blue {
  border-left-color: #ef4444;
}

.dash-flat-stat--blue .dash-flat-stat__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.dash-flat-stat__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dim);
}

.dash-flat-stat__value {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.dash-home-reports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 900px) {
  .dash-home-reports {
    grid-template-columns: 1fr;
  }
}

.dash-home-report {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.dash-home-report:hover {
  transform: translateY(-2px);
  box-shadow: var(--portal-card-shadow);
}

.dash-home-report__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cream);
}

.dash-home-report__sub {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--dim);
}

.dash-home-report__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.1rem;
}

.dash-home-chip {
  min-width: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cream-dim);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.dash-home-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dash-home-chip.is-active {
  border-color: var(--violet);
  background: rgba(109, 40, 217, 0.08);
  color: var(--violet);
  box-shadow: 0 0 0 1px rgba(109, 40, 217, 0.18);
}

.dash-home-report__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 520px) {
  .dash-home-report__body {
    grid-template-columns: 1fr;
  }
}

.dash-home-report__total {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.02em;
}

.dash-home-report__count {
  font-weight: 600;
  color: var(--dim);
  font-size: 0.95rem;
}

.dash-home-report__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.dash-home-report__list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.dash-home-report__list li:last-child {
  margin-bottom: 0;
}

.dash-home-report__list strong {
  margin-left: auto;
  font-weight: 700;
  color: var(--cream);
}

.dash-home-report__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-home-report__dot--ok {
  background: #22c55e;
}

.dash-home-report__dot--pending {
  background: #3b82f6;
}

.dash-home-report__dot--fail {
  background: #ef4444;
}

.dash-home-report__gauge-wrap {
  text-align: center;
  min-width: 120px;
}

.dash-home-report__ratio-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-home-gauge {
  position: relative;
  width: 140px;
  margin: 0 auto;
}

.dash-home-gauge__svg {
  width: 100%;
  height: auto;
  display: block;
}

.dash-home-gauge__track {
  stroke: #e8ecf1;
}

.dash-home-gauge__arc {
  stroke: #22c55e;
  transition: stroke-dashoffset 0.35s ease;
}

.dash-home-gauge__arc--payout {
  stroke: #22c55e;
}

.dash-home-gauge__value {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cream);
}

.dash-home-report__dot--init {
  background: #8b5cf6;
}

.dash-home-report__chart {
  width: 150px;
  max-width: 100%;
  margin: 0.75rem auto 0;
}

.dash-home-range-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.dash-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--cream-dim);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dash-filter-trigger:hover {
  border-color: var(--violet-light);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.14);
  transform: translateY(-1px);
}

.dash-filter-trigger__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.1);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dash-filter-drawer-overlay.is-open {
  opacity: 1;
}

.dash-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: #fff;
  z-index: 1201;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease-soft);
}

.dash-filter-drawer.is-open {
  transform: translateX(0);
}

.dash-filter-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #e8ecf1;
}

.dash-filter-drawer__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cream);
}

.dash-filter-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cream-dim);
}

.dash-filter-drawer__close:hover {
  border-color: var(--violet-light);
  color: var(--violet);
}

.dash-filter-drawer__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-filter-drawer__foot {
  margin-top: auto;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid #e8ecf1;
  display: flex;
  gap: 0.6rem;
}

.dash-home-compare {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.1rem;
}

.dash-home-compare__head {
  margin-bottom: 0.9rem;
}

.dash-home-compare__chart {
  height: 220px;
}

@media (max-width: 640px) {
  .dash-home-range {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-home-range__actions {
    justify-content: flex-end;
  }
}

.dash-home-txn {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.dash-home-txn__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8ecf1;
}

.dash-home-txn__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cream);
}

.dash-home-txn__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.dash-home-txn__tabs button {
  padding: 0.35rem 0.15rem;
  border: none;
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dash-home-txn__tabs button:hover {
  color: var(--cream);
}

.dash-home-txn__tabs button.is-active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.dash-home-txn__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-home-status {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-home-status--success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.dash-home-status--pending {
  background: rgba(59, 130, 246, 0.12);
  color: var(--gold);
}

.dash-home-status--failed {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.dash-home-status--other {
  background: rgba(100, 116, 139, 0.12);
  color: var(--cream-dim);
}

.dash-home-txn__empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
}

.dash-home-txn__pane {
  display: none;
  padding: 0.5rem 0 0;
}

.dash-home-txn__pane.is-active {
  display: block;
}

.dash-home-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dash-home-table th,
.dash-home-table td {
  text-align: left;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--cream-dim);
}

.dash-home-table tbody tr {
  transition: background 0.15s;
}

.dash-home-table tbody tr:hover {
  background: #f8fafc;
}

.dash-home-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--dim);
  background: #fafbfc;
}

.dash-home-table__empty {
  text-align: center;
  color: var(--dim);
  padding: 1.5rem !important;
}

.dash-home-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-home-badge--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.dash-home-badge--pending {
  background: rgba(59, 130, 246, 0.12);
  color: var(--gold);
}

.dash-home-badge--fail {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ─── Developer sections (API credentials, webhooks, docs) ───────────── */
body.portal .dash-dev-root {
  --dash-dev-bg: #f5f8ff;
  --dash-dev-line: #eef0f5;
  --dash-dev-ink: #111827;
  --dash-dev-muted: #6b7280;
  --dash-dev-blue: #f97316;
  --dash-dev-blue-soft: rgba(30, 64, 175, 0.12);
  font-family: var(--f-body), system-ui, sans-serif;
  background: var(--dash-dev-bg);
  margin: 0 calc(-1 * var(--pad, 1.25rem)) 0;
  padding: 0 var(--pad, 1.25rem) 1.5rem;
  border-radius: 0;
}

body.portal .dash-dev-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 0 0.5rem;
}

body.portal .dash-dev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

body.portal .dash-dev-toolbar__left,
body.portal .dash-dev-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

body.portal .dash-dev-mode-toggle {
  display: inline-flex;
  padding: 4px;
  background: #f3f6ff;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

body.portal .dash-dev-mode-toggle button {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dash-dev-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

body.portal .dash-dev-mode-toggle button.is-active {
  background: var(--dash-dev-blue);
  color: #fff;
}

body.portal .dash-dev-mode-toggle button[data-dev-mode="live"].is-active {
  background: #047857;
  color: #fff;
}

body.portal .dash-dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

body.portal .dash-dev-pill--test {
  background: #eff6ff;
  color: var(--gold);
}

body.portal .dash-dev-pill--live {
  background: #ecfdf5;
  color: #4ade80;
}

body.portal .dash-dev-pill--ok {
  background: #ecfdf5;
  color: #4ade80;
}

body.portal .dash-dev-pill--warn {
  background: #fffbeb;
  color: #fbbf24;
}

body.portal .dash-dev-pill--bad {
  background: #fef2f2;
  color: #f87171;
}

body.portal .dash-dev-pill--info {
  background: #eff6ff;
  color: var(--gold);
}

body.portal .dash-dev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

body.portal .dash-dev-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 91, 219, 0.28);
}

body.portal .dash-dev-btn--sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

body.portal .dash-dev-btn--primary {
  background: var(--dash-dev-blue);
  border-color: var(--dash-dev-blue);
  color: #fff;
}

body.portal .dash-dev-btn--primary:hover {
  background: #172554;
  border-color: #172554;
}

body.portal .dash-dev-btn--soft {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: var(--cream-dim);
}

body.portal .dash-dev-btn--soft:hover {
  background: #e5e7eb;
}

body.portal .dash-dev-btn--danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #f87171;
}

body.portal .dash-dev-btn--danger:hover {
  background: #fecaca;
}

body.portal .dash-dev-panel {
  background: #fff;
  border: 1px solid var(--dash-dev-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  margin-bottom: 1.1rem;
}

body.portal .dash-dev-panel--danger {
  border-color: #fecaca;
}

body.portal .dash-dev-panel__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--dash-dev-line);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}

body.portal .dash-dev-panel__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body.portal .dash-dev-panel__head--danger {
  background: #fef2f2;
  border-bottom-color: #fecaca;
  color: #f87171;
}

body.portal .dash-dev-panel__head small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--dash-dev-muted);
}

body.portal .dash-dev-panel__head--danger small {
  color: #f87171;
}

body.portal .dash-dev-panel__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

body.portal .dash-dev-panel__body--row-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

body.portal .dash-dev-panel__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cream-dim);
  margin: 0 0 0.75rem;
}

body.portal .dash-dev-cred {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #f9fafb;
  border: 1px solid var(--dash-dev-line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

body.portal .dash-dev-cred:hover {
  border-color: var(--violet-light);
  background: #fff;
}

body.portal .dash-dev-cred + .dash-dev-cred {
  margin-top: 0.65rem;
}

body.portal .dash-dev-cred__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--gold);
}

body.portal .dash-dev-cred__icon--amber {
  background: #fef3c7;
  color: #fbbf24;
}

body.portal .dash-dev-cred__icon--green {
  background: #ecfdf5;
  color: #4ade80;
}

body.portal .dash-dev-cred__icon--violet {
  background: #f3e8ff;
  color: var(--gold);
}

body.portal .dash-dev-cred__info {
  flex: 1;
  min-width: 0;
}

body.portal .dash-dev-cred__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--dash-dev-muted);
}

body.portal .dash-dev-cred__value {
  display: block;
  margin-top: 0.25rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--dash-dev-ink);
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.portal .dash-dev-cred__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

body.portal .dash-dev-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--cream-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

body.portal .dash-dev-icon-btn--sm {
  width: 32px;
  height: 32px;
}

body.portal .dash-dev-icon-btn:hover {
  background: #f3f6ff;
  color: var(--dash-dev-blue);
  border-color: #c7d2fe;
}

body.portal .dash-dev-icon-btn--danger:hover {
  background: #fee2e2;
  color: #f87171;
  border-color: #fecaca;
}

body.portal .dash-dev-ip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.portal .dash-dev-ip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 10px;
  background: #eff6ff;
  color: var(--gold);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
}

body.portal .dash-dev-ip-tag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
}

body.portal .dash-dev-ip-tag button:hover {
  opacity: 1;
}

body.portal .dash-dev-hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--dash-dev-muted);
}

body.portal .dash-dev-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85em;
}

body.portal .dash-dev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

body.portal .dash-dev-modal-overlay[hidden] {
  display: none !important;
}

body.portal .dash-dev-modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.22);
}

body.portal .dash-dev-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--dash-dev-line);
}

body.portal .dash-dev-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dash-dev-ink);
}

body.portal .dash-dev-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--dash-dev-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

body.portal .dash-dev-modal__body {
  padding: 1.25rem;
}

body.portal .dash-dev-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid var(--dash-dev-line);
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

body.portal .dash-dev-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dash-dev-muted);
  margin-bottom: 0.35rem;
}

body.portal .dash-dev-input,
body.portal .dash-dev-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.88rem;
  font-family: inherit;
  box-sizing: border-box;
}

body.portal .dash-dev-input:focus,
body.portal .dash-dev-select:focus {
  outline: none;
  border-color: var(--dash-dev-blue);
  box-shadow: 0 0 0 3px var(--dash-dev-blue-soft);
}

body.portal .dash-dev-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.portal .dash-dev-field--full {
  grid-column: 1 / -1;
}

body.portal .dash-dev-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

body.portal .dash-dev-form-actions--solo {
  margin-top: 0.75rem;
}

body.portal .dash-dev-form-msg {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #4ade80;
}

body.portal .dash-dev-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

body.portal .dash-dev-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

body.portal .dash-dev-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: 0.25s;
}

body.portal .dash-dev-switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

body.portal .dash-dev-switch input:checked + .dash-dev-switch__slider {
  background: var(--dash-dev-blue);
}

body.portal .dash-dev-switch input:checked + .dash-dev-switch__slider::before {
  transform: translateX(20px);
}

body.portal .dash-dev-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

body.portal .dash-dev-event {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}

body.portal .dash-dev-event:hover {
  border-color: #c7d2fe;
  background: #f8faff;
}

body.portal .dash-dev-event.is-checked {
  border-color: var(--dash-dev-blue);
  background: #eff6ff;
}

body.portal .dash-dev-event input {
  margin-top: 3px;
  accent-color: var(--dash-dev-blue);
}

body.portal .dash-dev-event b {
  display: block;
  font-size: 0.8rem;
  color: var(--cream);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

body.portal .dash-dev-event small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--dash-dev-muted);
}

body.portal .dash-dev-code-label {
  font-size: 0.78rem;
  color: var(--dash-dev-muted);
  margin: 0 0 0.35rem;
}

body.portal .dash-dev-deliveries {
  border-top: 1px solid var(--dash-dev-line);
}

body.portal .dash-dev-delivery {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f1f3f7;
}

body.portal .dash-dev-delivery:last-child {
  border-bottom: none;
}

body.portal .dash-dev-delivery__main {
  flex: 1;
  min-width: 0;
}

body.portal .dash-dev-delivery__event {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--cream);
  display: block;
}

body.portal .dash-dev-delivery__meta {
  font-size: 0.72rem;
  color: var(--dash-dev-muted);
}

body.portal .dash-dev-delivery__code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--dash-dev-muted);
  display: none;
}

@media (min-width: 640px) {
  body.portal .dash-dev-delivery__code {
    display: block;
  }
}

body.portal .dash-dev-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10000;
  background: #111827;
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(360px, calc(100vw - 2rem));
}

body.portal .dash-dev-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.portal .dash-dev-doc-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.25rem 0 1.1rem;
}

body.portal .dash-dev-doc-hero h1 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dash-dev-ink);
  letter-spacing: -0.01em;
}

body.portal .dash-dev-doc-hero p {
  margin: 0;
  max-width: 56ch;
  font-size: 0.9rem;
  color: var(--dash-dev-muted);
  line-height: 1.55;
}

body.portal .dash-dev-doc-shell {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 0.5rem;
}

body.portal .dash-dev-toc {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 0.75rem;
  background: #fff;
  border: 1px solid var(--dash-dev-line);
  border-radius: 16px;
  padding: 0.75rem 0.6rem;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

body.portal .dash-dev-toc__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dash-dev-muted);
  padding: 0.9rem 0.65rem 0.45rem;
  font-weight: 800;
}

body.portal .dash-dev-toc__title:first-child {
  padding-top: 0.3rem;
}

body.portal .dash-dev-toc__title::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

body.portal .dash-dev-toc a {
  position: relative;
  display: block;
  padding: 0.48rem 0.65rem 0.48rem 1rem;
  margin: 1px 0;
  border-radius: 9px;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

body.portal .dash-dev-toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--gold);
  transition: height 0.15s;
}

body.portal .dash-dev-toc a:hover {
  background: rgba(75, 42, 158, 0.06);
  color: var(--gold);
}

body.portal .dash-dev-toc a.is-active {
  background: rgba(75, 42, 158, 0.09);
  color: var(--gold);
  font-weight: 700;
}

body.portal .dash-dev-toc a.is-active::before {
  height: 60%;
}

body.portal .dash-dev-doc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body.portal .dash-dev-doc-main .dash-dev-panel {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  scroll-margin-top: 1rem;
}

body.portal .dash-dev-doc-main .dash-dev-panel__head {
  padding: 1.15rem 1.3rem 0.9rem;
}

body.portal .dash-dev-doc-main .dash-dev-panel__head span {
  font-size: 1.04rem;
}

body.portal .dash-dev-doc-main .dash-dev-panel__body {
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  padding-bottom: 1.3rem;
}

body.portal .dash-dev-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  background: linear-gradient(180deg, #faf9ff, #f6f5fb);
  border: 1px solid rgba(75, 42, 158, 0.14);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

body.portal .dash-dev-endpoint code {
  flex: 1;
  min-width: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--dash-dev-ink);
  word-break: break-all;
}

body.portal .dash-dev-method {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.portal .dash-dev-method--get {
  background: #ecfdf5;
  color: #4ade80;
}

body.portal .dash-dev-method--post {
  background: rgba(75, 42, 158, 0.1);
  color: var(--gold);
}

body.portal .dash-dev-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  border: 1px solid var(--dash-dev-line);
  border-radius: 12px;
  overflow: hidden;
}

body.portal .dash-dev-table th,
body.portal .dash-dev-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f1f3f7;
  vertical-align: top;
}

body.portal .dash-dev-table tbody tr {
  transition: background 0.15s;
}

body.portal .dash-dev-table tbody tr:last-child td {
  border-bottom: none;
}

body.portal .dash-dev-table tbody tr:nth-child(even) {
  background: #fbfbfd;
}

body.portal .dash-dev-table tbody tr:hover {
  background: rgba(75, 42, 158, 0.045);
}

body.portal .dash-dev-table th {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dash-dev-muted);
  font-weight: 700;
  background: #f9fafb;
}

body.portal .dash-dev-table code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--gold);
  background: rgba(75, 42, 158, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
}

body.portal .dash-dev-req {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #f87171;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.portal .dash-dev-opt {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--dash-dev-muted);
  font-size: 0.62rem;
  font-weight: 700;
}

body.portal .dash-dev-code-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  background: #f3f2f8;
  border: 1px solid var(--dash-dev-line);
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 0.4rem;
}

body.portal .dash-dev-code-tabs button {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dash-dev-muted);
  cursor: pointer;
  font-family: inherit;
}

body.portal .dash-dev-code-tabs button.is-active {
  background: var(--gold);
  color: #fff;
}

body.portal .dash-dev-code-wrap {
  position: relative;
}

body.portal .dash-dev-code {
  background: #0b1220;
  color: #e2e8f0;
  padding: 1rem 3rem 1rem 1.1rem;
  border-radius: 14px;
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-x: auto;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.portal .dash-dev-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

body.portal .dash-dev-code-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.portal .dash-dev-code-k {
  color: #c4b5fd;
}

body.portal .dash-dev-code-s {
  color: #86efac;
}

body.portal .dash-dev-code-n {
  color: #fbbf24;
}

body.portal .dash-dev-inline-pill {
  margin: 0;
}

@media (max-width: 900px) {
  body.portal .dash-dev-doc-shell {
    flex-direction: column;
  }

  body.portal .dash-dev-toc {
    position: static;
    width: 100%;
    max-height: none;
  }

  body.portal .dash-dev-form-grid {
    grid-template-columns: 1fr;
  }
}
