/* A-Zing dashboard template — Objectiv account shell
   Mirror: azing-django/templates/dashboard.html */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --dash-sidebar-width: 280px;
  --dash-sidebar-collapsed: 80px;
  --dash-nav-h: 70px;
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(0, 0, 0, 0.06);
  --main-bg: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --font-dash: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.po-dash-page {
  background: var(--main-bg);
  font-family: var(--font-dash);
  color: var(--text-main);
}

body.po-dash-page .po-bg,
body.po-dash-page .po-bg-grid,
body.po-dash-page .po-elig-bg-orb,
body.po-dash-page .po-account-bg,
body.po-dash-page .po-account-bg-grid,
body.po-dash-page .po-models-bg,
body.po-dash-page .po-models-bg-grid,
body.po-dash-page .po-elig-bg,
body.po-dash-page .po-elig-bg-grid {
  display: none !important;
}

body.po-dash-page #po-site-footer {
  display: none !important;
}

/* Dashboard top bar — match a-zing.org navbar height / white bar */
.po-dash-app-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--dash-nav-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-dash);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.po-dash-topbar {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  box-sizing: border-box;
}

.po-dash-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

.po-dash-topbar-brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.po-dash-topbar-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.po-dash-topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.po-dash-topbar-nav a:hover {
  color: var(--text-main);
}

.po-dash-topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.po-dash-topbar-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.po-dash-topbar-link:hover,
.po-dash-topbar-link.po-header-signout {
  color: var(--text-main);
}

/* Header identity — avatar chip (not the Overview subtitle) */
.po-dash-userchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(280px, 36vw);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--main-bg);
  border: 1px solid var(--sidebar-border);
}

.po-dash-userchip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  letter-spacing: 0;
}

.po-dash-userchip-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
  padding-right: 4px;
}

.po-dash-userchip-email {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-dash-userchip-via {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

/* Icon rail: no duplicate product logo (brand lives in top bar only) */
.po-dash-sidebar .po-dash-brand {
  display: none;
}

.po-dash-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(139, 92, 246, 0.05), transparent 45%);
  background-color: var(--main-bg);
}

/* Falling A-Zing marks — same treatment as a-zing.org dashboard canvas */
.po-dash-falling {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.po-dash-falling-star {
  position: absolute;
  left: var(--left, 50%);
  top: -24px;
  width: 14px;
  height: 14px;
  background: url("https://www.a-zing.org/static/img/logo.png") no-repeat center / contain;
  opacity: 0.55;
  animation: po-dash-falling-star 2.8s linear var(--delay, 0s) infinite;
}

@keyframes po-dash-falling-star {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 0.45;
  }
  92% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.po-dash-gate {
  max-width: 420px;
  margin: 64px auto;
  text-align: center;
  padding: 36px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.po-dash-gate h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.po-dash-gate p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.po-dash-gate .po-dash-actions {
  justify-content: center;
}

body.po-dash-signed-out .po-dash-layout,
body.po-dash-signed-out .po-dash-mobile-toggle {
  display: none !important;
}

.po-dash-layout {
  display: flex;
  min-height: calc(100vh - var(--dash-nav-h));
  position: relative;
  z-index: 1;
}

/* ——— Icon rail (collapsed by default) ——— */
.po-dash-sidebar {
  width: var(--dash-sidebar-collapsed);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  height: calc(100vh - var(--dash-nav-h));
  position: fixed;
  left: 0;
  top: var(--dash-nav-h);
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  z-index: 900;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.04);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.po-dash-sidebar:hover,
.po-dash-sidebar.is-pinned {
  width: var(--dash-sidebar-width);
}

.po-dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  min-height: 28px;
  padding-left: 6px;
}

.po-dash-brand img {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
}

.po-dash-brand .brand-full {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.po-dash-sidebar:hover .brand-full,
.po-dash-sidebar.is-pinned .brand-full {
  opacity: 1;
}

.po-dash-menu-label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 16px 0 8px;
  padding-left: 12px;
  white-space: nowrap;
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.po-dash-sidebar:hover .po-dash-menu-label,
.po-dash-sidebar.is-pinned .po-dash-menu-label {
  opacity: 1;
  height: auto;
  margin: 16px 0 8px;
  overflow: visible;
}

.po-dash-nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.po-dash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-muted);
  text-decoration: none !important;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 2px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}

