:root {
  color-scheme: dark;
  --bg: #070b11;
  --surface: rgba(14, 22, 32, .82);
  --surface-strong: #121c29;
  --surface-soft: rgba(255, 255, 255, .045);
  --line: rgba(198, 213, 232, .14);
  --line-strong: rgba(198, 213, 232, .22);
  --text: #f4f8fc;
  --muted: #9cabbc;
  --soft: #c6d3e1;
  --green: #31d889;
  --cyan: #28b9ff;
  --yellow: #f4bf54;
  --red: #ff697a;
  --shadow: 0 26px 90px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -10%, rgba(40, 185, 255, .18), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(49, 216, 137, .14), transparent 28rem),
    linear-gradient(180deg, #0c131c 0%, var(--bg) 68%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a {
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.auth-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-layout {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 18px;
}

.glass-panel,
.auth-panel,
.auth-summary,
.panel,
.support-band,
.stat-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 44px);
}

.brand-lockup,
.brand,
.top-actions,
.panel-head,
.action-row,
.hero-actions,
.nav-pill,
.btn,
.command-item,
.qr-card span,
.copy-field {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 16px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(49, 216, 137, .96), rgba(40, 185, 255, .92)),
    #0d1721;
  color: #041018;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(40, 185, 255, .18);
}

.brand-logo-inline {
  overflow: hidden;
}

.brand-logo-inline svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: none;
}

.animated-mark {
  animation: markFloat 4.8s ease-in-out infinite;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #8cf2ca;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.16;
  letter-spacing: 0;
}

.lead,
.hero p,
.connect-copy p,
.support-band p,
.empty-state p {
  color: var(--soft);
  font-size: 17px;
}

.lead {
  margin-bottom: 28px;
}

.login-widget {
  min-height: 48px;
  margin: 8px 0 22px;
}

.auth-actions {
  padding-top: 8px;
}

.text-link {
  color: #9fe8ff;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  color: #ffffff;
}

.auth-summary {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 54px);
}

.summary-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-summary h2 {
  max-width: 500px;
  margin-top: 110px;
  font-size: clamp(38px, 6vw, 72px);
}

.signal-orbit {
  position: absolute;
  inset: 42px 42px auto auto;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  animation: slowSpin 24s linear infinite;
}

.signal-orbit span {
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(40, 185, 255, .24);
  border-radius: 50%;
}

.signal-orbit span:nth-child(2) {
  inset: 35%;
  background: rgba(49, 216, 137, .14);
}

.signal-orbit span:nth-child(3) {
  inset: 48%;
  background: var(--green);
  box-shadow: 0 0 34px rgba(49, 216, 137, .66);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--soft);
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(49, 216, 137, .6);
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  border-radius: 22px;
  padding: 12px;
}

.brand {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.top-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill {
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: center;
  padding: 66px 0 28px;
}

.product-hero {
  min-height: 420px;
}

.hero p {
  max-width: 700px;
  margin-bottom: 0;
}

.hello-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.hello-row h1 {
  margin-bottom: 0;
}

.tg-avatar-frame {
  position: relative;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.tg-avatar {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  object-fit: cover;
  background: #101822;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.tg-avatar.photo {
  position: absolute;
  inset: 0;
}

.tg-avatar.fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #061018;
  font-size: 34px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.network-visual {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(198, 213, 232, .12);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(49, 216, 137, .2), transparent 9rem),
    linear-gradient(140deg, rgba(40, 185, 255, .12), rgba(244, 191, 84, .08));
}

.network-visual::before,
.network-visual::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  animation: slowSpin 20s linear infinite;
}

.network-visual::after {
  inset: 86px;
  animation-direction: reverse;
}

.shield-core {
  position: absolute;
  inset: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #061018;
  box-shadow: 0 20px 56px rgba(40, 185, 255, .26);
  transform: translate(-50%, -50%);
}

.shield-core svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.7;
}

