:root {
  color-scheme: dark;
  --app-max-width: 460px;
  --app-gutter: 7px;
  --bg: #050505;
  --panel: #111116;
  --panel-2: #17171d;
  --panel-3: #202027;
  --text: #f8f8f8;
  --muted: #8e8e98;
  --soft: rgba(255, 255, 255, 0.08);
  --gold: #ffb800;
  --gold-2: #ffd028;
  --green: #00d084;
  --red: #ff3158;
  --teal: #12c7a7;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  scrollbar-width: none;
}

body {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  justify-content: center;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 184, 0, 0.18), transparent 28rem),
    linear-gradient(180deg, #08090c 0%, #050505 50%, #020202 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.tour-scroll-lock {
  overflow: hidden;
  touch-action: none;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-rows: 1fr auto auto auto auto 1fr;
  place-items: center;
  gap: 18px;
  padding: 64px 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 41%, rgba(255, 184, 0, 0.16), transparent 15rem),
    radial-gradient(circle at 50% 0, rgba(255, 184, 0, 0.08), transparent 28rem),
    #020202;
  color: var(--text);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  visibility: hidden;
}

.loading-screen[hidden] {
  display: none;
}

.loading-orbits {
  position: absolute;
  inset: 10vh auto auto 50%;
  width: min(92vw, 430px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.loading-orbits span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: 50%;
  animation: loadingSpin 14s linear infinite;
}

.loading-orbits span:nth-child(2) {
  inset: 12%;
  border-style: dashed;
  animation-duration: 9s;
  animation-direction: reverse;
}

.loading-orbits span:nth-child(3) {
  inset: 24%;
  border-color: rgba(255, 208, 40, 0.28);
  box-shadow: 0 0 60px rgba(255, 184, 0, 0.1);
  animation-duration: 6s;
}

.loading-core {
  position: relative;
  z-index: 1;
  grid-row: 2;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  box-shadow:
    0 0 44px rgba(255, 184, 0, 0.22),
    inset 0 0 30px rgba(255, 208, 40, 0.12);
}

.loading-core img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.loading-brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: center;
}

.loading-brand strong {
  color: var(--text);
  font-size: 28px;
  letter-spacing: 12px;
  text-indent: 12px;
}

.loading-brand span,
.loading-sync small,
.loading-progress-copy {
  color: rgba(255, 208, 40, 0.76);
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.loading-brand span {
  font-size: 12px;
}

.loading-progress-copy {
  display: flex;
  width: min(72vw, 330px);
  justify-content: space-between;
  font-size: 14px;
}

.loading-bar {
  width: min(72vw, 330px);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.loading-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb800, #ffe28a);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.72);
  transition: width 170ms ease;
}

.loading-sync {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  place-items: center;
}

.loading-sync span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.52);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
}

.loading-sync small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input {
  min-width: 0;
}

.app-shell {
  flex: 0 0 auto;
  width: min(100vw, var(--app-max-width));
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: calc(4px + env(safe-area-inset-top)) var(--app-gutter) calc(74px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

main {
  width: 100%;
  min-width: 0;
}

.app-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 62% -24%, rgba(255, 184, 0, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(14, 14, 13, 0.98), rgba(5, 6, 7, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 22px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.app-header::before {
  display: none;
}

.close-chip,
.small-icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016)),
    rgba(8, 9, 10, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 7px 16px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.close-chip {
  max-width: 210px;
  padding: 0 12px 0 5px;
}

.user-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: left;
}

.user-subtitle {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.user-subtitle svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  filter: none;
}

.brand-chip {
  min-height: 36px;
  gap: 9px;
  padding: 3px 13px 3px 4px;
  border-color: rgba(255, 184, 0, 0.32);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 184, 0, 0.2), transparent 3rem),
    rgba(13, 13, 10, 0.78);
}

.brand-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.28));
}

.brand-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.close-chip > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ambassador-panel {
  display: grid;
  min-width: 138px;
  grid-template-columns: repeat(3, auto);
  gap: 2px 8px;
  align-items: center;
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 8px;
  padding: 6px 8px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 184, 0, 0.2), transparent 3.4rem),
    rgba(18, 18, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.ambassador-panel[hidden] {
  display: none;
}

.ambassador-panel > span {
  grid-row: 1 / 3;
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.ambassador-panel strong {
  grid-column: 2 / -1;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  text-align: right;
}

.ambassador-panel small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.ambassador-panel small b {
  color: var(--gold);
  font-weight: 1000;
}

.admin-top-button {
  color: var(--gold);
}

.admin-top-button[hidden] {
  display: none;
}

.tutorial-top-button {
  color: #fff;
}

.tutorial-top-button svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 430px) {
  .app-header:has(.ambassador-panel:not([hidden])) {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .small-icon-button {
    width: 36px;
  }

  .app-header:has(.ambassador-panel:not([hidden])) .user-chip {
    max-width: 96px;
    padding-right: 7px;
  }

  .ambassador-panel {
    min-width: 82px;
    grid-template-columns: auto 1fr;
    gap: 1px 4px;
    padding: 5px;
  }

  .ambassador-panel > span {
    grid-row: 1 / 2;
    font-size: 9px;
  }

  .ambassador-panel strong {
    grid-column: 2;
    font-size: 10px;
  }

  .ambassador-panel small {
    overflow: hidden;
    max-width: 22px;
    font-size: 7.5px;
    text-overflow: ellipsis;
  }

  .ambassador-panel small:nth-of-type(2),
  .ambassador-panel small:nth-of-type(3) {
    display: none;
  }
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 158px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 8px;
  background: rgba(17, 17, 22, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.language-menu[hidden] {
  display: none;
}

.language-menu p {
  margin: 2px 4px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-menu button {
  width: 100%;
  min-height: 36px;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.language-menu button.active {
  background: rgba(255, 184, 0, 0.14);
  color: var(--gold);
}

.small-icon-button {
  width: 42px;
  padding: 0;
}

.small-icon-button svg,
.nav-button svg,
.link-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.user-avatar,
.x-mark,
.agent-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.user-avatar {
  flex: 0 0 34px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: var(--gold);
  font-size: 13px;
}

.user-avatar.has-photo {
  color: transparent;
}

.x-mark::after,
.agent-logo span {
  color: var(--gold);
}

.agent-logo span {
  margin-left: -2px;
}

.agent-logo.big {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  font-size: 30px;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, #18181e, #111116);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.trade-balances p,
.section-title p,
.agent-row-main p,
.trade-head p,
.plan-card p,
.buy-pro-card p,
.panel-head p,
.daily-card p,
.scan-card p,
.promo-card p,
.ref-card p,
.invite-card p,
.asset-card p,
.swap-card p,
.transactions p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.asset-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  padding: 12px;
}

.asset-card {
  min-width: 0;
}

.agent-row-main h2,
.section-title h1,
.plan-card h2,
.buy-pro-card h2,
.panel-head h2,
.daily-card h2,
.scan-card h2,
.promo-card h2,
.ref-card h2,
.asset-card h2,
.swap-card h2,
.transactions h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.trade-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  gap: 0;
  align-items: center;
  min-height: 92px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(19, 20, 21, 0.94), rgba(8, 10, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(0, 0, 0, 0.32);
}

.trade-balances::before {
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 184, 0, 0.07), transparent 32%, transparent 72%, rgba(255, 184, 0, 0.045));
  content: "";
  opacity: 0.52;
  pointer-events: none;
}

.trade-balances::after {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  content: "";
  pointer-events: none;
}

.balance-cell {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.balance-cell > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.balance-cell-nk {
  transform: translateX(-6px);
}

.balance-token {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  filter: none;
}

.balance-token img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.balance-token-usdt {
  filter: none;
}

.trade-balances p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.trade-balances strong {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  letter-spacing: 0;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.55);
}

.trade-mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 6px 0 10px;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 8px;
  padding: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    #0b0c0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.26);
}

.trade-mode-option {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    #15161a;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 720;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.trade-mode-option svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  opacity: 0.82;
}

.trade-mode-option.active {
  border-color: rgba(255, 184, 0, 0.66);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 184, 0, 0.13), transparent 4.2rem),
    linear-gradient(180deg, rgba(76, 57, 8, 0.36), rgba(12, 12, 10, 0.94)),
    #0d0d0c;
  color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(255, 184, 0, 0.08),
    0 0 16px rgba(255, 184, 0, 0.16),
    inset 0 1px 0 rgba(255, 238, 180, 0.09);
}

.trade-mode-option.active svg {
  opacity: 1;
}

.standard-trading-panel {
  display: grid;
  gap: 0;
}

.standard-trading-panel .trade-card {
  margin-top: 10px;
}

.risk-trading-panel {
  display: grid;
  gap: 10px;
  margin-top: -4px;
}

.risk-terminal,
.risk-card,
.risk-active-card,
.risk-history {
  overflow: hidden;
  border-color: rgba(255, 184, 0, 0.18);
  background:
    radial-gradient(circle at 78% 0, rgba(255, 184, 0, 0.12), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #0b0c0f;
}

.risk-terminal {
  border-color: rgba(255, 184, 0, 0.24);
  border-radius: 14px;
  padding: 10px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 184, 0, 0.22), transparent 10rem),
    radial-gradient(circle at 35% 0, rgba(255, 215, 110, 0.08), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #060708;
  box-shadow:
    inset 0 0 0 1px rgba(255, 184, 0, 0.04),
    0 22px 50px rgba(0, 0, 0, 0.36);
}

.risk-terminal-head,
.risk-timeframe-row,
.risk-row-head,
.risk-history-head,
.risk-active-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.risk-terminal-head {
  padding: 12px 8px 8px;
}

.risk-terminal-head span,
.risk-signal-grid span,
.risk-row-head span,
.risk-profit-grid span,
.risk-active-card span,
.risk-history-head span,
.risk-history-item span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.risk-terminal-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(31px, 9.5vw, 42px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.96;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.risk-payout-pill {
  display: grid;
  min-width: 98px;
  min-height: 92px;
  place-content: center;
  border: 1px solid rgba(255, 184, 0, 0.58);
  border-radius: 16px;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 70% 0, rgba(255, 184, 0, 0.24), transparent 5rem),
    rgba(255, 184, 0, 0.09);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 166, 0.1),
    0 0 28px rgba(255, 184, 0, 0.18);
}

.risk-payout-pill strong {
  color: var(--gold);
  font-size: clamp(31px, 9vw, 42px);
  font-weight: 820;
  line-height: 1;
}

.risk-timeframe-row {
  justify-content: flex-start;
  padding: 8px 8px 18px;
}

.risk-asset-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 184, 0, 0.22);
  border-radius: 8px;
  padding: 6px 9px;
  background: rgba(255, 184, 0, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 860;
}

.risk-timeframe-row > strong {
  margin-left: 0;
  color: #ffe19a;
  font-size: clamp(50px, 15vw, 76px);
  font-weight: 760;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(255, 184, 0, 0.24);
}

#riskPricePulse {
  border: 1px solid rgba(0, 208, 132, 0.42);
  border-radius: 999px;
  padding: 8px 12px;
  background:
    radial-gradient(circle at 0 50%, rgba(0, 208, 132, 0.25), transparent 3rem),
    rgba(0, 208, 132, 0.08);
  color: #6dffa2;
  font-size: 12px;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(177, 255, 205, 0.08);
}

.risk-chart-shell {
  position: relative;
  height: 262px;
  border-top: 1px solid rgba(255, 184, 0, 0.1);
  border-bottom: 1px solid rgba(255, 184, 0, 0.1);
  background:
    radial-gradient(circle at 65% 44%, rgba(255, 184, 0, 0.14), transparent 10rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.035), transparent),
    #050607;
}

#riskChartCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.risk-tutorial-button::after {
  display: none;
  content: "" !important;
}
.risk-price-tag {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 7px;
  padding: 5px 7px;
  background: rgba(13, 13, 13, 0.86);
  color: #ffe19a;
  font-size: 11px;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.2);
}

.risk-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.risk-signal-grid div {
  min-height: 58px;
  padding: 10px 9px;
  background: rgba(8, 9, 12, 0.78);
}

.risk-signal-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 820;
}

#riskSignal {
  color: var(--green);
}

.risk-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.risk-row-head strong {
  color: #ffe19a;
  font-size: 12px;
  font-weight: 760;
}

.risk-currency-switch,
.risk-duration-grid,
.risk-quick-grid {
  display: grid;
  gap: 7px;
}

.risk-currency-switch {
  grid-template-columns: 1fr 1fr;
}

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

.risk-currency-switch button,
.risk-duration-grid button,
.risk-quick-grid button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 820;
}

.risk-currency-switch button.active,
.risk-duration-grid button.active,
.risk-quick-grid button.active {
  border-color: rgba(255, 184, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.22), rgba(255, 184, 0, 0.1));
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.14);
}

.risk-amount-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
}

.risk-amount-input input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  font-weight: 780;
  outline: none;
}

.risk-amount-input span {
  color: #ffe19a;
  font-size: 13px;
  font-weight: 850;
}

.risk-direction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.risk-direction-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.risk-direction-button svg {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 7px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.risk-direction-button strong {
  display: block;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
}

.risk-direction-button small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 650;
}