.po-dash-item svg,
.po-dash-item .bi {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.po-dash-item span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.po-dash-sidebar:hover .po-dash-item span,
.po-dash-sidebar.is-pinned .po-dash-item span {
  opacity: 1;
  width: auto;
  overflow: visible;
}

.po-dash-item:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-main);
}

.po-dash-item.is-active {
  color: var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
  padding-left: 9px;
  font-weight: 600;
  background: transparent;
}

.po-dash-item.is-active svg,
.po-dash-item.is-active .bi {
  opacity: 1;
  color: var(--accent-primary);
}

.po-dash-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff !important;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}

.po-dash-sidebar:hover .po-dash-cta,
.po-dash-sidebar.is-pinned .po-dash-cta {
  display: flex;
}

.po-dash-user {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--sidebar-border);
}

.po-dash-user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  height: 0;
}

.po-dash-sidebar:hover .po-dash-user-email,
.po-dash-sidebar.is-pinned .po-dash-user-email {
  opacity: 1;
  height: auto;
}

.po-dash-item.is-danger {
  color: #dc2626;
}

.po-dash-main {
  margin-left: var(--dash-sidebar-collapsed);
  padding: 28px 32px 48px;
  width: 100%;
  max-width: 1400px;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.po-dash-sidebar.is-pinned ~ .po-dash-main {
  margin-left: var(--dash-sidebar-width);
}

.po-dash-page-head {
  margin-bottom: 0;
}

.po-dash-page-head .po-dash-title {
  margin: 0 0 1.5rem;
}

.po-dash-kicker {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.po-dash-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-main);
}

.po-dash-sub {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.po-dash-sub code {
  font-size: 0.875rem;
}

.po-dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card-bg);
}

/* ——— Stat widgets — verbatim mirror of a-zing.org .overview-stats / .widget-card ——— */
.po-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
}

.po-dash-stats .po-dash-widget {
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.po-dash-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 24px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  font: inherit;
}

.po-dash-widget[data-po-account-open],
.po-dash-widget[role="button"] {
  cursor: pointer;
}

.po-dash-widget:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.08);
  color: var(--text-main);
}

.po-dash-widget-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.po-dash-widget-bottom {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
  flex: 1 1 auto;
}

.po-dash-widget-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-bottom: 8px;
  /* Match a-zing .widget-icon line-box (1.2rem * 1.6 ≈ 30.72) */
  line-height: 1.6;
}

.po-dash-widget-icon .bi {
  font-size: inherit;
  line-height: inherit;
}

.po-dash-widget-icon.is-credits {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.12));
  color: var(--accent-primary);
}

.po-dash-widget-icon.is-licenses {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.po-dash-widget-icon.is-txns {
  background: rgba(8, 145, 178, 0.12);
  color: #0891b2;
}

.po-dash-widget-value {
  font-size: clamp(1.125rem, 9cqi, 2rem) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
  margin: 4px 0 2px;
  max-width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.po-dash-widget-value--full {
  font-size: clamp(0.95rem, 7.5cqi, 1.65rem) !important;
  letter-spacing: -0.02em;
}

/* Match a-zing Balance/Active/Total — Bootstrap .small computes ~14px / 22.4px lh */
.po-dash-widget-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

.po-dash-widget-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.po-dash-widget-cta:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ——— Product focus + panels ——— */
.po-dash-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.po-dash-panel h2 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.po-dash-panel-meta {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.po-dash-panel-meta strong {
  color: var(--text-main);
  font-weight: 600;
}

.po-dash-panel-meta code {
  font-size: 0.8125rem;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.po-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Product actions — match a-zing.org/dashboard .btn-primary / outline (borderless links) */
.po-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
}

.po-dash-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  font-size: 0.9rem;
}

.po-dash-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.po-dash-btn-ghost,
.po-dash-btn-outline,
.po-dash-btn-outline-muted {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
}

.po-dash-btn-ghost:hover,
.po-dash-btn-outline:hover,
.po-dash-btn-outline-muted:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-main);
}

.po-dash-panel h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.po-dash-panel h2 .bi,
.po-dash-panel h2 .text-primary {
  color: var(--accent-primary);
  font-size: 1.15rem;
  margin-right: 0.35rem;
}

.po-dash-section {
  display: none;
}

.po-dash-section.is-active {
  display: block;
}

