@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(67, 240, 182, 0.2), transparent 25rem),
    radial-gradient(circle at 86% 8%, rgba(255, 209, 102, 0.2), transparent 24rem),
    radial-gradient(circle at 78% 70%, rgba(248, 113, 113, 0.11), transparent 26rem),
    linear-gradient(145deg, #071321 0%, #10283a 45%, #152131 100%);
  color: #eef6ff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.registration-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(18px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 45%, rgba(67, 240, 182, 0.08), transparent 18rem),
    rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(3px);
}

.post-tour-screen {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(67, 240, 182, 0.1), transparent 18rem),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(3px);
}

.post-tour-card {
  width: min(520px, 100%);
  border: 1px solid rgba(67, 240, 182, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.16), transparent 14rem),
    linear-gradient(180deg, rgba(17, 31, 52, 0.98), rgba(8, 17, 31, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
  padding: 24px;
}

.post-tour-card > span {
  color: #43f0b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-tour-card h2 {
  margin: 10px 0;
  color: white;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
}

.post-tour-card p {
  margin: 0;
  color: #b9d3ef;
  line-height: 1.55;
}

.post-tour-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.post-tour-card button {
  min-height: 46px;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 900;
}

.post-tour-primary {
  border: 1px solid rgba(67, 240, 182, 0.46);
  background: rgba(67, 240, 182, 0.16);
  color: #b7ffe8;
}

.post-tour-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
}

.registration-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(67, 240, 182, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.16), transparent 14rem),
    radial-gradient(circle at 0% 100%, rgba(255, 209, 102, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(17, 31, 52, 0.98), rgba(8, 17, 31, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
  padding: 24px;
}

body.auth-modal-active .feedback-widget {
  display: none;
}

.registration-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  padding: 0 !important;
  font-size: 20px;
  line-height: 1;
}

.registration-card > span {
  color: #43f0b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.registration-card h1 {
  margin: 10px 0;
  color: white;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
}

.registration-card p {
  margin: 0 0 16px;
  color: #b9d3ef;
  line-height: 1.55;
}

.registration-card label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.registration-card small {
  color: #93c5fd;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.registration-card input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  color: white;
  outline: none;
  min-height: 48px;
  padding: 0 14px;
}

.registration-card input:focus {
  border-color: rgba(67, 240, 182, 0.72);
  box-shadow: 0 0 0 3px rgba(67, 240, 182, 0.12);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 52px;
}

.password-visibility-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 34px;
  border: 1px solid rgba(67, 240, 182, 0.28);
  border-radius: 10px;
  background: rgba(67, 240, 182, 0.08);
  color: #c8fff0;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}

.password-visibility-toggle:hover {
  border-color: rgba(67, 240, 182, 0.7);
  background: rgba(67, 240, 182, 0.16);
}

.registration-card em {
  display: block;
  margin-top: 12px;
  color: #fecaca;
  font-style: normal;
  font-size: 13px;
}

.registration-value,
.registration-risk {
  margin-top: 12px;
  border: 1px solid rgba(67, 240, 182, 0.18);
  border-radius: 12px;
  background: rgba(67, 240, 182, 0.07);
  padding: 11px;
}

.registration-risk {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.07);
}

.registration-value b,
.registration-risk b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.registration-value span,
.registration-risk span {
  display: block;
  margin-top: 4px;
  color: #b9d3ef;
  font-size: 12px;
  line-height: 1.45;
}

.registration-login-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
  padding: 12px;
}

.registration-login-switch b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.registration-login-switch span {
  display: block;
  margin-top: 4px;
  color: #9fb7d2;
  font-size: 12px;
  line-height: 1.4;
}

.registration-login-switch button {
  min-width: 96px;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 900;
}

.registration-submit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid rgba(67, 240, 182, 0.46);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(67, 240, 182, 0.24), rgba(56, 200, 255, 0.18));
  color: #d8fff1;
  font-weight: 900;
  box-shadow: 0 -12px 28px rgba(8, 17, 31, 0.62);
}

.registration-card button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.registration-note {
  margin: 12px 0 0 !important;
  color: #8fb3d6 !important;
  font-size: 12px;
}

.personal-data-warning {
  border-color: rgba(56, 200, 255, 0.22);
  background: rgba(56, 200, 255, 0.07);
}

.legal-inline-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px !important;
}

.legal-inline-links a,
.registration-note a {
  color: #9fe8ff;
  font-weight: 800;
  text-decoration: none;
}

.legal-inline-links a:hover,
.registration-note a:hover {
  color: #dff7ff;
  text-decoration: underline;
}

.telegram-offer-screen {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(67, 240, 182, 0.1), transparent 18rem),
    rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(3px);
}

.telegram-offer-card {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(67, 240, 182, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.16), transparent 14rem),
    radial-gradient(circle at 0% 100%, rgba(255, 209, 102, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(17, 31, 52, 0.98), rgba(8, 17, 31, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.58);
  padding: 24px;
}

.telegram-offer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.telegram-offer-card > span {
  color: #43f0b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.telegram-offer-card h2 {
  margin: 10px 0;
  color: white;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
}

.telegram-offer-card p {
  margin: 0;
  color: #b9d3ef;
  line-height: 1.55;
}

.telegram-offer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.telegram-offer-list span,
.telegram-risk {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.52);
  padding: 12px;
}

.telegram-offer-list b,
.telegram-risk b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.telegram-offer-list small,
.telegram-risk small {
  display: block;
  margin-top: 5px;
  color: #9fbce0;
  font-size: 12px;
  line-height: 1.4;
}

.telegram-risk {
  margin-top: 12px;
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.08);
}

.telegram-offer-error {
  display: block;
  margin-top: 10px;
  color: #fecaca;
  font-style: normal;
  font-size: 13px;
}

.telegram-offer-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.telegram-offer-actions button {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 900;
}

.telegram-primary {
  border: 1px solid rgba(67, 240, 182, 0.46);
  background: rgba(67, 240, 182, 0.16);
  color: #b7ffe8;
}

.telegram-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
}

.bya-marketing-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(2, 6, 23, 0.82);
  padding: 22px;
}

.bya-marketing-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(67, 240, 182, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 27, 45, 0.98), rgba(6, 17, 31, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.bya-marketing-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.bya-marketing-card > span {
  display: inline-flex;
  border: 1px solid rgba(67, 240, 182, 0.26);
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.08);
  color: #a7f3d0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bya-marketing-card h2 {
  margin: 14px 48px 8px 0;
  color: white;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.bya-marketing-card > p {
  max-width: 820px;
  margin: 0 0 16px;
  color: #bdd3e9;
  line-height: 1.55;
}

.bya-marketing-current,
.bya-marketing-media,
.bya-marketing-grid {
  display: grid;
  gap: 12px;
}

.bya-marketing-current {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.bya-marketing-current p,
.bya-marketing-grid article,
.bya-tariff-table,
.bya-qualification-section,
.bya-level-strip span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.58);
}

.bya-marketing-current p {
  margin: 0;
  padding: 12px;
}

