:root {
  --bg: #060816;
  --bg-alt: #0b1226;
  --surface: rgba(11, 18, 38, 0.74);
  --surface-strong: rgba(16, 26, 56, 0.94);
  --surface-soft: rgba(9, 14, 31, 0.78);
  --ink: #f3f7ff;
  --muted: #97a9cf;
  --line: rgba(145, 173, 255, 0.24);
  --line-strong: rgba(126, 249, 255, 0.38);
  --brand: #68f5ff;
  --brand-strong: #00d8ff;
  --accent: #8b5cf6;
  --accent-strong: #c471ff;
  --info: #7aa2ff;
  --success: #52f5b3;
  --danger: #ff7aa2;
  --warning: #ffcf70;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.36);
  --glow: 0 0 24px rgba(104, 245, 255, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --text-xs: 0.77rem;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-lg: 1.1rem;
  --text-xl: 1.32rem;
  --text-2xl: 1.7rem;
  --text-3xl: 2.15rem;
  --text-4xl: clamp(1.95rem, 3.75vw, 3.6rem);
  --leading-tight: 1.06;
  --leading-snug: 1.18;
  --leading-normal: 1.65;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 216, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #08101f 0%, #060816 52%, #05070e 100%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(139, 92, 246, 0.2), transparent 0 22rem),
    radial-gradient(circle at 82% 12%, rgba(0, 216, 255, 0.18), transparent 0 18rem),
    linear-gradient(180deg, rgba(5, 9, 20, 0.92), rgba(5, 7, 14, 1));
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: default;
}

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

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
label[for],
summary,
select {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.04em;
}

.mt-1 {
  margin-top: 1rem;
}

.icon-button {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button i {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 1.1rem;
  line-height: 1;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
}

h3 {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

h4 {
  font-size: var(--text-base);
}

p,
li,
td,
input,
textarea,
select,
button {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

small {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
}

main {
  min-height: 70vh;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
}

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(8, 14, 30, 0.9), rgba(7, 11, 24, 0.94));
  border-top: 1px solid rgba(126, 249, 255, 0.14);
  border-bottom: 1px solid rgba(126, 249, 255, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(7, 11, 24, 0.72);
  border-bottom: 1px solid rgba(126, 249, 255, 0.14);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent-strong));
  box-shadow: 0 0 0 6px rgba(104, 245, 255, 0.1), 0 0 32px rgba(104, 245, 255, 0.4);
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-footer {
  margin-bottom: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  border: 1px solid rgba(126, 249, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(126, 249, 255, 0.34);
  background: rgba(104, 245, 255, 0.08);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.main-nav > a,
.main-nav form {
  margin: 0;
}

.main-nav > a,
.link-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible,
.link-button:hover,
.link-button:focus-visible {
  color: var(--ink);
  border-color: rgba(126, 249, 255, 0.24);
  background: rgba(104, 245, 255, 0.08);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.main-nav > a.is-active {
  color: var(--ink);
  border-color: rgba(104, 245, 255, 0.34);
  background: linear-gradient(135deg, rgba(104, 245, 255, 0.14), rgba(139, 92, 246, 0.16));
  box-shadow: var(--glow);
}

.button,
.button-secondary,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 249, 255, 0.22);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button:hover,
.button-secondary:hover,
.ghost-button:hover,
.dashboard-nav a:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button {
  color: #04111a;
  background: linear-gradient(135deg, var(--brand), #b8fffb);
  box-shadow: 0 16px 36px rgba(0, 216, 255, 0.28);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 18px 42px rgba(0, 216, 255, 0.34);
}

.button-secondary {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(104, 245, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(126, 249, 255, 0.34);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.24);
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 0.9rem;
}

.ghost-button,
.link-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 4.6rem 0 2.8rem;
}

.hero-grid,
.dashboard-grid,
.pricing-columns,
.faq-grid,
.footer-grid,
.dashboard-shell,
.help-grid,
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: start;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  padding-top: 1rem;
}

.hero h1,
.section h1 {
  margin: 0 0 1.1rem;
}

.landing-body .hero h1 {
  max-width: 12ch;
}

.hero p,
.section p {
  margin: 0;
}

.lead {
  max-width: 62ch;
  color: #d9e5ff;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-inline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-inline-stats div,
.metric-row > div {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 249, 255, 0.1);
}

.hero-inline-stats strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  color: var(--brand);
}

.hero-inline-stats span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem 0!important;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 249, 255, 0.22);
  background: rgba(104, 245, 255, 0.08);
  color: #dffcff;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  justify-self: start;
}

