:root {
  --ink: #14211f;
  --muted: #6c7d78;
  --deep: #0d6667;
  --deep-2: #073f43;
  --green: #2fbd7f;
  --green-soft: #e1fff0;
  --yellow: #f5c84b;
  --red: #ef5b57;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(28, 63, 59, 0.14);
  --shadow: 0 24px 70px rgba(9, 44, 42, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 189, 127, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(245, 200, 75, 0.2), transparent 24rem),
    linear-gradient(145deg, #edf7f3, #dce9e5 58%, #cddbd7);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.topbar,
.panel,
.login-card,
.metric,
.list-row,
.plan-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 28px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  background: linear-gradient(145deg, var(--deep), var(--green));
  box-shadow: 0 12px 28px rgba(13, 102, 103, 0.24);
}

.brand-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px;
}

.nav button,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 42px;
  border-radius: 18px;
  padding: 0 16px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.nav button {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav button.active {
  color: white;
  background: linear-gradient(145deg, var(--deep), var(--deep-2));
  box-shadow: 0 12px 28px rgba(13, 102, 103, 0.24);
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 14px;
}

.panel,
.login-card {
  border-radius: 30px;
  padding: 20px;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(520px, 100%);
}

.eyebrow {
  color: var(--deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 14px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.78);
  transition:
    border 0.18s ease,
    box-shadow 0.18s ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(13, 102, 103, 0.46);
  box-shadow: 0 0 0 4px rgba(13, 102, 103, 0.1);
}

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

.row > * {
  flex: 1;
}

.primary-button {
  color: white;
  font-weight: 900;
  background: linear-gradient(145deg, var(--deep), var(--green));
  box-shadow: 0 12px 28px rgba(13, 102, 103, 0.24);
}

.ghost-button {
  color: var(--deep);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.danger-button {
  color: white;
  font-weight: 850;
  background: linear-gradient(145deg, var(--red), #c93634);
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  border-radius: 24px;
  padding: 16px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.plan-card {
  position: relative;
  min-height: 190px;
  border-radius: 28px;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.plan-card.active {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(13, 102, 103, 0.44);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(225, 255, 240, 0.78));
}

.plan-card .price {
  margin: 10px 0 0;
  font-size: 26px;
  font-weight: 950;
  color: var(--deep);
}

.saving {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  font-weight: 900;
  background: var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

.discount-rail {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
}

.discount-chip {
  min-width: 54px;
  border-radius: 16px;
  padding: 8px;
  text-align: center;
  background: rgba(13, 102, 103, 0.08);
}

.discount-chip strong {
  display: block;
}

.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  padding: 13px;
  box-shadow: 0 10px 28px rgba(9, 44, 42, 0.08);
}

.list-row strong {
  display: block;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--deep);
  font-weight: 850;
  background: rgba(13, 102, 103, 0.1);
}

.status-pill.good {
  color: #0e694b;
  background: var(--green-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  border-radius: 20px;
  padding: 14px 16px;
  color: white;
  font-weight: 850;
  background: rgba(7, 63, 67, 0.92);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .plans {
    grid-template-columns: repeat(5, 168px);
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }
}
