:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f9;
  --ink: #18212f;
  --muted: #647084;
  --line: #d9e1ec;
  --brand: #0d766e;
  --brand-strong: #0a5f58;
  --brand-soft: #e4f6f2;
  --gold: #d6a84a;
  --gold-soft: #fff4dc;
  --blue: #2457a7;
  --blue-soft: #edf4ff;
  --red: #b23b3b;
  --red-soft: #fff1f1;
  --green: #19714b;
  --green-soft: #e8f7f2;
  --nav: #07111d;
  --nav-soft: #101c2b;
  --radius: 8px;
  --shadow: 0 18px 42px rgba(24, 33, 47, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  touch-action: manipulation;
}

button,
a,
label,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.boot-status {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #02070d 0%, #07121f 52%, #030913 100%);
  color: #f7fbff;
  text-align: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.boot-status.is-leaving {
  opacity: 0;
  transform: scale(1.015);
}

.boot-status[hidden] {
  display: none;
}

.boot-loader {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
}

.boot-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}

.boot-flow__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
  stroke-dasharray: 120 620;
  animation: boot-flow 3s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

.boot-flow__line--gold {
  stroke: rgba(214, 168, 74, 0.7);
  filter: drop-shadow(0 0 12px rgba(214, 168, 74, 0.34));
}

.boot-flow__line--teal {
  stroke: rgba(32, 199, 182, 0.72);
  animation-delay: 0.28s;
  filter: drop-shadow(0 0 14px rgba(32, 199, 182, 0.36));
}

.boot-flow__line--soft {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 5;
  animation-delay: 0.52s;
}

.boot-nodes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.boot-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.5);
  animation: boot-node-pulse 1.25s ease forwards;
}

.boot-node--one {
  left: 22%;
  top: 34%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(214, 168, 74, 0.1), 0 0 22px rgba(214, 168, 74, 0.44);
  animation-delay: 0.62s;
}

.boot-node--two {
  left: 50%;
  top: 24%;
  background: #20c7b6;
  box-shadow: 0 0 0 8px rgba(32, 199, 182, 0.1), 0 0 22px rgba(32, 199, 182, 0.44);
  animation-delay: 0.92s;
}

.boot-node--three {
  right: 17%;
  bottom: 31%;
  background: #ffffff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08), 0 0 20px rgba(255, 255, 255, 0.34);
  animation-delay: 1.18s;
}

.boot-wordmark {
  position: relative;
  z-index: 1;
  width: clamp(420px, 42vw, 720px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.38));
}

.boot-letter__outline,
.boot-letter__top,
.boot-letter__bottom {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: boot-draw-letter 1.28s cubic-bezier(0.52, 0, 0.12, 1) forwards;
}

.boot-letter__outline {
  stroke: url("#bootGold");
  stroke-width: 34;
  animation-delay: 0.72s;
}

.boot-letter__top {
  stroke: url("#bootTeal");
  stroke-width: 30;
  animation-delay: 1.12s;
}

.boot-letter__bottom {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 30;
  animation-delay: 1.34s;
}

.boot-wordmark__rest {
  fill: #ffffff;
  font-family: Inter, Arial, sans-serif;
  font-size: 76px;
  font-weight: 950;
  letter-spacing: 0;
  opacity: 0;
  transform: translateX(-18px);
  animation: boot-reveal-word 0.58s ease forwards;
  animation-delay: 2.05s;
}

.boot-wordmark__underline {
  fill: none;
  stroke: url("#bootGold");
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 390;
  stroke-dashoffset: 390;
  opacity: 0.92;
  animation: boot-draw-letter 0.54s ease forwards;
  animation-delay: 2.44s;
}

.boot-wordmark__subtitle {
  fill: #9ee9dd;
  font-family: Inter, Arial, sans-serif;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: boot-reveal-subtitle 0.52s ease forwards;
  animation-delay: 2.78s;
}

.boot-status__text {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
}

.boot-status.is-error .boot-wordmark {
  filter: drop-shadow(0 0 20px rgba(210, 77, 77, 0.34));
}