.bya-marketing-current small,
.bya-tariff-table small {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bya-marketing-current b {
  display: block;
  margin-top: 4px;
  color: #43f0b6;
  font-size: 18px;
}

.bya-marketing-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.bya-marketing-media figure {
  margin: 0;
}

.bya-marketing-media img {
  display: block;
  width: 100%;
  border: 1px solid rgba(67, 240, 182, 0.18);
  border-radius: 12px;
  background: #071321;
}

.bya-marketing-media figcaption {
  margin-top: 8px;
  color: #a8c7e8;
  font-size: 13px;
  line-height: 1.4;
}

.bya-marketing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.bya-marketing-grid article,
.bya-tariff-table {
  padding: 14px;
}

.bya-marketing-grid h3,
.bya-tariff-table h3,
.bya-qualification-section h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 18px;
}

.bya-marketing-grid p,
.bya-qualification-section > p {
  margin: 8px 0 0;
  color: #bdd3e9;
  line-height: 1.5;
}

.bya-qualification-section {
  margin-top: 16px;
  padding: 14px;
}

.bya-qualification-section > p {
  margin: -2px 0 12px;
  font-size: 13px;
}

.bya-tariff-table > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.bya-tariff-table p {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.bya-tariff-table p.active {
  border-color: rgba(67, 240, 182, 0.62);
  background: rgba(67, 240, 182, 0.12);
  box-shadow: 0 0 24px rgba(67, 240, 182, 0.14);
}

.bya-tariff-table span,
.bya-tariff-table b,
.bya-tariff-table small {
  display: block;
}

.bya-tariff-table span {
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}

.bya-tariff-table b {
  margin-top: 8px;
  color: #43f0b6;
  font-size: 17px;
}

.bya-tariff-table small {
  margin-top: 3px;
  color: #94a3b8;
}

.bya-level-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.bya-level-strip span {
  padding: 9px;
}

.bya-level-strip b,
.bya-level-strip small {
  display: block;
}

.bya-level-strip b {
  color: white;
  font-size: 12px;
}

.bya-level-strip small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.3;
}

.partner-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 18px;
}

.partner-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 88%);
}

.partner-shell::after {
  content: "";
  position: fixed;
  inset: auto -12vw -24vh -12vw;
  z-index: 0;
  height: 45vh;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(67, 240, 182, 0.36) 8% 11%, transparent 11% 22%, rgba(255, 209, 102, 0.38) 22% 25%, transparent 25% 36%, rgba(56, 200, 255, 0.34) 36% 39%, transparent 39% 50%, rgba(248, 113, 113, 0.28) 50% 53%, transparent 53% 64%, rgba(167, 139, 250, 0.28) 64% 67%, transparent 67% 78%, rgba(67, 240, 182, 0.34) 78% 81%, transparent 81% 100%);
  opacity: 0.4;
  transform: rotate(-8deg);
  filter: blur(0.2px);
}

.partner-panel {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
}

.board-illustration {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.market-chart,
.market-candle,
.bya-token,
.money-particle {
  position: absolute;
  display: grid;
  place-items: center;
}

.board-orbit {
  left: 50%;
  top: 50%;
  width: min(1180px, 92vw);
  aspect-ratio: 1.75;
  border: 1px solid rgba(67, 240, 182, 0.16);
  border-radius: 46%;
  background:
    conic-gradient(from 140deg, transparent 0 8%, rgba(67, 240, 182, 0.18) 8% 10%, transparent 10% 22%, rgba(255, 209, 102, 0.2) 22% 24%, transparent 24% 40%, rgba(56, 200, 255, 0.18) 40% 42%, transparent 42% 58%, rgba(248, 113, 113, 0.16) 58% 60%, transparent 60% 76%, rgba(167, 139, 250, 0.16) 76% 78%, transparent 78% 100%);
  box-shadow:
    inset 0 0 80px rgba(67, 240, 182, 0.04),
    0 0 90px rgba(67, 240, 182, 0.08);
  opacity: 0.78;
  transform: translate(-50%, -43%) rotate(-8deg);
  animation: boardPulse 8s ease-in-out infinite;
}

.board-orbit::before,
.board-orbit::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: inherit;
  border: 18px solid transparent;
  border-top-color: rgba(67, 240, 182, 0.2);
  border-right-color: rgba(255, 209, 102, 0.22);
  border-bottom-color: rgba(56, 200, 255, 0.16);
  filter: blur(0.2px);
}

.board-orbit::after {
  inset: 78px;
  border-width: 1px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.board-path {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(67, 240, 182, 0.74), rgba(255, 209, 102, 0.72), transparent);
  filter: drop-shadow(0 0 16px rgba(67, 240, 182, 0.36));
  opacity: 0.34;
  animation: pathTravel 6s ease-in-out infinite;
}

.board-path-a {
  left: 6vw;
  top: 24vh;
  width: 260px;
  transform: rotate(-12deg);
}

.board-path-b {
  right: 4vw;
  top: 34vh;
  width: 320px;
  transform: rotate(18deg);
  animation-delay: -2s;
}

.board-path-c {
  left: 48vw;
  bottom: 12vh;
  width: 360px;
  transform: rotate(-8deg);
  animation-delay: -4s;
}

.board-token {
  width: 34px;
  height: 46px;
  border-radius: 16px 16px 22px 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, #68ffd0, #22b98d);
  box-shadow:
    inset 0 -8px 12px rgba(4, 47, 46, 0.32),
    0 18px 34px rgba(67, 240, 182, 0.24);
  opacity: 0.82;
}

.board-token::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 52px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(3px);
}

.board-token-a {
  left: 8vw;
  top: 56vh;
  animation: tokenFloatA 10s ease-in-out infinite;
}

.board-token-b {
  right: 12vw;
  top: 18vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.84), transparent 18%),
    linear-gradient(180deg, #ffe28a, #e3a328);
  box-shadow:
    inset 0 -8px 12px rgba(88, 50, 8, 0.28),
    0 18px 34px rgba(255, 209, 102, 0.24);
  animation: tokenFloatB 12s ease-in-out infinite;
}

.board-token-c {
  right: 7vw;
  bottom: 14vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.82), transparent 18%),
    linear-gradient(180deg, #7dd3fc, #2563eb);
  box-shadow:
    inset 0 -8px 12px rgba(15, 23, 42, 0.3),
    0 18px 34px rgba(56, 200, 255, 0.2);
  animation: tokenFloatC 11s ease-in-out infinite;
}

.board-coin {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(255, 232, 173, 0.82);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.64), transparent 23%),
    radial-gradient(circle at 50% 52%, #ffe9a8 0 26%, #ffcf66 27% 54%, #b87920 55% 100%);
  box-shadow: inset 0 0 0 8px rgba(90, 48, 12, 0.14), 0 16px 40px rgba(255, 209, 102, 0.17);
  opacity: 0.78;
  animation: coinDrift 7s ease-in-out infinite;
}

.board-coin::after {
  content: "₽";
  color: rgba(84, 49, 12, 0.82);
  font-size: 24px;
  font-weight: 900;
}

.board-coin-a {
  left: 13%;
  top: 45%;
}

.board-coin-b {
  right: 14%;
  top: 52%;
  width: 48px;
  height: 48px;
  animation-delay: -2.5s;
}

.board-coin-c {
  left: 58%;
  bottom: 8%;
  width: 54px;
  height: 54px;
  animation-delay: -5s;
}