.panel,
.pricing-card,
.help-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 19, 39, 0.86), rgba(8, 12, 25, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.panel::before,
.pricing-card::before,
.help-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 245, 255, 0.85), transparent);
  opacity: 0.55;
}

.hero-card {
  align-self: start;
}

.hero-card-glow {
  position: absolute;
  inset: -4rem -3rem auto auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(104, 245, 255, 0.26), transparent 68%);
  pointer-events: none;
}

.panel-head,
.card-head,
.stats-inline,
.metric-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-head span,
.metric-card span,
.stats-inline span,
.payload-grid span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
}

.section-heading {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1.65rem;
}

.section-heading.compact {
  margin-bottom: 0.55rem;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-list,
.feature-list,
.pricing-card ul,
.help-card ol,
.help-card ul {
  padding-left: 1.15rem;
  color: #dfe8ff;
}

.hero-list li,
.feature-list li,
.pricing-card li,
.help-card li {
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  margin-bottom: 0.7rem;
}

.code-card,
.code-block {
  background: linear-gradient(180deg, rgba(7, 12, 27, 0.92), rgba(9, 16, 35, 0.92));
  border: 1px solid rgba(126, 249, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.code-card {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.1rem;
}

.code-card span,
.code-block code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.75;
}

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

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 249, 255, 0.14);
  background: rgba(8, 13, 28, 0.75);
  box-shadow: var(--shadow-md);
}

.timeline-item h3 {
  margin-bottom: 0.3rem;
}

.timeline-index {
  min-width: 3.2rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(104, 245, 255, 0.18), rgba(139, 92, 246, 0.24));
  color: var(--brand);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.pricing-grid,
.pricing-stack {
  display: grid;
  gap: 1.2rem;
}

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

.pricing-grid-home {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.pricing-grid-home .price {
  font-size: clamp(1.65rem, 1.9vw, 2.1rem);
}

.pricing-page-heading {
  justify-items: center;
  text-align: center;
}

.pricing-page-heading .lead {
  max-width: 52rem;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card > .button,
.pricing-card > .button-secondary {
  margin-top: auto;
}

.pricing-card ul {
  margin-bottom: 1.25rem;
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7ef9ff, #5be7c4);
  color: #04111d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(91, 231, 196, 0.22);
  z-index: 1;
}

.pricing-card.featured {
  border-color: rgba(126, 249, 255, 0.48);
  background:
    radial-gradient(circle at top right, rgba(126, 249, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 30, 47, 0.94), rgba(8, 12, 25, 0.97));
  box-shadow: 0 22px 70px rgba(0, 216, 255, 0.2);
  transform: translateY(-4px);
}

.pricing-card.featured .price {
  color: #8ffcff;
}

.pricing-card.featured .button,
.pricing-card.featured .button-secondary {
  border-color: rgba(126, 249, 255, 0.34);
  box-shadow: 0 12px 30px rgba(0, 216, 255, 0.14);
}

.pricing-type,
.muted,
.table th,
.empty-state,
.prose p {
  color: var(--muted);
}

.pricing-type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  font-weight: 700;
  color: var(--brand);
  margin: 0.85rem 0;
}

.faq-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.site-footer {
  padding: 3.4rem 0 4.2rem;
  border-top: 1px solid rgba(126, 249, 255, 0.14);
  background: rgba(5, 8, 18, 0.86);
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(2, 1fr);
  align-items: start;
}

.footer-brand-block {
  padding-right: 2rem;
}

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin: 0.42rem 0;
  color: #c7d5f7;
  font-size: var(--text-sm);
}