.risk-direction-main {
  margin-top: -2px;
}

.risk-direction-button.up {
  background:
    radial-gradient(circle at 100% 50%, rgba(0, 208, 132, 0.14), transparent 5.5rem),
    rgba(0, 208, 132, 0.045);
  color: #71ff9c;
}

.risk-direction-button.down {
  background:
    radial-gradient(circle at 100% 50%, rgba(255, 49, 88, 0.14), transparent 5.5rem),
    rgba(255, 49, 88, 0.045);
  color: #ff738a;
}

.risk-direction-button.active.up {
  border-color: rgba(0, 208, 132, 0.72);
  box-shadow: 0 0 22px rgba(0, 208, 132, 0.16);
}

.risk-direction-button.active.down {
  border-color: rgba(255, 49, 88, 0.72);
  box-shadow: 0 0 22px rgba(255, 49, 88, 0.16);
}

.risk-confirm-button {
  width: 100%;
  min-height: 54px;
  font-size: 18px;
}

.risk-confirm-button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.risk-profit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 8px;
}

.risk-profit-grid div {
  min-height: 66px;
  border: 1px solid rgba(255, 184, 0, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.risk-profit-grid strong {
  display: block;
  margin-top: 6px;
  color: #ffe19a;
  font-size: 15px;
  font-weight: 860;
}

#riskPotentialProfit {
  color: #71ff9c;
}

.risk-active-card {
  min-height: 72px;
  padding: 12px;
  border-color: rgba(255, 184, 0, 0.32);
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.12);
}

.risk-active-card strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 840;
}

.risk-active-timer {
  text-align: right;
}

.risk-active-timer span {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.risk-active-timer small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.risk-history {
  padding: 12px;
}

.risk-history-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
}

.risk-history-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.risk-history-empty,
.risk-history-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.risk-history-empty {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.risk-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.risk-history-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
}

.risk-history-item.won .risk-history-icon {
  border: 1px solid rgba(0, 208, 132, 0.44);
  color: #71ff9c;
}

.risk-history-item.lost .risk-history-icon {
  border: 1px solid rgba(255, 49, 88, 0.44);
  color: #ff738a;
}

.risk-history-item.refunded .risk-history-icon {
  border: 1px solid rgba(255, 184, 0, 0.42);
  color: var(--gold);
}

.risk-history-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.risk-history-item em {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.risk-history-item.lost em {
  color: #ff8f9f;
}

.risk-history-item.refunded em {
  color: #ffe19a;
}

.risk-terminal {
  position: relative;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 8px 10px;
  background:
    radial-gradient(ellipse at 82% 22%, rgba(201, 154, 43, 0.12), transparent 10rem),
    linear-gradient(135deg, rgba(13, 14, 15, 0.98), rgba(4, 5, 6, 0.99) 58%, rgba(8, 8, 7, 0.98)),
    #040506;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

.risk-terminal::before {
  position: absolute;
  top: 35px;
  right: -8px;
  z-index: 0;
  width: 150px;
  height: 110px;
  background:
    linear-gradient(155deg, transparent 0 50%, rgba(180, 126, 24, 0.13) 50.5% 51%, transparent 51.5%),
    linear-gradient(165deg, transparent 0 50%, rgba(180, 126, 24, 0.1) 50.5% 51%, transparent 51.5%),
    linear-gradient(175deg, transparent 0 50%, rgba(180, 126, 24, 0.08) 50.5% 51%, transparent 51.5%),
    linear-gradient(145deg, transparent 0 50%, rgba(180, 126, 24, 0.06) 50.5% 51%, transparent 51.5%);
  content: "";
  opacity: 0.75;
  pointer-events: none;
}

.risk-terminal > * {
  position: relative;
  z-index: 1;
}

.risk-terminal-head {
  align-items: flex-end;
  padding: 32px 3px 0;
}

.risk-terminal-head > div:first-child span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.risk-terminal-head > div:first-child strong {
  margin-top: 5px;
  color: #f8f8f7;
  font-size: clamp(27px, 8.2vw, 34px);
  font-weight: 880;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

.risk-pair-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
}

.risk-token-icon {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

.risk-pair-title img {
  width: 28px;
  height: 28px;
}

.risk-pair-title strong {
  margin-top: 0 !important;
}

.risk-payout-pill {
  display: grid;
  min-width: 78px;
  min-height: 82px;
  place-content: center;
  border-color: rgba(255, 184, 0, 0.5);
  border-radius: 12px;
  padding: 8px 9px;
  background:
    linear-gradient(180deg, rgba(30, 27, 20, 0.88), rgba(8, 8, 8, 0.94)),
    rgba(8, 8, 7, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 190, 0.05);
}

.risk-payout-pill span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 820;
}

.risk-payout-pill strong {
  margin-top: 5px;
  color: var(--gold);
  font-size: 26px;
  font-weight: 680;
  line-height: 1;
  text-shadow: none;
}

.risk-timeframe-row {
  justify-content: flex-start;
  padding: 6px 3px 14px;
}

.risk-timeframe-row > strong {
  margin-left: 0;
  color: #f3c944;
  font-size: clamp(33px, 10vw, 43px);
  font-weight: 880;
  line-height: 1;
  text-shadow: none;
}

#riskPricePulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  border-color: rgba(0, 208, 132, 0.34);
  border-radius: 999px;
  padding: 7px 12px;
  background:
    radial-gradient(circle at 0 50%, rgba(0, 208, 132, 0.28), transparent 3rem),
    rgba(0, 122, 77, 0.24);
  color: #6dffa2;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(177, 255, 205, 0.08);
}

#riskPricePulse::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31ff91;
  box-shadow: 0 0 12px rgba(49, 255, 145, 0.8);
  content: "";
}

.risk-chart-shell {
  height: 256px;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 46%, rgba(188, 135, 21, 0.08), transparent 12rem),
    linear-gradient(180deg, rgba(195, 140, 24, 0.03), rgba(0, 0, 0, 0)),
    #030405;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.risk-chart-shell::before {
  position: absolute;
  inset: 0.5px;
  z-index: 5;
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.risk-tutorial-button {
  position: absolute;
  top: 16px;
  left: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 31px;
  width: auto;
  margin: 0;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 999px;
  padding: 0 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 230, 138, 0.16), transparent 3.2rem),
    linear-gradient(180deg, rgba(39, 31, 11, 0.72), rgba(7, 8, 9, 0.9)),
    rgba(7, 8, 9, 0.94);
  color: #ffe19a;
  font-size: 12px;
  font-weight: 460;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 166, 0.08),
    0 0 13px rgba(255, 184, 0, 0.08);
}

.risk-tutorial-button[hidden] {
  display: none;
}

.risk-tutorial-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  color: #ffd028;
  filter: none;
}

.risk-tutorial-button .risk-tutorial-chevron {
  width: 13px;
  height: 13px;
  margin-left: auto;
  stroke-width: 2.5;
  color: rgba(255, 225, 154, 0.9);
}

.risk-tutorial-button::after {
  display: none;
  content: "" !important;
}
.risk-price-tag {
  right: -2px;
  min-width: 74px;
  border-color: rgba(255, 184, 0, 0.66);
  border-radius: 8px;
  padding: 7px 7px;
  background:
    linear-gradient(180deg, rgba(18, 16, 9, 0.95), rgba(7, 7, 7, 0.95));
  color: #ffda5d;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 184, 0, 0.08),
    0 0 24px rgba(255, 184, 0, 0.18);
}

.risk-entry-tag {
  position: absolute;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 208, 132, 0.58);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(5, 7, 8, 0.86);
  color: #83ffa6;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(0, 208, 132, 0.14);
}

.risk-entry-tag.is-down {
  border-color: rgba(255, 49, 88, 0.58);
  color: #ff8798;
  box-shadow: 0 0 18px rgba(255, 49, 88, 0.14);
}

.risk-entry-tag strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
}

.risk-win-tag {
  position: absolute;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 208, 132, 0.58);
  border-radius: 9px;
  padding: 7px 9px;
  background:
    radial-gradient(circle at 0 50%, rgba(0, 208, 132, 0.24), transparent 3rem),
    rgba(5, 9, 7, 0.9);
  color: #86ffab;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 1px rgba(0, 208, 132, 0.08),
    0 0 20px rgba(0, 208, 132, 0.16);
  pointer-events: none;
}

.risk-win-tag span {
  color: #86ffab;
  letter-spacing: 0.06em;
}

.risk-win-tag strong {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.risk-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 9px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.risk-signal-grid div {
  position: relative;
  min-height: 68px;
  border: 1px solid rgba(255, 184, 0, 0.34);
  border-radius: 8px;
  padding: 10px 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.14), transparent 5rem),
    rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 232, 164, 0.05);
}

.risk-signal-card i {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 6px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.11);
  color: var(--gold);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.risk-signal-card i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.risk-signal-card.signal i {
  border-color: rgba(0, 208, 132, 0.42);
  background: rgba(0, 208, 132, 0.13);
  color: #74ff9b;
}

.risk-signal-card.signal.is-down i {
  border-color: rgba(255, 93, 93, 0.42);
  background: rgba(255, 49, 88, 0.13);
  color: #ff6262;
}

.risk-signal-grid span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
}

.risk-signal-grid strong {
  margin-top: 5px;
  color: var(--gold);
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 720;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 184, 0, 0.2);
}

#riskSignal {
  color: #74ff9b;
}

.risk-signal-card.signal.is-down #riskSignal {
  color: #ff6262;
}

.risk-currency-switch button,
.risk-duration-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 660;
}

.risk-quick-grid button {
  font-weight: 660;
}

.risk-currency-switch img {
  width: 22px;
  height: 22px;
}

.risk-duration-grid svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.risk-amount-input input {
  font-weight: 620;
}

.risk-amount-input span {
  font-weight: 660;
}

.risk-amount-currency {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.risk-amount-currency img {
  width: 18px;
  height: 18px;
}

.risk-token-icon.nk {
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.16));
}

.risk-token-icon.usdt {
  opacity: 0.95;
  transform: scale(1.02);
}

@media (max-width: 390px) {
  .risk-terminal {
    padding: 7px;
  }

  .risk-payout-pill {
    min-width: 78px;
    padding: 9px 10px;
  }

  .risk-payout-pill strong {
    font-size: 23px;
  }

  .risk-chart-shell {
    height: 258px;
  }

  .risk-signal-grid {
    gap: 6px;
  }

  .risk-signal-grid div {
    min-height: 64px;
    padding: 9px 7px;
  }

  .risk-signal-grid strong {
    font-size: 16px;
  }
}

.agent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px 10px;
  box-shadow: none;
}

.agent-row + .agent-row {
  margin-top: -2px;
}

.agent-row.active {
  border-color: rgba(255, 184, 0, 0.26);
}

.agent-row.locked-by-other {
  opacity: 0.52;
}

.agent-row-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.agent-row-main h2 {
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
}

.agent-row-main p {
  margin: 1px 0 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.agent-row-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.agent-energy {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.agent-energy-stack {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
}

.agent-energy-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 190, 35, 0.22);
  border-radius: 999px;
  background: rgba(255, 190, 35, 0.07);
  color: #ffe08a;
  font-size: 9px;
  font-weight: 780;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 14px rgba(255, 190, 35, 0.08);
}

.agent-energy-timer[hidden] {
  display: none;
}

.agent-energy-timer svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255, 190, 35, 0.3));
}

.toggle-button {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px var(--soft);
  transition: background 160ms ease;
}

.toggle-button span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

.toggle-button.active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.28);
}

.toggle-button.active span {
  transform: translateX(22px);
}

.trade-card {
  overflow: hidden;
}

.trade-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 9px 12px 6px;
}

.trade-head strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.trade-head p {
  font-size: 12px;
  font-weight: 620;
}

.trade-head div:nth-child(3) strong {
  color: var(--green);
}

.chart-box {
  height: 236px;
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
  background: #151518;
  touch-action: pan-y;
  user-select: none;
}

#chart,
#fallbackChart {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#chart canvas {
  pointer-events: none;
}

.trade-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 13px 16px 17px;
}

.mini-card,
.ref-stats div {
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.mini-card span,
.ref-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-card strong,
.ref-stats strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 15px;
}

.stat-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.stat-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.stat-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.stat-line span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 720;
  line-height: 1.15;
}

.stat-line span:not(.stat-icon)::after {
  content: ":";
}

.stat-line span::before {
  color: var(--text);
}

.stat-line strong {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 780;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.dark-button,
.small-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 1000;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

.primary-button {
  width: 100%;
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #090805;
  box-shadow: 0 0 26px rgba(255, 184, 0, 0.24);
}

.primary-button.soft-disabled {
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.36);
  box-shadow: none;
  opacity: 1;
}

.soft-disabled {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.trade-card > .primary-button,
.trade-card > .deck-button {
  width: calc(100% - 32px);
  margin: 8px 16px 14px;
}

.deck-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #080805;
  font-size: 20px;
  font-weight: 1000;
  box-shadow: 0 0 26px rgba(255, 184, 0, 0.24);
}