/* ——— Recent activity ——— */
.po-dash-activity {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.po-dash-activity:hover {
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.po-dash-activity-title {
  margin: 0;
  padding: 20px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-dash-activity-title .bi {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.po-dash-activity table,
.po-dash-activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-main);
}

.po-dash-activity th,
.po-dash-activity td,
.po-dash-activity-table th,
.po-dash-activity-table td {
  text-align: left;
  padding: 14px 24px;
  border-bottom: 1px solid var(--card-border);
}

.po-dash-activity th,
.po-dash-activity-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.02);
}

.po-dash-activity-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.po-dash-activity td:last-child,
.po-dash-activity-table td:last-child,
.po-dash-activity th:last-child,
.po-dash-activity-table th:last-child {
  text-align: right;
  font-weight: 600;
}

.po-dash-activity tr:last-child td,
.po-dash-activity-table tr:last-child td {
  border-bottom: none;
}

.po-dash-amount-neg {
  color: #dc2626;
  font-weight: 600;
}

.po-dash-amount-pos {
  color: #059669;
  font-weight: 600;
}

.po-dash-activity-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px !important;
  font-size: 0.9375rem;
  font-weight: 400 !important;
}

.po-dash-activity-empty .bi {
  font-size: 2.5rem;
  opacity: 0.4;
  display: block;
  margin-bottom: 12px;
}

/* Floating buy credits (A-Zing global cart FAB) */
.po-dash-floating-buy {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.po-dash-floating-buy[hidden] {
  display: none !important;
}

.po-dash-floating-buy:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  color: #fff;
}

.po-dash-floating-buy .bi {
  animation: po-dash-pulse-glow 2s infinite;
}

@keyframes po-dash-pulse-glow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

body.po-dash-signed-out .po-dash-floating-buy,
body.po-dash-signed-out .po-dash-falling {
  display: none !important;
}

.po-dash-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
}

.po-dash-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 850;
}

body.po-dash-sidebar-open .po-dash-backdrop {
  display: block;
}

.po-dash-page .po-account-card,
.po-dash-page .po-models-panel-card,
.po-dash-page .po-elig-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.po-dash-page .po-elig-shell,
.po-dash-page .po-models-shell,
.po-dash-page .po-account-shell {
  max-width: 1400px;
}

/* Do not zero .po-dash-main padding when shell class shares the node */
.po-dash-main.po-account-shell,
.po-dash-main.po-elig-shell,
.po-dash-main.po-models-shell {
  padding: 28px 32px 48px;
}

.po-dash-page .po-account-empty {
  color: var(--text-muted);
}

/* ——— Licenses tab (mirror a-zing.org/dashboard #licenses) ——— */
.po-lic-head {
  margin: 0 0 12px;
}

.po-lic-sub {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.po-lic-card {
  padding: 0 !important;
  overflow: hidden;
}

.po-lic-card--table {
  margin-bottom: 1.5rem;
}

.po-lic-empty {
  text-align: center;
  padding: 48px 24px 32px;
}

.po-lic-empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1;
}

.po-lic-empty h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.po-lic-empty p {
  margin: 0 auto 20px;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.po-lic-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.po-lic-table-wrap {
  overflow-x: auto;
}

.po-lic-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  color: #e2e8f0;
  margin: 0;
}

.po-lic-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.po-lic-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  font-size: 0.875rem;
}

.po-lic-table tbody tr:last-child td {
  border-bottom: none;
}

.po-lic-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.po-lic-product-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.po-lic-product strong {
  font-weight: 700;
  color: #f8fafc;
}

.po-lic-key {
  display: flex;
  align-items: center;
  gap: 8px;
}

.po-lic-key code {
  font-size: 0.8125rem;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
}

.po-lic-eye,
.po-lic-copy {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.po-lic-eye {
  border: none;
  padding: 4px;
  color: #94a3b8;
}

.po-lic-eye:hover,
.po-lic-copy:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.po-lic-meta {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.po-lic-meta code {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.po-lic-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.po-lic-badge.is-active {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
  border-color: rgba(5, 150, 105, 0.35);
}

.po-lic-badge.is-dead {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.35);
}

.po-lic-help {
  margin: 20px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.3);
  text-align: left;
}

.po-lic-help h3 {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.po-lic-help h3 .bi {
  color: var(--accent-primary);
}

.po-lic-help p,
.po-lic-help ol {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.po-lic-help ol {
  padding-left: 1.25rem;
}

.po-lic-help a {
  color: var(--accent-primary);
  font-weight: 600;
}

.po-dash-page .po-account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.po-dash-page .po-account-table th,
.po-dash-page .po-account-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-border);
}

.po-dash-page .po-account-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.po-dash-page .po-account-dl div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 8px 16px;
  font-size: 0.9375rem;
}

