:root {
  color-scheme: dark;
  --background: #050606;
  --background-elevated: #080a09;
  --surface: #0d100f;
  --surface-secondary: #121513;
  --surface-active: #171b18;
  --surface-navy: #090f17;
  --surface-burgundy: #231013;
  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(218, 171, 65, 0.28);
  --gold: #d6a83f;
  --gold-bright: #ffd76a;
  --gold-muted: #9b762c;
  --text-primary: #f7f7f2;
  --text-secondary: #a3a8a4;
  --text-muted: #707672;
  --success: #56df91;
  --warning: #f0c84d;
  --danger: #ff7078;
  --information: #4dcdeb;
  --shell: #b98aff;
  --telegram-viewport-height: 100dvh;
  --telegram-safe-area-top: 0px;
  --telegram-safe-area-right: 0px;
  --telegram-safe-area-bottom: 0px;
  --telegram-safe-area-left: 0px;
  --telegram-content-safe-area-top: 0px;
  --telegram-content-safe-area-right: 0px;
  --telegram-content-safe-area-bottom: 0px;
  --telegram-content-safe-area-left: 0px;
  --app-safe-top: max(env(safe-area-inset-top, 0px), var(--telegram-safe-area-top), var(--telegram-content-safe-area-top));
  --app-safe-right: max(env(safe-area-inset-right, 0px), var(--telegram-safe-area-right), var(--telegram-content-safe-area-right));
  --app-safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--telegram-safe-area-bottom), var(--telegram-content-safe-area-bottom));
  --app-safe-left: max(env(safe-area-inset-left, 0px), var(--telegram-safe-area-left), var(--telegram-content-safe-area-left));
  --page-inline: 18px;
  --nav-height: 76px;
  --icon-gold-filter: brightness(0) saturate(100%) invert(81%) sepia(61%) saturate(793%) hue-rotate(344deg) brightness(102%) contrast(101%);
  --icon-muted-filter: brightness(0) saturate(100%) invert(61%) sepia(5%) saturate(259%) hue-rotate(86deg) brightness(91%) contrast(88%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--background);
  scrollbar-color: var(--gold-muted) transparent;
}

body {
  min-width: 320px;
  min-height: var(--telegram-viewport-height);
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}

html.splash-active,
body.splash-active {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
label[for] {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
label[for]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
strong,
dd,
time,
.target-percent,
.state-pill,
.settings-badge {
  font-variant-numeric: tabular-nums lining-nums;
}

[hidden] {
  display: none !important;
}

.carbon-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.carbon-field {
  z-index: -3;
  background-color: var(--background);
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.012) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.012) 75%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.009) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.009) 75%),
    radial-gradient(circle at 72% -10%, rgba(214, 168, 63, 0.055), transparent 33%),
    radial-gradient(circle at 4% 68%, rgba(77, 205, 235, 0.025), transparent 30%);
  background-position: 0 0, 8px 14px, 0 0, 0 0;
  background-size: 18px 30px, 18px 30px, auto, auto;
}

html[data-theme="matte"] .carbon-field {
  background-image:
    radial-gradient(circle at 72% -10%, rgba(214, 168, 63, 0.055), transparent 33%),
    radial-gradient(circle at 4% 68%, rgba(77, 205, 235, 0.018), transparent 30%);
}

.app-shell {
  width: min(100%, 520px);
  min-height: var(--telegram-viewport-height);
  margin: 0 auto;
}

.app-content {
  min-height: var(--telegram-viewport-height);
}

.page-view {
  min-width: 0;
  padding:
    calc(14px + var(--app-safe-top))
    calc(var(--page-inline) + var(--app-safe-right))
    calc(var(--nav-height) + 34px + var(--app-safe-bottom))
    calc(var(--page-inline) + var(--app-safe-left));
  animation: page-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.premium-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 36%),
    rgba(13, 16, 15, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.splash-screen {
  position: fixed;
  z-index: 100;
  display: grid;
  min-height: var(--telegram-viewport-height);
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 168, 63, 0.105), transparent 34%),
    #030404;
  place-items: center;
  transition: opacity 520ms ease, transform 520ms ease;
}

.splash-screen::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.014) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.014) 75%),
    linear-gradient(30deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.01) 75%);
  background-position: 0 0, 9px 15px;
  background-size: 20px 34px;
  content: "";
  opacity: 0.72;
}