.deck-button.stop-mode {
  background: #242426;
  color: var(--text);
  box-shadow: none;
}

.secondary-button {
  width: 100%;
  border: 1px solid rgba(255, 184, 0, 0.28);
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold);
}

.dark-button {
  width: 100%;
  border: 1px solid rgba(255, 184, 0, 0.1);
  background: rgba(255, 184, 0, 0.08);
  color: var(--gold);
}

.compact {
  width: auto;
  min-width: 112px;
  padding: 0 16px;
}

.primary-button:active,
.secondary-button:active,
.dark-button:active,
.small-action:active,
.nav-button:active,
.toggle-button:active {
  transform: scale(0.97);
}

.section-title {
  padding: 5px 2px 1px;
}

.section-title p {
  font-size: 12px;
}

.section-title h1 {
  font-size: 26px;
}

.section-title.centered,
.wallet-hero {
  display: grid;
  min-height: 92px;
  place-items: center;
  text-align: center;
}

.wallet-hero {
  min-height: 90px;
  padding-top: 4px;
}

.wallet-hero p {
  margin: 0 0 -6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  font-weight: 1000;
}

.wallet-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.plans,
.button-grid {
  display: grid;
  gap: 10px;
}

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

.plan-card,
.buy-pro-card,
.daily-card,
.scan-card,
.promo-card,
.ref-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

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

.ref-card h2 {
  font-size: 24px;
}

.ref-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(255, 184, 0, 0.38);
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 184, 0, 0.28), transparent 7rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.12), rgba(255, 255, 255, 0.028)),
    #101014;
}

.ref-hero::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -58px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(255, 184, 0, 0.14);
  border-radius: 50%;
}

.ref-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ref-hero p,
.ref-levels-card p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.ref-hero h2 {
  margin: 0;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}

.ref-hero > span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12.5px;
  line-height: 1.35;
}

.ref-level-badge {
  display: inline-flex;
  min-width: 62px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 184, 0, 0.36);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.ref-progress {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.ref-progress div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ref-progress strong {
  color: var(--text);
  font-size: 13px;
}

.ref-progress span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.ref-progress i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ref-progress b {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe07a, var(--gold));
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.32);
}

.invite-card {
  overflow: hidden;
}

.invite-card .button-grid {
  margin-top: 10px;
}

.invite-card .secondary-button {
  min-height: 44px;
}

.ref-stats {
  width: 100%;
}

.ref-stats div {
  padding: 12px;
}

.ref-stats strong {
  font-size: 18px;
}

.ref-levels-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.ref-levels-table {
  display: grid;
  gap: 7px;
}

.ref-level-row {
  display: grid;
  grid-template-columns: 54px 52px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.ref-level-row.active {
  border-color: rgba(255, 184, 0, 0.44);
  background:
    linear-gradient(90deg, rgba(255, 184, 0, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.ref-level-row span,
.ref-level-row strong {
  color: var(--text);
  font-weight: 840;
}

.ref-level-row strong {
  color: var(--gold);
}

.ref-level-row em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-level-row b {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 760;
}

.daily-card,
.scan-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #1b1b22, #101015);
}

.scan-card > div {
  flex: 1;
  min-width: 0;
}

.scan-card .secondary-button {
  width: auto;
  min-width: 92px;
  margin-left: auto;
}

.scan-card h2 {
  font-size: 22px;
}

.scan-card span {
  margin-top: 4px;
}

.scan-card .secondary-button {
  min-width: 92px;
}

.plan-card span,
.buy-pro-card span,
.daily-card span,
.scan-card span,
.ref-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan-card > strong {
  color: var(--gold);
  white-space: nowrap;
}

.plan-card {
  background: linear-gradient(180deg, #1b1b22, #111116);
}

.plan-card.pro {
  border-color: rgba(255, 184, 0, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.02) 58%),
    linear-gradient(180deg, #1b1b22, #111116);
}

.buy-pro-card,
.liquidity-panel,
.promo-card,
.invite-card,
.swap-card,
.transactions {
  padding: 14px;
}

.buy-pro-card,
.liquidity-panel {
  background: linear-gradient(180deg, #1b1b22, #101015);
}

.panel-head,
.amount-line,
.connected-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head > strong,
.amount-line span,
.connected-wallet {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.amount-line {
  margin-top: 8px;
}

.amount-line strong {
  font-size: 21px;
}

.range {
  width: 100%;
  height: 28px;
  margin-top: 6px;
  accent-color: var(--gold);
}

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

.quick-grid button {
  min-height: 34px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 900;
}

.pay-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 5px;
}

.pay-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(255, 184, 0, 0.13);
  border-radius: 8px;
  padding: 8px 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
  color: var(--text);
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.pay-method.active {
  border-color: rgba(255, 184, 0, 0.5);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.28), transparent 78%),
    linear-gradient(180deg, rgba(255, 184, 0, 0.16), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 225, 141, 0.08), 0 0 18px rgba(255, 184, 0, 0.12);
}

.pay-method:active {
  transform: scale(0.98);
}

.pay-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.usdt-icon {
  background: linear-gradient(180deg, #3fd6b5, #0b8a75);
  color: #06130f;
}

.stars-icon {
  background: linear-gradient(180deg, #fff1a7, #ffb800 58%, #8d6200);
  color: #130d00;
}

.pay-method-copy,
.modal-pay-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pay-method-copy strong,
.modal-pay-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
}

.pay-method-copy small,
.modal-pay-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-method-copy strong {
  font-size: 13px;
  font-weight: 850;
}

.pay-method-copy small {
  font-size: 10px;
  font-weight: 620;
}

.pay-estimate {
  display: block;
  text-align: center;
  color: rgba(255, 184, 0, 0.74);
  font-weight: 650;
}

.liquidity-builder {
  display: grid;
  gap: 8px;
}

.upgrade-tutorial-group {
  display: grid;
  gap: 8px;
}

.liquidity-builder input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.quick-amounts button {
  min-height: 32px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--gold);
  font-weight: 1000;
}

.tiny-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scan-card {
  position: relative;
  overflow: hidden;
}

.bonus-avatar {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.16);
}

.promo-form,
.invite-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.promo-form {
  grid-template-columns: minmax(0, 1fr) minmax(74px, 86px);
}

.promo-card {
  display: block;
}

.promo-form input,
.invite-line input,
.swap-card input {
  min-height: 48px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 900;
  outline: none;
}

.invite-line input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.small-action {
  background: var(--panel-3);
  color: var(--gold);
  padding: 0 8px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plus-action {
  min-height: 48px;
  border: 1px solid rgba(255, 184, 0, 0.28);
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-2px);
}

.share-button {
  min-height: 46px;
  margin-top: 10px;
}

.promo-form .secondary-button {
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

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

.candle-catch-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  margin-bottom: 10px;
  overflow: hidden;
  padding: 13px 13px 13px 15px;
  border-color: rgba(255, 190, 35, 0.42);
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 190, 35, 0.28), transparent 8rem),
    linear-gradient(135deg, rgba(255, 190, 35, 0.12), rgba(16, 16, 19, 0.96) 52%),
    #090a0d;
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 170, 0.12),
    0 18px 40px rgba(255, 184, 0, 0.1);
}

.candle-catch-banner.claimed {
  opacity: 0.72;
}

.candle-catch-bg {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
}

.candle-catch-bg span {
  position: absolute;
  bottom: 10px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 216, 93, 0.75), rgba(255, 184, 0, 0.1));
  box-shadow: 0 0 18px rgba(255, 184, 0, 0.28);
}

.candle-catch-bg span::before,
.candle-catch-bg span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 216, 93, 0.5);
}

.candle-catch-bg span::before {
  top: -12px;
  height: 12px;
}

.candle-catch-bg span::after {
  bottom: -14px;
  height: 14px;
}

.candle-catch-bg span:nth-child(1) { left: 46%; height: 34px; opacity: 0.45; }
.candle-catch-bg span:nth-child(2) { left: 58%; height: 52px; opacity: 0.72; }
.candle-catch-bg span:nth-child(3) { left: 70%; height: 28px; opacity: 0.5; }
.candle-catch-bg span:nth-child(4) { left: 82%; height: 60px; opacity: 0.78; }
.candle-catch-bg span:nth-child(5) { left: 92%; height: 40px; opacity: 0.46; }

.candle-catch-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.candle-catch-copy p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.candle-catch-copy h2 {
  margin: 0;
  color: #fff8df;
  font-size: 22px;
  font-weight: 860;
  line-height: 1;
}

.candle-catch-copy span {
  display: block;
  max-width: 220px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.25;
}

.candle-catch-action {
  position: relative;
  z-index: 1;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid rgba(255, 211, 73, 0.72);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd764, #f5ad05);
  color: #130d00;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.24);
}

.candle-catch-action:disabled {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.44);
  box-shadow: none;
}

.task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.task-item-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 195, 42, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 195, 42, 0.16), rgba(25, 25, 30, 0.94) 44%),
    var(--card);
  box-shadow: 0 16px 32px rgba(255, 178, 15, 0.12), inset 0 1px 0 rgba(255, 232, 153, 0.16);
}

.task-item-featured h3 {
  color: #fff3c4;
}

.task-item-featured strong {
  color: #8cffad;
}

.task-item-featured .secondary-button {
  border-color: rgba(255, 199, 45, 0.72);
  background: linear-gradient(180deg, #ffd257, var(--gold));
  color: #100b00;
}

.task-item h3 {
  margin: 0;
  font-size: 16px;
}

.task-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.task-item strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
}

.task-item button {
  min-height: 42px;
}

.candle-game-screen {
  position: relative;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 10px;
}

.candle-game-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 190, 35, 0.09), transparent 15rem),
    linear-gradient(180deg, rgba(255, 190, 35, 0.035), transparent 26%),
    #050609;
}

.candle-game-hero {
  position: relative;
  display: block;
  min-height: 120px;
  margin-top: 4px;
  padding: 22px 8px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 35, 0.07), transparent) 50% 72px / 100% 1px no-repeat;
  box-shadow: none;
}

.candle-game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 54%, rgba(255, 190, 35, 0.2), transparent 13rem);
  opacity: 0.65;
}

.candle-game-hero::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 18px;
  width: min(520px, 100%);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 58, 0.45), transparent);
  transform: translateX(50%);
  box-shadow: 0 0 18px rgba(255, 190, 35, 0.32);
}

.candle-game-back {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 207, 74, 0.34);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 35, 0.14), transparent 2.6rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 12, 0.72);
  color: #ffd45c;
  font-size: 21px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 190, 35, 0.12);
}

.candle-title-candles {
  position: absolute;
  top: 58px;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3px;
  min-width: 28px;
  pointer-events: none;
}

.candle-title-candles.left {
  left: 0;
}

.candle-title-candles.right {
  right: 0;
}

.candle-title-candles span {
  position: relative;
  display: block;
  width: 5px;
  height: 19px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff4bb, #f4af08);
  box-shadow: 0 0 16px rgba(255, 198, 43, 0.78), 0 0 34px rgba(255, 198, 43, 0.26);
}

.candle-title-candles span::before,
.candle-title-candles span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #ffe27a;
  box-shadow: 0 0 10px rgba(255, 198, 43, 0.6);
}

.candle-title-candles span::before { top: -9px; height: 9px; }
.candle-title-candles span::after { bottom: -9px; height: 9px; }
.candle-title-candles span:nth-child(1) { height: 15px; margin-top: 13px; opacity: 0.7; }
.candle-title-candles span:nth-child(2) { height: 27px; margin-top: 5px; }
.candle-title-candles span:nth-child(3) { height: 20px; margin-top: 0; opacity: 0.82; }
.candle-title-candles.right { transform: scaleX(-1); }

.candle-title-main {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 0 36px;
}

.candle-game-hero h1 {
  margin: 0 0 12px;
  color: #ffc821;
  font-size: clamp(22px, 6.8vw, 30px);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #8b5600,
    0 0 14px rgba(255, 190, 35, 0.8),
    0 0 44px rgba(255, 190, 35, 0.42);
}

.candle-game-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 262px);
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 190, 35, 0.46);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 15, 0.86);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(255, 190, 35, 0.12);
  white-space: nowrap;
}

.candle-game-subtitle b {
  color: #ffcc26;
}

.candle-game-subtitle em {
  color: #ff5d55;
  font-style: normal;
}

.candle-max-badge {
  display: none !important;
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 211, 82, 0.38);
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.72);
  color: #ffe58d;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 238, 180, 0.1);
}

.candle-game-info {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 190, 35, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 190, 35, 0.16), transparent 4.8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(10, 11, 15, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.candle-game-info span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 203, 52, 0.46);
  border-radius: 50%;
  background: rgba(255, 190, 35, 0.08);
  color: #ffd45c;
  font-size: 16px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(255, 190, 35, 0.16);
}

.candle-game-info p {
  margin: 0;
  color: rgba(255, 246, 220, 0.78);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.candle-game-info[hidden] {
  display: none;
}

.candle-game-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.candle-game-stat {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  padding: 11px 9px;
  border: 1px solid rgba(255, 190, 35, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 190, 35, 0.12), transparent 3.4rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(11, 12, 16, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 13px 28px rgba(0, 0, 0, 0.18);
}

.candle-game-stat::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 190, 35, 0.12);
  border-radius: 50%;
}