.pulse-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .08), 0 0 26px rgba(255, 255, 255, .7);
  animation: pulse 2.4s ease-in-out infinite;
}

.dot-a {
  top: 70px;
  left: 76px;
  background: var(--green);
}

.dot-b {
  right: 62px;
  top: 112px;
  background: var(--cyan);
  animation-delay: .45s;
}

.dot-c {
  bottom: 78px;
  left: 134px;
  background: var(--yellow);
  animation-delay: .9s;
}

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

.stat-card,
.panel,
.support-band {
  border-radius: 22px;
  padding: clamp(18px, 2.5vw, 26px);
}

.stat-card {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  transition: transform .18s ease, border-color .18s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.primary-stat {
  background:
    linear-gradient(135deg, rgba(49, 216, 137, .18), rgba(40, 185, 255, .09)),
    var(--surface);
}

.stat-icon,
.empty-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: #9fe8ff;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.stat-card small {
  color: var(--muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 18px;
}

.panel-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.subscription-panel h2 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 4vw, 44px);
}

.status-badge {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  font-weight: 850;
}

.status-badge.ok {
  background: rgba(49, 216, 137, .14);
  color: #9df4c8;
}

.status-badge.bad {
  background: rgba(255, 105, 122, .14);
  color: #ffb4be;
}

.status-badge.warn {
  background: rgba(244, 191, 84, .14);
  color: #ffe2a4;
}

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

.meta-list div,
.progress-block,
.command-item,
.link-card,
.qr-card {
  border: 1px solid rgba(198, 213, 232, .12);
  border-radius: 16px;
  background: rgba(7, 11, 17, .36);
}

.meta-list div {
  padding: 14px;
}

dt,
.progress-label,
.link-card label,
.qr-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 850;
}

.progress-block {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.progress-label b {
  color: var(--text);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}

.progress-track span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  animation: progressIn .8s ease-out both;
}

.progress-block small {
  color: var(--muted);
}

.command-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-list form,
.stack-actions form,
.trial-panel form,
.referral-panel form {
  margin: 0;
}

.command-item {
  width: 100%;
  gap: 12px;
  border-color: var(--line);
  padding: 13px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

button.command-item {
  border-style: solid;
}

.command-item:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, .065);
}

.command-item svg {
  color: #9fe8ff;
}

.command-item b,
.command-item small {
  display: block;
}

.command-item small {
  color: var(--muted);
  font-size: 13px;
}

.connect-panel {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr);
  gap: 22px;
  margin-top: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--soft);
  font-weight: 850;
}

.tab.active {
  border-color: rgba(49, 216, 137, .45);
  background: rgba(49, 216, 137, .15);
  color: #baffdd;
}

.instructions {
  min-height: 138px;
}

.instruction-list {
  display: none;
  margin: 0;
  color: var(--soft);
}

.instruction-list.active {
  display: grid;
  gap: 14px;
  animation: fadeUp .22s ease both;
}

.instruction-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.instruction-list li::marker {
  color: var(--green);
  font-weight: 900;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(49, 216, 137, .28);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(49, 216, 137, .1);
  color: #baffdd;
  font-weight: 850;
  text-decoration: none;
}

.app-link:hover {
  border-color: rgba(40, 185, 255, .42);
  background: rgba(40, 185, 255, .12);
}

.connect-actions {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 14px;
}

.qr-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  padding: 16px;
  text-align: center;
}

.qr-card img {
  width: 138px;
  height: 138px;
  border-radius: 16px;
  background: #ffffff;
  padding: 8px;
}

.qr-card span {
  justify-content: center;
  gap: 7px;
}

.link-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
}

.copy-field {
  gap: 8px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #09111a;
  color: var(--soft);
}

select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: #09111a;
  color: var(--soft);
}

.icon-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: #9fe8ff;
}