.boot-status.is-error .boot-status__text {
  width: min(320px, 86vw);
  height: auto;
  margin-top: 18px;
  clip: auto;
  color: #ffd8d8;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes boot-flow {
  0% {
    stroke-dashoffset: 760;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -420;
    opacity: 0;
  }
}

@keyframes boot-draw-letter {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes boot-node-pulse {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  42% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 0.46;
    transform: scale(1);
  }
}

@keyframes boot-reveal-word {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes boot-reveal-subtitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-flow__line,
  .boot-node,
  .boot-letter__outline,
  .boot-letter__top,
  .boot-letter__bottom,
  .boot-wordmark__rest,
  .boot-wordmark__underline,
  .boot-wordmark__subtitle {
    animation: none;
  }

  .boot-letter__outline,
  .boot-letter__top,
  .boot-letter__bottom,
  .boot-wordmark__underline {
    stroke-dashoffset: 0;
  }

  .boot-wordmark__rest,
  .boot-wordmark__subtitle {
    opacity: 1;
    transform: none;
  }

  .boot-node {
    opacity: 0.46;
    transform: none;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--nav) 0%, #0c1725 100%);
  color: #f8fbff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #030913;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.brand-symbol {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-title {
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 4px;
  color: #aebccc;
  font-size: 13px;
  line-height: 1.25;
}

.beta-promo {
  width: 100%;
  border: 1px solid rgba(214, 168, 74, 0.32);
  border-radius: var(--radius);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.13), rgba(228, 246, 242, 0.06));
  color: #f8fbff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.beta-promo span {
  color: #f2d18f;
  font-size: 12px;
  font-weight: 860;
}

.beta-promo strong {
  font-size: 16px;
  line-height: 1.15;
}

.beta-promo:hover {
  border-color: rgba(214, 168, 74, 0.62);
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.2), rgba(228, 246, 242, 0.1));
  transform: translateY(-1px);
}

.sidebar-browser-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(151, 229, 215, 0.2);
  border-radius: var(--radius);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe8f8;
  text-align: left;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-browser-button[hidden] {
  display: none;
}

.sidebar-browser-button:hover {
  border-color: rgba(151, 229, 215, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.sidebar-browser-button .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #9ee9dd;
}

.role-switch,
.nav {
  display: grid;
  gap: 8px;
}

.role-chip,
.nav-item {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  color: #eaf1fb;
  border-radius: var(--radius);
  padding: 10px 12px;
  text-align: left;
}

.role-chip.is-active {
  background: rgba(228, 246, 242, 0.96);
  color: var(--ink);
  font-weight: 760;
}

.nav-item {
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--nav-soft);
  border-color: rgba(158, 233, 221, 0.28);
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.nav-item .icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #9ee9dd;
  background: rgba(158, 233, 221, 0.08);
}

.nav-item[data-screen="finance"] .icon {
  color: #f2d18f;
  background: rgba(214, 168, 74, 0.1);
}

.nav-item[data-screen="products"] .icon,
.nav-item[data-screen="profile"] .icon,
.nav-item[data-screen="support"] .icon,
.nav-item[data-screen="roadmap"] .icon {
  color: #b9cff5;
  background: rgba(185, 207, 245, 0.1);
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-note {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cdd6e4;
  font-size: 13px;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(214, 168, 74, 0.12);
}

.workspace {
  min-width: 0;
  padding: 24px 28px 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.topbar p {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.45;
}

.topbar-actions,
.form-actions,
.placement-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 118, 110, 0.18);
}

.primary-button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.ghost-button:hover,
.icon-button:hover {
  border-color: rgba(13, 118, 110, 0.28);
  background: var(--brand-soft);
}

.ghost-button.danger {
  color: var(--red);
  border-color: rgba(178, 59, 59, 0.26);
}

.ghost-button.danger:hover {
  background: var(--red-soft);
  border-color: rgba(178, 59, 59, 0.42);
}

.ghost-button.small,
.primary-button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.app-shell.auth-required {
  grid-template-columns: 1fr;
}

