:root {
  --bg: #0b0d10;
  --panel: rgba(19, 24, 29, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f5f2;
  --muted: #9da7a2;
  --green: #80ff72;
  --cyan: #42d9c8;
  --amber: #ffbc59;
  --red: #ff6464;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 20% 10%, rgba(128, 255, 114, 0.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 188, 89, 0.11), transparent 28%),
    var(--bg);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(20px);
}

.brand,
.account-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(128, 255, 114, 0.4);
  border-radius: 8px;
  color: #08100a;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 28px rgba(128, 255, 114, 0.22);
}

.account-actions {
  justify-self: end;
}

.session-name {
  max-width: 160px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs,
.auth-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tab,
.auth-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active,
.auth-switch button.is-active {
  color: #07110a;
  background: var(--green);
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.view {
  display: none;
}

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

.hero,
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  min-height: calc(100vh - 136px);
  gap: clamp(28px, 6vw, 76px);
  padding-bottom: 34px;
}

.hero-copy,
.auth-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
}

.lead {
  max-width: 560px;
  color: #c5cec8;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button,
.buy-button {
  color: #07110a;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.client-preview {
  position: relative;
  min-height: 420px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(128, 255, 114, 0.18);
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(18, 25, 24, 0.96), rgba(12, 14, 18, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.client-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.preview-top,
.preview-grid {
  position: relative;
  z-index: 1;
}

.preview-top {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.preview-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.preview-top span:nth-child(2) {
  background: var(--amber);
}

.preview-top span:nth-child(3) {
  background: var(--green);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.preview-status,
.preview-meter,
.preview-list,
.preview-panel {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.preview-status {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.preview-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.preview-status strong {
  color: var(--green);
  font-size: 34px;
}

.preview-meter {
  display: grid;
  place-items: center;
}

.preview-meter span {
  width: 92px;
  height: 92px;
  border: 12px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--cyan);
  border-right-color: var(--green);
  border-radius: 50%;
}

.preview-list,
.preview-panel {
  padding: 16px;
}

.preview-list i {
  display: block;
  height: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(128, 255, 114, 0.65), rgba(255, 255, 255, 0.08));
}

.preview-list i:nth-child(2) {
  width: 78%;
  background: linear-gradient(90deg, rgba(66, 217, 200, 0.58), rgba(255, 255, 255, 0.08));
}

.preview-list i:nth-child(3) {
  width: 62%;
}

.preview-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.preview-panel b {
  border-radius: 8px;
  background: rgba(255, 188, 89, 0.18);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-band div {
  padding: 20px;
  background: rgba(15, 18, 22, 0.88);
}

.stats-band span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 26px;
  font-weight: 900;
}

.stats-band p {
  margin: 0;
  color: var(--muted);
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.plan-card,
.profile-card,
.settings-panel,
.orders-table,
.checkout-box,
.auth-card,
.locked-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.plan-card,
.auth-card,
.locked-panel {
  padding: 22px;
}

.plan-card.is-featured {
  border-color: rgba(128, 255, 114, 0.48);
  background: linear-gradient(180deg, rgba(128, 255, 114, 0.1), rgba(19, 24, 29, 0.9));
}

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

.plan-head span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #06100a;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.price {
  margin: 18px 0;
  color: var(--green);
  font-size: 38px;
  font-weight: 900;
}

ul {
  display: grid;
  gap: 10px;
  min-height: 104px;
  margin: 0 0 20px;
  padding: 0;
  color: #c8d0cb;
  list-style: none;
}

li::before {
  content: "+";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.buy-button {
  width: 100%;
}

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

.auth-switch {
  width: 100%;
}

.auth-switch button {
  flex: 1;
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.is-active {
  display: grid;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 60px);
}

.profile-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.avatar {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 8px;
  color: #08100a;
  background: linear-gradient(135deg, var(--green), var(--amber));
  font-size: 28px;
  font-weight: 900;
}

.profile-card p,
.locked-panel p {
  margin: 0;
  color: var(--muted);
}

.locked-panel {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.profile-meta {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.profile-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.settings-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  outline: 0;
}

input:focus {
  border-color: rgba(128, 255, 114, 0.55);
  box-shadow: 0 0 0 4px rgba(128, 255, 114, 0.08);
}

.orders-table {
  overflow: hidden;
}

.order-row,
.empty-orders {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 1fr;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row span {
  color: var(--muted);
  font-size: 13px;
}

.order-row strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.empty-orders {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.checkout {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.checkout::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.checkout-box {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.checkout-head h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.checkout-summary div,
.sbp-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.checkout-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.sbp-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 16px;
}

.sbp-box canvas {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #ffffff;
}

.sbp-box p {
  color: var(--muted);
  line-height: 1.5;
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  color: var(--green);
  background: rgba(128, 255, 114, 0.08);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(128, 255, 114, 0.34);
  border-radius: 8px;
  color: #07110a;
  background: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .tabs,
  .account-actions {
    width: 100%;
    justify-self: stretch;
  }

  .account-actions {
    justify-content: space-between;
  }

  .tab {
    flex: 1;
    min-width: 0;
  }

  .hero,
  .auth-layout,
  .profile-layout,
  .plans,
  .stats-band {
    grid-template-columns: 1fr;
  }

  .hero,
  .auth-layout {
    min-height: auto;
  }

  .client-preview {
    min-height: 360px;
  }

  .order-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

  .topbar {
    padding: 12px 10px;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .preview-grid,
  .checkout-summary,
  .sbp-box,
  .order-row {
    grid-template-columns: 1fr;
  }

  .sbp-box canvas {
    margin: 0 auto;
  }

  .profile-meta div {
    align-items: flex-start;
    flex-direction: column;
  }

  dd {
    text-align: left;
  }
}
