:root {
  --bg: #090b22;
  --bg-accent: #100534;
  --surface: rgba(12, 17, 49, 0.72);
  --surface-strong: rgba(17, 25, 66, 0.92);
  --line: rgba(106, 227, 217, 0.16);
  --text: #e8f7ff;
  --muted: #9bb4d5;
  --primary: #4ce1da;
  --primary-dark: #1bbdb4;
  --secondary: #8a5cff;
  --accent: #55f7a8;
  --shadow: 0 26px 56px rgba(4, 8, 26, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(76, 225, 218, 0.24), transparent 18%),
    radial-gradient(circle at 85% 10%, rgba(138, 92, 255, 0.3), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(85, 247, 168, 0.18), transparent 22%),
    linear-gradient(165deg, #050816 0%, var(--bg) 38%, var(--bg-accent) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    radial-gradient(circle, rgba(76, 225, 218, 0.65) 1px, transparent 1px),
    radial-gradient(circle, rgba(138, 92, 255, 0.45) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  background-position: 0 0, 40px 80px, 90px 30px;
  opacity: 0.3;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
}

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

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

.hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.3fr 1fr;
}

.hero-card,
.panel,
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 225, 218, 0.28), rgba(138, 92, 255, 0.04) 65%, transparent 70%);
}

.hero-card,
.panel {
  padding: 24px;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 22px;
  display: grid;
  gap: 8px;
}

.stat-card span,
.info-list span,
label span,
th,
.muted {
  color: var(--muted);
}

.stat-card strong {
  font-size: 2.1rem;
  line-height: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(76, 225, 218, 0.1);
  color: #b9fff8;
  font-weight: 700;
}

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

.panel-heading {
  margin-bottom: 18px;
}

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

label {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(106, 227, 217, 0.16);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(76, 225, 218, 0.22);
  border-color: rgba(76, 225, 218, 0.42);
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

button {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06131a;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 16px 28px rgba(76, 225, 218, 0.18);
}

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

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

.ghost-button,
.secondary-button,
.button-link {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(106, 227, 217, 0.18);
  box-shadow: none;
}

.button-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #06131a;
  box-shadow: 0 16px 28px rgba(76, 225, 218, 0.18);
}

.secondary-button {
  background: rgba(138, 92, 255, 0.16);
  color: #d9ccff;
}

.danger-button {
  color: #ff95c9;
}

.info-list,
.card-list {
  display: grid;
  gap: 14px;
}

.info-list div,
.service-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(106, 227, 217, 0.08);
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integration-list div {
  display: grid;
  gap: 8px;
}

.copy-field {
  cursor: pointer;
  font-size: 0.86rem;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(106, 227, 217, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.notice-success {
  color: #aaffd4;
  background: rgba(85, 247, 168, 0.1);
}

.notice-warning {
  color: #ffd6a1;
  background: rgba(255, 181, 96, 0.1);
}

.service-meta {
  margin-bottom: 0;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(106, 227, 217, 0.08);
  text-align: left;
  vertical-align: top;
}

.status-muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.error {
  color: #ff95c9;
  font-weight: 700;
}

.narrow {
  max-width: 460px;
}

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

  .service-card,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 32px;
  }

  .hero-card,
  .panel,
  .stat-card {
    padding: 18px;
  }

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