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

:root {
  --bg: #061009;
  --bg-2: #09150d;
  --surface: rgba(13, 28, 16, 0.92);
  --surface-2: rgba(18, 38, 22, 0.96);
  --surface-3: rgba(24, 47, 29, 0.92);
  --surface-soft: rgba(74, 222, 128, 0.05);
  --border: rgba(75, 121, 89, 0.26);
  --border-strong: rgba(74, 222, 128, 0.22);
  --text: #eef8ef;
  --muted: #86a596;
  --muted-2: #6f8a7c;
  --accent: #4ade80;
  --accent-2: #86efac;
  --accent-dim: #22c55e;
  --danger: #f87171;
  --warning: #fbbf24;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 36px rgba(0, 0, 0, 0.22);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
}

html { font-size: 16px; -webkit-text-size-adjust: 100% }

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.13), transparent 22rem),
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
}

#app-root {
  min-height: 100dvh;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.14), transparent 22rem),
    linear-gradient(180deg, rgba(6, 16, 9, 0.92), rgba(9, 21, 13, 0.97));
  backdrop-filter: blur(10px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-card {
  width: min(100%, 23rem);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(74, 222, 128, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(10, 22, 13, 0.96);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.boot-spinner {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 2px solid rgba(134, 165, 150, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.boot-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.boot-copy {
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.hidden,
.hidden-root { display: none !important }

.mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

.wordmark {
  display: inline-grid;
  gap: 0.08rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.wordmark-title {
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  color: var(--text);
}

.wordmark-main {
  color: var(--text);
}

.wordmark-accent {
  color: var(--accent);
}

.wordmark-subtitle {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.icon-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.09), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(74, 222, 128, 0.14);
  color: var(--accent);
}

.icon-shell svg,
.nav-icon svg,
.btn-icon,
.title-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.12rem;
  font: inherit;
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}

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

.btn.primary {
  background: linear-gradient(180deg, var(--accent) 0%, #38cc6e 100%);
  color: #07100a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn.primary:hover { background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%) }

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: rgba(74, 222, 128, 0.07);
  border-color: var(--border-strong);
}

.btn.small {
  padding: 0.55rem 0.82rem;
  font-size: 0.78rem;
}

.btn.danger {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.pill.neutral {
  background: rgba(134, 165, 150, 0.08);
  border-color: rgba(134, 165, 150, 0.12);
  color: var(--muted);
}

.pill.success {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
  color: var(--accent);
}

.pill.warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.18);
  color: var(--warning);
}

.pill.danger {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.section-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-view {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  padding: 1.35rem 2rem;
  border-bottom: 1px solid rgba(134, 165, 150, 0.08);
  background: rgba(6, 16, 9, 0.68);
  backdrop-filter: blur(16px);
}

.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(380px, 470px);
  gap: 2rem;
  align-items: center;
  padding: 2.4rem;
}

.auth-copy {
  display: grid;
  gap: 1.5rem;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  background: rgba(74, 222, 128, 0.08);
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-copy h1,
.dash-header h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.hero-copy.compact {
  max-width: 34rem;
  font-size: 0.96rem;
  line-height: 1.7;
}

.hero-grid,
.panel-grid,
.badge-grid,
.kpi-grid,
.definition-list,
.list-stack,
.stack {
  display: grid;
}

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

.pillar,
.auth-card,
.panel,
.kpi,
.console,
.toast,
.wallet-summary,
.definition-row,
.list-row,
.network-chip,
.empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pillar {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  min-height: 100%;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.pillar:hover {
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.04), rgba(255, 255, 255, 0)),
    var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pillar-icon { color: var(--accent) }
.pillar h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.02em }
.pillar p { color: var(--muted); font-size: 0.9rem; line-height: 1.68 }

.auth-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-side {
  display: grid;
  gap: 1rem;
}

.view-header,
.dash-header,
.header-actions,
.actions,
.definition-row,
.list-row-head,
.row-meta,
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.view-header,
.dash-header,
.list-row-head,
.definition-row {
  justify-content: space-between;
}

.view-header {
  margin-bottom: 1.2rem;
}

.title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  row-gap: 0.12rem;
  min-width: 0;
  align-items: start;
}

.title-icon {
  grid-row: 1 / span 2;
  margin-top: 0.02rem;
}

.title-row .section-label { grid-column: 2; margin-bottom: 0.08rem }
.title-row > div:last-child { grid-column: 2; min-width: 0 }
.title-row h2,
.title-row h3 { min-width: 0 }

.view-header h2,
.panel h2,
.panel h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-meta {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.mono-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.mono-link:hover { color: var(--accent-2) }

.stack { gap: 1rem }

label {
  display: grid;
  gap: 0.52rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.84rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(86, 126, 100, 0.28);
  background: rgba(18, 38, 22, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  outline: none;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

textarea {
  min-height: 124px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.82rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
  opacity: 0.9;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(22, 45, 27, 0.98);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}

.actions {
  flex-wrap: wrap;
}

.actions.vertical {
  flex-direction: column;
}

.actions.vertical .btn {
  width: 100%;
  justify-content: flex-start;
}

.console {
  margin-top: 1.25rem;
  padding: 1rem 1.08rem;
  color: #d8ffe5;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.72;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.03), rgba(255,255,255,0)),
    rgba(8, 18, 11, 0.98);
}

.dashboard-page {
  min-height: 100dvh;
  padding-top: 5.4rem;
}

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(8, 17, 11, 0.96);
  border-bottom: 1px solid rgba(134, 165, 150, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-header-inner {
  padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  border: 1px solid rgba(86, 126, 100, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(15, 31, 18, 0.94);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 0.42rem 0.62rem 0.42rem 0.48rem;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, color 120ms ease;
}

.dropdown-trigger:hover,
.custom-dropdown.active .dropdown-trigger {
  background:
    linear-gradient(180deg, rgba(74, 222, 128, 0.07), rgba(255,255,255,0)),
    rgba(18, 38, 22, 0.98);
  border-color: rgba(74, 222, 128, 0.22);
  color: var(--accent-2);
}

.profile-trigger {
  min-width: 13.75rem;
  justify-content: space-between;
}

.profile-trigger-avatar,
.profile-avatar,
.dropdown-icon,
.chevron-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-trigger-avatar,
.profile-avatar {
  border-radius: 999px;
  color: var(--accent);
}

.profile-trigger-avatar {
  width: 2rem;
  height: 2rem;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.16);
}

.profile-avatar {
  width: 2.9rem;
  height: 2.9rem;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.05));
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.profile-trigger-avatar svg,
.profile-avatar svg,
.dropdown-icon svg,
.chevron-icon,
.dropdown-menu svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-avatar svg {
  width: 1.45rem;
  height: 1.45rem;
}

.profile-trigger-copy {
  display: grid;
  gap: 0.06rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.profile-trigger-label,
.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger-label,
.profile-name {
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.profile-trigger-meta,
.profile-id {
  font-size: 0.72rem;
  color: var(--muted);
}

.chevron-icon {
  color: var(--muted);
  transition: transform 120ms ease, color 120ms ease;
}

.custom-dropdown.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 80;
  width: min(21rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 1px solid rgba(86, 126, 100, 0.26);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(9, 20, 13, 0.98);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: opacity 120ms ease, visibility 120ms ease, transform 120ms ease;
  overflow: hidden;
}

.custom-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-menu {
  max-height: min(32rem, calc(100dvh - 6rem));
  overflow: auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1rem 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 45%),
    rgba(14, 29, 17, 0.96);
  border-bottom: 1px solid rgba(86, 126, 100, 0.2);
}

.profile-info {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.profile-stats {
  display: grid;
  gap: 0.72rem;
  padding: 0.95rem 1rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-row span:last-child {
  color: var(--text);
}

.session-role-pill {
  min-height: 1.6rem;
  padding-inline: 0.58rem;
}

.dropdown-divider {
  height: 1px;
  background: rgba(86, 126, 100, 0.2);
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.88rem 1rem;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.dropdown-item:hover {
  background: rgba(74, 222, 128, 0.06);
  color: var(--accent-2);
}

.dropdown-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(86, 126, 100, 0.16);
  color: var(--accent);
}

.logout-btn {
  color: var(--danger);
}

.logout-btn .dropdown-icon {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(248, 113, 113, 0.08);
}

.logout-btn:hover {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(8, 17, 11, 0.94);
  border-bottom: 1px solid rgba(134, 165, 150, 0.08);
  backdrop-filter: blur(18px);
}

.nav-container {
  padding: 0.95rem 1.25rem;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-right {
  justify-content: flex-end;
}

#nav-items-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-separator {
  display: none;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.72rem 0.96rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.nav-item:hover {
  background: rgba(74, 222, 128, 0.05);
  border-color: rgba(74, 222, 128, 0.09);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.05));
  border-color: rgba(74, 222, 128, 0.18);
  color: var(--accent);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(134,165,150,0.08);
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.16);
}

.wallet-summary {
  display: grid;
  gap: 0.38rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.wallet-summary strong {
  font-size: 1rem;
  line-height: 1.3;
}

.dash-body {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.6rem;
  min-width: 0;
}

.home-body {
  width: min(100%, 1040px);
  gap: 4.2rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.home-hero {
  padding: 3rem 0 0.5rem;
}

.home-hero-copy,
.pricing-grid,
.workflow-grid {
  display: grid;
}

.home-hero-copy {
  gap: 1.2rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.home-section {
  gap: 1.4rem;
}

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

.section-heading h2 {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.2;
}

.home-hero-lead {
  max-width: 20ch;
  color: var(--text);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.8rem;
  row-gap: 0.65rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(86, 126, 100, 0.18);
  background: rgba(14, 29, 17, 0.72);
}

.workflow-step h3 {
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.workflow-step p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.68;
}

.workflow-index {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6rem;
}

.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  color: var(--accent);
}

.workflow-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.pricing-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.pricing-card.featured {
  border-color: rgba(74, 222, 128, 0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    var(--surface);
}

.pricing-card-shell {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.pricing-card-top {
  display: grid;
  gap: 0.9rem;
}

.pricing-card-heading {
  display: grid;
  gap: 0.38rem;
}

.pricing-card h3 {
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: 0;
}

.pricing-card-summary,
.plan-overview,
.plan-comparison {
  display: grid;
}

.pricing-card-summary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pricing-card-price {
  display: grid;
  justify-items: start;
  gap: 0.25rem;
  text-align: left;
}

.pricing-card-price strong {
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  color: var(--text);
}

.pricing-card-price span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.plan-overview {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.plan-stat {
  display: grid;
  gap: 0.28rem;
  padding: 0.72rem 0.8rem;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(17, 34, 21, 0.9);
  border: 1px solid rgba(86, 126, 100, 0.16);
}

.plan-stat-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-stat strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 670;
  line-height: 1.45;
}

.plan-card-divider {
  height: 1px;
  background:
    linear-gradient(90deg, rgba(86, 126, 100, 0), rgba(86, 126, 100, 0.22), rgba(86, 126, 100, 0));
}

.plan-comparison {
  gap: 0.45rem;
}

.plan-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
}

.plan-row.yes {
  border-color: transparent;
}

.plan-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.plan-row-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-row.yes .plan-row-icon {
  color: var(--accent);
  background: transparent;
}

.plan-row.no .plan-row-icon {
  color: var(--muted-2);
  background: transparent;
}

.get-started-section {
  padding-bottom: 1rem;
}

.get-started-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 222, 128, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0)),
    rgba(10, 22, 13, 0.88);
  box-shadow: var(--shadow-md);
}

.get-started-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.85rem;
  padding: 0.2rem;
}

.get-started-copy h2 {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(1.6rem, 3.2vw, 2.55rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.get-started-copy p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.get-started-copy .btn {
  margin-top: 0.35rem;
}

.start-steps {
  display: grid;
  gap: 0.7rem;
}

.start-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
  border: 1px solid rgba(86, 126, 100, 0.16);
  border-radius: 8px;
  background: rgba(9, 18, 11, 0.68);
}

.start-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(74, 222, 128, 0.07);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.start-step h3 {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.28;
}

.start-step p {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.plan-row-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 560;
  line-height: 1.45;
}

.plan-row.no .plan-row-label {
  color: var(--muted);
}

.home-nav-right {
  gap: 0.8rem;
}

.dash-header {
  align-items: flex-end;
  gap: 1.4rem;
  padding-bottom: 0.4rem;
}

.dash-header .section-label {
  margin-bottom: 0.38rem;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toast {
  padding: 0.95rem 1.08rem;
  border-radius: var(--radius-md);
}

.toast.success {
  border-color: rgba(74, 222, 128, 0.18);
  color: var(--accent);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.18);
  color: var(--danger);
}

.view {
  display: grid;
  gap: 1.35rem;
}

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

.kpi {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--surface);
}

.kpi::after {
  content: "";
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.05);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-val {
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
}

.panel-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.panel {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
}

.definition-list,
.list-stack {
  gap: 0.8rem;
}

.definition-row,
.list-row,
.network-chip {
  padding: 0.98rem 1.04rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--surface-2);
  border: 1px solid rgba(86, 126, 100, 0.22);
  box-shadow: none;
}

.definition-row dt,
.definition-row dd {
  margin: 0;
}

.definition-row dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.definition-row dd {
  color: var(--text);
  text-align: right;
  font-size: 0.84rem;
  font-weight: 600;
  word-break: break-word;
}

.list-row {
  display: grid;
  gap: 0.9rem;
}

.list-row-head {
  align-items: flex-start;
}

.list-row h3 {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
}

.row-meta,
.row-actions {
  flex-wrap: wrap;
}

.row-body {
  display: grid;
  gap: 0.65rem;
}

.list-row small,
.muted-copy {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.badge-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
}

.network-chip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
}

.network-chip span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.83rem;
  color: var(--muted);
}

.empty-state {
  padding: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}

.session-panel .actions {
  margin-top: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg) }
}

@media (max-width: 1240px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1080px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .hero-grid,
  .kpi-grid,
  .panel-grid.two,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-top,
  .plan-overview,
  .get-started-layout {
    grid-template-columns: 1fr;
  }

  .pricing-card-price {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .dashboard-page {
    padding-top: calc(4.75rem + env(safe-area-inset-top));
    padding-bottom: calc(4.9rem + env(safe-area-inset-bottom));
  }

  .mobile-header {
    display: block;
  }

  .mobile-header-meta .profile-trigger {
    min-width: 0;
    max-width: min(15.5rem, calc(100vw - 7rem));
  }

  .mobile-header-meta .dropdown-menu {
    right: 0;
  }

  .nav {
    top: auto;
    bottom: 0;
    border-top: 1px solid rgba(74, 222, 128, 0.18);
    border-bottom: none;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.24);
  }

  .nav-container {
    padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom));
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-items,
  .nav-center,
  #nav-items-container {
    width: 100%;
  }

  #nav-items-container {
    justify-content: space-around;
    gap: 0.3rem;
  }

  .nav-item {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 0.24rem;
    padding: 0.4rem 0.3rem;
    border-radius: 16px;
    font-size: 0.68rem;
  }

  .nav-icon {
    width: 1.9rem;
    height: 1.9rem;
  }

  .dash-body {
    padding: 1rem 1rem 0;
  }

  .home-nav-right {
    display: none;
  }

  .home-body {
    gap: 2.25rem;
    padding-top: 1.15rem;
    padding-bottom: 3rem;
  }

  .home-hero {
    padding: 1.4rem;
  }
}

@media (max-width: 720px) {
  .auth-header {
    padding: 1rem 1rem 0.9rem;
  }

  .auth-wrap,
  .dash-body {
    padding: 1rem;
  }

  .auth-card,
  .panel {
    padding: 1.15rem;
  }

  .view-header,
  .dash-header,
  .definition-row,
  .list-row-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .actions {
    width: 100%;
  }

  .definition-row dd {
    text-align: left;
  }

  .btn,
  .actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mobile-header-inner {
    gap: 0.75rem;
  }

  .mobile-header-meta .profile-trigger {
    padding-right: 0.48rem;
  }

  .mobile-header-meta .profile-trigger-copy {
    max-width: 7.2rem;
  }

  .nav-item span:last-child {
    display: none;
  }

  .nav-item {
    padding-inline: 0.2rem;
  }

  .nav-icon {
    width: 2rem;
    height: 2rem;
  }
}
