:root {
  --bg0: #071116;
  --bg1: #0d1c22;
  --panel: rgba(16, 36, 44, 0.82);
  --panel2: rgba(8, 20, 26, 0.9);
  --line: rgba(255,255,255,0.08);
  --text: #eef6f8;
  --muted: #8fa6af;
  --teal: #2dd4bf;
  --teal2: #14b8a6;
  --amber: #f59e0b;
  --rose: #fb7185;
  --ok: #34d399;
  --shadow: 0 24px 60px rgba(0,0,0,.4);
  --r: 20px;
  --font: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font); color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245,158,11,.12), transparent 50%),
    radial-gradient(1000px 600px at 0% 0%, rgba(45,212,191,.18), transparent 55%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 50%, #0a161c);
  background-attachment: fixed;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: #99f6e4; }
.wrap {
  width: min(1200px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-left: max(.75rem, env(safe-area-inset-left));
  padding-right: max(.75rem, env(safe-area-inset-right));
  padding-bottom: 2rem;
  overflow-x: clip;
}
.page-user .wrap,
.page-auth .wrap { width: 100%; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 0; gap: 1rem;
}
.brand {
  font-weight: 800; font-size: 1.2rem; display: flex; gap: .55rem; align-items: center;
  letter-spacing: -.02em; color: var(--text);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(45,212,191,.25);
  border: 1px solid var(--line);
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(145deg, var(--teal), #0f766e);
  display: grid; place-items: center; font-size: .75rem; font-weight: 900;
  box-shadow: 0 10px 24px rgba(45,212,191,.3);
}

.page-auth .wrap {
  width: min(1200px, 100%);
  padding-left: max(.85rem, env(safe-area-inset-left));
  padding-right: max(.85rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.page-auth .nav { padding: .9rem 0 .5rem; }
.page-auth .footer {
  font-size: .75rem;
  text-align: center;
  opacity: .85;
  padding-top: .5rem;
}

.auth-page {
  min-height: max(65dvh, calc(100dvh - 7.5rem));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 0 1.25rem;
  width: 100%;
}
.auth-card {
  width: min(420px, 100%);
  padding: clamp(1.15rem, 4vw, 1.65rem) clamp(1.1rem, 4.2vw, 1.75rem);
  box-shadow: var(--shadow);
  border-radius: var(--r);
}
.auth-brand {
  display: flex;
  gap: clamp(.75rem, 3vw, 1rem);
  align-items: center;
  margin-bottom: 1.15rem;
}
.auth-logo {
  width: clamp(52px, 14vw, 72px);
  height: clamp(52px, 14vw, 72px);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  flex-shrink: 0;
}
.auth-title {
  margin: 0;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.auth-sub {
  margin: .35rem 0 0;
  font-size: clamp(.82rem, 2.8vw, .88rem);
  color: var(--muted);
  line-height: 1.55;
}
.auth-badge {
  display: inline-block;
  margin-bottom: .85rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  background: rgba(45,212,191,.15);
  border: 1px solid rgba(45,212,191,.35);
  color: #99f6e4;
}
.auth-alert { margin: 0 0 .9rem !important; }
.auth-form { margin-top: .25rem; }
.auth-input {
  font-size: max(1rem, 16px);
  width: 100%;
  min-height: 2.85rem;
}
.auth-code {
  letter-spacing: clamp(.15em, 2vw, .35em);
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
}
.auth-submit {
  width: 100%;
  margin-top: .35rem;
  padding: .9rem 1.25rem;
  font-size: 1rem;
  min-height: 2.95rem;
}
.auth-footnote {
  font-size: .75rem;
  margin: .85rem 0 0;
  text-align: center;
}
.auth-phone-line { font-size: .9rem; margin: 0 0 .85rem; }
.auth-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.auth-inline { display: inline; margin: 0; }

@media (max-width: 520px) {
  .auth-brand {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 1rem;
  }
  .auth-card {
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
  }
  .auth-secondary {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-secondary .btn,
  .auth-secondary form { width: 100%; }
  .auth-secondary .btn { justify-content: center; }
  .page-auth .brand span { font-size: 1.05rem; }
}
@media (max-width: 360px) {
  .auth-footnote { font-size: .7rem; line-height: 1.5; }
  .auth-phone-line { font-size: .85rem; text-align: center; }
}

.nav-actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.btn {
  border: 0; cursor: pointer; font: inherit; border-radius: 999px;
  padding: .72rem 1.15rem; transition: .18s transform, .18s opacity, .18s background;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: #042f2e; font-weight: 800;
}
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn-soft {
  background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line);
}
.btn-warn {
  background: linear-gradient(135deg, var(--amber), #ea580c);
  color: #1c1005; font-weight: 800;
}
.btn-danger {
  background: rgba(251,113,133,.15); color: #fecdd3; border: 1px solid rgba(251,113,133,.35);
}
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }

.hero { padding: 2rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  margin: 0; font-size: clamp(1.85rem, 4.2vw, 2.9rem); line-height: 1.25; max-width: 14ch;
  letter-spacing: -.03em;
}
.hero .slogan {
  color: #d4a45a; font-weight: 700; font-size: 1.05rem; margin: .75rem 0 0; max-width: 28ch;
}
.hero p { color: var(--muted); font-size: 1.05rem; margin: .85rem 0 0; max-width: 40ch; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.panel-tight { padding: 1rem 1.15rem; }

.form { display: grid; gap: .85rem; }
label { font-size: .88rem; color: var(--muted); display: block; margin-bottom: .35rem; }
input, select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem; outline: none;
}
input:focus, select:focus {
  border-color: rgba(45,212,191,.55);
  box-shadow: 0 0 0 3px rgba(45,212,191,.14);
}
.ok-hint {
  padding: .65rem .85rem; border-radius: 12px; font-size: .88rem;
  background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .35);
  color: #a7f3d0;
}
.err {
  background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35);
  color: #fecdd3; padding: .75rem 1rem; border-radius: 12px; font-size: .92rem;
}
.ok {
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35);
  color: #bbf7d0; padding: .75rem 1rem; border-radius: 12px;
}

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  padding: 1rem 1.05rem; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
}
.stat span { color: var(--muted); font-size: .82rem; }
.stat b { display: block; margin-top: .3rem; font-size: 1.28rem; }

.bar {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: .85rem;
}
.bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; word-break: break-all; direction: ltr; text-align: left;
  background: var(--panel2); border-radius: 12px; padding: .85rem 1rem;
  border: 1px solid var(--line);
}
.copy-row { display: flex; gap: .55rem; align-items: stretch; }
.copy-row .mono { flex: 1; }
.muted { color: var(--muted); }
.section { margin: 1.35rem 0; }
h2 { margin: 0 0 1rem; font-size: 1.25rem; }
h3 { margin: 0 0 .5rem; }

.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.plans-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 560px) {
  .cards, .plans-two { grid-template-columns: 1fr; }
}
.buy-dialog {
  border: none;
  padding: 0;
  margin: auto;
  max-width: none;
  width: min(440px, 100%);
  background: transparent;
  color: var(--text);
}
.buy-dialog::backdrop {
  background: rgba(3, 10, 14, 0.82);
  backdrop-filter: blur(8px);
}
.buy-dialog:not([open]) { display: none; }
.buy-dialog__card {
  padding: 1.35rem 1.4rem 1.15rem;
  box-shadow: var(--shadow);
  border-radius: var(--r);
  max-height: 90dvh;
  overflow: auto;
}
.buy-dialog__title {
  margin: 0 0 .75rem;
  font-size: 1.12rem;
  font-weight: 800;
}
.buy-dialog__text {
  margin: 0;
  line-height: 1.75;
  font-size: .92rem;
}
.buy-dialog__text--sm { margin-top: .75rem; font-size: .86rem; }
.buy-dialog__link {
  display: inline-block;
  margin-top: .45rem;
  font-size: .82rem;
  word-break: break-all;
}
.buy-dialog__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}
body.buy-modal-open { overflow: hidden; }