.flash-stack {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: grid;
  gap: 0.7rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.flash {
  position: relative;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  align-items: start;
  overflow: hidden;
  border: 1px solid rgba(126, 249, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 15, 32, 0.78);
  box-shadow: 0 20px 48px rgba(4, 9, 24, 0.28);
  font-size: var(--text-sm);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  animation: flash-enter 260ms ease-out;
  transition: opacity 220ms ease, transform 220ms ease;
}

.flash.is-leaving {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.flash-accent {
  min-height: 100%;
  background: currentColor;
  opacity: 0.92;
}

.flash-body {
  padding: 0.95rem 0.9rem 0.95rem 1rem;
}

.flash-label {
  margin-bottom: 0.22rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flash-message {
  line-height: 1.45;
  font-weight: 700;
}

.flash-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  padding: 0.75rem 0.85rem 0 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.flash-close:hover,
.flash-close:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

@keyframes flash-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.flash-success {
  color: #a8ffd7;
}

.flash-error {
  color: #ffbfd1;
}

.flash-danger {
  color: #ffbfd1;
}

.flash-info {
  color: #d6e3ff;
}

.flash-warning {
  color: #ffe29d;
}

@media (max-width: 640px) {
  .flash-stack {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}

.auth-shell {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
}

.payment-flow-heading {
  justify-items: center;
  text-align: center;
}

.mock-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

.mock-payment-main,
.mock-payment-summary,
.payment-result-card {
  display: grid;
  gap: 1.2rem;
}

.mock-provider-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.mock-payment-methods {
  display: grid;
  gap: 0.85rem;
}

.mock-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 249, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.mock-option input {
  accent-color: var(--brand-strong);
}

.mock-option strong,
.mock-summary-price strong {
  font-family: var(--font-display);
}

.mock-option p {
  color: var(--muted);
}

.mock-option.is-selected {
  border-color: rgba(126, 249, 255, 0.32);
  background: linear-gradient(135deg, rgba(104, 245, 255, 0.09), rgba(139, 92, 246, 0.1));
  box-shadow: var(--glow);
}

.mock-option span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.mock-payment-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.mock-summary-price {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(104, 245, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(126, 249, 255, 0.16);
}

.mock-summary-price strong {
  font-size: clamp(1.8rem, 2vw, 2.25rem);
  color: var(--brand);
}

.mock-summary-price span,
.mock-summary-list dt {
  color: var(--muted);
}

.mock-summary-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.mock-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(126, 249, 255, 0.12);
}

.mock-summary-list dd,
.mock-summary-list dt {
  margin: 0;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(126, 249, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(104, 245, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(104, 245, 255, 0.08);
}

.input[disabled] {
  opacity: 0.72;
}

.form-error {
  margin: -0.45rem 0 0;
  color: #ffbfd1;
  font-size: var(--text-sm);
}

.dashboard-shell {
  grid-template-columns: 300px 1fr;
  align-items: start;
  gap: 1.75rem;
}

.dashboard-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.15rem;
}

.dashboard-sidebar-brand h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.dashboard-nav {
  display: grid;
  gap: 0.65rem;
}

.dashboard-nav a {
  padding: 0.88rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(126, 249, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #d7e5ff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-nav a.is-active {
  color: var(--ink);
  border-color: rgba(104, 245, 255, 0.32);
  background: linear-gradient(135deg, rgba(104, 245, 255, 0.12), rgba(139, 92, 246, 0.16));
  box-shadow: var(--glow);
}

.dashboard-sidebar-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(82, 245, 179, 0.66);
  flex: none;
}

.dashboard-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

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

.dashboard-main {
  min-width: 0;
}

.dashboard-body h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  line-height: 1.14;
}

.dashboard-body h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.2;
}

.dashboard-body h3 {
  font-size: 1rem;
}

.dashboard-body .section-heading {
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.summary-card {
  grid-column: span 2;
  min-height: 100%;
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  font-weight: 700;
  margin-top: 0.55rem;
  color: var(--brand);
}

.metric-card-value {
  margin-top: 0.6rem;
}

.status-tiny,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 162, 255, 0.24);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(122, 162, 255, 0.12);
  color: #d9e5ff;
}

.metric-card-status .status-tiny,
.badge-paid,
.badge-fulfilled,
.badge-active {
  background: rgba(82, 245, 179, 0.14);
  color: #b7ffdd;
  border-color: rgba(82, 245, 179, 0.26);
}

.badge-expired,
.badge-revoked,
.badge-failed,
.badge-canceled {
  background: rgba(255, 122, 162, 0.14);
  color: #ffbfd1;
  border-color: rgba(255, 122, 162, 0.24);
}

.badge-pending {
  background: rgba(255, 207, 112, 0.14);
  color: #ffe4ac;
  border-color: rgba(255, 207, 112, 0.24);
}

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

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(126, 249, 255, 0.1);
  text-align: left;
}

.table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.table td {
  font-size: var(--text-sm);
  vertical-align: top;
  color: #eff5ff;
}

.payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.payload-grid div {
  display: grid;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(126, 249, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.payload-grid strong {
  display: inline-block;
  margin-right: 0.65rem;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--brand);
  word-break: break-word;
}

.empty-state {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(126, 249, 255, 0.18);
  font-size: var(--text-sm);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

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

.stats-inline div span {
  display: block;
  margin-bottom: 0.35rem;
}

.stats-inline div strong {
  font-size: var(--text-base);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #dffcff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.text-link::after {
  content: "->";
  color: var(--brand);
  font-family: var(--font-mono);
}

.prose {
  line-height: 1.75;
}

@media (max-width: 960px) {
  .hero {
    padding: 0 0 2.8rem;
  }

  .section {
    padding: 0;
  }

  .hero-grid,
  .pricing-grid,
  .pricing-columns,
  .mock-payment-layout,
  .faq-grid,
  .footer-grid,
  .dashboard-shell,
  .dashboard-grid,
  .dashboard-grid.two-columns,
  .help-grid,
  .card-grid,
  .payload-grid,
  .inline-form,
  .hero-inline-stats {
    grid-template-columns: 1fr;
  }

  .summary-card {
    grid-column: auto;
  }

  .dashboard-sidebar {
    position: static;
  }

  h1 {
    font-size: clamp(2.2rem, 9vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .nav-shell,
  .hero-actions {
    align-items: stretch;
  }

  .nav-shell {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.9rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    width: 100%;
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(126, 249, 255, 0.16);
    background: linear-gradient(180deg, rgba(12, 19, 39, 0.96), rgba(8, 12, 25, 0.98));
    box-shadow: var(--shadow-md);
  }

  .site-header[data-nav-open="true"] .main-nav {
    display: flex;
  }

  .site-header[data-nav-open="true"] .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header[data-nav-open="true"] .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-nav-open="true"] .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mock-summary-list div {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav > a,
  .main-nav form,
  .button,
  .button-secondary,
  .ghost-button,
  .link-button {
    width: 100%;
  }

  .footer-brand-block {
    padding-right: 0;
  }
}

.admin-body {
  --admin-bg: #eef3f8;
  --admin-bg-accent: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 28%), radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%);
  --admin-surface: rgba(255, 255, 255, 0.92);
  --admin-surface-strong: #ffffff;
  --admin-border: rgba(148, 163, 184, 0.24);
  --admin-border-strong: rgba(100, 116, 139, 0.22);
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-primary: #2563eb;
  --admin-primary-strong: #1d4ed8;
  --admin-danger: #dc2626;
  background-color: var(--admin-bg);
  background-image: var(--admin-bg-accent);
  color: var(--admin-text);
  font-family: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  cursor: default;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body h5,
.admin-body h6 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

.admin-body main {
  min-height: calc(100vh - 140px);
}

.admin-body .container {
  width: min(1320px, calc(100% - 2rem));
}

.admin-body .admin-header,
.admin-body .admin-footer {
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(14px);
}

.admin-body .admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--admin-border);
}

.admin-body .admin-header-brand {
  display: grid;
  gap: 0.2rem;
}

.admin-body .admin-header-kicker,
.admin-body .admin-page-kicker,
.admin-body .admin-sidebar-kicker {
  color: var(--admin-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-body .admin-header-title {
  color: var(--admin-text);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.admin-body .admin-header-subtitle,
.admin-body .admin-sidebar-note,
.admin-body .text-muted {
  color: var(--admin-muted) !important;
}

.admin-body .admin-shell {
  position: relative;
}

.admin-body .admin-sidebar {
  position: sticky;
  top: 1.5rem;
  border: 1px solid var(--admin-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.admin-body .admin-form-card {
  max-width: 720px;
}

.admin-body .admin-panel {
  border: 1px solid var(--admin-border);
  border-radius: 1.25rem;
  background: var(--admin-surface);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.admin-body .admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.admin-body .admin-stat-card {
  overflow: hidden;
  position: relative;
}

.admin-body .admin-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 55%);
  pointer-events: none;
}

.admin-body .admin-stat-label {
  position: relative;
  color: var(--admin-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.admin-body .admin-stat-value {
  position: relative;
  margin-top: 0.6rem;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--admin-text);
}

.admin-body .admin-sidebar .nav-link {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: var(--admin-text);
  font-weight: 600;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-body .admin-sidebar .nav-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--admin-primary-strong);
  transform: translateX(2px);
}

.admin-body .admin-sidebar .nav-link.active {
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.admin-body .admin-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #34d399, #2563eb);
}

.admin-body .btn {
  border-radius: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.admin-body .btn-admin-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-strong));
  border: 0;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.admin-body .btn-admin-primary:hover,
.admin-body .btn-admin-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--admin-primary-strong), #1e40af);
}

.admin-body .btn-admin-secondary {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--admin-border-strong);
}

.admin-body .btn-admin-secondary:hover,
.admin-body .btn-admin-secondary:focus {
  color: var(--admin-primary-strong);
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.2);
}

.admin-body .btn-admin-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--admin-danger), #b91c1c);
  border: 0;
}

