:root {
  --bg0: #070812;
  --bg1: #0c1220;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.45);
  --shadow: rgba(0, 0, 0, 0.35);

  --blue: #6ea8ff;
  --cyan: #50e6ff;
  --green: #5ff2a2;
  --yellow: #ffd36b;
  --red: #ff6b6b;
  --pink: #ff4fd8;
  --lime: rgba(180, 255, 120, 0.92);
  --lime-strong: rgba(155, 255, 90, 0.98);
  --toast-ok: rgba(95, 242, 162, 0.95);
  --toast-bad: rgba(255, 107, 107, 0.95);
  --toast-warn: rgba(255, 211, 107, 0.95);

  --radius: 18px;
  --radius2: 14px;
  --pad: 16px;
  --pad2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: radial-gradient(900px 520px at 20% -10%, rgba(110, 168, 255, 0.22), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(255, 79, 216, 0.12), transparent 60%),
    radial-gradient(980px 520px at 40% 100%, rgba(80, 230, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px 520px at 60% 20%, rgba(95, 242, 162, 0.08), transparent 70%);
  filter: saturate(120%);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.status-accordion {
  margin: 0 0 14px;
}

.status-accordion summary {
  list-style: none;
}

.status-accordion summary::-webkit-details-marker {
  display: none;
}

.status-summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}

.status-summary-center {
  text-align: center;
  min-width: 0;
}

.status-summary-text {
  font-weight: 850;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-chev {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.14s ease;
}

.status-chev svg {
  width: 22px;
  height: 22px;
}

.status-accordion[open] .status-chev {
  transform: rotate(180deg);
}

.state-pill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.state-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.state-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.state-icon svg {
  width: 14px;
  height: 14px;
}

.state-running {
  border-color: rgba(95, 242, 162, 0.35);
  background: rgba(95, 242, 162, 0.12);
  color: rgba(200, 255, 232, 0.92);
  animation: pulseGlow 1.4s ease-in-out infinite;
}

.state-running::before {
  background: rgba(95, 242, 162, 0.95);
  box-shadow: 0 0 0 6px rgba(95, 242, 162, 0.14);
  animation: pulse 1.4s ease-in-out infinite;
}

.state-stopped {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
  color: rgba(255, 230, 230, 0.92);
}

.state-stopped::before {
  background: rgba(255, 107, 107, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.12);
}

.state-starting,
.state-stopping {
  border-color: rgba(255, 211, 107, 0.35);
  background: rgba(255, 211, 107, 0.1);
  color: rgba(255, 244, 214, 0.9);
}

.state-starting::before,
.state-stopping::before {
  background: rgba(255, 211, 107, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 211, 107, 0.12);
  animation: pulse 1.2s ease-in-out infinite;
}

.status-details {
  padding: 0 16px 16px;
}

.badge-row-left {
  justify-content: flex-start;
  margin: 0 0 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.top-actions::-webkit-scrollbar {
  height: 0;
}

@media (max-width: 560px) {
  .top-actions {
    overflow: hidden;
    padding-bottom: 0;
  }

  .top-actions .social-icon {
    display: none !important;
  }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.86);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(110, 168, 255, 0.55);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(15px 15px at 30% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(110, 168, 255, 0.95), rgba(255, 79, 216, 0.75));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58vw;
}

.subtitle-select {
  margin-top: 2px;
  height: 28px;
  padding: 0 22px 0 0;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.2px;
  text-align: center;
  text-align-last: center;
  max-width: 58vw;
}

.subtitle-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(155, 255, 90, 0.12);
  border-radius: 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.controls-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 210px);
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
}

.card-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
}

.card-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.card-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.status-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(16px 16px at 30% 30%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(110, 168, 255, 0.28), rgba(255, 79, 216, 0.16));
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.status-icon svg {
  width: 20px;
  height: 20px;
}

.status-icon.running {
  border-color: rgba(95, 242, 162, 0.35);
  background: radial-gradient(16px 16px at 30% 30%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(95, 242, 162, 0.2), rgba(80, 230, 255, 0.12));
}

.status-icon.running svg {
  filter: drop-shadow(0 0 10px rgba(95, 242, 162, 0.22));
}

.status-icon.running {
  animation: pulse 1.35s ease-in-out infinite;
}

