:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --bg-card: rgba(11, 23, 40, 0.78);
  --bg-card-strong: rgba(13, 27, 46, 0.96);
  --line: rgba(157, 181, 214, 0.16);
  --line-soft: rgba(211, 177, 106, 0.15);
  --text: #edf3ff;
  --text-soft: #96a6c0;
  --text-dim: #6f839e;
  --gold: #d3b16a;
  --gold-strong: #f0cd80;
  --teal: #56b7c1;
  --danger: #d26a6a;
  --success: #69c297;
  --warning: #d5a14c;
  --shadow: 0 28px 90px rgba(2, 8, 19, 0.44);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050b15;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(86, 183, 193, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(211, 177, 106, 0.13), transparent 22%),
    linear-gradient(180deg, #050b15 0%, #08111f 35%, #0c1728 100%);
  background-color: #050b15;
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.site-gradient,
.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-gradient-one {
  background: radial-gradient(circle at 18% 14%, rgba(86, 183, 193, 0.13), transparent 26%);
}

.site-gradient-two {
  background: radial-gradient(circle at 82% 78%, rgba(211, 177, 106, 0.08), transparent 22%);
}

.site-noise {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 18, 33, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 40px rgba(3, 8, 18, 0.28);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-link {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.user-badge {
  display: inline-grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.user-badge strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.user-badge small {
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  backface-visibility: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: #17314c;
  color: #f8fbff;
  border-color: rgba(122, 187, 214, 0.18);
  box-shadow: 0 14px 28px rgba(8, 20, 34, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  border-color: var(--line);
}

.button-danger {
  background: rgba(210, 106, 106, 0.12);
  color: #ffd0d0;
  border-color: rgba(210, 106, 106, 0.25);
}

.button-small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.button-wide {
  width: 100%;
}

.page {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.landing-page {
  gap: 36px;
}

.landing-hero,
.dashboard-hero,
.auth-shell,
.admin-grid,
.dashboard-grid,
.highlight-grid,
.story-grid,
.plan-grid,
.metric-grid {
  display: grid;
  gap: 20px;
}

.landing-hero,
.dashboard-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
  min-height: min(760px, calc(100vh - 136px));
  padding: 14px 0 10px;
}

.hero-copy,
.hero-visual,
.summary-panel,
.surface-card,
.story-card,
.plan-card,
.auth-card,
.auth-aside,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-visual,
.summary-panel,
.surface-card,
.story-card,
.plan-card,
.auth-card,
.auth-aside {
  padding: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(8, 18, 33, 0.6);
}

.hero-visual {
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(211, 177, 106, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(11, 23, 40, 0.92) 0%, rgba(9, 19, 34, 0.98) 100%);
}

.hero-copy h1,
.auth-card h1,
.redirect-card h1 {
  margin: 18px 0 14px;
  max-width: 14.5ch;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.dashboard-hero .hero-copy h1 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

.eyebrow,
.card-kicker,
.signal-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(211, 177, 106, 0.24);
  background: rgba(211, 177, 106, 0.08);
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-lead,
.section-heading p,
.feature-card p,
.story-card p,
.plan-card p,
.muted-copy,
.hint,
.summary-note,
.signal-panel p,
.auth-aside p,
.redirect-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--text-soft);
  font-weight: 700;
}

.scroll-hint span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  position: relative;
  display: inline-block;
}

.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

.hero-mark-wrap {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 30px;
  border: 1px solid rgba(211, 177, 106, 0.18);
  background:
    radial-gradient(circle at center, rgba(86, 183, 193, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(16, 31, 50, 0.95), rgba(9, 18, 32, 0.98));
}

.hero-mark {
  width: min(100%, 300px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.4));
}

.signal-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.section-heading h2,
.card-head h2,
.auth-aside h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.14;
}

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

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

.story-card,
.feature-card,
.plan-card,
.surface-card,
.auth-card,
.auth-aside {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.018)),
    var(--bg-card-strong);
}

