:root {
  color-scheme: dark;
  --bg: #020305;
  --bg-alt: #09111b;
  --surface: rgba(8, 11, 17, 0.9);
  --surface-strong: rgba(12, 17, 26, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(120, 199, 255, 0.32);
  --text: #f6fbff;
  --muted: #94a4b7;
  --sky: #79c6ff;
  --sky-strong: #41aaff;
  --success: #85e3b8;
  --warn: #ffd27a;
  --danger: #ff9f9f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1280px;
  --font-ui:
    "Segoe UI Variable", "Segoe UI", "SF Pro Display", "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(121, 198, 255, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #020305 0%, #04070c 42%, #09111b 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.45;
  background:
    radial-gradient(circle at 18% 0%, rgba(121, 198, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.06), transparent 16%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.72;
  z-index: 0;
}

body::before {
  top: 84px;
  right: 8vw;
  width: 260px;
  height: 260px;
  background: rgba(121, 198, 255, 0.12);
  animation: floatOne 12s ease-in-out infinite;
}

body::after {
  left: 10vw;
  bottom: 10vh;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.04);
  animation: floatTwo 14s ease-in-out infinite;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  color: #d8efff;
}

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

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

#app {
  position: relative;
  z-index: 1;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot__panel {
  width: min(100%, 560px);
  padding: 38px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 14, 22, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.boot__mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(121, 198, 255, 0.18), rgba(255, 255, 255, 0.06));
  box-shadow: 0 16px 48px rgba(65, 170, 255, 0.24);
}

.boot__mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.boot__label,
.hero__eyebrow,
.meta,
.badge,
.status-pill,
.toast,
.card__eyebrow,
.empty__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.boot__label {
  margin: 18px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.boot__title,
.hero__title,
.page__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.04;
}

.boot__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.boot__text,
.hero__text,
.card__text,
.empty__text,
.hint,
.form__help,
.muted,
.roster-card__meta,
.tariff-card__text {
  color: var(--muted);
}

.shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.shell--auth {
  padding-top: 34px;
}

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.sidebar,
.content,
.hero,
.auth-card,
.panel,
.card,
.banner,
.topbar,
.support {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.sidebar,
.content,
.hero,
.auth-card,
.topbar {
  border-radius: var(--radius-xl);
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 24px;
}

.content {
  padding: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(121, 198, 255, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: 0 14px 40px rgba(65, 170, 255, 0.2);
}

.brand__mark--hero {
  width: 72px;
  height: 72px;
  border-radius: 24px;
}

.brand__logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.brand__sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav__button,
.ghost-button,
.button,
.method-chip,
.tabs__button {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.nav__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #e6eef7;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.nav__button:hover,
.ghost-button:hover,
.button:hover,
.method-chip:hover,
.tabs__button:hover {
  transform: translateY(-1px);
}

.nav__button.is-active {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(121, 198, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
}

.nav__label {
  display: block;
  font-weight: 600;
}

.nav__hint {
  display: block;
  margin-top: 3px;
  font-size: 0.84rem;
  color: var(--muted);
}

.sidebar__foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(121, 198, 255, 0.04)),
    rgba(5, 8, 13, 0.7);
}

.topbar__cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.page__text {
  margin: 8px 0 0;
  color: var(--muted);
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.status-pill[data-tone="success"] {
  color: var(--success);
  border-color: rgba(133, 227, 184, 0.22);
}

.status-pill[data-tone="warn"] {
  color: var(--warn);
  border-color: rgba(255, 210, 122, 0.22);
}

.status-pill[data-tone="danger"] {
  color: var(--danger);
  border-color: rgba(255, 159, 159, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(121, 198, 255, 0.03)),
    rgba(8, 12, 18, 0.88);
}

.hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -56px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(121, 198, 255, 0.12);
  filter: blur(18px);
}

.hero__grid,
.auth-grid,
.grid,
.split,
.stats,
.list,
.cards,
.support__grid,
.subscription-roster,
.tariff-grid,
.quick-amounts,
.period-list,
.stack-actions {
  display: grid;
  gap: 16px;
}

.hero__grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__aside {
  align-content: start;
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--sky);
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 12ch;
}

.hero__text {
  max-width: 58ch;
  margin: 16px 0 0;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fact-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.fact-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.auth-grid {
  grid-template-columns: 1.06fr 0.94fr;
  align-items: stretch;
  margin-top: 20px;
}

.auth-card {
  padding: 28px;
}

.auth-card--primary {
  background:
    radial-gradient(circle at top right, rgba(121, 198, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(8, 13, 20, 0.92));
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.tabs__button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.tabs__button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.field label {
  font-size: 0.92rem;
  color: #dce8f3;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(121, 198, 255, 0.12);
}

.select option {
  color: #000;
}

.button,
.ghost-button,
.method-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: center;
}

.button {
  color: #05101a;
  background: linear-gradient(135deg, #ffffff, #79c6ff);
  box-shadow: 0 16px 32px rgba(65, 170, 255, 0.16);
}

.button:disabled,
.ghost-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

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

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

.button--danger {
  color: #fff6f6;
  background: rgba(255, 159, 159, 0.14);
  border-color: rgba(255, 159, 159, 0.24);
  box-shadow: none;
}

.meta {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.section {
  display: grid;
  gap: 18px;
  animation: reveal 0.34s ease;
}

.callout,
.toast,
.banner,
.empty {
  border-radius: 18px;
}

.callout,
.banner {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.callout--success,
.toast--success,
.banner--success {
  border-color: rgba(133, 227, 184, 0.18);
  background: rgba(133, 227, 184, 0.08);
}

.callout--warn,
.toast--warn,
.banner--warn {
  border-color: rgba(255, 210, 122, 0.18);
  background: rgba(255, 210, 122, 0.09);
}

.callout--danger,
.toast--danger,
.banner--danger {
  border-color: rgba(255, 159, 159, 0.2);
  background: rgba(255, 159, 159, 0.08);
}

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

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

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

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

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

.card,
.panel,
.support {
  padding: 22px;
  border-radius: 24px;
}

.card__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--sky);
}

.card__title {
  margin: 0;
  font-size: 1.22rem;
}

.card__text {
  margin: 8px 0 0;
}

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

.split--hero {
  align-items: end;
}

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

.stats--wide {
  grid-column: span 7;
}

.stat {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat__label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stat__value {
  font-size: 1.55rem;
  font-weight: 700;
}

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

.roster-card,
.device,
.transaction,
.person,
.earning,
.method,
.subfact,
.tariff-card,
.fact-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.roster-card.is-active {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(121, 198, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.roster-card__top,
.tariff-card__head,
.period-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.roster-card__title,
.tariff-card__title {
  margin: 0;
  font-size: 1rem;
}

.tariff-grid {
  grid-template-columns: 1fr;
}

.period-list {
  gap: 10px;
}

.period-row {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.period-row:first-child {
  border-top: 0;
  padding-top: 0;
}

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

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

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

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

.quick-amounts .method-chip.is-active {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(121, 198, 255, 0.14);
}

.progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e4f7ff, #79c6ff 58%, #41aaff);
}

.kvs {
  display: grid;
  gap: 10px;
}

.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.kv__key {
  color: var(--muted);
}

.kv__value {
  text-align: right;
  word-break: break-word;
}

.actions,
.inline,
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stack-actions {
  gap: 12px;
}

.method-chip {
  min-height: 42px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.support__grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.empty {
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.empty__label {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--sky);
}

.toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(100% - 32px, 360px);
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.95);
  color: var(--text);
  box-shadow: var(--shadow);
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", monospace;
  font-size: 0.95em;
}

.hidden {
  display: none !important;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-18px, 12px, 0);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(22px, -14px, 0);
  }
}

@media (max-width: 1160px) {
  .layout,
  .hero__grid,
  .auth-grid,
  .support__grid,
  .split {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .subscription-roster,
  .stats,
  .cards,
  .cards--two,
  .quick-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats--wide,
  .span-7,
  .span-6,
  .span-5 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, var(--container));
    padding: 16px 0 28px;
  }

  .content,
  .sidebar,
  .hero,
  .auth-card,
  .topbar,
  .card,
  .panel,
  .support,
  .boot__panel {
    padding: 18px;
    border-radius: 22px;
  }

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

  .subscription-roster,
  .stats,
  .cards,
  .cards--two,
  .quick-amounts {
    grid-template-columns: 1fr;
  }

  .roster-card__top,
  .tariff-card__head,
  .period-row,
  .kv {
    display: grid;
  }

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

  .actions,
  .inline,
  .pill-grid,
  .hero__pills {
    display: grid;
  }
}
