:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #07090d;
  color: #f7f8fb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: #07090d;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(100, 227, 232, 0.15), transparent 30rem),
    radial-gradient(circle at 8% 82%, rgba(72, 104, 180, 0.12), transparent 28rem),
    linear-gradient(145deg, #07090d 10%, #101521 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(72rem, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

.topbar {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
}

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

.nav a {
  border-radius: 0.7rem;
  padding: 0.65rem 0.85rem;
  color: #c7cdd8;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.nav a:last-child {
  border: 1px solid #394150;
  color: #f7f8fb;
}

.hero {
  display: grid;
  min-height: calc(100vh - 7rem);
  align-content: center;
  padding: clamp(3rem, 9vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #64e3e8;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 6.7rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.lede,
.supporting {
  color: #b8bfcc;
  line-height: 1.65;
}

.lede {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button,
button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  padding: 0.85rem 1.15rem;
  background: #64e3e8;
  color: #061013;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  border-color: #394150;
  background: rgba(20, 25, 35, 0.8);
  color: #f7f8fb;
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.auth-layout,
.workspace-layout {
  display: grid;
  min-height: calc(100vh - 7rem);
  place-items: center;
  padding: 2.5rem 0 4rem;
}

.card {
  width: min(31rem, 100%);
  border: 1px solid #303744;
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 5vw, 2.25rem);
  background: rgba(14, 18, 26, 0.94);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.32);
}

.card.wide {
  width: min(45rem, 100%);
}

.supporting {
  margin: 0.9rem 0 0;
}

form {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: #e5e8ee;
  font-size: 0.9rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid #3d4656;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #111620;
  color: #ffffff;
  font: inherit;
}

input::placeholder {
  color: #727c8c;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.text-link {
  color: #a7eef1;
  font-size: 0.9rem;
  font-weight: 750;
  text-underline-offset: 0.2rem;
}

.notice {
  margin: 1.25rem 0 0;
  border: 1px solid #384554;
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  background: #131b25;
  color: #d8dee8;
  line-height: 1.5;
}

.notice.error {
  border-color: #6a3c43;
  background: #26171b;
  color: #ffd9dd;
}

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

.workspace-panel {
  min-height: 9rem;
  border: 1px solid #303744;
  border-radius: 1rem;
  padding: 1.2rem;
  background: #111620;
}

.workspace-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.workspace-panel p {
  margin: 0.65rem 0 0;
  color: #9fa8b7;
  line-height: 1.55;
}

.workspace-panel form {
  margin-top: 1rem;
}

.player-id-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.player-id-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #303744;
  padding-top: 0.75rem;
}

.player-id-value {
  overflow-wrap: anywhere;
  color: #f7f8fb;
  font-weight: 750;
}

.status {
  flex: 0 0 auto;
  border: 1px solid #435163;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #dbe4ef;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-ready {
  border-color: #2f786d;
  color: #9bf3d8;
}

.status-unconfirmed {
  border-color: #76505a;
  color: #ffd9dd;
}

.empty-state {
  margin-top: 1rem !important;
}

.quiet {
  color: #8d96a5;
  font-size: 0.88rem;
}

@media (max-width: 40rem) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero {
    min-height: calc(100vh - 6rem);
  }

  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Full product preview */
.product-shell {
  width: 100%;
  max-width: 86rem;
  min-height: 100vh;
  min-width: 0;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 3vw, 2.2rem) 3rem;
}

.product-topbar,
.product-main,
.summary-grid,
.product-grid-two,
.progress-grid,
.account-grid,
.linked-player-grid,
.telegram-preview-grid,
.product-card,
.summary-card,
.progress-panel,
.linked-player,
.quick-card,
.recent-card {
  min-width: 0;
  max-width: 100%;
}

.product-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.8rem;
  border-bottom: 1px solid rgba(62, 72, 88, 0.7);
}