.splash-screen.is-leaving {
  opacity: 0;
  transform: scale(1.018);
}

.splash-brand {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(92vw, 440px);
  justify-items: center;
}

.splash-logo-stage {
  position: relative;
  width: min(90vw, 420px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background-image: radial-gradient(circle, rgba(255, 215, 106, 0.075), rgba(214, 168, 63, 0.018) 28%, transparent 62%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.splash-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-status {
  min-height: 20px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
}

.splash-progress {
  width: min(210px, 60vw);
  height: 2px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.splash-progress span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-bright));
  box-shadow: 0 0 12px rgba(214, 168, 63, 0.36);
  transition: width 240ms ease;
}

.splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash-particles i {
  position: absolute;
  top: -8px;
  left: var(--particle-x);
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px rgba(255, 215, 106, 0.65);
  opacity: 0;
  animation: particle-fall var(--particle-duration) linear var(--particle-delay) infinite;
}

.splash-screen.is-paused .splash-particles i {
  animation-play-state: paused;
}

@keyframes particle-fall {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) scale(0.7); }
  15% { opacity: 0.5; }
  82% { opacity: 0.24; }
  100% { opacity: 0; transform: translate3d(var(--particle-drift), 105vh, 0) scale(1.12); }
}

.premium-header,
.page-header,
.header-actions,
.card-heading-row,
.card-heading,
.section-title-row,
.identity-line,
.brand-lockup,
.mining-hero-top,
.epoch-meta,
.invoice-header,
.settings-actions,
.game-lockup {
  display: flex;
  align-items: center;
}

.premium-header,
.page-header,
.card-heading-row,
.section-title-row,
.invoice-header {
  justify-content: space-between;
}

.premium-header {
  min-height: 56px;
  gap: 12px;
}

.brand-lockup {
  min-width: 0;
  gap: 11px;
}

.brand-symbol,
.header-mark {
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  background: #050606;
  box-shadow: 0 0 18px rgba(214, 168, 63, 0.08);
  place-items: center;
}

.brand-symbol {
  width: 48px;
  height: 48px;
}

.brand-symbol img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
}

.header-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 7px;
}

.mining-brand-symbol {
  border-color: rgba(214, 168, 63, 0.34);
  background: radial-gradient(circle at 42% 34%, #151a16, #070908 72%);
}

.mining-brand-symbol img { width: 44px; height: 44px; }

.brand-copy {
  min-width: 0;
}

.identity-line {
  min-width: 0;
  gap: 7px;
}

.identity-line h1 {
  overflow: hidden;
  max-width: 170px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 24px;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 5px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: rgba(214, 168, 63, 0.09);
  color: var(--gold-bright);
  font-size: 10px;
  font-weight: 800;
}

.premium-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.membership-line {
  overflow: hidden;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: rgba(13, 16, 15, 0.88);
  place-items: center;
}

.icon-button:active {
  transform: scale(0.96);
}

.icon-button img,
.icon-tile img,
.inline-link img,
.command-button img,
.bottom-navigation img,
.setting-row > span > img,
.title-icon,
.functional-icon,
.sheet-heading img,
.game-command img,
.coming-soon-grid img {
  filter: var(--icon-gold-filter);
}

.icon-button img {
  width: 19px;
  height: 19px;
}

.spin {
  animation: icon-spin 700ms linear infinite;
}

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

.update-status {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 7px;
  margin: 8px 2px 14px;
  color: var(--text-muted);
  font-size: 11px;
}

.connection-dot,
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.update-status .connection-dot {
  background: var(--success);
  box-shadow: 0 0 8px rgba(86, 223, 145, 0.54);
}

.update-status.updating .connection-dot {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(240, 200, 77, 0.5);
  animation: status-pulse 1.35s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: 0.42; transform: scale(0.72); }
}

.mining-hero {
  padding: 17px;
  border-color: rgba(214, 168, 63, 0.2);
}

.mining-hero::after {
  position: absolute;
  width: 180px;
  height: 180px;
  top: -118px;
  right: -86px;
  border-radius: 50%;
  background: rgba(214, 168, 63, 0.05);
  content: "";
  filter: blur(28px);
  pointer-events: none;
}

.mining-hero.is-active {
  border-color: rgba(86, 223, 145, 0.28);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26), inset 0 1px rgba(86, 223, 145, 0.035);
}