.app-shell.auth-required .sidebar,
.app-shell.auth-required .topbar,
.app-shell.auth-required .alert-root,
.app-shell.auth-required .screen,
.app-shell.auth-required .beta-modal {
  display: none;
}

.app-shell.auth-required .workspace {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.browser-auth {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.browser-auth[hidden] {
  display: none;
}

.browser-auth__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #030913;
  box-shadow: 0 14px 30px rgba(24, 33, 47, 0.18);
}

.browser-auth__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.browser-auth h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.browser-auth p {
  margin: 12px auto 20px;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.5;
}

.browser-auth__actions {
  display: flex;
  justify-content: center;
}

.alert-root {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.alert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 33, 47, 0.07);
}

.alert.error {
  border-color: rgba(178, 59, 59, 0.32);
  background: var(--red-soft);
  color: #7d2424;
}

.alert.success {
  border-color: rgba(25, 113, 75, 0.28);
  background: var(--green-soft);
  color: #1f6541;
}

.alert.info {
  border-color: rgba(36, 87, 167, 0.22);
  background: var(--blue-soft);
  color: #294d80;
}

.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: 18px;
}

.beta-modal[hidden] {
  display: none;
}

.beta-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 17, 29, 0.58);
}

.beta-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(217, 225, 236, 0.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.beta-modal__head {
  min-height: 64px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.beta-modal__head h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.beta-modal__body {
  padding: 16px;
}

.beta-modal__body p {
  margin: 0 0 12px;
  color: #3c4657;
  line-height: 1.48;
}

.beta-form {
  margin-top: 14px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.testing-banner {
  margin-bottom: 18px;
  border: 1px solid rgba(214, 168, 74, 0.35);
  border-radius: var(--radius);
  background: var(--gold-soft);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.testing-banner div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.testing-banner strong {
  color: #253247;
  font-size: 16px;
  line-height: 1.25;
}

.testing-banner p {
  margin: 0;
  color: #5c4b26;
  line-height: 1.4;
}

.roadmap-hero {
  margin-bottom: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.roadmap-hero h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.12;
}

.roadmap-hero p {
  margin: 0;
  max-width: 780px;
  color: #3c4657;
  line-height: 1.5;
}

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

.roadmap-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.06);
  padding: 16px;
}

.roadmap-card h3 {
  margin: 12px 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.roadmap-card ul {
  margin: 0;
  padding-left: 20px;
  color: #3c4657;
  line-height: 1.5;
}

.roadmap-card li + li {
  margin-top: 7px;
}

.metric,
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(24, 33, 47, 0.06);
}

.metric {
  min-height: 100px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.metric span,
.muted,
.flow-step span {
  color: var(--muted);
}

.metric strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
}

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

.span-2 {
  grid-column: span 2;
}

.panel {
  overflow: hidden;
}

.panel-head {
  min-height: 58px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.panel > p,
.panel > .muted,
.panel > .stack,
.panel > .compact-list,
.panel > .placement-list,
.panel > .admin-moderation-list,
.panel > .tabs,
.panel > .form-grid,
.panel > .action-box {
  margin: 16px;
}

.panel > .ghost-button,
.panel > .primary-button {
  margin: 0 16px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef1f5;
  color: #506174;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.amber {
  background: var(--gold-soft);
  color: #8a5a09;
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.flow-step {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 6px;
  background: #fbfcff;
}

.flow-step b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.flow-step strong,
.compact-row strong,
.access-summary strong {
  overflow-wrap: anywhere;
}

.compact-list,
.placement-list,
.admin-moderation-list,
.stack {
  display: grid;
  gap: 10px;
}

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

.tab-button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.tab-button span {
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef1f5;
  color: #506174;
  font-size: 12px;
}

.tab-button.is-active {
  border-color: rgba(13, 118, 110, 0.34);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

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

.tariff-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fff;
}

.tariff-card.is-highlighted {
  border-color: rgba(13, 118, 110, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfa 100%);
}

.tariff-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tariff-head h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.tariff-head strong {
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}

.tariff-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.tariff-unit {
  color: var(--brand-strong);
  font-weight: 800;
}

.tariff-features {
  display: grid;
  gap: 6px;
}

.tariff-features span {
  position: relative;
  padding-left: 17px;
  color: #3c4657;
  line-height: 1.35;
}

.tariff-features span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.tariff-note {
  padding: 10px;
  border: 1px solid rgba(13, 118, 110, 0.16);
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand-strong);
  line-height: 1.38;
  font-size: 14px;
}

.tariff-footnote {
  color: var(--muted);
  font-size: 13px;
}

.tariff-actions {
  display: flex;
  justify-content: flex-end;
}

.compact-row,
.placement-card,
.action-box,
.access-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.compact-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.compact-row span {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.channel-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.channel-link:hover {
  border-color: rgba(13, 118, 110, 0.28);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.bonus-countdown {
  font-weight: 800;
  line-height: 1.4;
}

.bonus-wallet {
  margin: 16px 16px 10px;
  display: grid;
  gap: 10px;
}

.bonus-wallet__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bonus-wallet__head strong {
  font-size: 30px;
  line-height: 1;
}

.bonus-wallet__head span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.bonus-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.bonus-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width 0.2s ease;
}

.access-summary {
  display: grid;
  gap: 6px;
}

.access-summary strong {
  font-size: 18px;
}

.access-summary span {
  color: var(--muted);
  line-height: 1.35;
}

.access-summary.success {
  border-color: rgba(25, 113, 75, 0.28);
  background: var(--green-soft);
}

.access-summary.warning {
  border-color: rgba(214, 168, 74, 0.45);
  background: var(--gold-soft);
}

.action-box.success {
  border-color: rgba(25, 113, 75, 0.28);
  background: var(--green-soft);
}

.action-box.warning {
  border-color: rgba(214, 168, 74, 0.45);
  background: var(--gold-soft);
}

.placement-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.placement-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f0f3f8;
}

.placement-title {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.25;
}

.placement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.placement-actions {
  justify-content: flex-end;
}

.placement-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-metrics .metric {
  min-height: 88px;
}

.admin-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.admin-card__head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-card__head h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.25;
}

.admin-card__head p {
  margin: 0;
}

.admin-card__grid {
  padding: 14px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}

.admin-card__image {
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: #f0f3f8;
}

.admin-card__image--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.admin-card__body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.admin-post-text,
.admin-note {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fbfcff;
  color: #3c4657;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.42;
  font: inherit;
}

.admin-note {
  background: var(--gold-soft);
  border-color: rgba(214, 168, 74, 0.35);
}

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

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.field span {
  color: #3c4657;
  font-weight: 720;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 118, 110, 0.54);
  box-shadow: 0 0 0 3px rgba(13, 118, 110, 0.1);
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 8px;
}

.photo-preview {
  min-height: 78px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfcff;
  line-height: 1.35;
}

.photo-preview img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px;
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .brand {
    max-width: 460px;
  }

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

  .nav-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
  }

  .metrics-grid,
  .content-grid,
  .flow,
  .roadmap-list,
  .tariff-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .boot-wordmark {
    width: min(440px, 86vw);
  }

  .workspace {
    padding: 16px 14px 32px;
  }

  .topbar {
    display: grid;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions button,
  .form-actions button {
    flex: 1 1 150px;
  }

  .nav,
  .metrics-grid,
  .content-grid,
  .flow,
  .roadmap-list,
  .tariff-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .metric,
  .panel,
  .placement-card,
  .testing-banner,
  .roadmap-hero,
  .roadmap-card,
  .flow-step {
    width: 100%;
    max-width: 100%;
  }

  .testing-banner,
  .roadmap-hero {
    display: grid;
  }

  .placement-card {
    grid-template-columns: 1fr;
  }

  .admin-card__grid {
    grid-template-columns: 1fr;
  }

  .admin-card__image {
    width: 100%;
    max-height: 240px;
  }

  .placement-actions {
    justify-content: flex-start;
  }

  .compact-row {
    display: grid;
  }

  .compact-row span {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .sidebar {
    padding: 12px;
  }

  .brand {
    padding: 10px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