.candle-game-stat i {
  position: absolute;
  top: 9px;
  right: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 205, 71, 0.34);
  border-radius: 9px;
  background: rgba(255, 190, 35, 0.08);
  color: var(--gold);
  font-style: normal;
  box-shadow: inset 0 1px 0 rgba(255, 238, 180, 0.1);
}

.stat-score i::before { content: "↗"; font-size: 13px; }
.stat-combo i::before { content: "×"; font-size: 15px; font-weight: 900; }
.stat-timer i::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 3px -2px 0 -2px currentColor;
}
.stat-reward i::before { content: "$"; font-size: 13px; font-weight: 900; }

.stat-score strong,
.stat-reward strong {
  color: #ffda54;
  text-shadow: 0 0 17px rgba(255, 190, 35, 0.3);
}

.stat-timer {
  border-color: rgba(255, 218, 90, 0.3);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 220, 86, 0.22), transparent 3.4rem),
    linear-gradient(180deg, rgba(255, 190, 35, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(11, 12, 16, 0.94);
}

.stat-timer strong {
  color: #fff4c9;
  font-size: 18px;
}

.candle-game-stat span,
.candle-status-panel span,
.candle-reward-top span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.candle-game-stat strong {
  display: block;
  margin-top: 14px;
  color: #ffe58d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.candle-game-arena {
  position: relative;
  height: 430px;
  min-height: 430px;
  overflow: hidden;
  touch-action: pan-y;
  border: 1px solid rgba(255, 190, 35, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 190, 35, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 35, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(255, 190, 35, 0.09), transparent 12rem),
    radial-gradient(circle at 50% 100%, rgba(255, 190, 35, 0.12), transparent 9rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.025), rgba(0, 0, 0, 0.14) 38%, rgba(255, 184, 0, 0.045)),
    #050609;
  background-size: 100% 52px, 52px 100%, auto, auto, auto;
  box-shadow:
    inset 0 0 0 1px rgba(255, 238, 180, 0.055),
    inset 0 -86px 112px rgba(255, 184, 0, 0.1),
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 184, 0, 0.045);
  cursor: pointer;
}

.candle-game-arena.playing {
  cursor: grab;
  touch-action: none;
}

.candle-game-arena::before,
.candle-game-arena::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.candle-game-arena::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 10%),
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0, 0, 0, 0.36));
  z-index: 1;
}

.candle-game-arena::after {
  inset: auto 18px 66px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 206, 63, 0.5), transparent);
  box-shadow: 0 0 16px rgba(255, 190, 35, 0.28);
  z-index: 1;
}

.candle-market-line {
  display: none;
}

.candle-market-line::before {
  content: "";
  position: absolute;
  inset: 12% -8% auto -8%;
  height: 190px;
  background:
    linear-gradient(135deg, transparent 5%, rgba(255, 196, 35, 0.34) 5.5%, transparent 6% 14%, rgba(255, 196, 35, 0.28) 14.5%, transparent 15% 24%, rgba(255, 196, 35, 0.38) 24.5%, transparent 25% 36%, rgba(255, 196, 35, 0.22) 36.5%, transparent 37% 48%, rgba(255, 196, 35, 0.36) 48.5%, transparent 49% 64%, rgba(255, 196, 35, 0.24) 64.5%, transparent 65% 78%, rgba(255, 196, 35, 0.34) 78.5%, transparent 79%);
  filter: drop-shadow(0 0 10px rgba(255, 190, 35, 0.24));
  transform: skewY(-8deg);
}

.candle-ghost-candles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.candle-ghost-candles span {
  position: absolute;
  bottom: 78px;
  width: 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 231, 134, 0.55), rgba(255, 190, 35, 0.08));
  filter: blur(0.15px);
  box-shadow: 0 0 18px rgba(255, 190, 35, 0.18);
  animation: ghostCandleDrift 5.5s linear infinite;
}

.candle-ghost-candles span::before,
.candle-ghost-candles span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 210, 78, 0.35);
}

.candle-ghost-candles span::before { top: -18px; height: 18px; }
.candle-ghost-candles span::after { bottom: -22px; height: 22px; }
.candle-ghost-candles span:nth-child(1) { left: 10%; height: 72px; opacity: 0.28; }
.candle-ghost-candles span:nth-child(2) { left: 27%; height: 116px; opacity: 0.2; background: linear-gradient(180deg, rgba(255, 119, 104, 0.42), rgba(255, 82, 82, 0.06)); box-shadow: 0 0 18px rgba(255, 82, 82, 0.16); animation-delay: -1.1s; }
.candle-ghost-candles span:nth-child(3) { left: 48%; height: 88px; opacity: 0.24; animation-delay: -2.2s; }
.candle-ghost-candles span:nth-child(4) { left: 69%; height: 130px; opacity: 0.18; animation-delay: -3.1s; }
.candle-ghost-candles span:nth-child(5) { left: 88%; height: 96px; opacity: 0.25; background: linear-gradient(180deg, rgba(255, 119, 104, 0.38), rgba(255, 82, 82, 0.05)); box-shadow: 0 0 18px rgba(255, 82, 82, 0.14); animation-delay: -4.2s; }

@keyframes ghostCandleDrift {
  from {
    transform: translateY(-18px);
  }
  to {
    transform: translateY(56px);
  }
}

.candle-showcase {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.decor-candle {
  position: absolute;
  width: 24px;
  height: 66px;
  border-radius: 7px;
  opacity: 0.9;
  transform: translateX(-50%);
}

.decor-candle::before,
.decor-candle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: currentColor;
}

.decor-candle::before {
  top: -18px;
  height: 18px;
}

.decor-candle::after {
  bottom: -18px;
  height: 18px;
}

.decor-candle.gold {
  color: #ffd93d;
  border: 2px solid #fff0a5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(180deg, #ffd93d, #d78c00);
  box-shadow:
    0 -28px 34px rgba(255, 205, 38, 0.32),
    0 0 24px rgba(255, 205, 38, 0.88),
    inset 0 0 14px rgba(255, 255, 255, 0.22);
}

.decor-candle.red {
  color: #ff5a50;
  border: 2px solid #ff9a8f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 18%),
    linear-gradient(180deg, #ff5f55, #a91420);
  box-shadow:
    0 -28px 34px rgba(255, 70, 70, 0.24),
    0 0 24px rgba(255, 70, 70, 0.72),
    inset 0 0 14px rgba(255, 255, 255, 0.15);
}

.decor-candle.c1 { left: 18%; top: 36px; }
.decor-candle.c2 { left: 36%; top: 126px; }
.decor-candle.c3 { left: 59%; top: 54px; }
.decor-candle.c4 { left: 75%; top: 236px; }
.decor-candle.c5 { left: 86%; top: 118px; }
.decor-candle.c6 { left: 18%; top: 246px; }
.decor-candle.c7 { left: 88%; top: 302px; }

.candle-plus-demo {
  position: absolute;
  left: 50%;
  bottom: 132px;
  color: #ffd241;
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 190, 35, 0.75);
  transform: translateX(-50%);
}

.candle-sparks {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 215, 66, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 42%, rgba(255, 215, 66, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 36%, rgba(255, 215, 66, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 72%, rgba(255, 215, 66, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 78%, rgba(255, 215, 66, 0.75) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 88%, rgba(255, 184, 0, 0.32), transparent 46%);
  filter: drop-shadow(0 0 18px rgba(255, 190, 35, 0.62));
  transform: translateX(-50%);
}

.candle-game-idle {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.28), transparent 38%);
  box-shadow: none;
  backdrop-filter: none;
}

.candle-game-idle i {
  display: none;
}

.candle-game-idle strong {
  display: none;
}

.candle-game-idle span {
  display: none;
}

.candle-game-idle em {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid rgba(255, 211, 82, 0.36);
  border-radius: 999px;
  background: rgba(255, 190, 35, 0.09);
  color: #ffe27a;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  box-shadow: 0 0 20px rgba(255, 190, 35, 0.16);
}

.candle-start-hint {
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: min(76%, 260px);
  padding: 13px 16px;
  border: 1px solid rgba(255, 190, 35, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 35, 0.16), transparent 5.5rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(6, 7, 10, 0.62);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(255, 190, 35, 0.1);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.candle-start-hint strong {
  color: #ffe28a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(255, 190, 35, 0.28);
}

.candle-start-hint span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.candle-start-hint svg {
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  color: #ffd45c;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255, 190, 35, 0.4));
}

.candle-start-hint.cooldown {
  gap: 8px;
  padding: 18px 16px;
  border-color: rgba(255, 203, 52, 0.4);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 35, 0.2), transparent 6rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(6, 7, 10, 0.74);
}

.candle-start-hint.cooldown strong {
  color: #ffd45c;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.candle-start-hint.countdown {
  width: 128px;
  min-height: 128px;
  align-content: center;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 220, 104, 0.28), transparent 4.4rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(6, 7, 10, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 190, 35, 0.16);
}

.candle-start-hint.countdown strong {
  color: #ffd45c;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
  text-shadow:
    0 0 22px rgba(255, 190, 35, 0.7),
    0 2px 0 rgba(100, 61, 0, 0.8);
  animation: candleCountdownPop 820ms ease both;
}

.candle-start-hint.countdown span {
  color: rgba(255, 246, 218, 0.72);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

@keyframes candleCountdownPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  35% {
    opacity: 1;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.falling-candle {
  position: absolute;
  top: 0;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 58px;
  place-items: center;
  pointer-events: none;
  transform: translate3d(-50%, -64px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: layout paint style;
}

.falling-candle i {
  position: relative;
  width: 15px;
  height: 40px;
  border-radius: 6px;
  transform: translateZ(0);
  backface-visibility: hidden;
  box-shadow: 0 0 22px currentColor;
}

.falling-candle i::before,
.falling-candle i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: currentColor;
  opacity: 0.72;
}

.falling-candle i::before {
  top: -11px;
  height: 11px;
}

.falling-candle i::after {
  bottom: -11px;
  height: 11px;
}

.falling-candle.gold {
  color: #ffd75d;
}

.falling-candle.gold i {
  background: linear-gradient(180deg, #fff7c7, #ffcd35 42%, #ef9d02);
  box-shadow:
    0 0 22px rgba(255, 207, 53, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.falling-candle.red {
  color: #ff716d;
}

.falling-candle.red i {
  background: linear-gradient(180deg, #ffaaa4, #ff645e 42%, #b9232c);
  box-shadow:
    0 0 22px rgba(255, 92, 92, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.falling-candle.caught {
  opacity: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.candle-catcher {
  position: absolute;
  bottom: 2px;
  left: 50%;
  z-index: 5;
  width: 166px;
  height: 76px;
  border: 0;
  border-radius: 0;
  background: url("/assets/candle-catcher-nk.png?v=20260521") center bottom / contain no-repeat;
  box-shadow: none;
  transform: translateX(-50%);
  transition: left 80ms linear;
}

.candle-catcher::before {
  content: none;
}

.candle-catcher::after {
  content: none;
}

.candle-catcher span {
  display: none;
}

.candle-feedback-layer,
.candle-arena-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.candle-arena-flash {
  z-index: 3;
  opacity: 0;
  transition: opacity 180ms ease;
}

.candle-arena-flash.gold.active {
  opacity: 1;
  background: radial-gradient(circle at 50% 75%, rgba(255, 210, 68, 0.26), transparent 38%);
}

.candle-arena-flash.red.active {
  opacity: 1;
  background: radial-gradient(circle at 50% 70%, rgba(255, 73, 73, 0.22), transparent 40%);
}

.candle-arena-flash.miss.active {
  opacity: 1;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05));
}

.candle-float {
  position: absolute;
  z-index: 7;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 900;
  animation: candleFloat 900ms ease forwards;
  text-shadow: 0 0 18px currentColor;
}

.candle-float.gold {
  color: #ffe27a;
}

.candle-float.red {
  color: #ff8781;
}

@keyframes candleFloat {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.9);
  }
  18% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -34px) scale(1.05);
  }
}

.candle-game-arena.shake {
  animation: candleShake 260ms ease;
}

@keyframes candleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.candle-status-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 35, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 35, 0.13), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(11, 12, 16, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.candle-status-panel div {
  position: relative;
  min-width: 0;
  padding: 12px 11px;
}

.candle-status-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.candle-status-panel strong {
  display: block;
  margin-top: 6px;
  color: #fff1bd;
  font-size: 16px;
  white-space: nowrap;
}

.candle-status-panel div:first-child strong {
  color: #ff8b83;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(255, 80, 80, 0.24);
}

.status-lives::after,
.status-record::after {
  position: absolute;
  top: 11px;
  right: 10px;
  color: rgba(255, 210, 82, 0.78);
  font-size: 15px;
  filter: drop-shadow(0 0 10px rgba(255, 190, 35, 0.24));
}

.status-lives::after { content: "♥"; color: rgba(255, 118, 112, 0.84); }
.status-record::after { content: "♛"; }

.candle-streak-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 7px;
}

.candle-streak-bars b {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.candle-streak-bars b.active {
  background: linear-gradient(90deg, #f5ae05, #ffe078);
  box-shadow: 0 0 10px rgba(255, 190, 35, 0.35);
}

.candle-status-panel {
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 190, 35, 0.1), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(11, 12, 16, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.candle-status-panel div {
  padding: 12px 11px 11px;
}

.candle-status-panel span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d8b95a;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 190, 35, 0.16);
}

.candle-status-panel strong {
  margin-top: 7px;
  color: #fff2c9;
  font-size: 15px;
  font-weight: 850;
}

.candle-status-panel div:first-child strong {
  color: #ffc821;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(255, 190, 35, 0.32);
}

.status-lives::after,
.status-record::after {
  content: none;
}

.status-lives span::before,
.status-streak span::before,
.status-record span::before {
  color: #ffc821;
  font-size: 12px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 190, 35, 0.34));
}

.status-lives span::before { content: "♥"; }
.status-streak span::before { content: "↯"; }
.status-record span::before { content: "♛"; }

#candleGameLives {
  display: flex;
  align-items: center;
  gap: 7px;
}