.status-icon.stopped {
  border-color: rgba(255, 107, 107, 0.35);
  background: radial-gradient(16px 16px at 30% 30%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(255, 107, 107, 0.18), rgba(255, 79, 216, 0.1));
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.badge-running {
  border-color: rgba(95, 242, 162, 0.35);
  background: rgba(95, 242, 162, 0.1);
}

.badge-running .status-dot {
  background: rgba(95, 242, 162, 0.94);
  box-shadow: 0 0 0 6px rgba(95, 242, 162, 0.12);
  animation: pulse 1.4s ease-in-out infinite;
}

.badge-stopped {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.08);
}

.badge-stopped .status-dot {
  background: rgba(255, 107, 107, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.1);
}

.badge-starting {
  border-color: rgba(110, 168, 255, 0.32);
  background: rgba(110, 168, 255, 0.08);
}

.badge-starting .status-dot {
  background: rgba(110, 168, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(110, 168, 255, 0.1);
  animation: pulse 1.2s ease-in-out infinite;
}

.badge-stopping {
  border-color: rgba(255, 211, 107, 0.35);
  background: rgba(255, 211, 107, 0.08);
}

.badge-stopping .status-dot {
  background: rgba(255, 211, 107, 0.95);
  box-shadow: 0 0 0 6px rgba(255, 211, 107, 0.1);
  animation: pulse 1.2s ease-in-out infinite;
}

.badge-muted {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.pill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.78);
}