.board-dice {
  left: 4vw;
  top: 16vh;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 30%, #0f172a 0 5px, transparent 6px),
    radial-gradient(circle at 70% 30%, #0f172a 0 5px, transparent 6px),
    radial-gradient(circle at 30% 70%, #0f172a 0 5px, transparent 6px),
    radial-gradient(circle at 70% 70%, #0f172a 0 5px, transparent 6px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(213, 229, 255, 0.62));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 22px 44px rgba(0, 0, 0, 0.24);
  opacity: 0.56;
  transform: rotate(-13deg);
  animation: diceRoll 9s ease-in-out infinite;
}

.market-chart {
  width: min(780px, 58vw);
  height: 220px;
  border-radius: 28px;
  opacity: 0.42;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 62px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 84%, transparent);
}

.market-chart::before,
.market-chart::after {
  content: "";
  position: absolute;
  inset: 42px 16px 52px;
  clip-path: polygon(0 74%, 12% 58%, 22% 66%, 35% 38%, 48% 48%, 62% 22%, 74% 32%, 88% 12%, 100% 24%, 100% 100%, 0 100%);
}

.market-chart::before {
  background: linear-gradient(180deg, rgba(67, 240, 182, 0.3), rgba(67, 240, 182, 0));
}

.market-chart::after {
  height: 6px;
  inset: 82px 16px auto;
  clip-path: polygon(0 70%, 12% 48%, 22% 58%, 35% 20%, 48% 38%, 62% 0, 74% 18%, 88% 0, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(90deg, rgba(67, 240, 182, 0.2), #43f0b6, #ffd166);
  filter: drop-shadow(0 0 18px rgba(67, 240, 182, 0.42));
  animation: chartGlow 4.8s ease-in-out infinite;
}

.market-chart-a {
  left: 4vw;
  top: 19vh;
  transform: rotate(-8deg);
}

.market-chart-b {
  right: -5vw;
  bottom: 12vh;
  transform: rotate(10deg) scale(0.86);
  animation-delay: -2s;
}

.market-candle {
  width: 13px;
  border-radius: 999px;
  background: #43f0b6;
  box-shadow: 0 0 24px rgba(67, 240, 182, 0.34);
  opacity: 0.58;
  animation: candlePulse 3.8s ease-in-out infinite;
}

.market-candle::before,
.market-candle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 28px;
  background: currentColor;
  transform: translateX(-50%);
  opacity: 0.8;
}

.market-candle::before {
  bottom: 100%;
}

.market-candle::after {
  top: 100%;
}

.candle-a {
  left: 11vw;
  top: 53vh;
  height: 62px;
  color: #43f0b6;
}

.candle-b {
  left: 15vw;
  top: 48vh;
  height: 94px;
  color: #ffd166;
  background: #ffd166;
  animation-delay: -0.8s;
}

.candle-c {
  right: 13vw;
  top: 22vh;
  height: 72px;
  color: #38c8ff;
  background: #38c8ff;
  animation-delay: -1.6s;
}

.candle-d {
  right: 8vw;
  bottom: 18vh;
  height: 108px;
  color: #43f0b6;
  animation-delay: -2.4s;
}

.bya-token {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  border: 2px solid rgba(255, 232, 173, 0.86);
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.72), transparent 20%),
    radial-gradient(circle at 50% 52%, #fff1a8 0 20%, #ffd166 21% 48%, #a66b1b 49% 100%);
  box-shadow:
    inset 0 0 0 11px rgba(94, 50, 13, 0.15),
    inset 0 0 0 22px rgba(255, 255, 255, 0.1),
    0 28px 70px rgba(255, 209, 102, 0.22);
  color: rgba(67, 38, 10, 0.9);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 1px rgba(255, 255, 255, 0.38);
  opacity: 0.84;
}

.bya-token::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  border: 1px solid rgba(255, 209, 102, 0.22);
  animation: tokenRing 2.8s ease-in-out infinite;
}

.bya-token-main {
  left: 8vw;
  top: 58vh;
  animation: byaFlight 12s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.bya-token-soft {
  right: 5vw;
  top: 28vh;
  width: 84px;
  height: 84px;
  font-size: 18px;
  opacity: 0.42;
  animation: byaFloat 9s ease-in-out infinite;
}

.money-particle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.12);
  border: 1px solid rgba(67, 240, 182, 0.32);
  color: #c8fff0;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(67, 240, 182, 0.18);
  opacity: 0.58;
  animation: moneyDrift 8s ease-in-out infinite;
}

.money-a {
  left: 5vw;
  top: 35vh;
}

.money-b {
  right: 18vw;
  top: 43vh;
  color: #ffe9ad;
  border-color: rgba(255, 209, 102, 0.32);
  background: rgba(255, 209, 102, 0.11);
  animation-delay: -2.6s;
}

.money-c {
  right: 6vw;
  bottom: 10vh;
  animation-delay: -5.1s;
}

@keyframes boardPulse {
  0%, 100% {
    opacity: 0.54;
    transform: translate(-50%, -43%) rotate(-8deg) scale(0.985);
  }
  50% {
    opacity: 0.86;
    transform: translate(-50%, -43%) rotate(-6deg) scale(1.015);
  }
}

@keyframes pathTravel {
  0%, 100% {
    opacity: 0.18;
    background-position: -120px 0;
  }
  50% {
    opacity: 0.52;
    background-position: 120px 0;
  }
}

@keyframes tokenFloatA {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  45% {
    transform: translate3d(92px, -52px, 0) rotate(9deg);
  }
  70% {
    transform: translate3d(160px, 10px, 0) rotate(2deg);
  }
}

@keyframes tokenFloatB {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  40% {
    transform: translate3d(-110px, 42px, 0) rotate(-10deg);
  }
  75% {
    transform: translate3d(-190px, -12px, 0) rotate(-3deg);
  }
}

@keyframes tokenFloatC {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(10deg);
  }
  48% {
    transform: translate3d(-120px, -36px, 0) rotate(-8deg);
  }
  78% {
    transform: translate3d(-42px, -78px, 0) rotate(4deg);
  }
}

@keyframes coinDrift {
  0%, 100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-16px) rotateY(34deg);
  }
}

@keyframes diceRoll {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-13deg);
  }
  45% {
    transform: translate3d(42px, 18px, 0) rotate(24deg);
  }
  70% {
    transform: translate3d(12px, 44px, 0) rotate(-4deg);
  }
}

@keyframes chartGlow {
  0%, 100% {
    opacity: 0.48;
    transform: translateX(-10px);
  }
  50% {
    opacity: 1;
    transform: translateX(22px);
  }
}

@keyframes candlePulse {
  0%, 100% {
    opacity: 0.42;
    transform: scaleY(0.86);
  }
  50% {
    opacity: 0.78;
    transform: scaleY(1.12);
  }
}

@keyframes byaFlight {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.96);
  }
  36% {
    transform: translate3d(22vw, -20vh, 0) rotate(16deg) scale(1.06);
  }
  68% {
    transform: translate3d(49vw, 2vh, 0) rotate(34deg) scale(0.98);
  }
}

@keyframes byaFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(-36px, 22px, 0) rotate(-8deg);
  }
}

@keyframes tokenRing {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.52;
    transform: scale(1.06);
  }
}

@keyframes moneyDrift {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-24px) rotate(10deg);
  }
}

.partner-hero,
.stat-card,
.controls,
.source-card,
.chart-card {
  border: 1px solid rgba(205, 232, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(18, 36, 58, 0.92), rgba(9, 19, 34, 0.92)),
    rgba(10, 19, 34, 0.86);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.partner-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 18px;
  padding: 20px;
}