.mining-hero-top {
  position: relative;
  z-index: 1;
  gap: 14px;
}

.mining-icon-stage {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  place-items: center;
}

.token-halo {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(214, 168, 63, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(214, 168, 63, 0.08);
}

.mining-hero.is-active .token-halo {
  border-color: rgba(86, 223, 145, 0.32);
  box-shadow: 0 0 26px rgba(86, 223, 145, 0.12);
  animation: active-halo 2.6s ease-in-out infinite;
}

@keyframes active-halo {
  50% { opacity: 0.6; transform: scale(1.055); }
}

.mining-pickaxe {
  position: relative;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.42));
  transition: filter 240ms ease, transform 240ms ease;
}

.close-app-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 11, 0.94);
}

.close-app-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(86%) sepia(5%) saturate(225%) hue-rotate(82deg) brightness(104%) contrast(94%);
}

.splash-close-button {
  position: fixed;
  z-index: 103;
  top: calc(10px + var(--app-safe-top));
  right: calc(12px + var(--app-safe-right));
}

.mining-pickaxe.is-active {
  filter:
    drop-shadow(0 0 9px rgba(86, 223, 145, 0.22))
    drop-shadow(0 7px 12px rgba(0, 0, 0, 0.42));
  transform: rotate(-3deg) scale(1.035);
}

.mining-title-group {
  min-width: 0;
  flex: 1;
}

.mining-title-group h2 {
  margin-top: 2px;
  font-size: 26px;
  line-height: 1;
}

.state-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 112, 120, 0.07);
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}

.state-pill .status-dot {
  background: var(--danger);
}

.state-pill.on {
  border-color: rgba(86, 223, 145, 0.24);
  background: rgba(86, 223, 145, 0.09);
  color: var(--success);
}

.state-pill.on .status-dot {
  background: var(--success);
  box-shadow: 0 0 9px rgba(86, 223, 145, 0.48);
}

.session-status {
  margin: 14px 0 15px;
  color: var(--text-secondary);
  font-size: 13px;
}

.daily-target {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
}

.target-copy {
  min-width: 0;
}

.target-copy > span,
.primary-stat > span,
.wallet-summary-band span,
.asset-copy span,
.asset-amount span,
.summary-primary span,
.summary-grid span,
.reward-preview-grid span,
.balance-peek-grid span,
.plan-button span,
.invoice-header span,
.referral-code-wrap span {
  color: var(--text-muted);
  font-size: 11px;
}

.target-copy strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 3px;
  font-size: 27px;
  line-height: 1;
}

.target-copy small {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.target-percent {
  color: var(--gold-bright);
  font-size: 15px;
  font-weight: 800;
}

.target-track,
.progress-track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.target-track {
  height: 7px;
  margin-top: 10px;
}

.target-track span,
.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-bright));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mining-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.primary-stat {
  min-width: 0;
  padding: 0 13px;
}

.primary-stat:first-child {
  padding-left: 0;
  border-right: 1px solid var(--border-subtle);
}

.primary-stat strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 17px;
}

.primary-stat small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.epoch-progress {
  padding-top: 14px;
}

.epoch-meta {
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
}

.epoch-meta > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.epoch-meta img {
  width: 15px;
  height: 15px;
  filter: var(--icon-gold-filter);
}

.epoch-meta strong {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 6px;
  color: var(--text-primary);
  font-size: 14px;
}

.epoch-separator {
  color: var(--gold-muted);
}

.progress-track {
  height: 8px;
  margin-top: 10px;
}

.progress-marker {
  position: absolute;
  width: 1px;
  top: 0;
  bottom: 0;
  left: 75%;
  background: rgba(5, 6, 6, 0.72);
}

.epoch-footnote {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
}

.content-band,
.content-section,
.asset-list,
.settings-section,
.settings-menu {
  margin-top: 24px;
}

.section-title-row {
  min-width: 0;
  gap: 12px;
  margin: 0 2px 11px;
}

.section-title-row h2,
.card-heading h2,
.card-heading-row h2,
.settings-section h2,
.content-section h2 {
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.15;
}

.inline-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 3px;
  margin: -8px -8px -8px 0;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.inline-link img {
  width: 15px;
  height: 15px;
}

.balance-peek-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.balance-peek-grid > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1px 9px;
  padding: 12px 8px;
}

.balance-peek-grid > div:nth-child(odd) {
  border-right: 1px solid var(--border-subtle);
}