.pill-muted {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.hero {
  padding: 0 16px 16px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 0 14px;
}

.kpi {
  border-radius: var(--radius2);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px 11px;
}

.kpi-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.kpi-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-kpis .kpi:nth-child(1) .kpi-value {
  background: linear-gradient(135deg, rgba(155, 255, 90, 0.98), rgba(80, 230, 255, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-kpis .kpi:nth-child(2) .kpi-value {
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.98), rgba(255, 79, 216, 0.86));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-kpis .kpi:nth-child(3) .kpi-value {
  background: linear-gradient(135deg, rgba(255, 211, 107, 0.98), rgba(255, 79, 216, 0.75));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-kpis .kpi:nth-child(4) .kpi-value {
  background: linear-gradient(135deg, rgba(80, 230, 255, 0.92), rgba(110, 168, 255, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail {
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px 11px;
  min-width: 0;
}

.detail-label {
  font-size: 12px;
  color: var(--muted);
}

.detail-value {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

.mini:active {
  transform: translateY(1px);
}

.controls {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.controls-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
  flex: 1;
  align-content: stretch;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  transition: transform 0.05s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  filter: brightness(1.04);
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.15);
}

.btn-primary {
  border-color: rgba(110, 168, 255, 0.35);
  background: linear-gradient(180deg, rgba(110, 168, 255, 0.28), rgba(110, 168, 255, 0.14));
}

.btn-secondary {
  border-color: rgba(80, 230, 255, 0.3);
  background: linear-gradient(180deg, rgba(80, 230, 255, 0.22), rgba(80, 230, 255, 0.08));
}

.btn-warn {
  border-color: rgba(255, 211, 107, 0.35);
  background: linear-gradient(180deg, rgba(255, 211, 107, 0.24), rgba(255, 211, 107, 0.1));
}

.btn-danger {
  border-color: rgba(255, 107, 107, 0.4);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.26), rgba(255, 107, 107, 0.12));
}

.btn-tile {
  width: 100%;
  height: 100%;
  min-height: 128px;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.btn-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(180px 120px at 30% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(220px 150px at 80% 100%, rgba(0, 0, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.btn-tile .btn-icon {
  width: 26px;
  height: 26px;
}

.btn-tile .btn-icon svg {
  width: 26px;
  height: 26px;
}

.btn-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  position: relative;
}

.btn-sub {
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0.95;
}

.btn-danger.btn-tile .btn-sub {
  color: rgba(255, 230, 230, 0.9);
}

.btn-tile:focus-visible {
  outline: 2px solid rgba(110, 168, 255, 0.55);
  outline-offset: 2px;
}

.btn-tile:active {
  transform: translateY(1px);
}

.btn-tile:disabled {
  filter: saturate(70%);
}

@media (hover: hover) and (pointer: fine) {
  .btn-tile:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
  }

  .btn-primary.btn-tile:not(:disabled):hover {
    border-color: rgba(110, 168, 255, 0.6);
  }

  .btn-secondary.btn-tile:not(:disabled):hover {
    border-color: rgba(80, 230, 255, 0.55);
  }

  .btn-warn.btn-tile:not(:disabled):hover {
    border-color: rgba(255, 211, 107, 0.6);
  }

  .btn-danger.btn-tile:not(:disabled):hover {
    border-color: rgba(255, 107, 107, 0.65);
  }

  .icon-btn:hover {
    filter: brightness(1.06);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 16px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
}

.mini-row-compact {
  padding: 0;
}

.mini-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-label {
  font-size: 12px;
  color: var(--muted);
}

.mini-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select {
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--lime);
  padding: 8px 12px;
  font-weight: 560;
  text-align: center;
  text-align-last: center;
  letter-spacing: 0.2px;
}

.select:focus {
  outline: none;
  border-color: rgba(155, 255, 90, 0.45);
  box-shadow: 0 0 0 4px rgba(155, 255, 90, 0.12);
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.balance-item {
  border-radius: var(--radius2);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px 11px;
}

.balance-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.billing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.16s ease, background 0.16s ease;
}

.toggle[aria-pressed="true"] {
  border-color: rgba(95, 242, 162, 0.34);
  background: rgba(95, 242, 162, 0.12);
}

.toggle[aria-pressed="true"] .toggle-knob {
  transform: translateX(18px);
  background: rgba(95, 242, 162, 0.92);
}

.billing {
  padding: 0 16px 16px;
}

.billing-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-radius: var(--radius2);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 12px 11px;
}

.billing-label {
  font-size: 12px;
  color: var(--muted);
}

.billing-value {
  font-size: 18px;
  font-weight: 750;
}

.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  align-items: end;
  height: 78px;
  padding: 12px 2px 6px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 168, 255, 0.6), rgba(255, 79, 216, 0.55));
  opacity: 0.9;
}

.billing-footnote {
  font-size: 12px;
  color: var(--muted);
  padding-top: 6px;
}

.pre {
  margin: 0;
  padding: 0 16px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

.toast-wrap {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  border-radius: 14px;
  background: rgba(18, 20, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 12px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.toast.ok::before {
  background: linear-gradient(180deg, rgba(95, 242, 162, 0.95), rgba(80, 230, 255, 0.75));
}

.toast.bad::before {
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.98), rgba(255, 79, 216, 0.65));
}

.toast.warn::before {
  background: linear-gradient(180deg, rgba(255, 211, 107, 0.98), rgba(110, 168, 255, 0.65));
}

.toast-title,
.toast-body {
  padding-left: 6px;
}

.toast-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.toast-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.toast-btn svg {
  width: 18px;
  height: 18px;
}

.toast-btn:active {
  transform: translateY(1px);
}

.toast-btn:focus-visible {
  outline: 2px solid rgba(110, 168, 255, 0.55);
  outline-offset: 2px;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
}

.toast-body {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.toast-dot.ok {
  background: var(--toast-ok);
  box-shadow: 0 0 0 5px rgba(95, 242, 162, 0.1);
}

.toast-dot.bad {
  background: var(--toast-bad);
  box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.1);
}

.alert {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.alert-icon svg {
  width: 20px;
  height: 20px;
}

.alert-title {
  font-weight: 850;
  letter-spacing: 0.2px;
}

.alert-body {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.alert-danger {
  border-color: rgba(255, 107, 107, 0.35);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.11), rgba(0, 0, 0, 0.18));
}

.alert-danger .alert-icon {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.12);
  color: rgba(255, 230, 230, 0.9);
}

.subtle {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 60;
}

.modal {
  width: min(520px, 100%);
  border-radius: var(--radius);
  background: rgba(18, 20, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
  padding: 16px;
}

.modal-lg {
  width: min(980px, 100%);
  padding: 14px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
}

.modal-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.modal-scroll {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 6px 2px 2px;
  display: grid;
  gap: 12px;
}

.panel {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
}

.panel-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 8px;
}

.pill-inline {
  margin-top: 10px;
  display: inline-flex;
}

.modal-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.modal-body {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.field {
  margin-top: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  font-family: var(--mono);
  letter-spacing: 0.6px;
}

.field-input:focus {
  outline: none;
  border-color: rgba(110, 168, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.12);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .container {
    padding: 22px 18px 44px;
  }

  .subtitle {
    max-width: 520px;
  }

  .grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .controls-card {
    min-height: 0;
  }

  .card-hero {
    grid-column: 1 / -1;
  }

  .hero-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .billing-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
  }

  .mini-row {
    grid-template-columns: 1fr 1fr;
  }

  .toast-wrap {
    left: auto;
    right: 18px;
    bottom: 18px;
    width: 360px;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
  60% {
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35), 0 0 0 5px rgba(95, 242, 162, 0.1);
  }
  100% {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}