#candleGameLives i {
  color: rgba(255, 255, 255, 0.18);
  font-size: 21px;
  font-style: normal;
  line-height: 1;
}

#candleGameLives i.active {
  color: #ffc821;
  text-shadow: 0 0 14px rgba(255, 190, 35, 0.46);
}

.status-streak strong {
  color: #d2c9b4;
  font-size: 12px;
  text-align: right;
}

.status-record strong {
  color: #f5f0df;
  font-size: 14px;
}

.candle-streak-bars {
  margin-top: 8px;
}

.candle-status-panel .candle-streak-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  padding: 0;
}

.candle-streak-row .candle-streak-bars {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  max-width: 64px;
  margin: 0;
}

.candle-streak-row .candle-streak-bars b {
  height: 6px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.candle-streak-row .candle-streak-bars b.active {
  background: linear-gradient(180deg, #ffe06a, #f3ad08);
  box-shadow: 0 0 10px rgba(255, 190, 35, 0.36);
}

.candle-streak-row #candleGameStreak {
  flex: 0 0 auto;
  margin: 0;
  color: #d3c7aa;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-align: right;
}

.candle-reward-panel {
  padding: 13px 13px 14px;
  border: 1px solid rgba(255, 190, 35, 0.3);
  border-radius: 19px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 190, 35, 0.18), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 14, 18, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 245, 190, 0.08), 0 14px 32px rgba(0, 0, 0, 0.18);
}

.candle-reward-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.candle-reward-top strong {
  color: var(--gold);
  font-size: 13px;
}

.candle-reward-track {
  position: relative;
  height: 10px;
  margin: 18px 9px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.candle-reward-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e89a00, #ffd64f, #fff0a7);
  box-shadow: 0 0 20px rgba(255, 190, 35, 0.46);
}

.candle-reward-track b {
  position: absolute;
  top: 50%;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(255, 190, 35, 0.36);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #17181d;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255, 190, 35, 0.035);
}

.candle-reward-track b::before {
  content: "";
  width: 7px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 2px;
  opacity: 0.8;
}

.candle-reward-track b::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 6px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.candle-reward-track b:nth-of-type(1) { left: 25%; }
.candle-reward-track b:nth-of-type(2) { left: 50%; }
.candle-reward-track b:nth-of-type(3) { left: 75%; }
.candle-reward-track b:nth-of-type(4) { left: 100%; }

.candle-reward-track b.active {
  border-color: rgba(255, 226, 111, 0.9);
  background: radial-gradient(circle at 50% 35%, #fff2a6, #f5ae05);
  box-shadow: 0 0 18px rgba(255, 190, 35, 0.58), 0 0 0 5px rgba(255, 190, 35, 0.06);
}

.candle-reward-track b.active::before {
  width: 7px;
  height: 4px;
  border: solid #110b00;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 1;
}

.candle-reward-track b.active::after {
  content: none;
}

.candle-reward-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.candle-reward-milestones span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  text-align: center;
}

.candle-reward-milestones span.active {
  color: #ffe27a;
}

.candle-play-button {
  position: relative;
  width: 100%;
  min-height: 58px;
  margin-top: -2px;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 168, 0.88);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 18% 82%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #ffe27a, #f8b40b 56%, #df9100);
  color: #120c00;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 18px 46px rgba(255, 184, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(117, 66, 0, 0.18);
}

.candle-play-button::after {
  content: "▶";
  position: absolute;
  right: 19px;
  top: 50%;
  color: rgba(24, 13, 0, 0.78);
  font-size: 13px;
  transform: translateY(-50%);
}

.candle-play-button:active {
  transform: translateY(1px);
  box-shadow:
    0 10px 26px rgba(255, 184, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.candle-play-button:disabled {
  opacity: 0.7;
}

.candle-game-screen .candle-play-button {
  min-height: 46px;
  margin-top: -2px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #080805;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 0 26px rgba(255, 184, 0, 0.24);
}

.candle-game-screen .candle-play-button::after {
  content: none;
}

.candle-catch-result {
  padding: 10px;
  border: 1px solid rgba(93, 255, 144, 0.26);
  border-radius: 12px;
  background: rgba(49, 255, 126, 0.07);
  color: #8cffad;
  text-align: center;
  font-size: 18px;
  font-weight: 850;
}

.ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 150px;
}

.invite-card p {
  margin-bottom: 4px;
}

.coin-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 1000;
}

.coin-icon.image-token {
  display: block;
  object-fit: cover;
}

.coin-icon.nk {
  background: #000;
  color: var(--gold);
}

.coin-icon.usdt {
  background: var(--teal);
  color: #fff;
}

.asset-card {
  justify-content: flex-start;
  padding: 12px;
}

.asset-card h2 {
  overflow-wrap: anywhere;
}

.asset-amount {
  margin-left: auto;
  text-align: right;
}

.asset-amount strong,
.screen[data-screen="wallet"] > .asset-card:nth-of-type(3) h2 {
  display: block;
  color: var(--text);
  font-size: 21px;
  line-height: 1;
}

.asset-amount span,
.asset-usd-value {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 15px;
  font-weight: 900;
}

.screen[data-screen="wallet"] > .asset-card:nth-of-type(3) {
  position: relative;
}

.wallet-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.wallet-buttons.card {
  margin-top: 0;
  border-top-color: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, #18181e, #111116);
}

.wallet-swap-launch {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  border-color: rgba(255, 184, 0, 0.34);
  padding: 10px 12px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 184, 0, 0.22), transparent 7rem),
    linear-gradient(180deg, #17171c, #0d0d10);
  color: var(--text);
  text-align: left;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.wallet-swap-launch:active {
  transform: scale(0.985);
}

.wallet-swap-launch strong,
.wallet-swap-launch small {
  display: block;
}

.wallet-swap-launch strong {
  color: var(--gold);
  font-size: 16px;
  line-height: 1.05;
}

.wallet-swap-launch small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.wallet-swap-launch b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  line-height: 1;
}

.swap-launch-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.42);
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.16);
}

.connected-wallet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px 0 4px;
  color: var(--text);
}

.connected-wallet > div {
  min-width: 0;
}

.connected-wallet span {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 1000;
}

.connected-wallet strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gold);
}

.wallet-copy-button,
.wallet-disconnect-button {
  width: 36px;
  height: 36px;
}

.link-icon[hidden] {
  display: none;
}

.swap-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  border-color: rgba(255, 184, 0, 0.48);
  padding: 12px;
  background:
    radial-gradient(circle at 6% 0, rgba(255, 184, 0, 0.18), transparent 8rem),
    radial-gradient(circle at 95% 12%, rgba(18, 199, 167, 0.11), transparent 7rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.08), transparent),
    #070705;
}

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

.swap-title-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.swap-cycle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.58);
  border-radius: 50%;
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.15);
}

.swap-title-lockup h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.swap-title-lockup p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.swap-title-lockup b {
  color: var(--gold);
}

.swap-title-lockup strong {
  color: var(--teal);
}

.swap-balance-pill {
  display: grid;
  min-width: 116px;
  border: 1px solid rgba(255, 184, 0, 0.36);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 184, 0, 0.055);
  text-align: right;
}

.swap-balance-pill span,
.swap-panel span,
.swap-token-side small,
.swap-meta-row {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.swap-balance-pill strong {
  color: var(--gold);
  font-size: 15px;
  line-height: 1.15;
}

.swap-panel {
  display: grid;
  grid-template-columns: minmax(112px, 0.82fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 184, 0, 0.38);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
}

.swap-token-side {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.swap-token-side img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.24));
}

.swap-token-side span {
  display: block;
  text-transform: uppercase;
}

.swap-token-side strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.swap-amount-side {
  display: grid;
  min-width: 0;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.swap-card input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 26px;
  font-weight: 1000;
  text-align: right;
  outline: none;
}

.swap-percent-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.swap-percent-row button {
  min-height: 30px;
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 7px;
  background: rgba(255, 184, 0, 0.07);
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
}

.swap-center-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  justify-self: center;
  margin: -16px 0;
  border: 1px solid rgba(255, 184, 0, 0.58);
  border-radius: 50%;
  background: #111006;
  color: var(--gold);
  font-size: 25px;
  font-weight: 1000;
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.24);
  z-index: 1;
}

.swap-receive-panel .swap-token-side img {
  filter: drop-shadow(0 0 14px rgba(18, 199, 167, 0.24));
}

.swap-amount-side > strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 1000;
}

.swap-amount-side > small {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.swap-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 10px;
  text-align: center;
}

.swap-meta-row span:first-child {
  color: var(--text);
}

.swap-action-button {
  min-height: 54px;
  font-size: 18px;
}

.swap-status-pill {
  justify-self: center;
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  background:
    linear-gradient(180deg, rgba(255, 184, 0, 0.12), rgba(255, 184, 0, 0.045)),
    rgba(255, 255, 255, 0.035);
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#transactionList {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.transaction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.transaction-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transaction-item span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.transaction-item time {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.transaction-empty {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 184, 0, 0.12), transparent 7rem),
    rgba(255, 255, 255, 0.035);
}

.transaction-empty strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.1;
}

.transaction-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.transaction-more-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  font-size: 12px;
}

.app-header {
  margin-bottom: 12px;
}

.user-chip {
  flex: 0 1 auto;
  max-width: min(230px, calc(100vw - 176px));
  min-height: 48px;
  gap: 8px;
  justify-content: flex-start;
  padding: 4px 11px 4px 4px;
  overflow: hidden;
  border-color: rgba(255, 184, 0, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(6, 7, 8, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.user-chip .user-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 184, 0, 0.24);
  box-shadow: none;
}

.user-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-balances {
  margin-top: 0;
}

.wallet-hero {
  margin-top: 8px;
}

.loading-screen {
  --loader-coin-size: min(82vw, 360px);
  --loader-coin-top: clamp(72px, 11vh, 118px);
  display: block;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22)),
    url("/assets/loading-nk-agent.png") center / cover no-repeat,
    #020202;
}

.loading-backdrop-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-screen::before,
.loading-screen::after {
  content: none;
}

.loading-screen::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 208, 40, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 14%, rgba(255, 184, 0, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 32%, rgba(255, 184, 0, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 34%, rgba(255, 208, 40, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 56% 22%, rgba(255, 184, 0, 0.5) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 184, 0, 0.08) 8.2%, transparent 8.6% 22%, rgba(255, 184, 0, 0.12) 22.2%, transparent 22.6% 43%, rgba(255, 184, 0, 0.09) 43.2%, transparent 43.6% 61%, rgba(255, 184, 0, 0.11) 61.2%, transparent 61.6% 78%, rgba(255, 184, 0, 0.08) 78.2%, transparent 78.6%);
  opacity: 0.78;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 62%, transparent 82%);
}

.loading-screen::after {
  inset: clamp(330px, 52vh, 470px) 50% auto auto;
  width: min(78vw, 360px);
  height: 112px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 11px, rgba(255, 184, 0, 0.24) 12px 13px, transparent 14px 23px),
    radial-gradient(ellipse at center, rgba(255, 184, 0, 0.34), transparent 58%);
  box-shadow: 0 0 52px rgba(255, 184, 0, 0.28);
  transform: translateX(-50%) rotateX(67deg);
}

.loading-orbits {
  display: none;
}

.loading-orbits span {
  inset: 16% 3%;
  border-color: rgba(255, 184, 0, 0.22);
  opacity: 0.72;
  animation-duration: 18s;
}

.loading-orbits span:nth-child(2) {
  inset: 26% 12%;
}

.loading-orbits span:nth-child(3) {
  inset: 36% 22%;
}

.loading-core {
  display: none;
}

.loading-core::before {
  position: absolute;
  inset: 2% -9% -2% 11%;
  border-radius: 50%;
  background:
    linear-gradient(90deg, rgba(5, 3, 0, 0.22), rgba(165, 105, 0, 0.9) 52%, rgba(255, 225, 118, 0.98) 78%, rgba(116, 70, 0, 0.95)),
    #2a1700;
  filter: blur(0.2px);
  content: "";
  transform: translateZ(-24px);
}