.product-nav {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.product-nav a,
.telegram-preview-link {
  border-radius: 0.7rem;
  padding: 0.65rem 0.78rem;
  color: #9da7b6;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.product-nav a.active,
.product-nav a:hover,
.telegram-preview-link:hover {
  background: #151c27;
  color: #ffffff;
}

.telegram-preview-link {
  border: 1px solid #344354;
  color: #baf6f8;
}

.product-main {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.narrow-main {
  width: min(56rem, 100%);
  margin: 0 auto;
}

.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid #2d3949;
  border-radius: 1.4rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background:
    radial-gradient(circle at 86% 15%, rgba(100, 227, 232, 0.2), transparent 20rem),
    linear-gradient(135deg, #111925, #0e131c);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.25);
}

.dashboard-hero h1,
.section-heading h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
}

.dashboard-hero p:last-child,
.section-heading > div > p:last-child {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  color: #aab3c1;
  line-height: 1.6;
}

.product-kicker {
  margin: 0 0 0.65rem;
  color: #65e4e8;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.summary-grid,
.progress-grid,
.account-grid,
.linked-player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card,
.product-card,
.linked-player,
.progress-panel {
  border: 1px solid #2c3543;
  border-radius: 1rem;
  background: rgba(15, 20, 29, 0.92);
}

.summary-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 8.5rem;
  padding: 1.25rem;
}

.summary-card > span:first-child,
.summary-card small {
  color: #8f99a8;
  font-size: 0.78rem;
}

.summary-card strong {
  color: #ffffff;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.product-grid-two,
.telegram-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1rem;
}

.product-card {
  padding: 1.3rem;
}

.product-card h2,
.progress-panel h2,
.section-heading h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

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

.section-heading.compact {
  align-items: flex-start;
}

.section-heading.compact a {
  color: #a7eef1;
  font-size: 0.85rem;
  font-weight: 750;
}

.product-preview-badge,
.product-status,
.deadline {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #445166;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  color: #dce4ef;
  font-size: 0.7rem;
  font-weight: 820;
  white-space: nowrap;
}

.product-preview-badge {
  border-color: #526172;
  background: #171e29;
}

.product-status.success {
  border-color: #2c796b;
  color: #8ff1d3;
}

.product-status.working {
  border-color: #776737;
  color: #ffe29a;
}

.product-status.attention {
  border-color: #75424b;
  color: #ffd2d8;
}

.product-status.ready {
  border-color: #45647d;
  color: #b8ddf7;
}

.activity-row,
.device-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid #2b3441;
  padding: 1rem 0;
}

.activity-row:first-of-type {
  border-top: 0;
}

.activity-row > div:nth-child(2),
.device-row > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.activity-row strong,
.activity-row span,
.quick-actions a,
.progress-item,
.product-card {
  overflow-wrap: anywhere;
}

.activity-row span,
.device-row span {
  color: #8994a3;
  font-size: 0.78rem;
}

.activity-icon {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.7rem;
  background: #172632;
  color: #70e7eb;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.quick-actions a {
  border: 1px solid #344052;
  border-radius: 0.75rem;
  padding: 0.8rem 0.5rem;
  background: #121924;
  color: #eaf0f7;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.progress-panel {
  padding: 1.35rem;
}

.progress-grid {
  margin-top: 1.15rem;
}

.progress-item {
  position: relative;
  display: grid;
  gap: 0.55rem;
  border-left: 3px solid #596374;
  border-radius: 0.55rem;
  padding: 0.85rem 0.95rem;
  background: #111722;
}

.progress-item > span {
  color: #9ca6b5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-item p {
  margin: 0;
  color: #8e98a7;
  font-size: 0.78rem;
  line-height: 1.5;
}

.progress-now {
  border-color: #3dbea7;
}

.progress-building {
  border-color: #d0aa54;
}

.deposit-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.deposit-stepper li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 2px solid #303948;
  padding: 0.75rem 0;
  color: #747f8f;
  font-size: 0.75rem;
  font-weight: 800;
}

.deposit-stepper li.reached {
  border-color: #63e2e7;
  color: #eaf8f9;
}

.deposit-stepper span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #202836;
  font-size: 0.66rem;
}

.deposit-workflow {
  min-height: 23rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.deposit-form,
.deposit-workflow form {
  width: 100%;
  max-width: 34rem;
  margin: 0;
}

select {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid #3d4656;
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #111620;
  color: #ffffff;
  font: inherit;
}

.amount-input {
  position: relative;
}

.amount-input span {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: #7f8998;
  font-size: 0.78rem;
  font-weight: 850;
  transform: translateY(-50%);
}

.amount-input input {
  padding-left: 3.4rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.field-help,
.preview-truth {
  color: #8994a3;
  font-size: 0.78rem;
  line-height: 1.5;
}

.review-card dl,
.payment-instructions dl,
.account-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.review-card dl div,
.payment-instructions dl div,
.account-details div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #2d3643;
  padding: 0.9rem 0;
}

.review-card dt,
.payment-instructions dt,
.account-details dt {
  color: #8d97a6;
}

.review-card dd,
.payment-instructions dd,
.account-details dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  text-align: right;
}