.action-row {
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  gap: 8px;
  min-height: 50px;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  padding: 0 18px;
  color: #041018;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.btn.secondary,
.btn.dark {
  border: 1px solid var(--line);
  background: #172231;
  color: var(--text);
}

.notice {
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 750;
}

.notice.danger {
  border: 1px solid rgba(255, 105, 122, .3);
  background: rgba(255, 105, 122, .1);
  color: #ffc1c8;
}

.notice.success {
  margin: 18px 0 0;
  border: 1px solid rgba(49, 216, 137, .3);
  background: rgba(49, 216, 137, .1);
  color: #baffdd;
}

.bot-workspace {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-title h2 {
  margin-bottom: 0;
}

.commerce-grid,
.records-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 18px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.mini-link {
  color: #9fe8ff;
  font-weight: 850;
  text-decoration: none;
}

.mini-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .05);
  color: #9fe8ff;
  font-weight: 850;
}

.device-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
}

.payment-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 42px 54px 42px;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 11, 17, .38);
}

.stepper button,
.stepper output {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.stepper output {
  border-inline: 1px solid var(--line);
}

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

.plan-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(7, 11, 17, .36);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

form.plan-card {
  margin: 0;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 216, 137, .42);
  background: rgba(49, 216, 137, .09);
}

.plan-card span,
.plan-card small,
.hint,
.empty-copy,
.trial-panel p,
.referral-panel p {
  color: var(--muted);
}

.plan-card strong {
  font-size: 27px;
}

.hint {
  margin: 14px 0 0;
  font-size: 13px;
}

.trial-panel {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.devices-upgrade-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.table-list,
.subscription-list {
  display: grid;
  gap: 10px;
}

.table-row,
.subscription-item {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(7, 11, 17, .36);
}

.table-row {
  grid-template-columns: 72px 1fr 1fr 148px;
}

.table-row span,
.table-row small,
.table-row em,
.subscription-item span {
  color: var(--muted);
  font-style: normal;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-actions form {
  margin: 0;
}

.referral-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.bonus-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(244, 191, 84, .28);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(244, 191, 84, .1);
  color: #ffe2a4;
  font-weight: 900;
}

.subscription-item {
  grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr) auto;
}

.support-form {
  display: flex;
  width: min(560px, 100%);
  gap: 10px;
}

.empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.empty-state p {
  max-width: 680px;
  margin-bottom: 0;
}

.stack-actions {
  display: grid;
  gap: 10px;
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(244, 191, 84, .15), rgba(40, 185, 255, .08)),
    var(--surface);
}

.support-band h2 {
  margin-bottom: 4px;
}

.support-band p {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  min-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(11, 18, 27, .94);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  animation: fadeUp .5s ease both;
}

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