.partner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 20%, rgba(67, 240, 182, 0.18), transparent 14rem),
    radial-gradient(circle at 80% 28%, rgba(255, 209, 102, 0.18), transparent 13rem),
    linear-gradient(135deg, rgba(67, 240, 182, 0.1), transparent 38%, rgba(248, 113, 113, 0.08));
}

.partner-hero > * {
  position: relative;
  z-index: 1;
}

.partner-hero p {
  margin: 0;
  color: #43f0b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.partner-hero h1 {
  margin: 6px 0;
  color: white;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 900;
  text-shadow: 0 8px 32px rgba(67, 240, 182, 0.16);
}

.partner-hero span {
  color: #cbd5e1;
  line-height: 1.55;
}

.profile-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid rgba(67, 240, 182, 0.24);
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.08);
  color: #b7ffe8;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.partner-hero button {
  min-height: 44px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 10px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe9ad;
  padding: 0 16px;
  font-weight: 900;
}

.partner-hero .logout-button {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.partner-hero .hero-personal-button {
  border-color: rgba(67, 240, 182, 0.44);
  background: linear-gradient(135deg, rgba(67, 240, 182, 0.2), rgba(56, 200, 255, 0.12));
  color: #d8fff1;
}

.partner-hero button:disabled,
.history-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.history-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.history-toolbar button {
  min-width: 118px;
  min-height: 40px;
  border: 1px solid rgba(67, 240, 182, 0.34);
  border-radius: 10px;
  background: rgba(67, 240, 182, 0.09);
  color: #c8fff0;
  padding: 0 14px;
  font-weight: 900;
}

.history-toolbar .reset-history-button {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe9ad;
}

.mobile-tabs {
  display: none;
}

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(67, 240, 182, 0.08), transparent 18rem),
    rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(2px);
}

.tour-shade {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(2px);
}

.tour-highlight {
  position: relative;
  z-index: 50;
  border-color: rgba(67, 240, 182, 0.86) !important;
  outline: none;
  background-color: rgba(16, 27, 46, 0.98) !important;
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.08),
    0 18px 58px rgba(67, 240, 182, 0.24) !important;
}

.top-stats.tour-highlight {
  border-radius: 14px;
  outline: 2px solid rgba(67, 240, 182, 0.95);
  outline-offset: 3px;
}

.controls .input-card.tour-highlight,
.controls .status-controls.tour-highlight,
.controls .payback-card.tour-highlight {
  z-index: 62;
  margin: 10px -8px;
  padding: 16px;
  border: 1px solid rgba(67, 240, 182, 0.9) !important;
  border-radius: 14px;
  background:
    radial-gradient(circle at 15% 15%, rgba(67, 240, 182, 0.18), transparent 12rem),
    linear-gradient(180deg, rgba(18, 36, 58, 0.98), rgba(9, 19, 34, 0.98)) !important;
  box-shadow:
    0 0 34px rgba(67, 240, 182, 0.28),
    0 24px 90px rgba(0, 0, 0, 0.42) !important;
}

.controls .input-card.tour-highlight span,
.controls .status-controls.tour-highlight h3,
.controls .payback-card.tour-highlight h3 {
  color: #f8fffc;
  text-shadow: 0 0 18px rgba(67, 240, 182, 0.28);
}

.tour-coach {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 120;
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(67, 240, 182, 0.38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.14), transparent 12rem),
    radial-gradient(circle at 0% 100%, rgba(255, 209, 102, 0.08), transparent 12rem),
    #101b2e;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.68);
  padding: 20px;
}

.tour-coach > span {
  color: #43f0b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-coach h3 {
  margin: 8px 0 10px;
  color: white;
  font-size: 24px;
}

.tour-coach p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.58;
}

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

.tour-actions-welcome {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-actions button,
.tour-close {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
  padding: 0 12px;
  font-weight: 900;
}

.tour-actions button:first-child {
  border-color: rgba(67, 240, 182, 0.44);
  background: rgba(67, 240, 182, 0.13);
  color: #b7ffe8;
}

.tour-actions button:last-child {
  border-color: rgba(67, 240, 182, 0.44);
  background: rgba(67, 240, 182, 0.13);
  color: #b7ffe8;
}

.tour-actions button:nth-last-child(2):first-child {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
}

.tour-actions .tour-primary {
  border-color: rgba(67, 240, 182, 0.44);
  background: rgba(67, 240, 182, 0.13);
  color: #b7ffe8;
}

.tour-actions .tour-secondary {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
}

.tour-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tour-close {
  width: 100%;
  margin-top: 8px;
  color: #94a3b8;
}

.top-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.stat-card {
  min-height: 106px;
  border-radius: 14px;
  padding: 16px;
}

.stat-card span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card b {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.status-top-stat b {
  font-size: clamp(17px, 2vw, 24px);
}

.status-top-stat small {
  display: block;
  margin-top: 8px;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-yield {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 8px;
}

.status-yield p {
  margin: 0;
}

.status-yield small {
  margin: 0;
  color: #93c5fd;
}

.status-yield strong {
  display: block;
  margin-top: 3px;
  color: #43f0b6;
  font-size: 13px;
  font-weight: 900;
}

.stat-card.green {
  border-color: rgba(67, 240, 182, 0.35);
}

.stat-card.gold {
  border-color: rgba(255, 209, 102, 0.36);
}

.stat-card.blue {
  border-color: rgba(56, 200, 255, 0.36);
}

.forecast-top-stat > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.forecast-top-stat p {
  margin: 0;
  min-width: 0;
}

.forecast-top-stat small,
.rank-top-stat small {
  display: block;
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.forecast-top-stat b {
  margin-top: 3px;
  font-size: clamp(18px, 2vw, 26px);
}

.forecast-top-stat > em {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.forecast-top-stat section {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 8px;
}

.forecast-top-stat section small {
  color: #93c5fd;
}

.forecast-top-stat section strong {
  display: block;
  margin-top: 3px;
  color: #43f0b6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.forecast-top-stat .rub-alternative {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.rank-top-stat b {
  font-size: clamp(18px, 2vw, 26px);
}

.rank-top-stat i {
  display: block;
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.rank-top-stat em {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38c8ff, #43f0b6);
}

.floating-summary {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 8px;
  width: min(760px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(67, 240, 182, 0.24);
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.88);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  padding: 8px;
}

.floating-summary span {
  min-width: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
}

.floating-summary small {
  display: block;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-summary b {
  display: block;
  margin-top: 2px;
  color: white;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.change-pulse {
  position: fixed;
  left: 50%;
  top: 72px;
  z-index: 26;
  width: min(340px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(67, 240, 182, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.18), transparent 12rem),
    rgba(8, 17, 31, 0.94);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  animation: changePulseIn 0.18s ease-out;
}

.change-pulse.negative {
  border-color: rgba(248, 113, 113, 0.36);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.12), transparent 12rem),
    rgba(8, 17, 31, 0.94);
}

.change-pulse span,
.change-pulse small {
  display: block;
}

.change-pulse span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.change-pulse b {
  display: block;
  margin-top: 4px;
  color: #43f0b6;
  font-size: 20px;
  font-weight: 900;
}

.change-pulse.negative b {
  color: #fecaca;
}

.change-pulse small {
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.rank-reward-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 28;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 102, 0.18), transparent 12rem),
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.14), transparent 12rem),
    rgba(8, 17, 31, 0.96);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 12px;
  animation: rankRewardIn 0.24s ease-out;
}

.rank-reward-toast > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 18px;
}

.rank-reward-medal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd166, #43f0b6);
  color: #071321;
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.26);
}