.loading-core::after {
  position: absolute;
  inset: 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 202, 57, 0.78);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 60% 66%, #020202 0 38%, #11110f 58%, #050505 72%),
    linear-gradient(135deg, rgba(255, 221, 115, 0.22), transparent 32%, rgba(255, 184, 0, 0.18) 68%, transparent);
  box-shadow:
    inset 0 0 0 9px rgba(0, 0, 0, 0.72),
    inset 0 0 0 13px rgba(255, 184, 0, 0.22),
    inset 0 22px 34px rgba(255, 255, 255, 0.08),
    inset 0 -30px 42px rgba(0, 0, 0, 0.7);
  color: #ffcf45;
  content: "NK";
  font-size: clamp(76px, 20vw, 118px);
  font-weight: 1000;
  letter-spacing: -10px;
  line-height: 1;
  text-shadow:
    0 2px 0 #fff3b8,
    0 7px 10px rgba(0, 0, 0, 0.78),
    0 0 24px rgba(255, 184, 0, 0.45);
}

.loading-core img {
  position: relative;
  z-index: -1;
  opacity: 0;
}

.loading-brand {
  display: none;
}

.loading-brand strong {
  font-size: clamp(25px, 7vw, 40px);
  letter-spacing: clamp(7px, 2.6vw, 18px);
  text-indent: clamp(7px, 2.6vw, 18px);
  white-space: nowrap;
}

.loading-brand span {
  color: rgba(255, 219, 135, 0.58);
  font-size: 13px;
  letter-spacing: 7px;
}

.loading-progress-copy,
.loading-bar {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: min(70vw, 360px);
  transform: translateX(-50%);
}

.loading-progress-copy {
  bottom: clamp(56px, 7.2vh, 84px);
  margin-top: 0;
  color: rgba(255, 199, 54, 0.62);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.18);
  text-transform: none;
}

.loading-bar {
  bottom: clamp(38px, 5.3vh, 62px);
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.loading-bar i {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.58), rgba(255, 220, 118, 0.66));
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.24);
}

.loading-sync {
  display: none;
}

.loading-sync span {
  position: relative;
  width: 40px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.loading-sync span::before,
.loading-sync span::after {
  position: absolute;
  left: 7px;
  width: 24px;
  height: 12px;
  border: 1.5px solid var(--gold);
  border-top-width: 2px;
  content: "";
  transform: rotate(30deg) skewX(-30deg);
}

.loading-sync span::before {
  top: 4px;
  box-shadow: 7px 7px 0 -1.5px rgba(255, 184, 0, 0.9);
}

.loading-sync span::after {
  top: 18px;
}

.loading-sync small {
  color: rgba(255, 219, 135, 0.6);
}

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

.ref-stats div {
  display: grid;
  min-height: 66px;
  align-content: center;
  border-color: rgba(255, 184, 0, 0.12);
  background:
    radial-gradient(circle at 8% 0, rgba(255, 184, 0, 0.12), transparent 3.2rem),
    rgba(255, 255, 255, 0.035);
}

.ref-stats .ref-earnings {
  border-color: rgba(255, 184, 0, 0.32);
}

.daily-gift-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
  border-color: rgba(255, 184, 0, 0.24);
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 184, 0, 0.18), transparent 4.8rem),
    linear-gradient(180deg, #1a1a20, #101014);
}

.daily-gift-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.045), transparent 56%);
  content: "";
  pointer-events: none;
}

.daily-gift-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.32);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.14);
}

.daily-gift-orb img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.daily-gift-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-left: 6px;
}

.daily-gift-copy p {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.8px;
}

.daily-gift-copy h2 {
  font-size: 18px;
}

.daily-gift-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.daily-gift-card .secondary-button {
  position: relative;
  z-index: 1;
  min-width: 82px;
  min-height: 38px;
  padding: 0 12px;
}

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

.admin-screen {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: 12px;
}

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

.admin-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
}

.admin-card > span,
.admin-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 24px;
}

.admin-lines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-lines span,
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-lines strong {
  color: var(--gold);
  font-size: 15px;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  min-width: 0;
}

.admin-row {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-row.with-actions {
  align-items: flex-start;
}

.admin-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.admin-mini-button {
  min-height: 30px;
  border: 1px solid rgba(255, 184, 0, 0.22);
  border-radius: 7px;
  padding: 0 9px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--gold);
  font-size: 10px;
  font-weight: 1000;
}

.admin-mini-button.danger {
  border-color: rgba(255, 77, 109, 0.24);
  background: rgba(255, 77, 109, 0.1);
  color: #ff6b86;
}

.admin-row div {
  min-width: 0;
}

.admin-row strong,
.admin-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row strong {
  font-size: 13px;
}

.admin-row span,
.admin-empty {
  color: var(--muted);
  font-size: 11px;
}

.admin-row em {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-task-form {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}

.admin-task-form input,
.admin-task-form select,
.admin-task-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.admin-task-form textarea {
  min-height: 78px;
  padding-top: 10px;
  resize: vertical;
}

.admin-balance-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(96px, 0.6fr);
}

.admin-balance-form #adminBalanceNote {
  grid-column: 1 / -1;
}

.admin-lookup-form {
  grid-template-columns: 1fr auto;
}

.admin-lookup-result {
  margin-top: 12px;
}

.admin-lookup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-lookup-head strong {
  color: #fff8da;
  font-size: 15px;
}

.admin-lookup-head span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.admin-lookup-grid {
  display: grid;
  gap: 8px;
}

.admin-lookup-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 204, 45, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.admin-lookup-grid strong {
  color: #fff8da;
  text-align: right;
}

.admin-balance-form .primary-button,
.admin-balance-form .secondary-button {
  min-height: 42px;
}

.admin-form-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.danger-action {
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: min(100vw, var(--app-max-width));
  margin: 0 auto;
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

body.keyboard-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
}

.nav-button {
  display: grid;
  min-height: 50px;
  place-items: center;
  gap: 2px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
}

.nav-button.active {
  color: var(--gold);
}

.modal {
  width: min(90vw, 380px);
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  margin: auto;
  border: 1px solid rgba(255, 184, 0, 0.28);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.modal-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 184, 0, 0.14), transparent),
    var(--panel);
  text-align: center;
}

.modal-card p {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 900;
}

.modal-card h2 {
  margin: 0;
  font-size: 25px;
}

.modal-card > span:not(.agent-logo) {
  display: block;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.purchase-modal-card {
  display: grid;
  gap: 14px;
  text-align: left;
}

.purchase-modal-card h2,
.purchase-modal-card p {
  text-align: center;
}

.modal-pay-grid {
  display: grid;
  gap: 10px;
}

.modal-pay-option {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 8px;
  padding: 10px 14px 10px 10px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.13), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    #121214;
  color: var(--text);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.modal-pay-image {
  width: 64px;
  height: 64px;
  margin-left: -3px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.2));
}

.modal-pay-option[data-checkout-method="usdt"] .modal-pay-image {
  filter:
    drop-shadow(0 0 13px rgba(18, 199, 167, 0.26))
    drop-shadow(0 6px 11px rgba(0, 0, 0, 0.22));
}

.modal-pay-option[data-checkout-method="stars"] .modal-pay-image {
  filter:
    drop-shadow(0 0 16px rgba(255, 184, 0, 0.34))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.26));
}

.modal-pay-option b {
  color: var(--gold);
  font-size: 15px;
  font-weight: 780;
  text-align: right;
  white-space: nowrap;
}

.modal-pay-option:active {
  transform: scale(0.98);
}

.modal-pay-option.active {
  border-color: rgba(255, 184, 0, 0.54);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.28), transparent 72%),
    linear-gradient(180deg, rgba(255, 184, 0, 0.13), rgba(255, 255, 255, 0.035)),
    #13110b;
  box-shadow: inset 0 0 0 1px rgba(255, 225, 141, 0.08), 0 0 20px rgba(255, 184, 0, 0.12);
}

.modal-pay-option.active::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: 13px;
  height: 8px;
  border-bottom: 2px solid #080805;
  border-left: 2px solid #080805;
  transform: rotate(-45deg);
  z-index: 1;
}

.modal-pay-option.active::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe68d, var(--gold));
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.22);
}

.modal-close {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tutorial-modal {
  width: min(90vw, 390px);
  max-width: calc(100vw - 24px);
  border-color: rgba(255, 184, 0, 0.64);
  border-radius: 22px;
}

.tutorial-card {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 20px;
  padding: 56px 26px 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% -2%, rgba(255, 206, 75, 0.38), transparent 4.7rem),
    radial-gradient(circle at 50% 24%, rgba(255, 184, 0, 0.16), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    #191918;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62);
}

.tutorial-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 221, 115, 0.2);
  border-radius: 21px;
  pointer-events: none;
}

.tutorial-card::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 74px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 215, 100, 0.62);
  filter: blur(18px);
  transform: translateX(-50%);
}

.tutorial-visual {
  position: relative;
  width: 154px;
  height: 154px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.2), transparent 34%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 184, 0, 0.22) 0 1px, transparent 1px 14px);
}

.tutorial-visual::before,
.tutorial-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 50%;
}

.tutorial-visual::after {
  inset: 1px;
  border-color: rgba(255, 184, 0, 0.32);
  clip-path: polygon(0 0, 32% 0, 32% 100%, 0 100%, 68% 0, 100% 0, 100% 100%, 68% 100%);
}

.tutorial-visual img {
  position: absolute;
  inset: 37px;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 7px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(255, 184, 0, 0.42);
}

.tutorial-visual span,
.tutorial-visual i {
  display: none;
}

.tutorial-card p,
.tutorial-card h2,
.tutorial-card > span {
  position: relative;
  z-index: 1;
}

.tutorial-card p {
  text-align: center;
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tutorial-card p::before,
.tutorial-card p::after {
  content: "✦";
  margin: 0 12px;
  letter-spacing: 0;
}

.tutorial-card h2 {
  text-align: center;
  color: #fff8e9;
  font-size: 32px;
  line-height: 1.08;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.12);
}

.tutorial-card > span {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.tutorial-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 8px;
  max-width: 100%;
}

.tutorial-progress span {
  flex: 0 0 14px;
  width: 14px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.tutorial-progress span.active {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.56);
}

.tutorial-actions {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 14px;
}

.tutorial-actions .dark-button,
.tutorial-actions .primary-button {
  min-height: 62px;
  border-radius: 12px;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.tutorial-actions .dark-button {
  border: 1px solid rgba(255, 184, 0, 0.86);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 184, 0, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#riskTutorialModal {
  width: min(92vw, 390px);
}

.risk-tutorial-card {
  gap: 14px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 0, rgba(255, 184, 0, 0.18), transparent 8rem),
    radial-gradient(circle at 15% 18%, rgba(255, 208, 64, 0.1), transparent 7rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    #0b0c0f;
  text-align: left;
}

.risk-tutorial-card::after {
  left: 78%;
  width: 96px;
  opacity: 0.55;
}

.risk-tutorial-card p,
.risk-tutorial-card h2,
.risk-tutorial-card > span {
  text-align: center;
}

.risk-tutorial-card p {
  font-size: 11px;
  letter-spacing: 0.1em;
}

.risk-tutorial-card p::before,
.risk-tutorial-card p::after {
  display: none;
}

.risk-tutorial-card h2 {
  font-size: 24px;
  line-height: 1.08;
}

.risk-tutorial-card > span {
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
}

.risk-tutorial-visual {
  width: 104px;
  height: 104px;
  margin: 0 auto 2px;
}

.risk-tutorial-visual img {
  inset: 26px;
  width: 52px;
  height: 52px;
}

.risk-tutorial-points {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.risk-tutorial-points span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.035);
}

.risk-tutorial-points i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.32);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
}

.risk-tutorial-points b {
  color: rgba(255, 255, 255, 0.79);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.32;
}

.risk-tutorial-card .tutorial-progress {
  gap: 7px;
  margin: 2px 0 0;
}

.risk-tutorial-card .tutorial-progress span {
  width: 18px;
  height: 4px;
}

.risk-tutorial-card .tutorial-actions {
  gap: 9px;
}

.risk-tutorial-card .tutorial-actions .dark-button,
.risk-tutorial-card .tutorial-actions .primary-button {
  min-height: 46px;
  font-size: 14px;
}

.tutorial-back[hidden] {
  display: none;
}

.spotlight-tour[hidden] {
  display: none;
}

.spotlight-tour {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: auto;
}

.spotlight-tour.is-preparing {
  opacity: 0;
}

.spotlight-dim {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}

.spotlight-ring {
  position: fixed;
  z-index: 91;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: transparent;
  pointer-events: none;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(255, 215, 0, 0.46),
    inset 0 0 22px rgba(255, 184, 0, 0.12);
  transition:
    top 180ms ease,
    left 180ms ease,
    width 180ms ease,
    height 180ms ease;
}

.spotlight-ring::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 10px;
}

.spotlight-card {
  position: fixed;
  z-index: 92;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.2), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #111116;
  color: var(--text);
  pointer-events: auto;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.spotlight-card p {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.spotlight-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
}

.spotlight-card > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.spotlight-progress {
  display: flex;
  gap: 6px;
}