@keyframes markFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: .82;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes progressIn {
  from {
    width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .auth-layout,
  .hero,
  .dashboard-grid,
  .connect-panel,
  .commerce-grid,
  .records-grid,
  .devices-upgrade-panel {
    grid-template-columns: 1fr;
  }

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

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

  .auth-summary {
    min-height: 420px;
  }

  .auth-panel {
    min-height: auto;
  }

  .hero {
    padding-top: 42px;
  }

  .network-visual {
    min-height: 270px;
  }
}

@media (max-width: 680px) {
  .auth-screen,
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .empty-state,
  .support-band,
  .panel-head,
  .section-title,
  .devices-upgrade-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar,
  .support-band {
    display: flex;
  }

  .top-actions,
  .hero-actions,
  .action-row {
    width: 100%;
  }

  .nav-pill,
  .btn {
    width: 100%;
  }

  .quick-grid,
  .meta-list,
  .connect-actions,
  .empty-state,
  .plan-grid,
  .table-row,
  .subscription-item {
    grid-template-columns: 1fr;
  }

  .support-form {
    flex-direction: column;
  }

  .payment-picker,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-summary h2 {
    margin-top: 72px;
  }

  .signal-orbit {
    width: 210px;
    right: 18px;
  }

  .product-hero {
    min-height: 0;
  }

  .network-visual {
    min-height: 230px;
    border-radius: 24px;
  }

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

  h1 {
    font-size: clamp(38px, 14vw, 58px);
  }
}

/* Signet production dashboard */
.dashboard-page {
  background:
    radial-gradient(circle at 6% 48%, rgba(143, 54, 255, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 10% 56%, rgba(40, 185, 255, .28) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 42%, rgba(206, 38, 255, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 95% 58%, rgba(40, 185, 255, .18) 0 2px, transparent 3px),
    radial-gradient(circle at 50% -18%, rgba(40, 185, 255, .14), transparent 34rem),
    linear-gradient(180deg, #070a10 0%, #010203 100%);
}

.dashboard-page::before {
  opacity: .18;
  background-image:
    radial-gradient(circle, rgba(99, 208, 255, .95) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(199, 46, 255, .7) 0 1px, transparent 1.5px);
  background-position: 0 0, 30px 42px;
  background-size: 130px 118px, 180px 160px;
  mask-image: radial-gradient(ellipse at center, black 0 38%, transparent 74%);
}

.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(198, 213, 232, .1);
  padding: 6px max(18px, calc((100vw - 1240px) / 2));
  background: rgba(10, 16, 28, .86);
  backdrop-filter: blur(18px);
}

.dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.dash-brand .brand-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
}

.dash-nav,
.dash-actions,
.inline-actions,
.payment-row,
.mega-foot,
.tile-title {
  display: flex;
  align-items: center;
}

.dash-nav {
  gap: 8px;
  min-width: 0;
}

.dash-nav-item,
.dash-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 213, 232, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: #9fb1c7;
  transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease;
}

.dash-nav-item:hover,
.dash-icon:hover,
.dash-nav-item.active {
  border-color: rgba(91, 199, 255, .28);
  background: rgba(91, 199, 255, .12);
  color: #dff6ff;
  transform: translateY(-1px);
}

.dash-actions {
  gap: 10px;
  justify-content: end;
}

.lang-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(198, 213, 232, .12);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-weight: 900;
}

.dash-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 18px 48px;
}

.dash-shell .notice {
  margin: 18px 0;
}

.dash-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  margin: 0 0 36px;
  padding-top: 4px;
}

.dash-hero .tg-avatar-frame {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.dash-hero .tg-avatar {
  border-radius: 14px;
}

.dash-hero .tg-avatar.fallback {
  font-size: 25px;
}

.dash-hero h1 {
  max-width: none;
  margin: 0 0 2px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: .96;
}

.dash-hero p {
  margin: 0;
  color: #9eaec4;
  font-size: 20px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(91, 199, 255, .38);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(40, 185, 255, .12);
  color: #62d2ff;
  font-size: 13px;
  font-weight: 950;
  vertical-align: middle;
}

.mega-card,
.dash-card,
.metric-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 213, 232, .12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)),
    rgba(14, 15, 18, .86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.mega-card {
  min-height: 525px;
  border-radius: 28px;
  padding: 36px;
}

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

.mega-head h2 {
  margin: 14px 0 0;
  font-size: 24px;
}

.status-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: #5bc7ff;
  box-shadow: 0 0 18px rgba(91, 199, 255, .9);
}

.caps {
  color: #5bc7ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.traffic-total {
  color: #5bc7ff;
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
}

.mega-traffic-line {
  height: 16px;
  overflow: hidden;
  margin: 38px 0 30px;
  border-radius: 999px;
  background: rgba(120, 145, 165, .22);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .5);
}

.mega-traffic-line span {
  display: block;
  height: 100%;
  min-width: 18px;
  border-radius: inherit;
  background: linear-gradient(90deg, #5bc7ff, rgba(91, 199, 255, .48));
  box-shadow: 0 0 24px rgba(91, 199, 255, .4);
}

.device-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 108px;
  border-radius: 18px;
  padding: 20px;
  background: rgba(18, 23, 36, .76);
}