.balance-peek-grid > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--border-subtle);
}

.balance-peek-grid img {
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  object-fit: contain;
}

.balance-peek-grid strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-card,
.reward-preview {
  margin-top: 16px;
  padding: 16px;
}

.card-heading-row,
.card-heading {
  min-width: 0;
  gap: 10px;
}

.icon-tile {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: var(--surface-active);
  place-items: center;
}

.icon-tile img {
  width: 19px;
  height: 19px;
}

.information-accent {
  border-color: rgba(77, 205, 235, 0.18);
  background: rgba(77, 205, 235, 0.07);
}

.key-accent {
  border-color: rgba(214, 168, 63, 0.2);
  background: rgba(214, 168, 63, 0.08);
}

.referral-accent {
  border-color: rgba(185, 138, 255, 0.2);
  background: rgba(185, 138, 255, 0.07);
}

.appearance-accent {
  border-color: rgba(77, 205, 235, 0.18);
  background: rgba(77, 205, 235, 0.07);
}

.network-health,
.settings-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--warning);
  font-size: 10px;
  font-weight: 800;
}

.network-health .status-dot {
  background: var(--warning);
}

.network-health.stable {
  border-color: rgba(86, 223, 145, 0.2);
  color: var(--success);
}

.network-health.stable .status-dot {
  background: var(--success);
}

.network-health.unstable {
  border-color: rgba(255, 112, 120, 0.2);
  color: var(--danger);
}

.network-health.unstable .status-dot {
  background: var(--danger);
}

.network-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.network-metrics > div {
  min-width: 0;
}

.network-metrics > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
}

.network-metrics dt {
  color: var(--text-muted);
  font-size: 10px;
}

.network-metrics dd {
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}

.network-recommendation {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.network-recommendation.success { color: var(--success); }
.network-recommendation.warning { color: var(--warning); }
.network-recommendation.danger { color: var(--danger); }

.reward-token-small {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
}

.reward-token-small img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.reward-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border-subtle);
}

.reward-preview-grid > div {
  min-width: 0;
  padding: 0 7px;
  text-align: center;
}

.reward-preview-grid > div:first-child { padding-left: 0; }
.reward-preview-grid > div:last-child { padding-right: 0; }
.reward-preview-grid > div + div { border-left: 1px solid var(--border-subtle); }

.reward-preview-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--gold-bright);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mining-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 10px;
  margin-top: 13px;
}

.command-button,
.text-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background: rgba(214, 168, 63, 0.11);
  color: var(--gold-bright);
  font-weight: 750;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.command-button img,
.text-button img {
  width: 18px;
  height: 18px;
}

.command-button:active,
.text-button:active,
.plan-button:active,
.bottom-navigation button:active {
  transform: translateY(1px) scale(0.985);
}

.primary-command {
  border-color: rgba(86, 223, 145, 0.26);
  background: rgba(86, 223, 145, 0.1);
  color: var(--success);
}

.primary-command.stop {
  border-color: rgba(255, 112, 120, 0.22);
  background: #1b0d10;
  color: #ef9ba1;
}

.primary-command.stop img {
  filter: brightness(0) saturate(100%) invert(65%) sepia(35%) saturate(991%) hue-rotate(308deg) brightness(108%) contrast(102%);
}

.epoch-command {
  border-color: var(--border-subtle);
  background: var(--surface-secondary);
  color: var(--text-primary);
}

.page-header {
  min-height: 56px;
  margin-bottom: 17px;
}

.page-header h1 {
  margin-top: 2px;
  font-size: 25px;
  line-height: 1;
}

.header-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.header-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-mark.official-app-mark {
  border-radius: 50%;
}

.header-mark.official-app-mark img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.premium-status-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-color: var(--border-gold);
  background:
    linear-gradient(120deg, rgba(214, 168, 63, 0.09), transparent 46%),
    rgba(13, 16, 15, 0.98);
}