.rank-reward-toast span,
.rank-reward-toast small {
  display: block;
}

.rank-reward-toast span {
  color: #ffd166;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-reward-toast h3 {
  margin: 4px 28px 5px 0;
  color: white;
  font-size: 18px;
}

.rank-reward-toast p {
  margin: 0;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.4;
}

.rank-reward-toast small {
  margin-top: 6px;
  color: #b7ffe8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

@keyframes changePulseIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes rankRewardIn {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.controls {
  align-self: start;
  border-radius: 16px;
  padding: 16px;
}

.controls h2,
.chart-head h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.input-card {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 13px 0;
}

.input-card span {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.input-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.input-card-head em {
  min-width: 0;
  font-style: normal;
}

.lesson-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.lesson-links small {
  border: 1px solid rgba(67, 240, 182, 0.24);
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.08);
  color: #b7ffe8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.lesson-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 200, 255, 0.34);
  border-radius: 999px;
  background: rgba(56, 200, 255, 0.09);
  color: #c7edff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.lesson-links a:hover {
  border-color: rgba(56, 200, 255, 0.72);
  background: rgba(56, 200, 255, 0.16);
}

.staking-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.bya-marketing-button {
  border: 1px solid rgba(67, 240, 182, 0.38);
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.1);
  color: #b7ffe8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.bya-marketing-button:hover {
  border-color: rgba(67, 240, 182, 0.74);
  background: rgba(67, 240, 182, 0.17);
}

.input-card b {
  color: white;
  font-size: 22px;
}

.input-card small {
  color: #94a3b8;
  line-height: 1.4;
}

.input-card input {
  width: 100%;
  accent-color: #43f0b6;
}

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

.staking-conversion span {
  display: block;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
  padding: 8px;
}

.staking-conversion small,
.staking-conversion strong {
  display: block;
}

.staking-conversion small {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staking-conversion strong {
  margin-top: 3px;
  color: #43f0b6;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.mix-card {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 200, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 200, 255, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.sources > .mix-card {
  display: grid;
  grid-column: span 2;
  margin-top: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  align-content: space-between;
}

.middle-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: start;
}

.result-side-stack {
  display: grid;
  gap: 12px;
  align-items: start;
}

.result-side-stack .mix-card {
  margin-top: 0;
}

.capital-plan-card {
  min-height: 0;
  align-self: start;
  border-radius: 14px;
  border: 1px solid rgba(67, 240, 182, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  padding: 10px;
}

.capital-plan-card h3 {
  margin: 0;
  color: white;
  font-size: 15px;
}

.capital-plan-card p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.capital-plan-card .capital-plan-summary {
  color: #43f0b6;
  font-weight: 800;
  font-size: 11px;
}

.capital-plan-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.capital-plan-list span {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  padding: 6px 8px;
}

.capital-plan-list span.covered {
  border: 1px solid rgba(52, 211, 153, 0.18);
}

.capital-plan-list span.ready {
  border: 1px solid rgba(67, 240, 182, 0.32);
}

.capital-plan-list i {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.2;
}

.capital-plan-list b,
.capital-progress-label,
.capital-plan-list small {
  position: relative;
  display: block;
}

.capital-plan-list b {
  color: white;
  font-size: 11px;
  line-height: 1.15;
}

.capital-plan-list small {
  margin-top: 1px;
  color: #b6d4f5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.capital-progress-label {
  margin-top: 1px;
  color: #93c5fd;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.status-controls {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background: rgba(250, 204, 21, 0.045);
  padding: 12px;
}

.status-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-controls h3 {
  margin: 0 0 4px;
  color: #ffe9ad;
  font-size: 15px;
}

.status-controls p {
  margin: 0 0 4px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.status-controls .input-card {
  padding: 10px 0;
}

.status-controls .input-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-status-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px 8px;
  align-items: center;
  border-bottom: 1px solid rgba(250, 204, 21, 0.12);
  padding: 8px 0;
}

.mini-status-input:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-status-input span,
.mini-status-input b,
.mini-status-input small {
  display: block;
}

.mini-status-input b {
  color: white;
  font-size: 13px;
}

.mini-status-input small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.25;
}

.mini-status-input strong {
  color: #ffe9ad;
  font-size: 18px;
  text-align: right;
}

.mini-status-input input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #facc15;
}

.mix-card h3 {
  margin: 0;
  color: white;
  font-size: 16px;
}

.mix-card p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.mix-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mix-bars span {
  display: grid;
  grid-template-columns: minmax(78px, max-content) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}

.mix-bars b {
  color: white;
  font-size: 20px;
  white-space: nowrap;
}

.mix-bars small {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  text-transform: uppercase;
}

.mix-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.mix-bars em {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #43f0b6, #38c8ff);
}

.mix-bars .passive-mix-row em {
  background: linear-gradient(90deg, #ffd166, #facc15);
}

.results {
  display: grid;
  gap: 10px;
  align-self: start;
  align-content: start;
}

.sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 220px 220px auto;
  grid-auto-rows: auto;
  gap: 10px;
  align-items: stretch;
  align-content: start;
}

.source-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  align-content: start;
  border-radius: 16px;
  padding: 14px;
}

.sources > .source-card:not(.status-bya-card) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  align-content: space-between;
}

.sources > .source-card:not(.status-bya-card) .source-values {
  margin-top: auto;
}

.source-card h3 {
  margin: 0;
  color: white;
  font-size: 17px;
}

.source-card p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.3;
}

.staking-source-card,
.academy-source-card {
  gap: 8px;
  padding-bottom: 12px;
}

.staking-source-card p,
.academy-source-card p {
  font-size: 12px;
  line-height: 1.26;
}

.source-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.source-values span {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 7px;
}

