.panel-body {
  margin: 0;
  background: #eef2f7;
  min-height: 100vh;
}
.panel-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.panel-sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display, Sora, sans-serif);
  font-weight: 700;
  padding: 0.5rem;
}
.panel-brand img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
}
.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.panel-nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.panel-nav a:hover,
.panel-nav a.active {
  background: rgba(0, 82, 224, 0.25);
  color: #fff;
}
.panel-side-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.panel-side-foot a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
}
.panel-side-foot a:hover { color: #fff; }
.panel-main { display: flex; flex-direction: column; min-width: 0; }
.panel-top {
  background: #fff;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.panel-top h1 {
  font-size: 1.15rem;
  margin: 0;
  font-family: var(--font-display, Sora, sans-serif);
}
.panel-top .welcome-line { display: none; }
.panel-content {
  padding: 0.65rem 1.15rem 1.25rem;
  flex: 1 1 auto;
  align-self: stretch;
}
.panel-content > .alert { margin-bottom: 0.65rem; }
.stat-card {
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(15,23,42,0.06);
}
.stat-card.h-100 { height: auto; min-height: 100%; }
.fm-breadcrumb a { text-decoration: none; font-weight: 600; color: #0052e0; }
.fm-breadcrumb a:hover { text-decoration: underline; }
.fm-table th { font-size: 0.8rem; color: #64748b; font-weight: 600; }
.db-table-list li a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 500;
}
.db-table-list li a:hover,
.db-table-list li a.active {
  background: rgba(0, 82, 224, 0.08);
  color: #0052e0;
}
.stat-card .num {
  font-family: var(--font-display, Sora, sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}
.table-panel {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.06);
}

/* —— Admin dashboard —— */
.admin-dash {
  --dash-blue: #0052e0;
  --dash-cyan: #0ea5e9;
}
.admin-dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.admin-dash-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-blue);
  margin: 0;
}
.admin-dash-sub {
  color: #64748b;
  font-size: 0.9rem;
}
.admin-dash-attn {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.attn-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}
.attn-warn { background: #fff7ed; color: #c2410c; }
.attn-danger { background: #fef2f2; color: #b91c1c; }
.attn-ok { background: #ecfdf5; color: #047857; }
.attn-chip:hover { filter: brightness(0.97); }

.kpi-card {
  border-radius: 1rem !important;
  overflow: hidden;
  position: relative;
}
.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #e2e8f0;
}
.kpi-revenue::before { background: linear-gradient(180deg, #0052e0, #0ea5e9); }
.kpi-card-alert {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 55%) !important;
}
.kpi-card-alert::before { background: #f59e0b; }
.kpi-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}
.kpi-value {
  font-family: Sora, Figtree, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}
.kpi-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}
.kpi-meta a { color: #0052e0; text-decoration: none; font-weight: 600; }
.kpi-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.kpi-ico-blue { background: rgba(0, 82, 224, 0.1); color: #0052e0; }
.kpi-ico-cyan { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.kpi-ico-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.kpi-ico-warn { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.kpi-ico-slate { background: rgba(100, 116, 139, 0.12); color: #475569; }

.dash-card { border-radius: 1rem !important; }
.dash-card-title {
  font-family: Sora, Figtree, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.dash-card-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}
.dash-card-link {
  font-size: 0.8rem;
  font-weight: 650;
  color: #0052e0;
  text-decoration: none;
}
.dash-card-link:hover { text-decoration: underline; }

.chart-wrap { position: relative; height: 220px; }
.chart-wrap-donut { height: 180px; width: 180px; }
.chart-wrap-bar { height: 170px; }
.legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.dash-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.dash-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.dash-panel-head a {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0052e0;
  text-decoration: none;
}
.dash-table { font-size: 0.88rem; }
.dash-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  font-weight: 650;
  border-bottom-color: rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.dash-table td {
  border-color: rgba(15, 23, 42, 0.05);
  vertical-align: middle;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.dash-table tbody tr:hover { background: rgba(0, 82, 224, 0.03); }
.dash-link { color: #0f172a; font-weight: 650; text-decoration: none; }
.dash-link:hover { color: #0052e0; }
.dash-muted { color: #94a3b8; font-size: 0.78rem; }

.dash-queue { padding: 0.15rem 0; }
.dash-queue-empty {
  padding: 1.75rem 1.15rem;
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
}
.queue-empty-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.dash-queue-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.dash-queue-item:last-child { border-bottom: 0; }
.q-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  margin-top: 0.15rem;
}
.q-tag-pay { background: #eff6ff; color: #1d4ed8; }
.q-tag-err { background: #fef2f2; color: #b91c1c; }
.q-tag-sup { background: #fff7ed; color: #c2410c; }
.q-body a {
  color: #0f172a;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
}
.q-body a:hover { color: #0052e0; }

.dash-simple { padding: 0.15rem 0 0.35rem; }
.dash-simple li {
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.dash-simple li:last-child { border-bottom: 0; }
.dash-simple a {
  color: #0f172a;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
}
.dash-simple a:hover { color: #0052e0; }
.user-avatar {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #0052e0, #0ea5e9);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.rank-n {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.35rem;
}

.dash-short-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.dash-short-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.dash-short-grid .short-label { font-weight: 700; }
.dash-short-grid a span:last-child {
  font-weight: 500;
  font-size: 0.75rem;
  color: #94a3b8;
}
.dash-short-grid a:hover {
  background: #fff;
  border-color: #93c5fd;
  color: #0052e0;
  box-shadow: 0 6px 16px rgba(0, 82, 224, 0.08);
  transform: translateY(-1px);
}

.badge-status-active { background: #dcfce7; color: #166534; }
.badge-status-pending { background: #fef9c3; color: #854d0e; }
.badge-status-paid { background: #dbeafe; color: #1e40af; }
.badge-status-failed,
.badge-status-cancelled,
.badge-status-suspended { background: #fee2e2; color: #991b1b; }
.badge-status-open { background: #e0e7ff; color: #3730a3; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(0,82,224,.12), transparent),
    #eef2f7;
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 1.15rem;
  padding: 2rem;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 16px 40px rgba(15,23,42,0.06);
}
.price-block { margin: 0.35rem 0 0.5rem; }
.price-usd-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.1;
}
.price-usd {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0052e0;
}
.price-cycle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}
.price-try-row {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}
.price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.price-inline-usd { font-weight: 800; color: #0052e0; }
.price-inline-try { font-size: 0.85em; font-weight: 500; color: #64748b; }
.price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0052e0;
  line-height: 1.15;
}
.price-amount .price-cycle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
}
.price-try-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.svc-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.svc-action-accent {
  border-color: rgba(0, 82, 224, 0.25);
  background: linear-gradient(180deg, #f4f8ff, #fff);
}
.svc-site-card {
  background: #fff;
  border: 1px solid rgba(0, 82, 224, 0.14);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.svc-site-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.svc-site-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.svc-site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.svc-site-box {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}
.svc-site-box-wide { grid-column: 1 / -1; }
.svc-site-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.svc-site-url {
  font-weight: 700;
  color: #0052e0;
  text-decoration: none;
  word-break: break-all;
}
.svc-site-url:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .svc-site-grid { grid-template-columns: 1fr; }
  .svc-site-box-wide { grid-column: auto; }
}
.svc-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.svc-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.svc-hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.svc-hero-title {
  font-family: var(--font-display, Sora, sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}
.svc-hero-sub {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.9rem;
}
.svc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}
.svc-dates { width: 100%; text-align: right; }
.svc-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #0f172a;
}
.svc-alert { border-radius: 0.85rem; }
.svc-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.svc-action {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.svc-action:hover {
  border-color: rgba(0,82,224,0.35);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  transform: translateY(-1px);
  color: inherit;
}
.svc-action-label {
  font-weight: 700;
  font-size: 1rem;
  color: #0052e0;
}
.svc-action-desc {
  font-size: 0.8rem;
  color: #64748b;
}
.svc-limits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.svc-limit {
  background: #f8fafc;
  border-radius: 0.7rem;
  padding: 0.7rem 0.75rem;
  text-align: center;
}
.svc-limit span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}
.svc-limit strong {
  font-size: 1.05rem;
  color: #0f172a;
}
.svc-dns-box {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.svc-dns-box--stack {
  height: auto;
}
.svc-dns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.svc-dns-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.svc-mono code {
  font-size: 0.85rem;
  color: #0f172a;
  background: #eef2ff;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}
.svc-cred-head {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}
.svc-cred-list {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.4rem;
}
.svc-cred-list > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
}
.svc-cred-list dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.svc-cred-list dd {
  margin: 0;
  min-width: 0;
}
.svc-cred-list code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
}
.svc-path {
  display: block;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  background: #f1f5f9;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  color: #334155;
}
.svc-divider {
  margin: 1rem 0;
  opacity: 0.12;
}
@media (max-width: 991px) {
  .svc-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-dates { text-align: left; }
  .svc-hero-meta { justify-content: flex-start; }
}
@media (max-width: 575px) {
  .svc-action-grid,
  .svc-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-cred-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
@media (max-width: 900px) {
  .panel-shell { grid-template-columns: 1fr; }
  .panel-sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .panel-nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .panel-side-foot { flex-direction: row; border: 0; padding: 0; width: 100%; }
}
