.mini-edit { margin-top: 12px; }
.mini-edit summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.compact { margin-top: 10px; }
.actions { display: flex; gap: 6px; }
.table-button.danger { color: var(--danger); border-color: rgba(251, 113, 133, .3); }
select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0d1426; color: var(--text); font: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }

/* Commercial dashboard polish */
.dashboard-body {
  background:
    radial-gradient(circle at 8% -10%, rgba(46, 229, 157, .13), transparent 28%),
    radial-gradient(circle at 92% 0, rgba(72, 153, 255, .13), transparent 30%),
    #080d19;
}
.dashboard-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 42px 42px;
}
.topbar {
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom-color: rgba(122, 147, 190, .14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .16);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 600; }
.topbar nav { justify-content: center; gap: 6px; }
.topbar nav a { padding: 8px 11px; border-radius: 9px; font-size: 13px; font-weight: 650; transition: .18s ease; }
.topbar nav a:hover { background: rgba(255,255,255,.055); color: #fff; }
.admin-menu { display: flex; align-items: center; gap: 5px; }
.admin-avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(110,231,183,.25); border-radius: 10px; background: rgba(110,231,183,.09); color: var(--accent); font-size: 12px; font-weight: 900; }
.container { width: min(1240px, 92vw); padding-top: 36px; }
.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 38px 42px;
  border: 1px solid rgba(126, 156, 207, .18);
  border-radius: 26px;
  background: linear-gradient(125deg, rgba(21, 33, 57, .97), rgba(12, 23, 42, .92));
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}
.hero-card::after {
  content: "F";
  position: absolute;
  right: 10%;
  bottom: -72px;
  color: rgba(110,231,183,.035);
  font-size: 240px;
  font-weight: 1000;
  line-height: 1;
  transform: rotate(-8deg);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card h1 { max-width: 720px; margin-top: 7px; letter-spacing: -.035em; }
.hero-card .muted { margin: 13px 0 0; font-size: 16px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { padding: 6px 10px; border: 1px solid rgba(128,155,201,.18); border-radius: 999px; background: rgba(255,255,255,.035); color: #b8c6df; font-size: 11px; font-weight: 700; }
.status-pill { flex: 0 0 auto; background: rgba(110,231,183,.09); font-size: 13px; font-weight: 750; }
.status-pill.warning { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); color: #fbbf24; }
.status-pill.warning span { background: #fbbf24; box-shadow: 0 0 12px #fbbf24; }
.stats { gap: 13px; margin: 18px 0; }
.stats article { display: flex; align-items: center; gap: 15px; min-height: 96px; padding: 19px; background: rgba(17,27,47,.82); border-color: rgba(126,156,207,.15); border-radius: 17px; box-shadow: 0 12px 36px rgba(0,0,0,.15); }
.stats strong { margin-top: 2px; font-size: 25px; letter-spacing: -.03em; }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; background: rgba(56,189,248,.1); color: var(--accent2); font-style: normal; font-weight: 900; }
.stat-icon.subscriptions { background: rgba(110,231,183,.1); color: var(--accent); }
.stat-icon.pending { background: rgba(251,191,36,.1); color: #fbbf24; }
.stat-icon.revenue { background: rgba(192,132,252,.1); color: #c084fc; }
.launch-panel { margin: 18px 0 28px; padding: 22px 24px; border: 1px solid rgba(126,156,207,.14); border-radius: 20px; background: rgba(15,24,42,.72); }
.launch-summary { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.launch-summary h2 { margin-top: 3px; font-size: 20px; }
.progress { width: min(360px, 40vw); height: 7px; overflow: hidden; border-radius: 99px; background: #202d45; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .35s ease; }
.progress-0 span { width: 0; }
.progress-1 span { width: 20%; }
.progress-2 span { width: 40%; }
.progress-3 span { width: 60%; }
.progress-4 span { width: 80%; }
.progress-5 span { width: 100%; }

.subsection-title { margin: 10px 0 14px; font-size: 17px; }
.subsection-title.separated { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(126,156,207,.14); }
.health-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #64748b; }
.health-dot.ok { background: #6ee7b7; box-shadow: 0 0 9px rgba(110,231,183,.6); }
.health-dot.bad { background: #fb7185; }
.form-help { align-self: end; margin: 0; color: var(--muted); font-size: 12px; }
.role-entry { color: #fbbf24; border-color: rgba(251,191,36,.25); background: rgba(251,191,36,.08); }
.role-exit { color: #6ee7b7; border-color: rgba(110,231,183,.25); background: rgba(110,231,183,.08); }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(126,156,207,.12); border-radius: 13px; background: rgba(255,255,255,.025); }
.check-mark { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 9px; background: #26334b; color: #a8b5cd; font-size: 11px; font-weight: 900; }
.check-item.ready .check-mark { background: rgba(110,231,183,.13); color: var(--accent); }
.check-item div { display: grid; }
.check-item strong { font-size: 12px; }
.check-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.panel { scroll-margin-top: 86px; padding: 28px; border-color: rgba(126,156,207,.15); background: rgba(15,24,42,.82); box-shadow: 0 18px 52px rgba(0,0,0,.18); }
.section-head h2 { margin-top: 4px; font-size: 23px; letter-spacing: -.025em; }
.plan-card { position: relative; overflow: hidden; border-color: rgba(126,156,207,.15); background: linear-gradient(145deg, rgba(25,39,66,.9), rgba(19,30,52,.94)); transition: transform .18s ease, border-color .18s ease; }
.plan-card:hover { transform: translateY(-2px); border-color: rgba(110,231,183,.28); }
.profile-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent2); }
.profile-card.wifi::before { background: var(--accent); }
.profile-card.fallback::before { background: #c084fc; }
.plan-card.disabled { opacity: .58; filter: saturate(.55); }
.badge { white-space: nowrap; font-size: 11px; }
.audience-phone { color: #60a5fa; }
.audience-wifi { border-color: rgba(110,231,183,.2); background: rgba(110,231,183,.1); color: var(--accent); }
.audience-fallback { border-color: rgba(192,132,252,.2); background: rgba(192,132,252,.1); color: #d8b4fe; }
.squad-state { display: flex; align-items: center; gap: 7px; min-height: auto !important; margin: 8px 0 14px; font-size: 11px; }
.squad-state span { width: 7px; height: 7px; border-radius: 99px; background: #64748b; }
.squad-state.connected { color: var(--accent); }
.squad-state.connected span { background: var(--accent); box-shadow: 0 0 9px rgba(110,231,183,.55); }
.plan-card dl div { border: 1px solid rgba(126,156,207,.08); background: rgba(4,9,20,.24); }
.plan-card dd { overflow-wrap: anywhere; font-size: 13px; }
button { transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
button:hover { transform: translateY(-1px); }
.table-wrap { margin: 0 -8px; border: 1px solid rgba(126,156,207,.1); border-radius: 14px; }
table { background: rgba(4,9,20,.12); }
thead { background: rgba(255,255,255,.025); }
th, td { border-bottom-color: rgba(126,156,207,.1); }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255,255,255,.025); }
tbody tr:last-child td { border-bottom: 0; }
.status { border: 1px solid transparent; padding: 5px 8px; }
.status.pending,.status.checkout_approved,.status.paid_pending { border-color: rgba(251,191,36,.2); background: rgba(251,191,36,.1); color: #fbbf24; }
.status.disabled,.status.expired,.status.cancelled { background: rgba(148,163,184,.1); color: #a8b5c8; }
.status.limited { background: rgba(251,146,60,.1); color: #fb923c; }
.empty { white-space: normal; }
.empty-icon { display: block; margin-bottom: 6px; color: #50617e; font-size: 22px; }
details summary { outline: none; }
.create-box { padding: 15px 4px 0; }
footer { display: flex; justify-content: space-between; margin-top: 34px; padding: 18px 4px 0; border-top: 1px solid rgba(126,156,207,.12); color: #71809b; }
footer span { font-size: 12px; font-weight: 800; }
footer small { font-size: 11px; }

@media (max-width: 1050px) {
  .topbar nav { gap: 2px; }
  .topbar nav a { padding-inline: 7px; font-size: 12px; }
  .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero-card { min-height: 0; padding: 28px 24px; }
  .hero-card .status-pill { margin-top: 4px; }
  .launch-summary { align-items: flex-start; flex-direction: column; gap: 12px; }
  .progress { width: 100%; }
  .admin-avatar { display: none; }
  .section-head { gap: 8px; }
}
@media (max-width: 560px) {
  .container { width: min(94vw, 520px); padding-top: 18px; }
  .hero-card h1 { font-size: 31px; }
  .hero-tags { margin-top: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stats article { min-height: 82px; }
  .launch-panel, .panel { padding: 19px; border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.login-body { padding: 24px; background: radial-gradient(circle at 20% 0, rgba(46,229,157,.14), transparent 32%), radial-gradient(circle at 90% 15%, rgba(56,189,248,.12), transparent 28%), #080d19; }
.login-card { position: relative; overflow: hidden; width: min(460px, 94vw); padding: 40px; border-color: rgba(126,156,207,.18); background: linear-gradient(145deg, rgba(21,33,57,.97), rgba(12,21,38,.98)); box-shadow: 0 30px 100px rgba(0,0,0,.42); }
.login-card::after { content: "F"; position: absolute; right: -20px; top: -55px; color: rgba(110,231,183,.035); font-size: 190px; font-weight: 1000; line-height: 1; transform: rotate(-8deg); }
.login-card > * { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 36px; }
.login-brand .brand-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
.login-brand span { display: grid; line-height: 1.1; }
.login-brand strong { font-size: 16px; }
.login-brand small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.login-card h1 { margin: 7px 0 8px; font-size: 32px; letter-spacing: -.035em; }
.login-card > .muted { margin: 0 0 26px; }
.login-card input { min-height: 46px; }
.login-card button { min-height: 46px; margin-top: 4px; }
.login-security { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 24px 0 0; color: #71809b; font-size: 10px; }
.login-security span { color: var(--accent); }