.review-card > p,
.payment-instructions > p {
  color: #9aa4b3;
  line-height: 1.55;
}

.instruction-head,
.status-amount {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.instruction-head h3 {
  margin: 0;
  font-size: 1.6rem;
}

.deadline {
  border-color: #6e6036;
  color: #ffe6a2;
}

.preview-reference {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0;
  border: 1px dashed #465365;
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: #101721;
}

.preview-reference span {
  color: #838e9d;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.status-amount > span:first-child {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 900;
}

.status-timeline {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.status-timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  min-height: 3.7rem;
  color: #727d8c;
}

.status-timeline li > span {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  border: 2px solid #46505f;
  border-radius: 50%;
}

.status-timeline li:not(:last-child) > span::after {
  position: absolute;
  top: 0.85rem;
  left: 0.22rem;
  width: 2px;
  height: 2.8rem;
  background: #303947;
  content: '';
}

.status-timeline li.done > span,
.status-timeline li.current > span {
  border-color: #63e2e7;
  background: #63e2e7;
}

.status-timeline li.current {
  color: #ffffff;
}

.status-timeline li div {
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

.status-timeline small {
  color: #7d8796;
}

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

.linked-player {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  padding: 1.35rem;
}

.linked-player > div {
  display: grid;
  gap: 0.35rem;
}

.linked-player > div span,
.linked-player p {
  color: #8e98a7;
  font-size: 0.8rem;
}

.linked-player p {
  grid-column: 1 / -1;
  margin: 0;
}

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

.account-grid .product-card > p {
  color: #9aa4b3;
  line-height: 1.55;
}

.telegram-preview-main {
  width: min(68rem, 100%);
  margin: 0 auto;
}

.phone-frame {
  width: min(25rem, 100%);
  min-height: 40rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #3a4656;
  border-radius: 2rem;
  background: #0b1017;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.35);
}

.phone-frame > header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #2c3542;
  padding: 1rem 1.15rem;
  background: #121923;
}

.phone-frame > header > div:nth-child(2) {
  display: grid;
  gap: 0.15rem;
}

.phone-frame header span,
.phone-frame footer {
  color: #7f8998;
  font-size: 0.72rem;
}

.telegram-avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: #63e2e7;
  color: #071013;
  font-weight: 950;
}

.chat-body {
  display: grid;
  align-content: end;
  gap: 0.75rem;
  min-height: 33rem;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 10% 15%, rgba(100, 227, 232, 0.07), transparent 16rem), #0b1017;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: 88%;
}

.chat-message > span {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #63e2e7;
  color: #061013;
  font-size: 0.68rem;
  font-weight: 900;
}

.chat-message p {
  margin: 0;
  border-radius: 1rem 1rem 1rem 0.3rem;
  padding: 0.8rem 0.9rem;
  background: #18212d;
  color: #e8edf4;
  font-size: 0.86rem;
  line-height: 1.5;
}

.chat-message.user {
  justify-self: end;
}

.chat-message.user p {
  border-radius: 1rem 1rem 0.3rem;
  background: #17484d;
}

.telegram-buttons {
  display: grid;
  gap: 0.4rem;
  margin-left: 2.1rem;
}

.telegram-buttons a {
  border: 1px solid #315f67;
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: #102a30;
  color: #9df0f3;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.phone-frame footer {
  border-top: 1px solid #2b3440;
  padding: 0.8rem;
  text-align: center;
}

.telegram-preview-grid > aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.telegram-preview-grid .progress-grid {
  grid-template-columns: 1fr;
}

.telegram-back {
  width: 100%;
}

@media (max-width: 80rem) {
  .product-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 64rem) {
  .product-topbar {
    grid-template-columns: auto 1fr;
  }

  .product-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.6rem;
  }

  .telegram-preview-link {
    justify-self: end;
  }

  .summary-grid,
  .progress-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .product-grid-two,
  .telegram-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .product-shell {
    padding-inline: 0.85rem;
  }

  .product-topbar {
    gap: 0.6rem;
  }

  .telegram-preview-link {
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .dashboard-hero,
  .section-heading,
  .instruction-head,
  .status-amount {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero .button,
  .section-heading button {
    width: 100%;
  }

  .linked-player-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

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

  .activity-row > .product-status {
    grid-column: 2;
  }

  .deposit-stepper li {
    display: grid;
    justify-items: start;
    font-size: 0.66rem;
  }

  .phone-frame {
    min-height: 36rem;
    border-radius: 1.3rem;
  }

  .chat-body {
    min-height: 29rem;
  }
}