.source-values small {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-values b {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.source-values em {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.staking-source-card .source-values {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.staking-source-card .source-values span {
  padding: 6px 5px;
  border-radius: 10px;
}

.staking-source-card .source-values small {
  font-size: 8px;
  line-height: 1.15;
}

.staking-source-card .source-values b {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.14;
}

.academy-source-card .source-values span {
  padding: 8px;
}

.academy-source-card .source-values b {
  font-size: 14px;
}

.status-bya-card {
  flex-basis: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  border-color: rgba(250, 204, 21, 0.28);
}

.sources > .status-bya-card {
  grid-column: 1 / -1;
  height: auto;
  margin-top: 0;
}

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

.status-mini-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.status-mini-list span {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.055);
  padding: 9px;
}

.status-mini-list span.active {
  border-color: rgba(250, 204, 21, 0.46);
  background: rgba(250, 204, 21, 0.1);
}

.status-mini-list b,
.status-mini-list small {
  display: block;
}

.status-mini-list b {
  color: white;
  font-size: 13px;
}

.status-mini-list small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.insights-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(17, 31, 52, 0.96), rgba(10, 19, 34, 0.96));
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
}

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

.chart-head span {
  color: #43f0b6;
  font-weight: 900;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.income-share,
.growth-card,
.payback-card {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.income-share h3,
.growth-card h3,
.payback-card h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 16px;
}

.income-explain {
  margin: -4px 0 12px;
  color: #a8c7e8;
  font-size: 13px;
  line-height: 1.45;
}

.share-row {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.share-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.share-row b {
  color: white;
  font-size: 14px;
}

.share-row span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.share-row i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.share-row em {
  display: block;
  min-width: 2px;
  height: 12px;
  border-radius: 999px;
}

.income-share {
  display: flex;
  flex-direction: column;
}

.model-quality {
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 14px;
}

.model-quality > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.model-quality span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-quality b {
  color: #43f0b6;
  font-size: 20px;
}

.quality-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.quality-metrics p {
  margin: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 9px;
}

.quality-metrics strong,
.quality-metrics small,
.model-quality > small {
  display: block;
}

.quality-metrics strong {
  color: white;
  font-size: 16px;
}

.quality-metrics small,
.model-quality > small {
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
}

.model-quality > small {
  margin-top: 10px;
}

.growth-card strong,
.growth-card p,
.tips-list span {
  display: block;
}

.growth-card {
  border: 1px solid rgba(67, 240, 182, 0.26);
}

.growth-card strong {
  color: #43f0b6;
  font-size: 22px;
}

.growth-card p {
  color: #cbd5e1;
  line-height: 1.5;
}

.growth-card .growth-value {
  color: #43f0b6;
  font-weight: 900;
}

.quest-card {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(67, 240, 182, 0.24);
  background: rgba(15, 23, 42, 0.48);
  padding: 12px;
}

.quest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quest-head span {
  border-radius: 999px;
  background: rgba(67, 240, 182, 0.12);
  color: #43f0b6;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.quest-head b {
  color: white;
  font-size: 15px;
}

.quest-card p {
  margin: 10px 0 8px;
  color: #dbeafe;
  font-weight: 800;
}

.quest-card > i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  overflow: hidden;
}

.quest-card > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #43f0b6, #ffd166);
}

.quest-card > small {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  line-height: 1.4;
}

.quest-reminder {
  margin-top: 10px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.12), transparent 8rem),
    rgba(255, 209, 102, 0.065);
  padding: 10px;
}

.quest-reminder b,
.quest-reminder small {
  display: block;
}

.quest-reminder b {
  color: #ffe9ad;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quest-reminder small {
  margin-top: 4px;
  color: #e5edf8;
  font-size: 12px;
  line-height: 1.4;
}

.quest-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.quest-list span {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.045);
  padding: 7px 5px;
  opacity: 0.58;
}

.quest-list span.active {
  border-color: rgba(67, 240, 182, 0.45);
  opacity: 1;
}

.quest-list span.done {
  border-color: rgba(67, 240, 182, 0.34);
  background: rgba(67, 240, 182, 0.1);
  opacity: 1;
}

.quest-list span.locked {
  opacity: 0.35;
}

.quest-list b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #43f0b6;
  font-size: 12px;
}

.quest-list small {
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.tips-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tips-list span {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbeafe;
  padding: 9px;
  font-size: 13px;
}

.tips-list b {
  display: block;
  color: white;
  margin-bottom: 3px;
}

.tips-list small {
  display: block;
  color: #94a3b8;
  line-height: 1.45;
}

.payback-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(56, 200, 255, 0.2);
}

.controls .payback-card {
  margin-top: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 200, 255, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.payback-head p {
  margin: -4px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.payback-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.controls .payback-grid {
  grid-template-columns: 1fr;
}

.payback-grid article {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px;
}

.controls .payback-grid article {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
}

.payback-grid span,
.payback-grid b,
.payback-grid strong,
.payback-grid small {
  display: block;
}

.payback-grid span {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.payback-grid b {
  margin-top: 6px;
  color: white;
  font-size: 13px;
}

.controls .payback-grid b {
  grid-column: 1;
}

.payback-grid strong {
  margin-top: 8px;
  color: #43f0b6;
  font-size: 15px;
}

.controls .payback-grid strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 0;
  text-align: right;
}

.payback-grid small {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
}

.controls .payback-grid small {
  grid-column: 1 / -1;
}

.resources-card {
  margin-top: 14px;
  border: 1px solid rgba(67, 240, 182, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(67, 240, 182, 0.1), transparent 12rem),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.resources-head h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.resources-head p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

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

.resource-link {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 76px;
  align-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  padding: 11px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.resource-link:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 240, 182, 0.46);
  background: rgba(15, 23, 42, 0.78);
}

.resource-link b {
  color: white;
  font-size: 13px;
  line-height: 1.25;
}

.resource-link small {
  color: #9fbce0;
  font-size: 11px;
  line-height: 1.35;
}

.resource-link.cyan {
  box-shadow: inset 3px 0 0 #38c8ff;
}

.resource-link.mint {
  box-shadow: inset 3px 0 0 #43f0b6;
}

.resource-link.gold {
  box-shadow: inset 3px 0 0 #ffd166;
}

.resource-link.violet {
  box-shadow: inset 3px 0 0 #a78bfa;
}

.admin-shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 102, 0.12), transparent 13rem),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.admin-shortcut-card h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.admin-shortcut-card p {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.admin-shortcut-actions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(260px, 100%);
}

.admin-shortcut-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 54px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe9ad;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.feedback-widget {
  position: fixed;
  right: clamp(18px, 2.2vw, 34px);
  bottom: clamp(18px, 2.2vw, 34px);
  z-index: 90;
  color: #f8fafc;
}

body.tour-active .feedback-widget {
  display: none;
}

.feedback-launcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 0;
  cursor: pointer;
}

.feedback-launcher b {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 4px;
  background: rgba(31, 41, 55, 0.94);
  color: #f8fafc;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.feedback-launcher b::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid rgba(31, 41, 55, 0.94);
  transform: translateY(-50%);
}

.feedback-launcher-dot {
  position: relative;
  order: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: linear-gradient(135deg, #12a7e8, #0077bc);
  box-shadow: 0 14px 32px rgba(0, 119, 188, 0.34), 0 0 0 1px rgba(56, 200, 255, 0.16) inset;
}

.feedback-launcher-dot::before {
  content: "";
  width: 29px;
  height: 22px;
  border: 2px solid white;
  border-radius: 7px;
}

.feedback-launcher-dot::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 19px;
  width: 9px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  background: transparent;
  transform: rotate(45deg);
}

.feedback-launcher:hover .feedback-launcher-dot {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.feedback-chat {
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(67, 240, 182, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(67, 240, 182, 0.18), transparent 13rem),
    linear-gradient(180deg, rgba(17, 31, 52, 0.98), rgba(8, 17, 31, 0.98));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.54);
  padding: 14px;
}

.feedback-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding-bottom: 10px;
}

.feedback-chat-head span {
  color: #43f0b6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedback-chat-head h2 {
  margin: 3px 0 0;
  color: white;
  font-size: 20px;
}

.feedback-chat-head button {
  width: 32px;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
}

.feedback-message {
  border-radius: 14px;
  padding: 11px;
}