.spotlight-progress span {
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.spotlight-progress span.active {
  background: var(--gold);
}

.spotlight-actions {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 8px;
}

.spotlight-back[hidden] {
  display: none;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 220;
  width: min(calc(100% - 28px), 492px);
  margin: 0 auto;
  border: 1px solid rgba(255, 184, 0, 0.34);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(17, 17, 22, 0.96);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

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

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

@media (max-width: 430px) {
  .app-shell {
    width: 100vw;
    max-width: 100vw;
    padding-right: 10px;
    padding-left: 10px;
  }

  .admin-screen {
    width: 100%;
    max-width: calc(100vw - 20px);
    overflow-x: hidden;
  }

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

  .admin-card {
    padding: 12px;
  }

  .admin-card > strong {
    font-size: 21px;
  }

  .admin-lines span,
  .admin-row {
    gap: 8px;
  }

  .admin-row.with-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .admin-row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 82px;
  }

  .admin-task-form {
    gap: 7px;
  }

  .admin-task-form input,
  .admin-task-form select,
  .admin-task-form textarea {
    min-height: 40px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  .chart-box {
    height: 242px;
  }

  .section-title h1 {
    font-size: 30px;
  }

  .trade-head {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .nav-button {
    font-size: 9px;
  }

  .nav-button svg {
    width: 19px;
    height: 19px;
  }

  .plan-card,
  .buy-pro-card,
  .daily-card,
  .ref-card {
    align-items: stretch;
    flex-direction: column;
  }

  .compact {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .scan-card {
    flex-direction: row;
    align-items: center;
  }

  .scan-card .secondary-button {
    width: auto;
  }
}

.asset-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.upgrade-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #1b1b22, #101015);
}

.strategy-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  padding: 14px;
  background: linear-gradient(180deg, #1b1b22, #101015);
}

.strategy-icon {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 184, 0, 0.28);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 184, 0, 0.18), transparent 4rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.11), rgba(255, 255, 255, 0.025)),
    #111216;
  color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 177, 0.09),
    0 14px 26px rgba(0, 0, 0, 0.24);
}

.strategy-icon svg {
  width: 21px;
  height: 21px;
}

.strategy-card .upgrade-head {
  align-items: center;
  gap: 12px;
}

.strategy-card .upgrade-head h2 {
  color: #f5f5f7;
  font-size: 20px;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.strategy-card .upgrade-head span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.28;
}

.upgrade-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upgrade-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #15151a;
  color: #a7a7b2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.upgrade-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.upgrade-head h2 {
  margin: 0;
  font-size: 20px;
}

.upgrade-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
}

.upgrade-options {
  display: grid;
  gap: 9px;
}

.upgrade-options.three {
  grid-template-columns: repeat(3, 1fr);
}

.strategy-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.strategy-option {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 11px 8px 9px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.09), transparent 5.5rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.022)),
    #0b0c10;
  color: var(--text);
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 22px rgba(0, 0, 0, 0.2);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.strategy-option::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 44%),
    linear-gradient(0deg, rgba(255, 184, 0, 0.08), transparent 28%);
  content: "";
  pointer-events: none;
}

.strategy-option::after {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(255, 255, 255, 0.08) 36% 38%, transparent 40%),
    rgba(0, 0, 0, 0.16);
  content: "";
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.strategy-option:active {
  transform: scale(0.98);
}

.strategy-option-top,
.strategy-option-title,
.strategy-option em {
  position: relative;
  z-index: 1;
}

.strategy-option-top {
  display: block;
  min-height: 15px;
  padding-right: 22px;
}

.strategy-option-title,
.strategy-option em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-option-title {
  max-width: 100%;
  min-height: 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  font-weight: 620;
  line-height: 1.1;
  text-transform: uppercase;
}

.strategy-option-icon {
  position: absolute;
  right: 12px;
  top: 50px;
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(255, 184, 0, 0.92);
}

.strategy-option-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.strategy-option strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 17px;
  color: var(--gold);
  font-size: 29px;
  font-weight: 680;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(255, 184, 0, 0.18);
}

.strategy-option em {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 620;
  line-height: 1.2;
}

.strategy-option.active {
  border-color: rgba(255, 202, 52, 0.86);
  background:
    radial-gradient(circle at 94% 5%, rgba(255, 184, 0, 0.32), transparent 5.2rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.2), rgba(255, 255, 255, 0.035)),
    #171303;
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 173, 0.12),
    0 0 26px rgba(255, 184, 0, 0.2);
}

.strategy-option.active::after {
  border-color: rgba(255, 205, 55, 0.96);
  background:
    radial-gradient(circle, #ffe07a 0 27%, transparent 30%),
    radial-gradient(circle, rgba(255, 184, 0, 0.22) 0 54%, transparent 57%),
    rgba(0, 0, 0, 0.18);
  content: "✓";
  box-shadow:
    0 0 0 3px rgba(255, 184, 0, 0.08),
    0 0 12px rgba(255, 184, 0, 0.42);
}

.strategy-option.active::after {
  content: "";
  box-shadow:
    0 0 0 3px rgba(255, 184, 0, 0.08),
    0 0 12px rgba(255, 184, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.strategy-option[data-strategy="stable"] em,
.strategy-option[data-strategy="balanced"] em,
.strategy-option[data-strategy="aggressive"] em {
  color: #61e875;
}

.strategy-option.locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.strategy-card {
  gap: 12px;
}

.strategy-card .upgrade-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.12;
}

.strategy-card .upgrade-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.28;
}

.strategy-icon {
  width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    #15151a;
  color: #a7a7b2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.strategy-options {
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.strategy-card .strategy-option {
  display: grid;
  min-height: 60px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--soft);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 760;
  text-align: center;
  box-shadow: none;
}

.strategy-card .strategy-option::before,
.strategy-card .strategy-option::after {
  display: none;
  content: none;
}

.strategy-card .strategy-option strong {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.strategy-card .strategy-option span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.strategy-card .strategy-option.active {
  border-color: transparent;
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #080805;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.22);
}

.strategy-card .strategy-option.active span {
  color: rgba(8, 8, 5, 0.66);
  font-weight: 620;
}

.strategy-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.strategy-readout div {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 8px 8px 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.08), transparent 4.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.024);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.strategy-readout span,
.strategy-readout strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-readout span {
  max-width: calc(100% - 18px);
  color: rgba(255, 255, 255, 0.6);
  min-height: 10px;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.strategy-readout strong {
  margin-top: 13px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1.05;
  white-space: nowrap;
}

.strategy-readout > div:first-child strong {
  color: #61e875;
}

.strategy-readout > div:nth-child(2) strong {
  color: #ff7f73;
}

.strategy-readout-icon {
  position: absolute;
  right: 7px;
  top: 7px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.86;
}

.strategy-readout-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.readout-win {
  color: var(--gold);
}

.readout-risk {
  color: var(--gold);
}

.readout-average {
  color: var(--gold);
}

.strategy-confirm-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 15px;
  padding: 24px 16px 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 196, 73, 0.24), transparent 9.5rem),
    radial-gradient(circle at 100% 18%, rgba(255, 184, 0, 0.12), transparent 7rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.07), rgba(255, 255, 255, 0.018) 42%),
    #0d0f12;
  text-align: left;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 235, 178, 0.05);
}

.strategy-confirm-card::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 184, 0, 0.32);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.strategy-confirm-card::after {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 222, 139, 0.74), transparent);
  content: "";
  pointer-events: none;
}

.strategy-confirm-card p,
.strategy-confirm-card h2 {
  position: relative;
  z-index: 1;
  text-align: center;
}

.strategy-confirm-card p {
  margin: 0 0 -5px;
  color: rgba(255, 196, 73, 0.98);
  font-size: 11px;
  font-weight: 920;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strategy-confirm-card h2 {
  color: #fff4d2;
  font-size: 38px;
  font-weight: 960;
  line-height: 1.08;
  text-shadow:
    0 0 18px rgba(255, 215, 128, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

.strategy-confirm-card > span:not(.agent-logo) {
  position: relative;
  z-index: 1;
  max-width: 270px;
  margin: -4px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.36;
  text-align: center;
}

.strategy-confirm-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-confirm-card.is-standard .metric-loss {
  display: none;
}

.strategy-confirm-grid div {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  min-height: 104px;
  border: 1px solid rgba(255, 184, 0, 0.26);
  border-radius: 8px;
  padding: 12px 11px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 0, 0.13), transparent 4.7rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.075), rgba(255, 255, 255, 0.022)),
    #15171c;
  box-shadow:
    inset 0 1px 0 rgba(255, 231, 162, 0.055),
    0 8px 16px rgba(0, 0, 0, 0.14);
  color: #ffc64d;
}

.strategy-confirm-grid div::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 222, 120, 0.065), transparent 45%);
  content: "";
  pointer-events: none;
}

.strategy-confirm-metric.metric-win {
  border-color: rgba(92, 255, 128, 0.32);
  background:
    radial-gradient(circle at 100% 0, rgba(92, 255, 128, 0.13), transparent 4.7rem),
    linear-gradient(180deg, rgba(92, 255, 128, 0.075), rgba(255, 255, 255, 0.022)),
    #15171c;
  color: #8cff9f;
}

.strategy-confirm-metric.metric-risk {
  border-color: rgba(255, 184, 0, 0.32);
  color: #ffc64d;
}

.strategy-confirm-metric.metric-loss {
  border-color: rgba(255, 184, 0, 0.32);
  color: #ffc64d;
}

.strategy-confirm-metric.metric-average {
  border-color: rgba(255, 184, 0, 0.32);
  color: #ffc64d;
}

.strategy-confirm-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 184, 0, 0.18), transparent 1.8rem),
    linear-gradient(180deg, rgba(255, 184, 0, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.12);
  color: #ffc64d;
  box-shadow: inset 0 1px 0 rgba(255, 236, 170, 0.055);
}

.strategy-confirm-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.strategy-confirm-grid span,
.strategy-confirm-grid strong,
.strategy-confirm-card small {
  display: block;
}

.strategy-confirm-grid span {
  position: relative;
  z-index: 1;
  color: rgba(255, 207, 88, 0.9);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.strategy-confirm-grid strong {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  color: #ffe4a0;
  font-size: clamp(18px, 7vw, 26px);
  font-weight: 820;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 184, 0, 0.16);
  white-space: normal;
}

.strategy-confirm-metric.metric-win .strategy-confirm-icon {
  border-color: rgba(92, 255, 128, 0.38);
  background:
    radial-gradient(circle at 50% 0, rgba(92, 255, 128, 0.18), transparent 1.8rem),
    linear-gradient(180deg, rgba(92, 255, 128, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.12);
  color: #8cff9f;
}

.strategy-confirm-metric.metric-win span {
  color: rgba(140, 255, 159, 0.9);
}

.strategy-confirm-metric.metric-win strong {
  color: #9dffae;
  text-shadow: 0 0 10px rgba(92, 255, 128, 0.18);
}

.strategy-confirm-card small {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 184, 0, 0.18);
  border-radius: 8px;
  padding: 13px 14px 13px 46px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 184, 0, 0.1), transparent 5.8rem),
    rgba(255, 255, 255, 0.028);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.5;
}

.strategy-confirm-card small::before {
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  content: "i";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.strategy-confirm-card .primary-button {
  position: relative;
  z-index: 1;
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid rgba(255, 232, 168, 0.5);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.32), transparent 4.2rem),
    linear-gradient(180deg, #ffd771, #ffb800);
  color: #090704;
  font-size: 15px;
  font-weight: 920;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(255, 184, 0, 0.18),
    0 18px 32px rgba(255, 184, 0, 0.18);
}

.strategy-confirm-card .primary-button::after {
  margin-left: 10px;
  content: "›";
  font-size: 26px;
  line-height: 0;
}

.strategy-confirm-card .modal-close {
  position: relative;
  z-index: 1;
  min-height: 36px;
  margin-top: -2px;
  font-size: 13px;
  font-weight: 860;
}

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

.upgrade-option {
  min-height: 60px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 760;
}

.upgrade-option strong {
  display: block;
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.upgrade-option span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.upgrade-option.active {
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #080805;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.22);
}

.upgrade-option.active span {
  color: rgba(8, 8, 5, 0.66);
  font-weight: 620;
}

.upgrade-option.locked {
  cursor: not-allowed;
  opacity: 0.42;
}

.profit-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 18px 14px 16px;
  text-align: left;
  border-color: rgba(255, 184, 0, 0.26);
  background:
    radial-gradient(circle at 96% 32%, rgba(255, 184, 0, 0.22), transparent 7rem),
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.08), transparent 6rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0e0f11;
}

.profit-card::before {
  content: "";
  position: absolute;
  right: -20px;
  top: 116px;
  width: 180px;
  height: 90px;
  border-top: 2px solid rgba(255, 184, 0, 0.22);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.profit-card::after {
  content: "";
  position: absolute;
  right: 21px;
  top: 140px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255, 184, 0, 0.58);
}

.profit-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profit-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.1);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.1);
}

.profit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.profit-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.profit-head p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 600;
}

.profit-info {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 900;
}

.profit-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 7px;
  padding-top: 34px;
}