.page-user {
  overflow-x: hidden;
}
.page-user .section,
.page-user .panel,
.page-user .ud-hero,
.page-user .ud-support,
.page-user .ud-volume__grid,
.page-user .ud-stat-chips {
  max-width: 100%;
  min-width: 0;
}
.page-user .ud-stat-chips .ud-chip {
  min-width: 0;
  flex: 1 1 auto;
}
.page-user .buy-dialog__link {
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.page-user .footer { margin-top: 1.5rem; font-size: .78rem; text-align: center; opacity: .75; }
.page-user .nav { padding-bottom: .6rem; }
.page-user .ud-phone { font-size: .85rem; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-hero { padding: 1.3rem 1.35rem 1.2rem; }
.ud-hero--glow {
  border: 1px solid rgba(45, 212, 191, 0.14);
  background: linear-gradient(155deg, rgba(45, 212, 191, 0.07), rgba(8, 20, 26, 0.35) 42%, var(--panel));
}
.ud-hero__grid {
  display: grid;
  grid-template-columns: 1fr min(178px, 40%);
  gap: 1.15rem;
  align-items: center;
}
@media (max-width: 640px) {
  .ud-hero__grid { grid-template-columns: 1fr; }
  .ud-ring { max-width: 210px; margin: 0 auto; }
}
.ud-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .65rem;
}
.ud-chip {
  display: inline-flex;
  flex-direction: column;
  gap: .1rem;
  padding: .4rem .65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
}
.ud-chip em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  color: var(--muted);
}
.ud-chip--teal {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.1);
  color: #a7f3d0;
}
.ud-meta { margin: 0 0 .65rem; font-size: .82rem; }
.ud-days-pill {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}
.ud-bar { margin-top: .1rem; }
.ud-bar i {
  background: linear-gradient(90deg, var(--teal2), var(--teal), #5eead4);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
}
.ud-hint { margin: .6rem 0 0; font-size: .78rem; line-height: 1.55; }
.ud-ring {
  position: relative;
  height: 168px;
  min-height: 150px;
}
.ud-ring__glow {
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 68%);
  pointer-events: none;
  filter: blur(2px);
}
.ud-ring canvas { position: relative; z-index: 1; width: 100% !important; height: 100% !important; }
.ud-ring__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  pointer-events: none;
  padding-bottom: .15rem;
}
.ud-ring__center strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.ud-ring__center span {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
}
.ud-section-head { margin-bottom: .9rem; }
.ud-section-head__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.ud-section-head__sub { margin: .28rem 0 0; font-size: .8rem; line-height: 1.5; }
.ud-volume__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  max-width: 540px;
}
@media (max-width: 520px) { .ud-volume__grid { grid-template-columns: 1fr; } }
.ud-vol-card {
  padding: .95rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: border-color 0.2s, background 0.2s;
}
.ud-vol-card:hover {
  border-color: rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.04);
}
.ud-vol-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.ud-vol-card__gb { font-weight: 700; font-size: .92rem; }
.ud-vol-card__days { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ud-vol-card__price {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.ud-vol-card__price span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: .2rem;
}
.ud-vol-card__btn { width: 100%; margin-top: .15rem; }
.ud-support { padding: 1.1rem 1.15rem; max-width: 540px; }
.ud-support__form { display: flex; flex-direction: column; gap: .45rem; }
.ud-label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-top: .25rem; }
.ud-input {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: max(.9rem, 16px);
}
.ud-input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
.ud-textarea { resize: vertical; min-height: 6.5rem; line-height: 1.65; }
.ud-support__note { margin: 0; font-size: .72rem; }
.ud-support__send { align-self: flex-start; margin-top: .35rem; }
.ud-support__site[hidden] { display: none !important; }
.ud-flash {
  margin: 0 0 .85rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.55;
}
.ud-flash--ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}
.ud-flash--warn {
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fecdd3;
}
.ud-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.plan {
  padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.price { font-size: 1.35rem; font-weight: 800; color: var(--amber); margin: .35rem 0 .6rem; }

.table-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.table th, .table td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; background: rgba(0,0,0,.2); position: sticky; top: 0; }
.table tr:hover td { background: rgba(255,255,255,.03); }