.device-banner b,
.device-banner span,
.device-banner small {
  display: block;
}

.device-banner span {
  color: #8f9daf;
}

.device-banner small {
  margin-top: 4px;
  color: #b37f27;
}

.soft-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(91, 199, 255, .12);
  border-radius: 14px;
  background: rgba(91, 199, 255, .08);
  color: #5bc7ff;
}

.mega-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr);
  gap: 14px;
  margin-top: 14px;
}

.mega-stats article {
  min-height: 112px;
  border: 1px solid rgba(198, 213, 232, .11);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .035);
}

.mega-stats article:first-child {
  background: linear-gradient(135deg, rgba(49, 216, 137, .08), rgba(40, 185, 255, .035));
}

.mega-stats span,
.info-grid span,
.tile-title,
.pricing-card span {
  color: #8793a5;
  font-size: 13px;
  font-weight: 850;
}

.mega-stats b {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.mega-stats small {
  color: #8793a5;
}

.mega-foot {
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(198, 213, 232, .48);
  font-weight: 850;
  text-decoration: none;
}

.ghost-action:hover {
  color: #dff6ff;
}

.tiles-grid,
.work-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.tiles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.metric-tile {
  min-height: 150px;
  border-radius: 22px;
  padding: 26px;
}

.tile-title {
  gap: 10px;
  margin-bottom: 18px;
}

.metric-tile strong {
  display: block;
  color: #5bc7ff;
  font-size: 38px;
  line-height: 1;
}

.metric-tile small {
  display: block;
  margin-top: 10px;
  color: #6fe1ff;
}

.work-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, .48fr);
  margin-top: 30px;
}

.dash-card {
  border-radius: 22px;
  padding: 26px;
}

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

.card-head h2,
.dash-card h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.dash-card p {
  color: #a9b6c8;
}

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

.info-grid div {
  min-height: 80px;
  border: 1px solid rgba(198, 213, 232, .11);
  border-radius: 15px;
  padding: 14px;
  background: rgba(8, 12, 18, .48);
}

.info-grid b {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.inline-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.inline-actions form {
  margin: 0;
}

.stack-form {
  display: grid;
  gap: 10px;
}

.payment-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-row label {
  color: #9eabc0;
  font-weight: 850;
}

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

.pricing-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(198, 213, 232, .12);
  border-radius: 18px;
  padding: 18px;
  background: rgba(8, 12, 18, .5);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.pricing-card:hover {
  border-color: rgba(91, 199, 255, .34);
  background: rgba(91, 199, 255, .07);
  transform: translateY(-2px);
}

.pricing-card strong {
  color: #f5f9ff;
  font-size: 30px;
}

.pricing-card small {
  color: #91a0b4;
}

.compact-card {
  align-content: start;
}

.qr-card.clean {
  border: 0;
  background: transparent;
  padding: 0;
}

.qr-card.clean img {
  width: 190px;
  height: 190px;
  border-radius: 22px;
}

.referral-wide {
  margin-top: 30px;
}

@media (max-width: 1060px) {
  .dash-topbar {
    grid-template-columns: auto auto;
  }

  .dash-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .work-grid,
  .mega-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .dash-topbar {
    gap: 10px;
    padding-inline: 12px;
  }

  .dash-actions {
    gap: 6px;
  }

  .lang-pill {
    display: none;
  }

  .dash-shell {
    padding-inline: 12px;
  }

  .dash-hero {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .dash-hero h1 {
    font-size: 36px;
  }

  .dash-hero p {
    font-size: 16px;
  }

  .mega-card,
  .dash-card,
  .metric-tile {
    border-radius: 20px;
    padding: 18px;
  }

  .mega-card {
    min-height: auto;
  }

  .tiles-grid,
  .pricing-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card-head,
  .mega-head,
  .mega-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .inline-actions form,
  .inline-actions a,
  .payment-row select {
    width: 100%;
  }

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