.profit-main strong {
  color: var(--gold);
  font-size: 58px;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 184, 0, 0.22);
}

.profit-main > span {
  align-self: end;
  padding-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 26px;
  font-weight: 760;
}

.profit-main small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 620;
}

.profit-lines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 184, 0, 0.16);
  border-radius: 13px;
  padding: 13px 0;
  background: rgba(255, 255, 255, 0.035);
}

.profit-lines > span {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  padding: 0 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 620;
  text-align: center;
}

.profit-lines > span + span {
  border-left: 1px solid rgba(255, 184, 0, 0.16);
}

.profit-lines i {
  color: var(--gold);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

.profit-lines strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.profit-liquidity,
.profit-difference {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.profit-liquidity strong,
.profit-difference strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 760;
}

.profit-difference {
  display: none;
}

.purchase-card {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wallet-flow[hidden] {
  display: none;
}

.wallet-flow {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: min(100vw, var(--app-max-width));
  margin: 0 auto;
  overflow-y: auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 60% -18%, rgba(255, 184, 0, 0.12), transparent 18rem),
    linear-gradient(180deg, #070708 0%, #050505 58%, #020202 100%);
  color: var(--text);
}

.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 20px;
}

.flow-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.flow-back svg,
.flow-header svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.flow-screen {
  display: none;
}

.flow-screen.active {
  display: block;
}

.flow-title {
  margin-bottom: 20px;
}

.flow-title h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000;
}

.flow-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: 0;
}

.flow-amount {
  display: block;
  margin-top: 12px;
}

.flow-amount input {
  width: 100%;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 22px;
  background: rgba(10, 10, 13, 0.94);
  color: var(--text);
  font-size: 22px;
  font-weight: 1000;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.flow-amount input::placeholder {
  color: rgba(248, 248, 248, 0.42);
}

.flow-amount input:focus,
.deposit-address-card:focus-visible {
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.08);
}

.flow-min {
  margin: 10px 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 1000;
}

.flow-min strong {
  color: var(--gold);
}

.flow-note {
  margin-top: 14px;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #a5a5ad;
  font-size: 15px;
  line-height: 1.36;
  letter-spacing: 0;
}

.flow-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffc928, var(--gold));
  color: #070704;
  font-size: 19px;
  font-weight: 1000;
  box-shadow: 0 16px 30px rgba(255, 184, 0, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.swap-flow-title {
  margin-bottom: 12px;
}

.flow-screen[data-flow="swap"].active {
  animation: flowIn 180ms ease both;
}

@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deposit-payment-card {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  border: 1px solid rgba(255, 184, 0, 0.26);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 184, 0, 0.12), transparent),
    rgba(255, 255, 255, 0.055);
}

.deposit-payment-card[hidden] {
  display: none;
}

.deposit-payment-card span,
.deposit-payment-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.deposit-payment-card strong {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
}

.deposit-open-link {
  width: 100%;
  min-height: 46px;
  margin: 0 0 14px;
}

.flow-submit.cancel-mode {
  border: 1px solid rgba(255, 49, 88, 0.3);
  background: rgba(255, 49, 88, 0.13);
  color: #ff8fa5;
  box-shadow: none;
}

.flow-submit:active,
.deposit-address-card:active {
  transform: scale(0.985);
}

.flow-submit:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
  opacity: 1;
}

.flow-history {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.flow-history-item {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.flow-history-item div {
  display: grid;
  gap: 3px;
}

.flow-history-item span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.flow-history-item strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  font-weight: 1000;
}

.flow-history-item b {
  border-radius: 6px;
  padding: 4px 8px;
  background: rgba(255, 184, 0, 0.08);
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  font-weight: 1000;
}

.deposit-address-card {
  display: grid;
  width: 100%;
  gap: 9px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  transition:
    transform 140ms ease,
    border-color 140ms ease;
}

.deposit-address-card span,
.deposit-address-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.deposit-address-card strong {
  overflow-wrap: anywhere;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.18;
  font-weight: 1000;
}

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

.deposit-network {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: center;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.deposit-network:active {
  transform: scale(0.985);
}

.deposit-network span {
  color: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 1000;
}

.deposit-network small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-network.active {
  border-color: rgba(255, 184, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.08));
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.12);
}

.deposit-network.active small {
  color: rgba(255, 255, 255, 0.68);
}

.qr-card {
  display: grid;
  place-items: center;
  margin: 8px auto 14px;
  border: 1px solid rgba(255, 184, 0, 0.24);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 184, 0, 0.08), transparent),
    rgba(255, 255, 255, 0.05);
}

.qr-card[hidden],
.deposit-setup[hidden],
.deposit-address-card[hidden],
.deposit-open-link[hidden] {
  display: none;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  width: min(64vw, 220px);
  aspect-ratio: 1;
  gap: 2px;
  border: 12px solid #f3f3f3;
  border-radius: 8px;
  background: #f3f3f3;
}

.qr-grid i {
  display: block;
  border-radius: 1px;
  background: transparent;
}

.qr-grid i.filled {
  background: #050505;
}

.daily-gift-card {
  position: relative;
  grid-template-columns: 112px minmax(0, 1fr) 110px;
  gap: 16px;
  min-height: 138px;
  align-items: center;
  border: 1px solid rgba(255, 210, 94, 0.56);
  border-radius: 18px;
  padding: 16px 15px 16px 12px;
  background:
    radial-gradient(circle at 12% 48%, rgba(255, 184, 0, 0.28), transparent 5.8rem),
    radial-gradient(circle at 76% 46%, rgba(255, 184, 0, 0.16), transparent 6.5rem),
    linear-gradient(110deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 42%, rgba(255, 184, 0, 0.05)),
    #080808;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    inset 0 0 44px rgba(255, 184, 0, 0.045),
    0 18px 46px rgba(0, 0, 0, 0.46),
    0 0 26px rgba(255, 184, 0, 0.08);
}

.daily-gift-card::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 210, 94, 0.12);
  border-radius: 14px;
  content: "";
  pointer-events: none;
}

.daily-gift-card::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30%, rgba(255, 210, 94, 0.18) 31%, transparent 31.4%),
    linear-gradient(115deg, transparent 8%, rgba(255, 255, 255, 0.05), transparent 54%);
  content: "";
  pointer-events: none;
}

.daily-gift-orb {
  position: relative;
  z-index: 1;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(255, 184, 0, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 184, 0, 0.16), transparent 56%),
    rgba(0, 0, 0, 0.34);
  box-shadow:
    0 0 0 8px rgba(255, 184, 0, 0.035),
    0 0 34px rgba(255, 184, 0, 0.22);
}

.daily-gift-orb::after {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 11px solid var(--gold);
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
  filter: drop-shadow(0 0 10px rgba(255, 184, 0, 0.6));
  content: "";
  transform: translateX(-50%);
}

.daily-gift-orb img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.daily-gift-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-left: 6px;
}

.daily-gift-copy p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: rgba(255, 210, 94, 0.88);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.daily-gift-copy p::before,
.daily-gift-copy p::after {
  content: "✦";
  color: #ffe28a;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
}

.daily-gift-copy h2 {
  color: #fff8e8;
  font-size: 31px;
  font-weight: 860;
  line-height: 0.98;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.daily-gift-copy span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.28;
}

.daily-gift-copy::after {
  display: block;
  width: min(100%, 178px);
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0 50%, #ffe28a 0 5px, transparent 5.5px),
    radial-gradient(circle at 36% 50%, rgba(255, 184, 0, 0.28) 0 5px, transparent 5.5px),
    radial-gradient(circle at 54% 50%, rgba(255, 255, 255, 0.14) 0 5px, transparent 5.5px),
    radial-gradient(circle at 72% 50%, rgba(255, 184, 0, 0.22) 0 5px, transparent 5.5px),
    radial-gradient(circle at 92% 50%, rgba(255, 184, 0, 0.16) 0 5px, transparent 5.5px),
    linear-gradient(90deg, rgba(255, 210, 94, 0.74), transparent 74%);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.24);
  content: "";
}

.daily-gift-card .secondary-button {
  position: relative;
  z-index: 1;
  justify-self: start;
  min-width: 104px;
  min-height: 64px;
  border: 1px solid rgba(255, 234, 151, 0.7);
  border-radius: 13px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 245, 176, 0.35), rgba(255, 184, 0, 0.18)),
    linear-gradient(180deg, #ffdc52, #ffb800);
  color: #090805;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 0 0 4px rgba(92, 60, 0, 0.16),
    0 0 28px rgba(255, 184, 0, 0.34);
}

.daily-gift-card .secondary-button:disabled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    #171717;
  color: rgba(255, 255, 255, 0.46);
  box-shadow: none;
}

.app-shell {
  padding-top: calc(6px + env(safe-area-inset-top));
}

.app-header {
  margin-bottom: 14px;
}

.app-header::before {
  inset: -1px;
  height: auto;
}

.screen.active {
  gap: 12px;
}

.screen[data-screen="trade"].active {
  gap: 13px;
}

.trade-balances {
  padding: 18px 16px;
}

.agent-row {
  min-height: 60px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.agent-row + .agent-row {
  margin-top: 8px;
}

.trade-head {
  padding: 12px 14px 9px;
}

.chart-box {
  margin-bottom: 4px;
}

.trade-stats {
  gap: 13px 20px;
  padding: 19px 18px 20px;
}

.trade-card > .primary-button,
.trade-card > .deck-button {
  margin-top: 3px;
  margin-bottom: 15px;
}

.tutorial-card {
  gap: 12px;
  padding: 28px 18px 20px;
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 206, 75, 0.25), transparent 4.4rem),
    radial-gradient(circle at 50% 20%, rgba(255, 184, 0, 0.1), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    #10100f;
}

.tutorial-visual {
  width: 124px;
  height: 124px;
  margin-bottom: 2px;
}

.tutorial-visual img {
  inset: 31px;
  width: 62px;
  height: 62px;
}

.tutorial-card p {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.tutorial-card h2 {
  font-size: 24px;
  line-height: 1.12;
}

.tutorial-card > span {
  font-size: 13px;
  line-height: 1.4;
}

#riskTutorialModal .risk-tutorial-card {
  gap: 14px;
  padding: 16px 16px 18px;
  background:
    radial-gradient(circle at 82% 0, rgba(255, 184, 0, 0.18), transparent 8rem),
    radial-gradient(circle at 15% 18%, rgba(255, 208, 64, 0.1), transparent 7rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    #0b0c0f;
}

#riskTutorialModal .risk-tutorial-card h2 {
  font-size: 24px;
  line-height: 1.08;
}

#riskTutorialModal .risk-tutorial-card > span {
  font-size: 13px;
  line-height: 1.38;
}

#riskTutorialModal .risk-tutorial-card .tutorial-actions .dark-button,
#riskTutorialModal .risk-tutorial-card .tutorial-actions .primary-button {
  min-height: 46px;
  font-size: 14px;
}

.tutorial-progress {
  gap: 5px;
  margin: 0 0 2px;
}

.tutorial-progress span {
  flex-basis: 12px;
  width: 12px;
  height: 4px;
}

.tutorial-actions .dark-button,
.tutorial-actions .primary-button {
  min-height: 48px;
  font-size: 14px;
}

.profit-lines {
  padding: 12px 0;
}

.profit-lines > span {
  gap: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 560;
}

.profit-lines i {
  font-size: 21px;
}

.profit-lines strong {
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.08;
}

.profit-liquidity strong,
.profit-difference strong {
  font-size: 20px;
  font-weight: 620;
}

@media (min-width: 700px) {
  .tutorial-modal {
    width: min(390px, 86vw);
  }

  .tutorial-card {
    gap: 14px;
    padding: 30px 24px 22px;
  }

  .tutorial-visual {
    width: 112px;
    height: 112px;
  }

  .tutorial-visual img {
    inset: 28px;
    width: 56px;
    height: 56px;
  }

  .tutorial-card h2 {
    font-size: 25px;
  }

  .spotlight-card {
    max-width: 340px;
    padding: 13px;
  }
}

@media (max-width: 430px) {
  .wallet-flow {
    padding-right: 16px;
    padding-left: 16px;
  }

  .flow-title h1 {
    font-size: 30px;
  }

  .flow-title p,
  .flow-note {
    font-size: 16px;
  }

  .daily-gift-card {
    grid-template-columns: 88px minmax(0, 1fr) 84px;
    gap: 12px;
    min-height: 120px;
    padding: 14px 11px;
    border-radius: 16px;
  }

  .daily-gift-copy {
    padding-left: 10px;
  }

  .daily-gift-orb {
    width: 82px;
    height: 82px;
  }

  .daily-gift-orb img {
    width: 68px;
    height: 68px;
  }

  .daily-gift-copy p {
    gap: 6px;
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .daily-gift-copy h2 {
    font-size: 24px;
  }

  .daily-gift-copy span {
    margin-top: 6px;
    font-size: 12px;
  }

  .daily-gift-copy::after {
    width: 116px;
    margin-top: 10px;
  }

  .daily-gift-card .secondary-button {
    min-width: 84px;
    min-height: 52px;
    font-size: 17px;
    transform: translateX(-5px);
  }
}
