.dash-body {
  background: #0a0a0a;
}

.dash-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #0c0c0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #facc15, #22c55e, #facc15);
  opacity: 0.85;
}
.dash-top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-user {
  font-size: 11px;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.dash-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-sup {
  text-decoration: none;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #facc15;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}
.btn-out {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-out:hover {
  color: var(--text);
}

.dash-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 18px 80px;
}
.dash-main h1 {
  font-size: 1.7rem;
  margin-bottom: 6px;
  text-align: left;
}
.lead-sm {
  color: var(--muted);
  margin-bottom: 18px;
}

.tab-page {
  display: none;
}
.tab-page.active {
  display: block;
}

.dash-card {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.plan-title {
  font-weight: 800;
  margin-bottom: 4px;
}
.plan-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 540px;
}
.plan-buy {
  text-align: right;
  min-width: 160px;
}
.plan-promo {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #f59e0b, #fde047);
  color: #1a1200;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}
.plan-promo[hidden] {
  display: none;
}
.plan-price {
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 8px;
  white-space: nowrap;
}
.btn-buy.sm {
  width: auto;
  display: inline-flex;
  padding: 10px 16px;
}

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.chip.on {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.table-wrap {
  overflow-x: auto;
}
.buy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.buy-table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.buy-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.buy-table .empty {
  color: var(--muted);
  text-align: center;
  padding: 22px 8px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge.paid {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}
.badge.pending {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}
.key-mini {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: #e5e7eb;
}
.copy-sm {
  margin-left: 6px;
  background: rgba(34, 197, 94, 0.16);
  border: 0;
  color: #4ade80;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dl-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.ver {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.dl-lock {
  margin-top: 12px;
  color: #facc15;
  font-size: 13px;
}
.dl-lock[hidden] {
  display: none;
}
.dash-card h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.dash-card h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.profile-form label {
  display: block;
  margin-bottom: 12px;
}
.ok-msg {
  color: #4ade80;
  font-size: 13px;
  margin-top: 8px;
}

.dash-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.dash-foot {
  text-align: center;
  color: #facc15;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px;
}
.dash-foot a {
  color: inherit;
  text-decoration: none;
}
.dash-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .dash-top {
    flex-wrap: wrap;
  }
  .dash-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .plan-row,
  .dl-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .plan-buy {
    text-align: left;
    width: 100%;
  }
}