.feedback-thread {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.feedback-message-admin {
  border: 1px solid rgba(67, 240, 182, 0.18);
  background: rgba(67, 240, 182, 0.08);
}

.feedback-message-user {
  margin-left: 22px;
  border: 1px solid rgba(56, 200, 255, 0.22);
  background: rgba(56, 200, 255, 0.09);
}

.feedback-message b {
  display: block;
  color: #d8fff1;
  font-size: 12px;
}

.feedback-message p {
  margin: 5px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-message time {
  display: block;
  margin-top: 6px;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 900;
}

.feedback-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

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

.feedback-chat label {
  display: grid;
  gap: 5px;
}

.feedback-chat small {
  color: #9fbce0;
  font-size: 11px;
  font-weight: 900;
}

.feedback-chat input,
.feedback-chat textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  padding: 10px 11px;
  font: inherit;
  outline: none;
}

.feedback-chat textarea {
  min-height: 104px;
  resize: vertical;
}

.feedback-chat input:focus,
.feedback-chat textarea:focus {
  border-color: rgba(67, 240, 182, 0.56);
  box-shadow: 0 0 0 3px rgba(67, 240, 182, 0.12);
}

.feedback-send {
  min-height: 42px;
  border: 1px solid rgba(67, 240, 182, 0.48);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(67, 240, 182, 0.24), rgba(56, 200, 255, 0.14));
  color: #d8fff1;
  font-weight: 900;
  cursor: pointer;
}

.feedback-send:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ledger-card {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 200, 255, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 200, 255, 0.12), transparent 14rem),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

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

.ledger-head h3 {
  margin: 0;
  color: white;
  font-size: 16px;
}

.ledger-head span,
.ledger-history span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.ledger-head button,
.ledger-history button {
  min-height: 38px;
  border: 1px solid rgba(56, 200, 255, 0.34);
  border-radius: 10px;
  background: rgba(56, 200, 255, 0.12);
  color: #dff7ff;
  padding: 0 12px;
  font-weight: 900;
}

.ledger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ledger-history .ledger-open,
.ledger-history .ledger-rename,
.ledger-history .ledger-delete {
  min-height: 32px;
  margin-top: 8px;
}

.ledger-history .ledger-open {
  border-color: rgba(56, 200, 255, 0.34);
  background: rgba(56, 200, 255, 0.12);
  color: #dff7ff;
}

.ledger-history .ledger-open:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ledger-history .ledger-rename {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.1);
  color: #ffe9ad;
}

