:root {
  --primary: #00b2ff;
  --primary-deep: #005b84;
  --primary-soft: #d8edf6;
  --accent: #ff8a00;
  --accent-soft: #fff0db;
  --canvas: #f0f0f3;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-tint: #f6fbfe;
  --border: rgba(0, 91, 132, 0.14);
  --ink: #16384d;
  --ink-soft: #5e7c8f;
  --success: #0d9b65;
  --warning: #b36b00;
  --danger: #d04f3d;
  --shadow-xl: 0 28px 64px rgba(22, 56, 77, 0.12);
  --shadow-md: 0 18px 34px rgba(22, 56, 77, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 178, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 8%, rgba(255, 138, 0, 0.18), transparent 20%),
    linear-gradient(180deg, #fbfdff 0%, #f6f5f2 48%, var(--canvas) 100%);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", sans-serif;
}

.page-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  left: -10rem;
  top: 6rem;
  background: rgba(0, 178, 255, 0.18);
}

.page-glow-right {
  right: -8rem;
  top: 18rem;
  background: rgba(255, 138, 0, 0.16);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  width: min(1500px, calc(100% - 40px));
  margin: 20px auto;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.brand-card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.brand-card {
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(155deg, #0a6c98 0%, #00b2ff 54%, #38c8ff 100%);
  color: white;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: "Space Grotesk", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.brand-copy h1,
.panel h2,
.hero h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-family: "Space Grotesk", "Nunito", sans-serif;
}

.brand-copy h1 {
  font-size: 2rem;
  line-height: 1.02;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  color: rgba(0, 91, 132, 0.72);
}

.eyebrow-bright {
  color: rgba(255, 255, 255, 0.84);
}

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

.muted-bright,
.microcopy {
  color: rgba(255, 255, 255, 0.82);
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-pill-accent {
  background: rgba(255, 138, 0, 0.2);
}

.panel {
  padding: 24px;
  background: var(--surface);
}

.panel-tight {
  padding: 22px;
}

.sidebar-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 251, 255, 0.86)),
    var(--surface);
}

.content {
  display: grid;
  gap: 24px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  opacity: 0.7;
}

.hero-primary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #eef9ff 45%, #dff3fb 100%);
}

.hero-primary::before {
  background: rgba(0, 178, 255, 0.12);
}

.hero-secondary {
  background:
    radial-gradient(circle at top left, rgba(255, 138, 0, 0.2), transparent 25%),
    linear-gradient(145deg, #fff8ee 0%, #fff3e3 48%, #fff9f1 100%);
}

.hero-secondary::before {
  background: rgba(255, 138, 0, 0.14);
}

.hero-copy {
  max-width: 38rem;
}

.hero h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  max-width: 18ch;
}

.hero-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.hero-list li {
  position: relative;
  padding-left: 18px;
  font-weight: 700;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 138, 0, 0.14);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-self: flex-start;
}

.hero-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.status-idle {
  background: rgba(0, 91, 132, 0.08);
  color: var(--primary-deep);
}

.status-ok {
  background: rgba(13, 155, 101, 0.12);
  color: var(--success);
}

.status-error {
  background: rgba(208, 79, 61, 0.12);
  color: var(--danger);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.78));
  border: 1px solid rgba(0, 91, 132, 0.12);
  box-shadow: 0 12px 24px rgba(22, 56, 77, 0.05);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(0, 178, 255, 0.28), rgba(255, 138, 0, 0.28));
}

.stat-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  font-family: "Space Grotesk", "Nunito", sans-serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.accent-card {
  background:
    linear-gradient(145deg, rgba(255, 138, 0, 0.18), rgba(255, 255, 255, 0.96) 48%, rgba(0, 178, 255, 0.12));
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.compact-heading {
  margin-bottom: 14px;
}

.field,
.checkbox {
  display: grid;
  gap: 8px;
}

.field span,
.checkbox span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 91, 132, 0.14);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #8ea7b6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 178, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 178, 255, 0.12);
}

textarea {
  resize: vertical;
}

.actions,
.stack {
  display: grid;
  gap: 12px;
}

.actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button {
  border: none;
  border-radius: 999px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #0098d9 0%, var(--primary) 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(0, 178, 255, 0.24);
}

.button-secondary {
  background: linear-gradient(135deg, #ff9d2e 0%, var(--accent) 100%);
  color: #1b1b1b;
  box-shadow: 0 14px 28px rgba(255, 138, 0, 0.2);
}

.button-ghost {
  background: rgba(0, 91, 132, 0.06);
  color: var(--primary-deep);
  border: 1px solid rgba(0, 91, 132, 0.12);
}

.inline-status,
.microcopy {
  margin: 0;
  font-size: 0.9rem;
}

.microcopy {
  color: var(--ink-soft);
  line-height: 1.45;
}

.inline-status[data-tone="error"] {
  color: var(--danger);
}

.inline-status[data-tone="ok"] {
  color: var(--success);
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 253, 0.82));
  border: 1px solid rgba(0, 91, 132, 0.1);
  font-weight: 800;
}

.quick-links a::after {
  content: "→";
  position: absolute;
  right: 14px;
  color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(0, 91, 132, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.small-table {
  max-height: 420px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(0, 91, 132, 0.08);
  vertical-align: top;
}

thead {
  background: rgba(0, 178, 255, 0.06);
}

th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-deep);
  font-weight: 900;
}

td {
  color: var(--ink);
}

.empty-row {
  color: var(--ink-soft);
  text-align: center;
  padding: 24px 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 91, 132, 0.08);
}

.badge-completed,
.badge-yes {
  background: rgba(13, 155, 101, 0.14);
  color: var(--success);
}

.badge-declined,
.badge-failed,
.badge-no {
  background: rgba(208, 79, 61, 0.14);
  color: var(--danger);
}

.badge-pending,
.badge-partial {
  background: rgba(179, 107, 0, 0.14);
  color: var(--warning);
}

.badge-broadcast,
.badge-subscribers,
.badge-users {
  background: rgba(0, 178, 255, 0.12);
  color: var(--primary-deep);
}

.code-block {
  margin: 16px 0 0;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 38, 54, 0.98), rgba(13, 68, 95, 0.96)),
    #0f2c3d;
  color: #d8f5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  overflow-x: auto;
  min-height: 170px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 1280px) {
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .shell,
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .hero-primary {
    display: grid;
  }

  .hero-actions,
  .actions {
    justify-content: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1500px);
    margin: 10px auto 24px;
    gap: 18px;
  }

  .panel,
  .brand-card {
    padding: 18px;
    border-radius: 22px;
  }

  .content {
    gap: 18px;
  }

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

  .hero h2 {
    font-size: 1.72rem;
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px 10px;
  }
}