.story-card h3,
.feature-card h3,
.plan-card h3,
.user-card h3,
.order-card h3 {
  margin: 10px 0 10px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.story-step {
  color: var(--gold);
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
}

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

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

.plan-card {
  display: grid;
  gap: 14px;
}

.plan-topline,
.price-stack,
.card-head,
.summary-row,
.user-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.price-stack strong {
  font-size: 1.16rem;
}

.price-stack span {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.badge,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(211, 177, 106, 0.18);
  background: rgba(211, 177, 106, 0.08);
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-active {
  border-color: rgba(105, 194, 151, 0.22);
  background: rgba(105, 194, 151, 0.12);
  color: #bdf4d7;
}

.status-warning {
  border-color: rgba(213, 161, 76, 0.24);
  background: rgba(213, 161, 76, 0.12);
  color: #ffd89a;
}

.tag-list,
.detail-list,
.stack-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.auth-page {
  min-height: calc(100vh - 170px);
}

.auth-shell {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: stretch;
}

.auth-card {
  display: grid;
  gap: 18px;
}

.auth-card h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

.auth-form label {
  display: grid;
  gap: 8px;
}

label span {
  font-weight: 700;
  color: var(--text);
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: var(--text-dim);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(122, 187, 214, 0.5);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(86, 183, 193, 0.1);
}

.form-note {
  margin: 0;
  color: var(--text-soft);
}

.form-note a {
  color: var(--gold-strong);
}

.auth-aside {
  display: grid;
  align-content: center;
  gap: 18px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-list li,
.detail-list li {
  color: var(--text-soft);
  line-height: 1.62;
}

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

.summary-panel {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at top, rgba(211, 177, 106, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(13, 27, 46, 0.96), rgba(10, 20, 35, 0.98));
}

.summary-row span {
  color: var(--text-soft);
}

.summary-row strong {
  max-width: 280px;
  text-align: right;
  line-height: 1.45;
}

.owner-claim-card {
  display: grid;
  gap: 16px;
}

.claim-form {
  grid-template-columns: minmax(0, 320px) auto;
}

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

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.admin-suite {
  display: grid;
  gap: 20px;
}

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

.metric-card {
  padding: 22px;
}

.metric-card span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.metric-card strong {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-strong);
}

.admin-grid {
  grid-template-columns: 1.18fr 0.92fr;
  align-items: start;
}

.search-form,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-form input {
  flex: 1 1 300px;
}

.user-stack,
.order-stack {
  display: grid;
  gap: 14px;
}

.user-card,
.order-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.user-topline p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.grant-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px minmax(240px, 1.2fr) auto;
  gap: 14px;
  flex: 1;
  align-items: end;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-stack span {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.field-compact {
  max-width: 180px;
}

.field-wide {
  min-width: 220px;
}

.grant-actions {
  display: flex;
  align-items: flex-end;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flash {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.flash-success {
  border-color: rgba(105, 194, 151, 0.22);
  background: rgba(105, 194, 151, 0.12);
}

.flash-warning {
  border-color: rgba(213, 161, 76, 0.22);
  background: rgba(213, 161, 76, 0.12);
}

.flash-info {
  border-color: rgba(86, 183, 193, 0.18);
  background: rgba(86, 183, 193, 0.08);
}

.redirect-card {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0 4px;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: transparent;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

[data-reveal="left"] {
  transform: translateX(30px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1160px) {
  .landing-hero,
  .dashboard-hero,
  .auth-shell,
  .admin-grid,
  .dashboard-grid,
  .highlight-grid,
  .story-grid,
  .plan-grid,
  .compact-grid,
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-hero,
  .dashboard-hero,
  .auth-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .grant-form {
    grid-template-columns: 1fr 180px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 14px;
  }

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

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-hero,
  .dashboard-hero,
  .auth-shell,
  .admin-grid,
  .dashboard-grid,
  .highlight-grid,
  .story-grid,
  .plan-grid,
  .compact-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .summary-panel,
  .surface-card,
  .story-card,
  .plan-card,
  .auth-card,
  .auth-aside {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .auth-card h1,
  .redirect-card h1 {
    font-size: 2.2rem;
  }

  .hero-mark-wrap {
    min-height: 250px;
  }

  .claim-form,
  .grant-form {
    grid-template-columns: 1fr;
  }

  .field-compact,
  .field-wide {
    max-width: none;
    min-width: 0;
  }

  .grant-actions {
    width: 100%;
  }

  .grant-actions .button {
    width: 100%;
  }

  .summary-row {
    display: grid;
  }

  .summary-row strong {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}