.ledger-history .ledger-delete {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ledger-grid p {
  margin: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.ledger-grid b,
.ledger-grid span {
  display: block;
}

.ledger-grid b {
  color: white;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ledger-grid span {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ledger-history {
  margin-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 10px;
}

.ledger-history strong {
  color: #dbeafe;
  font-size: 13px;
}

.ledger-month-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ledger-month {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  padding: 10px;
}

.ledger-month span,
.ledger-month b,
.ledger-month small {
  display: block;
}

.ledger-month b {
  color: white;
  font-size: 13px;
}

.ledger-month small {
  margin-top: 4px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.ledger-month-time {
  display: block;
  margin-top: 3px;
  color: #b7c8dd;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.scenario-panel {
  margin-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 12px;
}

.scenario-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scenario-head strong {
  color: #f8fafc;
  font-size: 13px;
}

.scenario-head span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.scenario-new {
  min-height: 34px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.scenario-register-note {
  margin: 10px 0 0;
  border: 1px solid rgba(67, 240, 182, 0.16);
  border-radius: 10px;
  background: rgba(67, 240, 182, 0.075);
  color: #b7ffe8;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

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

.scenario-slot {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.48);
  padding: 10px;
}

.scenario-slot.saved {
  border-color: rgba(52, 211, 153, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.1), transparent 7rem),
    rgba(15, 23, 42, 0.58);
}

.scenario-slot b,
.scenario-slot span {
  display: block;
}

.scenario-slot b {
  color: #ffffff;
  font-size: 13px;
}

.scenario-slot span {
  margin-top: 3px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.scenario-actions button {
  min-height: 30px;
  flex: 1 1 70px;
  border: 1px solid rgba(56, 200, 255, 0.24);
  border-radius: 8px;
  background: rgba(56, 200, 255, 0.09);
  color: #dff7ff;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.scenario-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.risk-note {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 0 0 12px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.1), transparent 14rem),
    rgba(255, 209, 102, 0.045);
  padding: 14px;
  overflow: visible;
}

.bottom-system-row {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.bottom-system-row .risk-note {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 14px;
  padding: 18px clamp(16px, 2vw, 22px);
}

.bottom-system-row .risk-note h2 {
  grid-column: 1;
  grid-row: auto;
  margin: 0;
  font-size: 16px;
}

.bottom-system-row .risk-note p {
  grid-column: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
}

.bottom-system-row .risk-note p + p {
  margin-top: 6px;
}

.bottom-system-row .admin-shortcut-card {
  margin-top: 0;
}

.legal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.72);
  padding: 16px clamp(16px, 2vw, 22px);
}

.legal-footer b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.legal-footer p {
  max-width: 940px;
  margin: 6px 0 0;
  color: #9fb7d2;
  font-size: 12px;
  line-height: 1.55;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(56, 200, 255, 0.24);
  border-radius: 8px;
  background: rgba(56, 200, 255, 0.08);
  color: #c8f3ff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.legal-footer a:hover {
  border-color: rgba(67, 240, 182, 0.52);
  color: #d8fff1;
}

.cookie-notice {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 95;
  width: min(560px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(67, 240, 182, 0.3);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.96);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  padding: 14px;
}

.cookie-notice b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.cookie-notice p {
  margin: 4px 0 0;
  color: #b9d3ef;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-notice a,
.cookie-notice button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.cookie-notice a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #dbeafe;
  text-decoration: none;
}

.cookie-notice button {
  border: 1px solid rgba(67, 240, 182, 0.46);
  background: rgba(67, 240, 182, 0.18);
  color: #d8fff1;
}

.controls .risk-note {
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 14px;
}

.risk-note h2 {
  margin: 0 0 10px;
  color: #ffe9ad;
  font-size: 18px;
  font-weight: 900;
}

.risk-note p {
  max-width: 100%;
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1180px) {
  .bya-token,
  .money-particle,
  .market-candle {
    opacity: 0.38;
  }

  .layout,
  .top-stats {
    grid-template-columns: 1fr;
  }

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

  .sources > .mix-card {
    grid-column: span 2;
  }

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

  .bya-tariff-table > div,
  .bya-level-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: smooth;
  }

  .registration-screen {
    align-items: start;
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(28px, env(safe-area-inset-bottom, 0px));
  }

  .registration-card {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding: 18px;
    border-radius: 18px;
  }

  .registration-card h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .registration-submit {
    box-shadow: 0 -12px 28px rgba(8, 17, 31, 0.78);
  }

  body {
    background:
      radial-gradient(circle at 50% -8%, rgba(67, 240, 182, 0.18), transparent 18rem),
      linear-gradient(180deg, #071321 0%, #0d1c2d 52%, #091321 100%);
  }

  .bya-token,
  .money-particle,
  .market-candle {
    display: none;
  }

  .partner-shell::before,
  .partner-shell::after {
    opacity: 0.22;
  }

  .partner-shell {
    overflow-x: hidden;
    padding: 8px;
  }

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

  .admin-shortcut-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shortcut-actions {
    width: 100%;
  }

  .admin-shortcut-card a {
    width: 100%;
  }

  .partner-hero,
  .source-card,
  .chart-head {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .partner-hero {
    gap: 12px;
    border-radius: 16px;
    padding: 15px;
  }

  .partner-hero p {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .partner-hero h1 {
    max-width: 12ch;
    margin: 5px 0;
    font-size: 30px;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .partner-hero span {
    font-size: 13px;
    line-height: 1.42;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    justify-content: stretch;
  }

  .hero-actions button:first-child {
    grid-column: 1 / -1;
  }

  .partner-hero button {
    min-height: 36px;
    padding: 0 8px;
    border-radius: 9px;
    font-size: 12px;
  }

  .history-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .history-toolbar button {
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 8px -2px 0;
    padding: 7px 2px;
    background: linear-gradient(180deg, rgba(7, 19, 33, 0.96), rgba(7, 19, 33, 0.78));
    backdrop-filter: blur(10px);
  }

  .mobile-tabs a {
    display: grid;
    place-items: center;
    min-height: 34px;
    border: 1px solid rgba(67, 240, 182, 0.22);
    border-radius: 10px;
    background: rgba(67, 240, 182, 0.08);
    color: #d8fff1;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
  }

  .top-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    scroll-margin-top: 58px;
  }

  .stat-card {
    min-height: 88px;
    border-radius: 12px;
    padding: 11px;
  }

  .stat-card span {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .stat-card b {
    margin-top: 7px;
    font-size: 20px;
  }

  .status-top-stat b,
  .rank-top-stat b {
    font-size: 17px;
  }

  .stat-card small,
  .rank-top-stat small {
    font-size: 10px;
    line-height: 1.25;
  }

  .layout {
    gap: 10px;
    margin-top: 10px;
  }

  .controls,
  .chart-card,
  .insights-card {
    border-radius: 14px;
    padding: 12px;
  }

  .controls {
    scroll-margin-top: 58px;
  }

  .controls h2,
  .chart-head h2 {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .input-card {
    gap: 6px;
    padding: 10px 0;
  }

  .input-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .input-card span {
    font-size: 13px;
  }

  .input-card b {
    font-size: 18px;
  }

  .input-card small {
    font-size: 11px;
    line-height: 1.32;
  }

  .input-card input,
  .mini-status-input input {
    min-height: 30px;
  }

  .lesson-links {
    justify-content: flex-start;
  }

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

  .lesson-links small,
  .lesson-links a,
  .bya-marketing-button {
    padding: 5px 8px;
    font-size: 11px;
  }

  .bya-marketing-screen {
    align-items: start;
    padding: 10px;
  }

  .bya-marketing-card {
    max-height: none;
    border-radius: 14px;
    padding: 14px;
  }

  .bya-marketing-card h2 {
    margin-right: 42px;
    font-size: 30px;
  }

  .bya-marketing-card > p,
  .bya-marketing-grid p,
  .bya-marketing-media figcaption {
    font-size: 12px;
    line-height: 1.4;
  }

  .bya-marketing-current,
  .bya-marketing-media,
  .bya-marketing-grid,
  .bya-tariff-table > div,
  .bya-level-strip {
    grid-template-columns: 1fr;
  }

  .source-values {
    grid-template-columns: 1fr;
  }

  .bottom-system-row .risk-note {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 6px;
  }

  .bottom-system-row .risk-note h2,
  .bottom-system-row .risk-note p {
    grid-column: 1;
  }

  .bottom-system-row .risk-note h2 {
    grid-row: auto;
    white-space: normal;
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }

  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions {
    justify-content: stretch;
  }

  .cookie-notice a,
  .cookie-notice button {
    flex: 1 1 0;
    justify-content: center;
  }

  .sources,
  .status-bya-card {
    grid-template-columns: 1fr;
  }

  .sources > .mix-card {
    grid-column: 1 / -1;
  }

  .middle-results {
    grid-template-columns: 1fr;
  }

  .sources > .status-bya-card {
    margin-top: 0;
  }

  .sources > .source-card:nth-child(5),
  .sources > .source-card:nth-child(6),
  .sources > .mix-card {
    margin-top: 0;
  }

  .status-mini-list {
    grid-template-columns: 1fr;
  }

  .status-controls {
    margin-top: 6px;
    padding: 12px;
  }

  .status-controls-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .status-controls h3 {
    font-size: 16px;
  }

  .status-controls p {
    font-size: 12px;
    line-height: 1.35;
  }

  .mini-status-input {
    grid-template-columns: minmax(0, 1fr) 30px;
    padding: 7px 0;
  }

  .mini-status-input b {
    font-size: 12px;
  }

  .mini-status-input strong {
    font-size: 16px;
  }

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

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

  .ledger-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .ledger-month-list {
    grid-template-columns: 1fr;
  }

  .results {
    gap: 10px;
    scroll-margin-top: 58px;
  }

  .sources {
    gap: 8px;
  }

  .source-card {
    gap: 8px;
    border-radius: 13px;
    padding: 12px;
  }

  .source-card h3 {
    font-size: 16px;
  }

  .source-card p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.34;
  }

  .source-values {
    gap: 6px;
  }

  .source-values span {
    padding: 8px;
  }

  .source-values b {
    font-size: 15px;
  }

  .status-mini-list {
    gap: 6px;
  }

  .status-mini-list span {
    padding: 8px;
  }

  .quality-metrics,
  .staking-conversion,
  .resources-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .income-share,
  .growth-card,
  .payback-card {
    padding: 12px;
  }

  .income-explain,
  .growth-card p,
  .risk-note p,
  .resources-head p {
    font-size: 12px;
    line-height: 1.38;
  }

  .resources-card {
    scroll-margin-top: 58px;
    padding: 12px;
  }

  .resources-grid {
    gap: 7px;
  }

  .resource-link {
    min-height: 58px;
    padding: 10px;
  }

  .admin-shortcut-card {
    gap: 10px;
    padding: 12px;
  }

  .registration-login-switch {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .feedback-widget {
    right: 12px;
    bottom: 12px;
  }

  .cookie-visible .feedback-widget-closed {
    bottom: calc(188px + env(safe-area-inset-bottom, 0px));
  }

  .feedback-launcher {
    min-height: 56px;
  }

  .feedback-launcher b {
    min-height: 34px;
    padding: 0 13px;
    font-size: 14px;
  }

  .feedback-launcher-dot {
    width: 54px;
    height: 54px;
  }

  .feedback-chat {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .feedback-contact-grid-compact {
    grid-template-columns: 1fr;
  }

  .tour-coach {
    display: flex;
    flex-direction: column;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-height: min(46vh, 360px);
    overflow: auto;
    padding: 14px;
    overscroll-behavior: contain;
  }

  .tour-coach,
  .tour-coach-bottom {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .tour-coach-top {
    top: calc(14px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }

  .tour-coach h3 {
    margin: 6px 0 8px;
    font-size: 22px;
    line-height: 1.16;
  }

  .tour-coach p {
    min-height: 0;
    overflow: auto;
    font-size: 14px;
    line-height: 1.5;
  }

  .tour-coach h3,
  .tour-coach p {
    overflow-wrap: anywhere;
  }

  .change-pulse {
    top: 60px;
    width: calc(100vw - 20px);
  }

  .rank-reward-toast {
    bottom: 10px;
    grid-template-columns: 46px minmax(0, 1fr);
    width: calc(100vw - 20px);
    padding: 11px;
  }

  .rank-reward-medal {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .rank-reward-toast h3 {
    font-size: 16px;
  }

  .tour-actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tour-actions:not(.tour-actions-welcome) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-actions button {
    min-width: 0;
  }

  .telegram-offer-list,
  .telegram-offer-actions {
    grid-template-columns: 1fr;
  }

}