.premium-crown {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.premium-status-copy {
  min-width: 0;
}

.premium-status-copy h2 {
  margin-top: 3px;
  font-size: 19px;
}

.premium-status-copy p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.premium-status-copy > span {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.premium-shine {
  position: absolute;
  width: 70px;
  top: -30px;
  bottom: -30px;
  left: -90px;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(6px);
  pointer-events: none;
  transform: skewX(-18deg);
  animation: premium-sweep 6.5s ease-in-out infinite;
}

@keyframes premium-sweep {
  0%, 55% { left: -90px; opacity: 0; }
  65% { opacity: 1; }
  88%, 100% { left: calc(100% + 70px); opacity: 0; }
}

.wallet-summary-band {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1fr;
  margin-top: 15px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.wallet-summary-band > div {
  min-width: 0;
  padding: 0 11px;
}

.wallet-summary-band > div:first-child { padding-left: 2px; }
.wallet-summary-band > div + div { border-left: 1px solid var(--border-subtle); }

.wallet-summary-band strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtle-status {
  color: var(--text-muted);
  font-size: 10px;
}

.asset-list {
  display: grid;
  gap: 9px;
}

.asset-list .section-title-row {
  margin-bottom: 2px;
}

.asset-row {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 48px minmax(0, 1fr) minmax(88px, auto);
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(9, 15, 23, 0.7);
}

.asset-icon {
  display: grid;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  background: #0a0d0f;
  place-items: center;
}

.asset-icon img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.asset-copy,
.asset-amount {
  min-width: 0;
}

.asset-copy strong,
.asset-amount strong {
  display: block;
  overflow-wrap: anywhere;
}

.asset-copy strong {
  font-size: 13px;
}

.asset-copy span,
.asset-amount span {
  display: block;
  margin-top: 3px;
}

.asset-amount {
  text-align: right;
}

.asset-amount strong {
  color: var(--gold-bright);
  font-size: 15px;
}

.pull-indicator {
  display: flex;
  max-height: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0;
  transition: max-height 180ms ease, opacity 180ms ease;
}

.pull-indicator.is-visible {
  max-height: 34px;
  padding-bottom: 10px;
  opacity: 1;
}

.pull-indicator.is-ready {
  color: var(--gold-bright);
}

.pull-indicator img {
  width: 15px;
  height: 15px;
  filter: var(--icon-gold-filter);
}

.reward-summary {
  display: grid;
  gap: 10px;
}

.summary-primary {
  display: grid;
  min-height: 104px;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background:
    linear-gradient(125deg, rgba(214, 168, 63, 0.1), transparent 50%),
    rgba(13, 16, 15, 0.97);
}

.summary-token {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.summary-primary strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 2px;
  color: var(--gold-bright);
  font-size: 28px;
  line-height: 1.05;
}

.summary-primary small {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 11px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.summary-grid article {
  min-width: 0;
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: rgba(13, 16, 15, 0.8);
}

.summary-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: var(--text-primary);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-toolbar {
  margin: 18px 0 11px;
}

.reward-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(8, 10, 9, 0.88);
}

.reward-filters button {
  min-width: 0;
  min-height: 44px;
  padding: 7px 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.reward-filters button[aria-selected="true"] {
  background: rgba(214, 168, 63, 0.13);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(214, 168, 63, 0.16);
}

.reward-count {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.reward-history {
  display: grid;
  gap: 14px;
  min-height: 180px;
}

.reward-day {
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
}

.reward-date {
  position: sticky;
  z-index: 3;
  top: calc(var(--app-safe-top) + 4px);
  margin: 0 -2px 6px;
  padding: 7px 2px;
  background: rgba(5, 6, 6, 0.92);
  color: var(--text-secondary);
  font-size: 11px;
  backdrop-filter: blur(9px);
}

.reward-entry {
  display: grid;
  min-width: 0;
  min-height: 66px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--border-subtle);
}

.reward-entry.is-new {
  animation: reward-arrive 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reward-arrive {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reward-entry-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.reward-entry-main {
  min-width: 0;
}

.reward-entry-main strong {
  display: block;
  overflow: hidden;
  color: var(--gold-bright);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-entry-main p {
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-entry time {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.reward-skeleton {
  display: grid;
  gap: 8px;
}

.reward-skeleton i {
  height: 66px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  background-size: 200% 100%;
  animation: skeleton-shift 1.4s linear infinite;
}

@keyframes skeleton-shift {
  to { background-position: -200% 0; }
}

.empty-state,
.error-state {
  display: grid;
  min-height: 230px;
  align-content: center;
  justify-items: center;
  padding: 22px;
  color: var(--text-secondary);
  text-align: center;
}

.empty-state img,
.error-state img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: var(--icon-gold-filter);
}

.empty-state strong,
.error-state strong {
  color: var(--text-primary);
  font-size: 15px;
}

.empty-state p,
.error-state p {
  max-width: 280px;
  margin: 5px 0 13px;
  font-size: 12px;
}

.reward-load-sentinel {
  height: 1px;
}

.reward-daily-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  background: rgba(13, 16, 15, 0.82);
}

.reward-daily-row > img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.reward-daily-row > div {
  min-width: 0;
}

.reward-daily-row > div strong,
.reward-daily-row > div span {
  display: block;
}

.reward-daily-row > div strong {
  font-size: 12px;
}

.reward-daily-row > div span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.reward-daily-amount {
  color: var(--gold-bright);
  font-size: 13px;
  white-space: nowrap;
}

.reward-daily-track {
  overflow: hidden;
  height: 3px;
  grid-column: 2 / -1;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
}

.reward-daily-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-bright));
}

.game-hero {
  padding: 18px;
  border-color: var(--border-gold);
  background:
    linear-gradient(135deg, rgba(214, 168, 63, 0.08), transparent 45%),
    rgba(9, 15, 23, 0.84);
}

.game-lockup {
  gap: 17px;
}

.game-lockup > div:last-child {
  min-width: 0;
}

.game-copy {
  flex: 1 1 auto;
}

.game-lockup h2 {
  margin-top: 3px;
  font-size: 21px;
}

.game-status {
  margin-top: 7px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
}

.game-status.available {
  color: var(--success);
}

.game-status.unavailable {
  color: var(--text-secondary);
}

.game-detail {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.spin-wheel-preview {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 118px;
  height: 118px;
  place-items: center;
}

.spin-wheel-surface {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  transition: transform var(--spin-duration, 0ms) cubic-bezier(0.12, 0.72, 0.12, 1);
  will-change: transform;
}

.wheel-ring {
  position: absolute;
  inset: 0;
  border: 5px solid rgba(214, 168, 63, 0.78);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2a1d0b 0 12.5%, #101415 12.5% 25%, #5b4118 25% 37.5%, #0b1013 37.5% 50%, #34240d 50% 62.5%, #101415 62.5% 75%, #644819 75% 87.5%, #0a0e10 87.5% 100%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.76), 0 0 20px rgba(214, 168, 63, 0.1);
}

.wheel-pointer {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  top: -1px;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  border-top: 0;
  border-bottom: 17px solid var(--gold-bright);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5));
}

.wheel-hub {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 215, 106, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #1d211e, #080a09 72%);
  color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(214, 168, 63, 0.17);
  font-size: 10px;
  font-weight: 900;
  place-items: center;
  transform: translate(-50%, -50%);
}

.wheel-label {
  position: absolute;
  z-index: 2;
  width: 26px;
  top: calc(50% - 5px);
  left: calc(50% - 13px);
  color: #f6dfaa;
  font-size: 8px;
  font-weight: 850;
  text-align: center;
  transform: rotate(calc(var(--segment-index) * 45deg + 22.5deg)) translateY(-36px) rotate(calc(var(--segment-index) * -45deg - 22.5deg));
}

.spin-wheel-preview.is-celebrating .wheel-hub {
  animation: spin-hub-celebrate 780ms ease-out;
}

@keyframes spin-hub-celebrate {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  38% { box-shadow: 0 0 24px rgba(255, 215, 106, 0.45); transform: translate(-50%, -50%) scale(1.12); }
}

.spin-bonus-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.spin-bonus-summary > div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.spin-bonus-summary span {
  color: var(--text-muted);
  font-size: 10px;
}

.spin-bonus-summary strong {
  color: var(--text-primary);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.spin-cap-track {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.spin-cap-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold-bright));
  transition: width 360ms ease;
}

.game-command {
  width: 100%;
  margin-top: 18px;
  border-color: rgba(255, 215, 106, 0.3);
  background: linear-gradient(135deg, rgba(214, 168, 63, 0.2), rgba(155, 118, 44, 0.08));
  color: var(--gold-bright);
}

.game-command:disabled {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-muted);
}

.spin-result {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(86, 223, 145, 0.2);
  border-radius: 12px;
  background: rgba(86, 223, 145, 0.06);
}

.spin-result span,
.spin-result p {
  color: var(--text-muted);
  font-size: 10px;
}

.spin-result strong {
  display: block;
  margin-top: 3px;
  color: var(--gold-bright);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.spin-result p {
  margin: 4px 0 0;
}

.game-rules {
  margin: 11px 2px 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coming-soon-grid article {
  display: grid;
  min-height: 116px;
  align-content: center;
  justify-items: center;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(13, 16, 15, 0.72);
  text-align: center;
}

.coming-soon-grid img {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
}

.coming-soon-grid strong {
  font-size: 12px;
}

.coming-soon-grid span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
}

.settings-content {
  display: grid;
  gap: 0;
}

.settings-section.premium-card {
  padding: 16px;
}

.settings-description {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.settings-badge {
  color: var(--warning);
}

.settings-badge.confirmed {
  border-color: rgba(86, 223, 145, 0.2);
  background: rgba(86, 223, 145, 0.08);
  color: var(--success);
}

.settings-badge.pending {
  border-color: rgba(240, 200, 77, 0.2);
  background: rgba(240, 200, 77, 0.07);
  color: var(--warning);
}

.settings-actions {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.settings-actions .text-button {
  flex: 1 1 130px;
}

.secondary-button {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
}

.payment-plans {
  display: grid;
  gap: 12px;
}

.plan-group {
  display: grid;
  gap: 8px;
}

.plan-group-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 2px;
}

.plan-group-heading > img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
}

.plan-group-heading > span,
.plan-group-heading strong,
.plan-group-heading small {
  display: block;
}

.plan-group-heading strong {
  font-size: 12px;
}

.plan-group-heading small {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 9px;
}

.plan-group-list {
  display: grid;
  gap: 7px;
}

.plan-button {
  display: grid;
  min-width: 0;
  min-height: 74px;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(13, 16, 15, 0.78);
  text-align: left;
}

.plan-button.selected {
  border-color: var(--border-gold);
  background: rgba(214, 168, 63, 0.075);
}

.plan-button-copy,
.plan-button-price {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.plan-button-copy strong,
.plan-button-price strong {
  font-size: 14px;
}

.plan-button-copy span,
.plan-button-price span {
  margin-top: 3px;
}

.plan-button-price {
  align-items: end;
}

.plan-button-price strong {
  color: var(--gold-bright);
}

.plan-check {
  width: 17px;
  height: 17px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.plan-button.selected .plan-check {
  border: 4px solid rgba(214, 168, 63, 0.22);
  background: var(--gold-bright);
  background-clip: padding-box;
}

.theme-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(5, 6, 6, 0.72);
}

.theme-selector button {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.theme-selector button[aria-pressed="true"] {
  background: rgba(214, 168, 63, 0.12);
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(214, 168, 63, 0.17);
}

.title-icon {
  width: 20px;
  height: 20px;
}

.invoice-panel {
  margin-top: 10px;
  padding: 15px;
}

.invoice-header strong {
  display: block;
  margin-top: 3px;
  color: var(--gold-bright);
  font-size: 16px;
}

.invoice-destination {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 11px;
  color: var(--text-secondary);
  font-size: 10px;
}

.field-label {
  display: block;
  margin: 14px 0 6px;
  color: var(--text-secondary);
  font-size: 11px;
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.proof-row input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  background: rgba(5, 6, 6, 0.78);
  color: var(--text-primary);
}

.referral-panel {
  margin-top: 14px;
}

.referral-code-wrap {
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}

.referral-code-wrap strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: var(--gold-bright);
  font-size: 13px;
}

.referral-panel .text-button {
  width: 100%;
}

.setting-row {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border-subtle);
}

.settings-section .setting-row {
  margin-top: 14px;
}

.setting-row > span:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.setting-row > span > img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.setting-row > span > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.setting-row strong {
  font-size: 12px;
}

.setting-row small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.setting-row > span:last-child {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
}

.setting-row.is-disabled {
  opacity: 0.72;
}

.toggle-input {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  appearance: none;
}

.toggle-input::after {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: var(--text-secondary);
  content: "";
  transition: transform 180ms ease, background 180ms ease;
}

.toggle-input:checked {
  border-color: var(--border-gold);
  background: rgba(214, 168, 63, 0.18);
}

.toggle-input:checked::after {
  background: var(--gold-bright);
  transform: translateX(20px);
}

.unavailable-view {
  display: grid;
  min-height: calc(var(--telegram-viewport-height) - 40px);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.unavailable-logo {
  width: 220px;
  margin-bottom: 12px;
  border-radius: 16px;
}

.unavailable-view h1 {
  margin-top: 4px;
  font-size: 24px;
}

.unavailable-view p:not(.section-kicker) {
  max-width: 300px;
  margin: 8px 0 16px;
  color: var(--text-secondary);
}

.bottom-navigation {
  position: fixed;
  z-index: 20;
  display: grid;
  width: min(100%, 520px);
  min-height: calc(var(--nav-height) + var(--app-safe-bottom));
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0 auto;
  padding:
    7px
    calc(8px + var(--app-safe-right))
    calc(7px + var(--app-safe-bottom))
    calc(8px + var(--app-safe-left));
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 7, 0.94);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.bottom-navigation button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-rows: 23px auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px 2px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
}

.bottom-navigation button[aria-current="page"] {
  background: rgba(214, 168, 63, 0.1);
  color: var(--gold-bright);
}

.bottom-navigation button[aria-current="page"]::before {
  position: absolute;
  width: 20px;
  height: 2px;
  top: 2px;
  border-radius: 99px;
  background: var(--gold);
  content: "";
}

.bottom-navigation img {
  width: 21px;
  height: 21px;
  filter: var(--icon-muted-filter);
}

.bottom-navigation button[aria-current="page"] img {
  filter: var(--icon-gold-filter);
}

.bottom-navigation img[src$="pickaxe.svg"],
.bottom-navigation button[aria-current="page"] img[src$="pickaxe.svg"] {
  filter: none;
}

.bottom-navigation span {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-sheet {
  width: min(calc(100% - 18px), 500px);
  max-width: none;
  margin: auto auto max(8px, var(--app-safe-bottom));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.64);
}

.bottom-sheet::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.bottom-sheet form {
  padding: 9px 15px calc(15px + var(--app-safe-bottom));
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}

.sheet-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sheet-heading h2 {
  margin-top: 2px;
  font-size: 18px;
}

.choice-button {
  display: grid;
  min-height: 62px;
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.choice-mark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
}

.choice-button span:last-child {
  min-width: 0;
}

.choice-button strong,
.choice-button small {
  display: block;
}

.choice-button strong { font-size: 13px; }
.choice-button small { margin-top: 2px; color: var(--text-muted); font-size: 10px; }

.sheet-cancel {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.toast {
  position: fixed;
  z-index: 120;
  max-width: min(calc(100% - 32px), 430px);
  right: 16px;
  bottom: calc(var(--nav-height) + 20px + var(--app-safe-bottom));
  left: 16px;
  margin: 0 auto;
  padding: 11px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  background: rgba(13, 16, 15, 0.96);
  color: var(--text-primary);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(12px);
}

body.force-reduced-motion *,
body.force-reduced-motion *::before,
body.force-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

body.force-reduced-motion .splash-particles,
body.force-reduced-motion .premium-shine {
  display: none;
}

@media (max-width: 360px) {
  :root { --page-inline: 13px; }
  .identity-line h1 { max-width: 130px; font-size: 18px; }
  .premium-badge { padding-right: 6px; }
  .mining-hero { padding: 14px; }
  .mining-icon-stage { width: 78px; height: 78px; }
  .mining-pickaxe { width: 54px; height: 54px; }
  .mining-title-group h2 { font-size: 23px; }
  .target-copy strong { font-size: 24px; }
  .reward-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reward-preview-grid > div { padding-inline: 8px; }
  .reward-preview-grid strong { font-size: 11px; }
  .asset-row { grid-template-columns: 42px minmax(0, 1fr) minmax(76px, auto); gap: 8px; padding-inline: 10px; }
  .asset-icon { width: 40px; height: 40px; }
  .asset-icon img { width: 38px; height: 38px; }
  .asset-copy strong { font-size: 11px; }
  .asset-amount strong { font-size: 13px; }
  .spin-wheel-preview { width: 104px; height: 104px; }
  .wheel-label { transform: rotate(calc(var(--segment-index) * 45deg + 22.5deg)) translateY(-31px) rotate(calc(var(--segment-index) * -45deg - 22.5deg)); }
  .bottom-navigation { padding-inline: 4px; }
  .bottom-navigation span { font-size: 8px; }
}

@media (max-width: 480px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 430px) {
  :root { --page-inline: 20px; }
  .mining-hero { padding: 19px; }
  .network-card,
  .reward-preview { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .splash-particles,
  .premium-shine {
    display: none;
  }

}
