:root {
  color-scheme: dark;
  --bg: #05080a;
  --panel: #111820;
  --panel-2: #18222b;
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #5dade2;
  --accent-2: #ffd447;
  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;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(22px, 5vw, 72px);
  background: rgba(5, 8, 10, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.button-row,
.hero-actions,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #021018;
}

.nav a {
  color: var(--muted);
  font-weight: 800;
}

.nav a:hover {
  color: var(--text);
}

main {
  min-height: calc(100vh - 142px);
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(22px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.96), rgba(5, 8, 10, 0.72)),
    url("https://images.unsplash.com/photo-1593784991095-a205069470b6?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero,
.section,
.panel-grid,
.pricing-grid,
.admin-layout {
  padding: 36px clamp(22px, 5vw, 72px);
}

.page-hero.compact {
  padding-bottom: 20px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.lead,
.page-hero p,
.hero-panel p,
.panel p,
.feature-grid p,
.price-card li {
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  max-width: 700px;
  font-size: 19px;
}

.hero-panel,
.panel,
.price-card,
.feature-grid article,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 32, 0.84);
}

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

.hero-panel span {
  color: var(--accent-2);
  font-weight: 900;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary,
button.primary {
  background: var(--accent);
  color: #031018;
}

.button.ghost,
button.ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
}

.feature-grid,
.pricing-grid,
.panel-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

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

.feature-grid article,
.stats-grid article {
  padding: 20px;
}

.panel-grid,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card.featured {
  border-color: rgba(93, 173, 226, 0.68);
}

.price {
  color: var(--accent-2);
  font-size: 30px;
  font-weight: 900;
}

.form,
.settings-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

label.check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 12px;
}

.status-card {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: var(--panel-2);
  padding: 18px;
}

.status-card strong {
  color: var(--accent-2);
  font-size: 26px;
}

.status-card span,
.message,
.muted {
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.admin-content {
  display: grid;
  gap: 18px;
}

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

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
}

.panel-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

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

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

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions button {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(22px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

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