:root {
  --bg-1: #070d1b;
  --bg-2: #0d1729;
  --panel: rgba(15, 23, 42, 0.42);
  --panel-strong: rgba(15, 23, 42, 0.7);
  --border: rgba(255, 255, 255, 0.12);
  --muted: #a9b8cf;
  --text: #edf4ff;
  --accent: #8b5cf6;
  --accent-2: #3b82f6;
  --accent-3: #67e8f9;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.page-shell {
  width: min(1200px, 100%);
  display: grid;
  gap: 22px;
}

.glass-panel {
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar,
.panel {
  border-radius: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.48);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.2rem, 1.7vw, 2rem);
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.online {
  background: rgba(52, 211, 153, 0.12);
  color: #d9ffec;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.ghost-button,
.primary-button,
.secondary-button {
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-button,
.secondary-button {
  padding: 14px 20px;
}

.primary-button {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(59, 130, 246, 0.9));
  color: white;
  box-shadow: 0 16px 32px rgba(91, 86, 255, 0.38);
}

.secondary-button {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

button:hover {
  transform: translateY(-1px);
}

.dashboard {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
}

.panel {
  padding: 22px;
}

.panel-heading {
  margin-bottom: 18px;
}

.compact {
  margin-bottom: 14px;
}

.stacked-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

input,
select {
  width: 100%;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input:focus,
select:focus {
  border-color: rgba(103, 232, 249, 0.5);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metrics-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  font-size: 1.12rem;
}

.status-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.status-card {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 20px;
  padding: 18px;
}

.status-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge.success {
  background: rgba(52, 211, 153, 0.16);
  color: #dffef2;
}

.plan-name {
  color: var(--muted);
  font-weight: 600;
}

.status-main {
  display: flex;
  align-items: end;
  gap: 12px;
}

.big-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.status-meta {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-meta strong {
  color: var(--text);
  font-size: 0.95rem;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.5;
}

.log-panel {
  padding-top: 18px;
}

.log-list {
  display: grid;
  gap: 10px;
}

.log-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 22, 0.38);
  color: var(--text);
}

.log-item.success {
  border-color: rgba(52, 211, 153, 0.2);
  color: #d9ffe9;
}

.log-item.info {
  border-color: rgba(59, 130, 246, 0.2);
  color: #ddeaff;
}

.log-item span {
  width: 18px;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .two-col,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row button {
    width: 100%;
  }
}