.po-dash-page .po-account-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.po-dash-page .po-account-dl dd {
  margin: 0;
}

.po-dash-btn-danger {
  background: #fff;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.po-dash-btn-danger:hover {
  background: #fef2f2;
  color: #b91c1c !important;
}

.po-profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.po-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.po-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.po-profile-hero-meta {
  flex: 1 1 200px;
  min-width: 0;
}

.po-profile-kicker {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.po-profile-hero-meta h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.po-profile-email {
  margin: 6px 0 0;
}

.po-profile-email code {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}

.po-profile-plan-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4338ca;
}

.po-profile-plan-pill[data-plan="enterprise"] {
  background: #dcfce7;
  color: #166534;
}

.po-profile-plan-pill[data-plan="startup"] {
  background: #fef3c7;
  color: #92400e;
}

.po-profile-plan-pill[data-plan="community"] {
  background: #f1f5f9;
  color: #475569;
}

.po-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.po-profile-card {
  margin-bottom: 0;
}

.po-profile-card h3 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.po-profile-actions {
  margin-top: 16px;
}

.po-profile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.po-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.po-profile-link:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--accent-primary);
}

.po-profile-link .bi {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.po-profile-empty h2 {
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .po-profile-grid {
    grid-template-columns: 1fr;
  }

  .po-profile-plan-pill {
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .po-dash-mobile-toggle {
    display: grid;
    place-items: center;
    bottom: 100px; /* clear floating buy FAB */
  }

  .po-dash-floating-buy {
    bottom: 24px;
    right: 20px;
  }

  .po-dash-sidebar {
    transform: translateX(-105%);
    width: min(280px, 86vw);
  }

  .po-dash-sidebar:hover,
  .po-dash-sidebar.is-pinned {
    width: min(280px, 86vw);
  }

  body.po-dash-sidebar-open .po-dash-sidebar {
    transform: translateX(0);
  }

  .po-dash-sidebar .brand-full,
  .po-dash-sidebar .po-dash-menu-label,
  .po-dash-sidebar .po-dash-item span,
  .po-dash-sidebar .po-dash-cta,
  .po-dash-sidebar .po-dash-user-email {
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: flex;
  }

  .po-dash-sidebar .po-dash-menu-label {
    display: block;
    margin: 16px 0 8px;
  }

  .po-dash-sidebar .po-dash-cta {
    display: flex;
  }

  .po-dash-main {
    margin-left: 0;
    padding: 20px 16px 80px;
  }

  .po-dash-stats {
    grid-template-columns: 1fr;
  }
}

/* In-dashboard Enterprise checkout (same cart as /buy/) */
.po-dash-upgrade-wrap {
  max-width: 520px;
}

.po-dash-upgrade-lede {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.po-dash-upgrade-cart {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.po-dash-upgrade-cart .po-home-v2-edition-label {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.po-dash-upgrade-cart .po-buy-price {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.po-dash-upgrade-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.po-dash-upgrade-meta {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.po-dash-upgrade-meta a {
  color: var(--accent-primary);
  font-weight: 600;
  text-decoration: none;
}

.po-dash-upgrade-meta a:hover {
  text-decoration: underline;
}

.po-dash-tier-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
}

.po-dash-tier-btn {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  cursor: pointer;
}

.po-dash-tier-btn.is-active {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-primary);
}

.po-account-startup-form.po-dash-panel {
  padding: 1.25rem 1.35rem;
}

.po-models-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 1.25rem;
}

.po-models-pool-big {
  font-size: 1.125rem;
  margin: 0.5rem 0 0.75rem;
}

.po-models-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.po-models-meter > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: inherit;
}

.po-models-meter-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.po-models-stat-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
}

.po-models-stat-dl dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.po-models-stat-dl dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.po-models-table-section {
  margin-top: 1rem;
}

.po-models-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.po-models-catalog-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
}

.po-models-catalog-list p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.po-models-tier {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.po-models-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.po-models-foot {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.po-dash-inline-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: underline;
}