.admin-body .table-admin {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(248, 250, 252, 0.9);
  --bs-table-striped-bg: rgba(248, 250, 252, 0.72);
  --bs-table-color: var(--admin-text);
}

.admin-body .table-admin thead th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--admin-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-body .table-admin tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.admin-body .form-control,
.admin-body .form-select,
.admin-body .form-check-input {
  border-color: rgba(203, 213, 225, 0.95);
  border-radius: 0.9rem;
}

.admin-body a,
.admin-body button,
.admin-body [role="button"],
.admin-body input[type="button"],
.admin-body input[type="submit"],
.admin-body input[type="reset"],
.admin-body label[for],
.admin-body select,
.admin-body summary {
  cursor: pointer;
}

.admin-body input,
.admin-body textarea {
  cursor: text;
}

.admin-body .form-control,
.admin-body .form-select {
  min-height: 3rem;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-body .form-label {
  margin-bottom: 0.45rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
}

.admin-body .alert {
  border-radius: 1rem;
}

.admin-body .flash-stack {
  right: 1.5rem;
  bottom: 1.5rem;
}

.admin-body .flash {
  border: 1px solid #d0d7de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.admin-body .flash-accent {
  opacity: 1;
}

.admin-body .flash-close {
  color: #475569;
}

.admin-body .flash-success {
  border-color: #badbcc;
  background: rgba(235, 255, 244, 0.96);
  color: #0f5132;
}

.admin-body .flash-error,
.admin-body .flash-danger {
  border-color: #f5c2c7;
  background: rgba(255, 241, 243, 0.98);
  color: #842029;
}

.admin-body .flash-info {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
}

.admin-body .flash-warning {
  border-color: #ffecb5;
  background: rgba(255, 251, 235, 0.98);
  color: #664d03;
}

.admin-body .badge {
  display: inline-block;
  min-height: auto;
  padding: 0.35em 0.65em;
  border: 0;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  vertical-align: baseline;
  box-shadow: none;
}

.admin-body .badge.text-bg-warning {
  color: #000;
}

@media (max-width: 991px) {
  .admin-body .admin-sidebar {
    position: static;
  }

  .admin-body .admin-page-header {
    align-items: flex-start;
  }
}