.table-support { min-width: 880px; }
.support-msg-cell {
  max-width: 16rem;
  font-size: .85rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.support-row-new td { background: rgba(45, 212, 191, 0.06); }
.support-filter {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
}
.support-filter select {
  padding: .35rem .55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
}
.pay-reset-form {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.pay-reset-input {
  width: 5.5rem;
  padding: .35rem .5rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: .82rem;
}
.badge.soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .22rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.badge.on { background: rgba(52,211,153,.15); color: #a7f3d0; }
.badge.off { background: rgba(251,113,133,.15); color: #fecdd3; }

.toolbar {
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.search {
  display: flex; gap: .5rem; flex: 1; min-width: 220px; max-width: 420px;
}
.pager { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.pager .btn { min-width: 2.2rem; }
.pager-bar { margin-top: 1rem; }
.pager-gap { color: var(--muted); padding: 0 .35rem; user-select: none; }
.pager .btn.disabled { opacity: .45; pointer-events: none; }
.users-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 100%; }
.users-filters input[name=q] { min-width: 12rem; flex: 1 1 160px; }
.users-filters select { min-width: 6.5rem; }
.link-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.table-users { min-width: 980px; }

.kpi {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; margin-bottom: 1.2rem;
}
@media (max-width: 700px) { .kpi { grid-template-columns: 1fr; } }
.kpi .stat b { color: var(--teal); }

.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem;
}
.days-picker { display: flex; align-items: center; gap: .5rem; }
.days-picker select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: .45rem .65rem; font: inherit;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-card {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line);
}
.kpi-card span { color: var(--muted); font-size: .8rem; display: block; }
.kpi-card b { display: block; margin-top: .35rem; font-size: 1.22rem; color: var(--teal); }
.kpi-hint { display: block; margin-top: .45rem; color: var(--muted); font-size: .72rem; }

.chart-section { padding-top: 0; }
.chart-rows { display: flex; flex-direction: column; gap: .85rem; }
.chart-row {
  display: grid;
  gap: .85rem;
  align-items: stretch;
}
.chart-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-row-1 { grid-template-columns: 1fr; }
.chart-panel {
  padding: 1.1rem 1.15rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.chart-panel h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.chart-sub { margin: .25rem 0 .65rem; font-size: .78rem; }
.chart-wrap { position: relative; flex: 1; min-height: 220px; height: 240px; }
.chart-wrap-donut { min-height: 200px; height: 220px; max-height: 240px; }
.chart-wrap-bar-h { min-height: 240px; height: 280px; }
.chart-panel-sm { min-height: 250px; }
@media (max-width: 960px) {
  .chart-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .chart-row-2,
  .chart-row-3 { grid-template-columns: 1fr; }
  .chart-panel-sm { min-height: 230px; }
}

.code {
  background: #050d11; border-radius: 12px; padding: 1rem; overflow: auto;
  border: 1px solid var(--line); font-size: .78rem; direction: ltr; text-align: left;
  color: #d1fae5;
}
.footer { padding: 2rem 0; color: var(--muted); font-size: .82rem; }
.chip {
  display: inline-block; padding: .2rem .55rem; border-radius: 8px;
  background: rgba(45,212,191,.12); color: #99f6e4; font-size: .78rem; font-weight: 700;
}
.user-dash-grid {
  display: grid;
  grid-template-columns: 1fr min(280px, 42%);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .user-dash-grid { grid-template-columns: 1fr; }
}
.user-pie-panel { padding: 1.1rem 1.15rem; min-height: 260px; display: flex; flex-direction: column; }
.user-pie-wrap {
  position: relative;
  flex: 1;
  min-height: 200px;
  height: 220px;
}
.user-pie-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--teal);
  pointer-events: none;
  padding-bottom: 2rem;
}
.admin-user-actions { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.user-del-details summary { list-style: none; cursor: pointer; }
.user-del-details summary::-webkit-details-marker { display: none; }
.user-del-form {
  margin-top: .5rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 9rem;
}
.user-del-form input { font-size: .75rem; }

.app-card {
  border: 1px solid rgba(45,212,191,.25);
  background:
    linear-gradient(135deg, rgba(45,212,191,.12), transparent 55%),
    var(--panel);
}
