:root {
  --bg-1: #081322;
  --bg-2: #140b2f;
  --bg-3: #1d4f7a;
  --card: rgba(13, 22, 34, 0.78);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-main: #f8fbff;
  --text-soft: #b5cae5;
  --accent: #ffcf4b;
  --accent-2: #00d7ff;
  --danger: #ff5b6f;
  --ok: #68f3bf;
}

* {
  box-sizing: border-box;
}

button,
a,
input,
textarea,
select,
[role='button'],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
[role='button']:focus,
[tabindex]:focus {
  outline: none;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  height: auto;
}

html {
  background-color: #121a42;
}

body {
  min-height: 100dvh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background:
    radial-gradient(1200px 800px at 90% -10%, rgba(0, 215, 255, 0.25), transparent 60%),
    radial-gradient(900px 800px at -20% 10%, rgba(255, 80, 140, 0.24), transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  color: var(--text-main);
  font-family: 'Exo 2', 'Segoe UI', sans-serif;
  overflow-x: hidden;
  touch-action: pan-x pan-y;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 4px 4px;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding-top: calc(100px + env(safe-area-inset-top, 0px));
  padding-right: 12px;
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  padding-left: 12px;
}

.app-topbar {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: linear-gradient(180deg, rgba(5, 10, 16, 0.92), rgba(5, 10, 16, 0));
}

.app-topbar-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
}

.bonus-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf3ff;
  font-size: 12px;
  font-weight: 700;
}

body.profile-mode .app-topbar {
  display: none;
}

body.profile-mode .app-shell {
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view.entering {
  animation: viewEnter 240ms cubic-bezier(0.22, 0.9, 0.32, 1) both;
}

.view-detail {
  padding-bottom: 14px;
}

.wheel-zone,
.giveaways-card,
.media-card,
.donate-card,
.donations-card,
.participants-card,
.profile-card {
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--card);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.giveaways-card,
.media-card,
.donate-card,
.donations-card,
.participants-card,
.profile-card {
  padding: 12px;
}

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

.card-head h2 {
  margin: 0;
  font-size: 18px;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  letter-spacing: 0.03em;
}

.card-head span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 12px;
}

.giveaway-filters {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.filter-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(120% 150% at 90% -30%, rgba(96, 221, 255, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.filter-btn span {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
}

.filter-btn strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.2;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.giveaways-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  max-height: min(56vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.giveaway-item {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 90% -20%, rgba(255, 207, 75, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.035);
  padding: 11px;
  cursor: pointer;
  color: var(--text-main);
  text-align: left;
  width: 100%;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 160ms ease;
}

.giveaway-item,
.metric-card,
.donation-item,
.participant-item {
  animation: cardReveal 240ms ease both;
}

.giveaway-item.active {
  border-color: rgba(255, 207, 75, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 207, 75, 0.24), 0 10px 18px rgba(0, 0, 0, 0.26);
}

.giveaway-item:hover,
.giveaway-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.giveaway-item-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.giveaway-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%),
    rgba(6, 12, 20, 0.7);
  display: grid;
  place-items: center;
}

.giveaway-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.giveaway-item-thumb-fallback {
  color: rgba(255, 255, 255, 0.88);
  font-size: 26px;
}

.giveaway-item-badges {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.giveaway-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dcecff;
  background: rgba(255, 255, 255, 0.08);
}

.giveaway-badge.status-active {
  color: #0d2c1a;
  background: rgba(104, 243, 191, 0.95);
  border-color: rgba(104, 243, 191, 0.95);
}

.giveaway-badge.status-scheduled {
  color: #261900;
  background: rgba(255, 207, 75, 0.95);
  border-color: rgba(255, 207, 75, 0.95);
}

.giveaway-badge.status-finished {
  color: #14091b;
  background: rgba(208, 164, 255, 0.9);
  border-color: rgba(208, 164, 255, 0.9);
}

.giveaway-badge.status-spinning {
  color: #001e2b;
  background: rgba(96, 221, 255, 0.95);
  border-color: rgba(96, 221, 255, 0.95);
}

.giveaway-badge.mode-dynamic {
  border-color: rgba(96, 221, 255, 0.52);
  background: rgba(96, 221, 255, 0.16);
}

.giveaway-badge.mode-fixed {
  border-color: rgba(255, 207, 75, 0.48);
  background: rgba(255, 207, 75, 0.14);
}

.giveaway-item-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  letter-spacing: 0.02em;
}

.giveaway-item-meta {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
}

.back-to-main {
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.wheel-zone {
  padding: 14px;
  min-width: 0;
}

.wheel-head h1 {
  margin: 6px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  letter-spacing: 0.02em;
}

.wheel-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.round-kicker {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffe88e);
  color: #2a1e00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.wheel-stage {
  position: relative;
  margin-top: 12px;
  width: min(100%, 840px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  border: 10px solid rgba(255, 214, 109, 0.96);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 42%),
    radial-gradient(circle at 80% 75%, rgba(0, 215, 255, 0.25), transparent 40%),
    rgba(8, 12, 18, 0.66);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(255, 208, 79, 0.36);
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-top: 48px solid #ff8f46;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  z-index: 4;
}

body.is-spinning .pointer {
  animation: pulse 700ms ease-in-out infinite;
}

.round-timer {
  margin-top: 10px;
  text-align: center;
  color: #ffe7aa;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-card span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
}

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

.metric-card strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.metric-card.full {
  grid-column: 1 / -1;
}

.metric-card.winner {
  border-color: rgba(255, 207, 75, 0.45);
  background: rgba(255, 207, 75, 0.12);
}

.media-card,
.donate-card,
.donations-card,
.participants-card {
  margin-top: 12px;
}

.media-wrap {
  margin-top: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: stretch;
}

.media-stage {
  position: relative;
  overflow: hidden;
}

.media-stage img,
.media-stage video {
  width: 100%;
  height: 100%;
  display: block;
}

.media-stage img {
  object-fit: cover;
}

.media-stage video {
  object-fit: contain;
  background: #04080f;
}

.media-wrap.portrait {
  aspect-ratio: 9 / 16;
  max-height: min(62vh, 620px);
}

.media-placeholder {
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
  padding: 0 10px;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.media-open-link {
  margin-top: 10px;
  color: #d9ecff;
  text-decoration: underline;
  font-size: 13px;
}

.media-nav {
  border: 0;
  color: #f2f8ff;
  font-size: 28px;
  font-weight: 800;
  background: rgba(4, 11, 20, 0.7);
  cursor: pointer;
  transition: background 140ms ease;
}

.media-nav:hover,
.media-nav:focus-visible {
  background: rgba(16, 34, 55, 0.95);
}

.media-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.media-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  padding: 0;
}

.media-dot.active {
  background: #ffcf4b;
}

.media-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}

.media-thumb {
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
  cursor: pointer;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb.active {
  border-color: rgba(255, 207, 75, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 207, 75, 0.28);
}

.media-meta {
  margin-top: 7px;
  text-align: right;
  color: var(--text-soft);
  font-size: 12px;
}

.media-viewer-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 6, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.media-viewer-layer.active {
  display: flex;
}

.media-viewer {
  position: relative;
  width: min(980px, 100%);
  height: min(92dvh, 900px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 10, 16, 0.96);
  overflow: hidden;
}

.media-viewer-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
  touch-action: pan-x pan-y;
}

.media-viewer-stage img,
.media-viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
}

.media-viewer-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.media-viewer-actions button {
  border: 0;
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-weight: 700;
  cursor: pointer;
}

.input-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.donate-hint {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.info-pill {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

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

.inline-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.inline-input input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding: 10px;
  font-size: 15px;
}

.action-btn {
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #091018;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.action-btn.stars {
  background: linear-gradient(90deg, #ffcf4b, #ffe798);
}

.action-btn.bonus {
  background: linear-gradient(90deg, #9fd3ff, #d5ecff);
}

.action-btn.ton {
  background: linear-gradient(90deg, #00d7ff, #80e9ff);
}

.action-btn.rub {
  width: 100%;
  background: linear-gradient(90deg, #6fffa7, #baf7d3);
}

.action-btn.donate-open {
  width: 100%;
  background: linear-gradient(90deg, #ffcf4b, #ff9e4b);
}

.ton-connect-button {
  margin-top: 8px;
  min-height: 40px;
}

.ton-connect-button [data-tc-connect-button='true'],
.ton-connect-button [data-tc-dropdown-button='true'] {
  width: 100%;
}

body [data-tc-dropdown-container='true'] {
  right: 12px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 12px !important;
  max-width: calc(100vw - 24px) !important;
  z-index: 50 !important;
}

body [data-tc-dropdown='true'] {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  max-width: calc(100vw - 24px) !important;
}

.pay-status {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.participants-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  max-height: min(36vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  padding-bottom: 6px;
}

.donations-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: min(32vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.donation-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
}

.donation-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.donation-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8d4;
  font-weight: 700;
  font-size: 13px;
}

.donation-main {
  min-width: 0;
}

.donation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.donation-name {
  font-size: 14px;
  font-weight: 700;
}

.donation-amount {
  font-size: 13px;
  color: #ffe59d;
}

.donation-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-soft);
}

.donation-comment {
  margin-top: 5px;
  font-size: 12px;
  color: #dbe8fa;
  word-break: break-word;
}

.participant-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.participant-item strong {
  font-size: 14px;
}

.participant-empty {
  color: var(--text-soft);
  font-size: 14px;
}

.profile-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 360px;
  background:
    radial-gradient(120% 130% at 90% -10%, rgba(255, 208, 79, 0.2), transparent 45%),
    radial-gradient(120% 130% at -10% 120%, rgba(0, 215, 255, 0.18), transparent 45%),
    var(--card);
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.profile-avatar,
.profile-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(255, 207, 75, 0.44);
}

.profile-avatar {
  object-fit: cover;
  display: none;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  font-weight: 800;
}

#profileName {
  margin: 14px 0 4px;
  font-size: 24px;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
}

#profileUsername {
  margin: 0;
  color: var(--text-soft);
}

.profile-balance {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.legal-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 2px 2px;
}

.legal-links[hidden] {
  display: none !important;
}

.legal-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 20, 34, 0.66);
  color: #dbeaff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.legal-link-btn:hover,
.legal-link-btn:focus-visible {
  background: rgba(255, 207, 75, 0.15);
  border-color: rgba(255, 207, 75, 0.48);
  transform: translateY(-1px);
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120% 140% at 80% -30%, rgba(255, 207, 75, 0.22), transparent 55%),
    rgba(5, 12, 20, 0.9);
  backdrop-filter: blur(10px);
}

.bottom-nav-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 8px;
  background: transparent;
  color: #dbeaff;
  font-weight: 700;
  cursor: pointer;
}

.bottom-nav-btn.active {
  color: #201200;
  background: linear-gradient(90deg, #ffcf4b, #ffb965);
}

.pay-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(4, 8, 14, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.filter-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 8, 14, 0.58);
  padding: 10px;
}

.filter-sheet-layer.active {
  display: flex;
}

.filter-sheet {
  width: min(520px, 100%);
  max-height: min(70dvh, 640px);
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120% 130% at 90% -10%, rgba(255, 207, 75, 0.18), transparent 50%),
    rgba(8, 14, 23, 0.97);
  display: grid;
  grid-template-rows: auto 1fr;
}

.filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
}

.filter-sheet-head h3 {
  margin: 0;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-size: 20px;
}

.filter-sheet-head button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #f0f7ff;
  font-weight: 700;
}

.filter-sheet-options {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 0 12px 12px;
}

.filter-option-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f8ff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-option-btn span {
  font-size: 15px;
}

.filter-option-btn strong {
  font-size: 11px;
  color: #ffe59d;
}

.filter-option-btn.active {
  border-color: rgba(255, 207, 75, 0.8);
  background: rgba(255, 207, 75, 0.14);
}

.pay-modal-layer.active {
  display: flex;
}

.pay-modal {
  position: relative;
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 130% at 90% -10%, rgba(0, 215, 255, 0.2), transparent 45%),
    radial-gradient(120% 130% at -10% 120%, rgba(255, 132, 80, 0.2), transparent 45%),
    rgba(8, 14, 23, 0.97);
  padding: 14px;
}

.pay-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
}

.pay-step {
  display: none;
}

.pay-step.active {
  display: block;
}

.pay-step h3 {
  margin: 2px 0 10px;
}

.pay-methods {
  display: grid;
  gap: 8px;
}

.pay-method-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  color: #0c121a;
  font-weight: 700;
}

.pay-method-btn.stars {
  background: linear-gradient(90deg, #ffcf4b, #ffe798);
}

.pay-method-btn.bonus {
  background: linear-gradient(90deg, #9fd3ff, #d5ecff);
}

.pay-method-btn.ton {
  background: linear-gradient(90deg, #00d7ff, #80e9ff);
}

.pay-method-btn.rub {
  background: linear-gradient(90deg, #6fffa7, #baf7d3);
}

.pay-method-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.pay-back-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  padding: 6px 9px;
}

.comment-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  padding: 10px;
  font-size: 14px;
  min-height: 80px;
  resize: vertical;
}

.pay-convert,
.pay-method-note {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.celebration-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 20;
}

.celebration-layer.active {
  opacity: 1;
  visibility: visible;
}

.celebration-card {
  width: min(640px, 92vw);
  border-radius: 20px;
  border: 1px solid rgba(255, 207, 75, 0.4);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 207, 75, 0.24), transparent 46%),
    radial-gradient(circle at 80% 75%, rgba(0, 215, 255, 0.22), transparent 42%),
    rgba(7, 11, 18, 0.88);
  text-align: center;
  padding: 24px 20px;
}

.celebration-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffe59a;
  font-size: 12px;
}

.celebration-name {
  margin-top: 12px;
  font-size: clamp(30px, 6vw, 66px);
  font-weight: 900;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
  }
}

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

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

@media (max-width: 760px) {
  .wheel-metrics {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .wheel-stage {
    width: min(100%, 560px);
  }

  .participants-list {
    max-height: min(30vh, 220px);
  }

  .donations-list {
    max-height: min(28vh, 200px);
  }

  .giveaways-list {
    max-height: min(58vh, 520px);
  }

  .media-wrap {
    grid-template-columns: 34px 1fr 34px;
  }

  .media-nav {
    font-size: 22px;
  }

  .giveaway-item-row {
    grid-template-columns: 62px 1fr;
  }

  .giveaway-item-thumb {
    width: 62px;
    height: 62px;
  }
}

/* UI Refresh 15.05.2026: premium casino giveaway theme */
:root {
  --bg-1: #07070f;
  --bg-2: #130a1f;
  --bg-3: #2a1120;
  --card: rgba(14, 12, 24, 0.82);
  --card-border: rgba(255, 224, 153, 0.24);
  --text-main: #fef4df;
  --text-soft: #d2c4a6;
  --accent: #ffcb67;
  --accent-2: #53dcff;
  --danger: #ff6d84;
  --ok: #7effc4;
}

body {
  position: relative;
  background:
    radial-gradient(860px 560px at 8% -8%, rgba(255, 199, 82, 0.28), transparent 62%),
    radial-gradient(900px 620px at 104% -6%, rgba(83, 220, 255, 0.24), transparent 62%),
    radial-gradient(900px 720px at 55% 116%, rgba(255, 76, 129, 0.2), transparent 60%),
    linear-gradient(160deg, #080910, #140c20 44%, #251120);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  font-family: 'Exo 2', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 206, 110, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255, 206, 110, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
  mask-image: none;
  opacity: 0.42;
}

body::after {
  content: '';
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 201, 96, 0.14), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(83, 220, 255, 0.1), transparent 44%),
    radial-gradient(circle at 50% 90%, rgba(255, 77, 138, 0.12), transparent 46%);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

.bg-noise {
  opacity: 0.045;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, transparent 1px);
  background-size: 5px 5px;
}

.app-shell {
  width: min(1080px, 100%);
  padding-right: 14px;
  padding-left: 14px;
}

.app-topbar {
  z-index: 22;
  padding-top: calc(74px + env(safe-area-inset-top, 0px));
  background:
    linear-gradient(180deg, rgba(7, 6, 14, 0.96), rgba(7, 6, 14, 0)),
    radial-gradient(70% 180% at 85% -40%, rgba(255, 206, 110, 0.24), transparent 72%);
}

.bonus-chip {
  border: 1px solid rgba(255, 207, 110, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 207, 110, 0.22), rgba(255, 126, 66, 0.16)),
    rgba(17, 16, 30, 0.74);
  color: #fff3d5;
  text-shadow: 0 1px 8px rgba(255, 176, 70, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 215, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.34);
}

.wheel-zone,
.giveaways-card,
.media-card,
.donate-card,
.donations-card,
.participants-card,
.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 210, 122, 0.26);
  background:
    linear-gradient(155deg, rgba(255, 212, 123, 0.11), rgba(83, 220, 255, 0.05) 24%, rgba(15, 12, 26, 0.88) 64%),
    rgba(9, 8, 16, 0.86);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 229, 170, 0.08),
    inset 0 1px 0 rgba(255, 243, 213, 0.18);
  backdrop-filter: blur(9px);
}

.wheel-zone::before,
.giveaways-card::before,
.media-card::before,
.donate-card::before,
.donations-card::before,
.participants-card::before,
.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 214, 133, 0.24), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(83, 220, 255, 0.16), transparent 38%);
}

.wheel-zone > *,
.giveaways-card > *,
.media-card > *,
.donate-card > *,
.donations-card > *,
.participants-card > *,
.profile-card > * {
  position: relative;
  z-index: 1;
}

.card-head h2 {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  font-size: 20px;
  color: #ffeec9;
  text-transform: uppercase;
}

.card-head span {
  border: 1px solid rgba(255, 211, 122, 0.3);
  background: rgba(255, 208, 116, 0.1);
  color: #ffe3a5;
  font-weight: 700;
}

.giveaway-filters {
  gap: 8px;
}

.filter-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 205, 107, 0.36);
  background:
    linear-gradient(155deg, rgba(255, 204, 103, 0.18), rgba(83, 220, 255, 0.06) 36%, rgba(19, 20, 31, 0.8)),
    rgba(12, 11, 21, 0.85);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.filter-btn span {
  color: #f7d9a1;
  opacity: 0.84;
}

.filter-btn strong {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
  color: #fff2d4;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: rgba(255, 220, 150, 0.64);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 208, 116, 0.16);
}

.giveaways-list {
  gap: 12px;
  padding-right: 3px;
}

.giveaway-item {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 211, 122, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 207, 111, 0.16), rgba(255, 73, 140, 0.08) 32%, rgba(14, 14, 23, 0.88) 72%),
    rgba(11, 11, 20, 0.88);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform 150ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.giveaway-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 24%, rgba(255, 243, 214, 0.14) 50%, transparent 72%);
  transform: translateX(-115%);
}

.giveaway-item:hover::after,
.giveaway-item:focus-visible::after {
  animation: shineSweep 780ms ease;
}

.giveaway-item.active {
  border-color: rgba(255, 211, 122, 0.78);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 222, 162, 0.3),
    0 0 22px rgba(255, 196, 86, 0.24);
}

.giveaway-item-row {
  grid-template-columns: 82px 1fr;
  gap: 12px;
}

.giveaway-item-thumb {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  border: 1px solid rgba(255, 205, 108, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.2),
    0 10px 16px rgba(0, 0, 0, 0.28);
}

.giveaway-item-thumb-fallback {
  font-size: 30px;
}

.giveaway-item-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: #fff1ce;
}

.giveaway-item-meta {
  margin-top: 6px;
  color: #e8d1a1;
  opacity: 0.9;
}

.giveaway-badge {
  border: 1px solid rgba(255, 216, 140, 0.35);
  background: rgba(255, 206, 112, 0.11);
  color: #ffe4ad;
}

.giveaway-badge.status-active {
  color: #0e2c1a;
  background: linear-gradient(90deg, rgba(126, 255, 196, 0.98), rgba(88, 224, 168, 0.98));
  border-color: rgba(126, 255, 196, 0.95);
}

.giveaway-badge.status-scheduled {
  color: #3f2500;
  background: linear-gradient(90deg, rgba(255, 217, 124, 0.98), rgba(255, 176, 72, 0.98));
  border-color: rgba(255, 207, 98, 0.96);
}

.giveaway-badge.status-finished {
  color: #340823;
  background: linear-gradient(90deg, rgba(255, 146, 186, 0.95), rgba(210, 148, 255, 0.95));
  border-color: rgba(242, 165, 210, 0.95);
}

.giveaway-badge.status-spinning {
  color: #032f40;
  background: linear-gradient(90deg, rgba(123, 235, 255, 0.95), rgba(88, 217, 255, 0.95));
  border-color: rgba(112, 223, 255, 0.95);
}

.giveaway-badge.mode-dynamic {
  background: rgba(83, 220, 255, 0.17);
  border-color: rgba(83, 220, 255, 0.5);
  color: #c9f6ff;
}

.giveaway-badge.mode-fixed {
  background: rgba(255, 206, 111, 0.16);
  border-color: rgba(255, 206, 111, 0.5);
  color: #ffeabf;
}

.back-to-main {
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 125, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 205, 104, 0.2), rgba(255, 91, 144, 0.08)),
    rgba(19, 15, 29, 0.8);
  color: #ffeccd;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.wheel-head h1 {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff1c8;
  text-shadow: 0 2px 16px rgba(255, 182, 82, 0.34);
}

.wheel-head p {
  color: #d9c39a;
}

.round-kicker {
  padding: 6px 13px;
  background: linear-gradient(95deg, #ffd275, #ffb144);
  color: #321b00;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  box-shadow: 0 8px 18px rgba(255, 164, 69, 0.34);
}

.wheel-stage {
  border-width: 12px;
  border-color: rgba(255, 214, 121, 0.94);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 243, 214, 0.3), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(83, 220, 255, 0.28), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(255, 83, 140, 0.18), transparent 45%),
    rgba(8, 11, 18, 0.75);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 232, 185, 0.2),
    0 0 36px rgba(255, 203, 101, 0.36);
}

.pointer {
  top: -22px;
  border-left-width: 25px;
  border-right-width: 25px;
  border-top-width: 52px;
  border-top-color: #ff8e39;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}

body.is-spinning .pointer {
  animation: pointerPulseLuxury 680ms ease-in-out infinite;
}

.round-timer {
  margin-top: 12px;
  font-size: 15px;
  color: #ffe3a8;
  text-shadow: 0 1px 8px rgba(255, 192, 86, 0.3);
}

.wheel-metrics {
  gap: 10px;
}

.metric-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 206, 111, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 204, 103, 0.12), rgba(83, 220, 255, 0.03) 38%, rgba(17, 16, 28, 0.72)),
    rgba(13, 13, 22, 0.84);
}

.metric-card span {
  color: #e6cd99;
}

.metric-card strong {
  color: #fff0ca;
  font-family: 'Rajdhani', 'Exo 2', sans-serif;
  font-size: 18px;
}

.metric-card.winner {
  border-color: rgba(255, 211, 122, 0.62);
  background:
    linear-gradient(130deg, rgba(255, 209, 115, 0.22), rgba(255, 106, 154, 0.1)),
    rgba(18, 14, 30, 0.8);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.media-wrap {
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 122, 0.28);
  background: rgba(4, 7, 14, 0.7);
}

.media-stage img {
  object-fit: cover;
}

.media-nav {
  background: linear-gradient(180deg, rgba(11, 16, 27, 0.95), rgba(11, 16, 27, 0.75));
  color: #ffe9b6;
  text-shadow: 0 0 12px rgba(255, 198, 94, 0.38);
}

.media-nav:hover,
.media-nav:focus-visible {
  background: linear-gradient(180deg, rgba(28, 38, 60, 0.96), rgba(20, 29, 47, 0.92));
}

.media-dot {
  width: 9px;
  height: 9px;
  background: rgba(255, 232, 189, 0.34);
}

.media-dot.active {
  background: #ffce6f;
  box-shadow: 0 0 10px rgba(255, 199, 92, 0.6);
}

.media-thumb {
  border-radius: 10px;
  border-color: rgba(255, 208, 114, 0.24);
  background: rgba(12, 13, 23, 0.76);
}

.media-thumb.active {
  border-color: rgba(255, 211, 122, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 211, 122, 0.32), 0 0 14px rgba(255, 188, 65, 0.26);
}

.media-meta {
  color: #deca9f;
}

.media-viewer-layer {
  background: rgba(3, 4, 10, 0.9);
}

.media-viewer {
  border-radius: 20px;
  border: 1px solid rgba(255, 211, 122, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 208, 114, 0.1), rgba(83, 220, 255, 0.06) 32%, rgba(10, 11, 19, 0.94)),
    rgba(8, 10, 18, 0.95);
}

.media-viewer-actions button {
  border: 1px solid rgba(255, 208, 114, 0.42);
  background: rgba(10, 12, 22, 0.84);
  color: #ffe5ac;
}

.donate-hint,
.input-label,
.pay-convert,
.pay-method-note,
.pay-status {
  color: #dec89b;
}

.info-pill {
  border-color: rgba(255, 209, 117, 0.54);
  background: rgba(255, 209, 117, 0.14);
  color: #ffecbe;
}

.inline-input input,
.comment-input {
  border: 1px solid rgba(255, 209, 117, 0.28);
  border-radius: 12px;
  background: rgba(11, 11, 20, 0.76);
  color: #fff2d1;
}

.inline-input input:focus-visible,
.comment-input:focus-visible {
  outline: none;
  border-color: rgba(255, 210, 122, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 210, 122, 0.18);
}

.action-btn {
  border-radius: 12px;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.34);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.action-btn:hover,
.action-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.4);
}

.action-btn.stars,
.pay-method-btn.stars {
  background: linear-gradient(100deg, #ffd878, #ffbd55 44%, #ffe7a3);
}

.action-btn.bonus,
.pay-method-btn.bonus {
  background: linear-gradient(100deg, #ffe4aa, #ffd174 42%, #ffefc8);
}

.action-btn.ton,
.pay-method-btn.ton {
  background: linear-gradient(100deg, #86e8ff, #3bd0ff 44%, #b2f3ff);
}

.action-btn.rub,
.pay-method-btn.rub {
  background: linear-gradient(100deg, #93ffc2, #68efac 42%, #c9ffe0);
}

.action-btn.donate-open {
  background: linear-gradient(100deg, #ffd77a, #ffad44 44%, #ffc772);
}

body [data-tc-dropdown-container='true'] {
  right: 12px !important;
  max-width: calc(100vw - 24px) !important;
}

body [data-tc-dropdown='true'] {
  max-width: calc(100vw - 24px) !important;
}

.donation-item,
.participant-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 208, 115, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 201, 96, 0.1), rgba(83, 220, 255, 0.03) 40%, rgba(12, 12, 22, 0.8)),
    rgba(10, 10, 18, 0.82);
}

.donation-name,
.participant-item strong {
  color: #fff0cb;
}

.donation-amount {
  color: #ffd27c;
  font-weight: 700;
}

.donation-meta,
.participant-item {
  color: #dac59b;
}

.donation-comment {
  color: #efe1bf;
}

.profile-card {
  min-height: 420px;
  background:
    radial-gradient(120% 130% at 100% -15%, rgba(255, 210, 120, 0.24), transparent 45%),
    radial-gradient(120% 130% at -10% 120%, rgba(83, 220, 255, 0.2), transparent 45%),
    linear-gradient(165deg, rgba(20, 14, 33, 0.92), rgba(11, 11, 20, 0.92));
}

.profile-avatar,
.profile-avatar-fallback {
  border-color: rgba(255, 209, 118, 0.72);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.42),
    0 0 20px rgba(255, 203, 97, 0.24);
}

#profileName {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  color: #fff0cb;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#profileUsername {
  color: #e0cb9f;
}

.profile-balance {
  border: 1px solid rgba(255, 209, 118, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 209, 118, 0.2), rgba(255, 112, 167, 0.08)),
    rgba(17, 14, 28, 0.78);
  color: #ffe9bb;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}

.legal-link-btn {
  border: 1px solid rgba(255, 207, 112, 0.26);
  background:
    linear-gradient(130deg, rgba(255, 207, 112, 0.14), rgba(83, 220, 255, 0.05)),
    rgba(11, 12, 20, 0.82);
  color: #f7ddb0;
}

.legal-link-btn:hover,
.legal-link-btn:focus-visible {
  border-color: rgba(255, 214, 133, 0.66);
  background:
    linear-gradient(130deg, rgba(255, 209, 117, 0.22), rgba(83, 220, 255, 0.08)),
    rgba(17, 18, 30, 0.88);
}

.bottom-nav {
  width: min(400px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid rgba(255, 209, 118, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 209, 118, 0.18), rgba(83, 220, 255, 0.06) 42%, rgba(10, 11, 20, 0.88)),
    rgba(7, 9, 17, 0.9);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 236, 196, 0.08);
}

.bottom-nav-btn {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ead8b0;
}

.bottom-nav-btn.active {
  color: #3d2200;
  background: linear-gradient(96deg, #ffd97f, #ffb855 44%, #ffe5ad);
}

.filter-sheet-layer,
.pay-modal-layer {
  background: rgba(5, 6, 13, 0.74);
}

.filter-sheet,
.pay-modal {
  border-radius: 20px;
  border: 1px solid rgba(255, 209, 118, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 209, 118, 0.14), rgba(83, 220, 255, 0.07) 30%, rgba(11, 11, 21, 0.95)),
    rgba(10, 11, 18, 0.96);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 236, 196, 0.08);
}

.filter-sheet-head h3,
.pay-step h3,
#payMethodTitle {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  color: #ffeec8;
  text-transform: uppercase;
}

.filter-sheet-head button,
.pay-modal-close,
.pay-back-btn {
  border: 1px solid rgba(255, 208, 115, 0.32);
  background: rgba(14, 15, 26, 0.8);
  color: #ffe8b4;
}

.filter-option-btn {
  border: 1px solid rgba(255, 207, 112, 0.25);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(255, 203, 102, 0.12), rgba(83, 220, 255, 0.04) 34%, rgba(15, 14, 26, 0.8)),
    rgba(10, 11, 18, 0.86);
}

.filter-option-btn.active {
  border-color: rgba(255, 213, 131, 0.82);
  background:
    linear-gradient(140deg, rgba(255, 208, 114, 0.22), rgba(83, 220, 255, 0.08) 34%, rgba(20, 18, 32, 0.88)),
    rgba(13, 14, 22, 0.9);
}

.filter-option-btn span {
  color: #fff0cb;
}

.filter-option-btn strong {
  color: #ffd990;
}

.pay-method-btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 243, 210, 0.3);
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.celebration-card {
  border: 1px solid rgba(255, 211, 122, 0.55);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 210, 120, 0.32), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(83, 220, 255, 0.24), transparent 40%),
    linear-gradient(155deg, rgba(21, 14, 35, 0.92), rgba(10, 10, 19, 0.92));
}

.celebration-badge {
  border-color: rgba(255, 211, 122, 0.45);
  color: #ffdf9a;
}

.celebration-name {
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff0cb;
  text-shadow: 0 0 24px rgba(255, 196, 82, 0.38);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 209, 118, 0.72), rgba(255, 151, 77, 0.7));
  border-radius: 999px;
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2.5%, 2.5%, 0) scale(1.06);
  }
}

@keyframes shineSweep {
  from {
    transform: translateX(-115%);
  }
  to {
    transform: translateX(115%);
  }
}

@keyframes pointerPulseLuxury {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.11);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .card-head h2 {
    font-size: 18px;
  }

  .giveaway-item-row {
    grid-template-columns: 68px 1fr;
  }

  .giveaway-item-thumb {
    width: 68px;
    height: 68px;
  }

  .giveaway-item-title {
    font-size: 18px;
  }

  .wheel-stage {
    border-width: 10px;
  }

  .bottom-nav {
    width: min(380px, calc(100vw - 20px));
  }
}

@media (max-width: 900px) {
  body::before {
    opacity: 0.45;
  }

  body::after {
    animation: none;
    opacity: 0.56;
  }

  .wheel-zone,
  .giveaways-card,
  .media-card,
  .donate-card,
  .donations-card,
  .participants-card,
  .profile-card {
    backdrop-filter: none;
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.36),
      0 0 0 1px rgba(255, 229, 170, 0.06),
      inset 0 1px 0 rgba(255, 243, 213, 0.14);
  }
}

/* UX smoothness + non-jumping refresh */
.view-detail {
  padding-bottom: calc(232px + env(safe-area-inset-bottom, 0px));
}

.view-detail .participants-card {
  margin-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
}

.participants-list,
.donations-list {
  scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.giveaways-list,
.participants-list,
.donations-list {
  contain: layout style paint;
}

.view {
  will-change: opacity, transform;
}

.app-shell.is-live-updates .giveaway-item,
.app-shell.is-live-updates .participant-item,
.app-shell.is-live-updates .donation-item,
.app-shell.is-live-updates .metric-card {
  animation: none !important;
}

@media (max-width: 900px) {
  .giveaway-item,
  .participant-item,
  .donation-item,
  .metric-card {
    animation: none !important;
  }
}

/* Animated filter sheet */
.filter-sheet-layer {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.filter-sheet-layer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.filter-sheet {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: transform 260ms cubic-bezier(0.22, 0.9, 0.32, 1), opacity 180ms ease;
}

.filter-sheet-layer.active .filter-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.filter-option-btn {
  opacity: 0;
  transform: translateY(8px);
}

.filter-sheet-layer.active .filter-option-btn {
  opacity: 1;
  transform: translateY(0);
  animation: filterOptionSlideIn 240ms ease forwards;
  animation-delay: calc(var(--filter-option-index, 0) * 22ms);
}

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

@media (prefers-reduced-motion: no-preference) {
  .giveaway-item,
  .participant-item,
  .donation-item,
  .metric-card,
  .filter-btn,
  .bottom-nav-btn,
  .pay-method-btn,
  .action-btn {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      opacity 180ms ease;
  }
}

/* Lite mode for low-end devices */
body.lite-mode::before,
body.lite-mode::after {
  animation: none !important;
  opacity: 0.22 !important;
}

body.lite-mode .wheel-zone,
body.lite-mode .giveaways-card,
body.lite-mode .media-card,
body.lite-mode .donate-card,
body.lite-mode .donations-card,
body.lite-mode .participants-card,
body.lite-mode .profile-card,
body.lite-mode .bottom-nav,
body.lite-mode .filter-sheet,
body.lite-mode .pay-modal {
  backdrop-filter: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

body.lite-mode .giveaway-item::after,
body.lite-mode .bg-noise {
  display: none !important;
}

body.lite-mode .pointer,
body.lite-mode .filter-option-btn,
body.lite-mode .view.entering,
body.lite-mode .giveaway-item,
body.lite-mode .participant-item,
body.lite-mode .donation-item,
body.lite-mode .metric-card {
  animation: none !important;
  transition: none !important;
}

/* Telegram-only access guard */
body.tg-only-mode {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(900px 500px at 50% -20%, rgba(255, 207, 116, 0.26), transparent 65%),
    radial-gradient(800px 420px at 10% 110%, rgba(83, 220, 255, 0.2), transparent 60%),
    linear-gradient(160deg, #090b14, #150f25 52%, #251124);
}

.tg-only-screen {
  width: min(560px, 100%);
}

.tg-only-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 210, 122, 0.34);
  background:
    linear-gradient(150deg, rgba(255, 208, 114, 0.12), rgba(83, 220, 255, 0.06) 32%, rgba(12, 12, 22, 0.9)),
    rgba(9, 9, 17, 0.9);
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 241, 209, 0.14);
  padding: 22px 18px;
  text-align: center;
}

.tg-only-card h1 {
  margin: 0 0 12px;
  color: #ffecc3;
  font-size: clamp(26px, 5vw, 34px);
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tg-only-card p {
  margin: 0;
  color: #e6d0a0;
  font-size: 16px;
  line-height: 1.45;
}

.tg-only-card p + p {
  margin-top: 8px;
}

/* Advanced UX additions */
.skeleton-list {
  display: grid;
  gap: 10px;
}

.skeleton-row {
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.06) 8%,
    rgba(255, 255, 255, 0.14) 18%,
    rgba(255, 255, 255, 0.06) 33%
  );
  background-size: 220% 100%;
  animation: skeletonPulse 1.2s linear infinite;
}

@keyframes skeletonPulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.chance-live {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 207, 113, 0.28);
  background: rgba(12, 13, 23, 0.8);
  padding: 10px 11px;
}

.chance-live-head {
  color: #ffe1a3;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chance-live p {
  margin: 6px 0 0;
  color: #f5e4c0;
  font-size: 13px;
  line-height: 1.35;
}

.fairness-card {
  margin-top: 12px;
  border: 1px solid rgba(255, 207, 113, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(255, 208, 114, 0.08), rgba(83, 220, 255, 0.05) 36%, rgba(12, 12, 20, 0.88)),
    rgba(10, 10, 18, 0.9);
  padding: 12px;
}

.fairness-current {
  margin-top: 10px;
  border: 1px solid rgba(255, 210, 123, 0.2);
  border-radius: 12px;
  padding: 10px;
  color: #f5e5c4;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-line;
}

.fairness-history {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: min(32vh, 300px);
  overflow-y: auto;
  padding-right: 2px;
}

.fairness-history-item {
  border: 1px solid rgba(255, 209, 118, 0.2);
  border-radius: 11px;
  background: rgba(12, 13, 22, 0.78);
  padding: 9px 10px;
  color: #edd7aa;
  font-size: 12px;
  line-height: 1.36;
}

.fairness-history-item strong {
  color: #fff0c8;
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.media-progress {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.media-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffd97f, #ffb95a 44%, #86eaff);
  transition: width 120ms linear;
}

.pay-method-btn {
  position: relative;
}

.pay-method-btn .method-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(25, 28, 37, 0.74);
  font-family: 'Exo 2', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.pay-method-btn.is-disabled {
  opacity: 0.58;
  filter: grayscale(0.2);
}

.pay-method-btn.is-disabled .method-note {
  color: rgba(44, 24, 24, 0.74);
}

.profile-card {
  display: block;
  min-height: 0;
  text-align: center;
}

.profile-stats-grid {
  margin-top: 14px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-avatar-wrap {
  margin: 0 auto;
}

.profile-stat {
  border: 1px solid rgba(255, 208, 114, 0.24);
  border-radius: 12px;
  padding: 8px 9px;
  background: rgba(11, 11, 21, 0.75);
}

.profile-stat span {
  display: block;
  color: #ddc79a;
  font-size: 11px;
}

.profile-stat strong {
  display: block;
  margin-top: 3px;
  color: #fff0c9;
  font-size: 15px;
}

.profile-progress-wrap {
  margin-top: 12px;
  width: 100%;
}

.profile-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ead2a4;
  font-size: 12px;
}

.profile-progress-track {
  margin-top: 6px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.profile-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffd981, #ffb85e, #8be8ff);
  transition: width 220ms ease;
}

.profile-badges {
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.profile-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 140, 0.32);
  background: rgba(255, 207, 114, 0.14);
  color: #ffe8ba;
  font-size: 11px;
  padding: 4px 9px;
  font-weight: 700;
}

.profile-settings {
  margin-top: 12px;
  width: 100%;
  display: grid;
  gap: 7px;
}

.profile-referral-card {
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(255, 208, 114, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 12, 20, 0.76);
}

.profile-referral-input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(255, 209, 117, 0.22);
  border-radius: 10px;
  background: rgba(8, 10, 17, 0.84);
  color: #f6e7c5;
  padding: 10px 11px;
  font-size: 12px;
}

.profile-referral-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-referral-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-referral-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-ref-counter {
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 126, 0.22);
  background: rgba(255, 214, 126, 0.12);
  color: #ffe9bc;
  font-size: 11px;
  padding: 4px 8px;
}

.profile-ref-counter strong {
  color: #fff7df;
}

.profile-ref-details-btn {
  border: 1px solid rgba(140, 218, 255, 0.32);
  border-radius: 999px;
  background: rgba(78, 186, 255, 0.18);
  color: #dff4ff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.profile-ref-details-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 208, 114, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(10, 12, 20, 0.76);
  color: #f1ddb2;
  font-size: 13px;
}

.switch-row input {
  accent-color: #ffd07a;
  width: 18px;
  height: 18px;
}

.profile-participations-card {
  margin-top: 12px;
  border: 1px solid rgba(255, 209, 117, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 209, 117, 0.11), rgba(83, 220, 255, 0.05) 34%, rgba(12, 12, 22, 0.88)),
    rgba(10, 10, 19, 0.92);
  padding: 12px;
}

.my-parts-filters {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-filter {
  border: 1px solid rgba(255, 209, 117, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4dfb5;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mini-filter.active {
  background: linear-gradient(96deg, #ffd97f, #ffba5d 44%, #ffe5ad);
  color: #3f2300;
}

.my-parts-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
  max-height: min(42vh, 340px);
  overflow-y: auto;
}

.my-part-item {
  border: 1px solid rgba(255, 209, 118, 0.18);
  border-radius: 11px;
  padding: 9px 10px;
  background: rgba(11, 12, 21, 0.78);
}

.my-part-item strong {
  display: block;
  color: #fff0cd;
  font-size: 14px;
}

.my-part-item p {
  margin: 4px 0 0;
  color: #e5cea2;
  font-size: 12px;
  line-height: 1.35;
}

.virtual-list {
  position: relative;
}

.virtual-list-inner {
  display: grid;
  gap: 8px;
}

.virtual-list-item {
  min-height: 58px;
}

.toast-stack {
  position: fixed;
  right: 10px;
  left: 10px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  gap: 7px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 140, 0.34);
  background:
    linear-gradient(140deg, rgba(255, 209, 117, 0.14), rgba(83, 220, 255, 0.08) 34%, rgba(14, 13, 25, 0.92)),
    rgba(10, 10, 19, 0.94);
  color: #ffeec8;
  padding: 9px 11px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-item strong {
  display: block;
  font-size: 13px;
}

.toast-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #ecd6ac;
}

.toast-item.toast-success {
  border-color: rgba(126, 255, 196, 0.5);
}

.toast-item.toast-warning {
  border-color: rgba(255, 208, 114, 0.5);
}

.toast-item.toast-error {
  border-color: rgba(255, 120, 144, 0.52);
}

@media (max-width: 760px) {
  .my-parts-list {
    max-height: min(40vh, 300px);
  }

  .fairness-history {
    max-height: min(30vh, 250px);
  }
}

/* Brawl-style UI refresh 16.05.2026 */
:root {
  --bg-1: #0b1f63;
  --bg-2: #1643b6;
  --bg-3: #2f8dff;
  --card: rgba(11, 26, 73, 0.9);
  --card-border: rgba(255, 255, 255, 0.28);
  --text-main: #f6fbff;
  --text-soft: #c5dcff;
  --accent: #ffd83d;
  --accent-2: #37e2ff;
  --danger: #ff6262;
  --ok: #67f6a1;
}

body {
  font-family: 'Nunito', 'Exo 2', sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -18%, rgba(72, 195, 255, 0.45), transparent 58%),
    radial-gradient(1100px 720px at 112% -18%, rgba(255, 221, 70, 0.3), transparent 56%),
    radial-gradient(980px 650px at 50% 115%, rgba(81, 132, 255, 0.3), transparent 52%),
    linear-gradient(165deg, #0b1c53 8%, #1440aa 50%, #2f8eff 100%);
}

body::before {
  opacity: 0.28;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 100%);
  background-size: 22px 22px, 26px 26px;
}

body::after {
  opacity: 0.35;
  background:
    radial-gradient(circle at 10% 20%, rgba(57, 224, 255, 0.28), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(255, 212, 62, 0.26), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(25, 83, 209, 0.24), transparent 42%);
}

.bg-noise {
  opacity: 0.02;
}

.app-topbar {
  background:
    linear-gradient(180deg, rgba(10, 22, 62, 0.96), rgba(10, 22, 62, 0)),
    radial-gradient(70% 170% at 92% -35%, rgba(255, 216, 69, 0.35), transparent 72%);
}

.bonus-chip {
  border: 2px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 225, 97, 0.36), rgba(255, 168, 52, 0.24)),
    rgba(13, 35, 95, 0.86);
  color: #fff9d4;
  font-weight: 900;
  box-shadow:
    0 8px 16px rgba(9, 14, 34, 0.36),
    inset 0 2px 0 rgba(255, 255, 255, 0.26);
}

.wheel-zone,
.giveaways-card,
.media-card,
.donate-card,
.donations-card,
.participants-card,
.profile-card,
.fairness-card,
.profile-participations-card {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(84, 191, 255, 0.24), rgba(13, 37, 100, 0.92) 35%, rgba(8, 24, 72, 0.94) 100%);
  box-shadow:
    0 14px 0 rgba(10, 18, 50, 0.55),
    0 20px 38px rgba(6, 13, 38, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: none;
}

.wheel-zone::before,
.giveaways-card::before,
.media-card::before,
.donate-card::before,
.donations-card::before,
.participants-card::before,
.profile-card::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(74, 213, 255, 0.26), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 218, 73, 0.22), transparent 38%);
}

.card-head h2,
#profileName,
.filter-sheet-head h3,
.pay-step h3,
#payMethodTitle,
.wheel-head h1,
.giveaway-item-title {
  font-family: 'Bangers', 'Tektur', 'Rajdhani', sans-serif;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(8, 18, 52, 0.5);
}

.card-head span,
.round-kicker,
.profile-balance,
.giveaway-badge,
.mini-filter,
.bottom-nav-btn.active {
  font-family: 'Nunito', 'Exo 2', sans-serif;
  font-weight: 900;
}

.card-head span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 29, 84, 0.6);
  color: #e8f3ff;
}

.filter-btn {
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(140deg, rgba(62, 192, 255, 0.34), rgba(15, 48, 125, 0.94) 42%, rgba(9, 28, 81, 0.96) 100%);
  box-shadow:
    0 7px 0 rgba(9, 21, 58, 0.5),
    0 14px 22px rgba(5, 12, 33, 0.34);
}

.filter-btn span {
  color: #d8e9ff;
}

.filter-btn strong {
  color: #ffffff;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.52);
}

.giveaway-item {
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(59, 180, 255, 0.36), rgba(15, 51, 132, 0.94) 45%, rgba(9, 30, 84, 0.98) 100%);
  box-shadow:
    0 7px 0 rgba(8, 20, 56, 0.54),
    0 12px 24px rgba(5, 11, 31, 0.38);
}

.giveaway-item::after {
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.28) 52%, transparent 72%);
}

.giveaway-item.active {
  border-color: rgba(255, 235, 128, 0.94);
  box-shadow:
    0 9px 0 rgba(7, 20, 57, 0.56),
    0 0 0 2px rgba(255, 222, 74, 0.34),
    0 16px 28px rgba(7, 12, 33, 0.44);
}

.giveaway-item-thumb {
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), transparent 52%),
    rgba(8, 28, 78, 0.78);
}

.giveaway-item-meta {
  color: #d7e9ff;
}

.giveaway-badge {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #f6fbff;
  background: rgba(10, 30, 86, 0.68);
}

.giveaway-badge.status-active {
  color: #032f17;
  background: linear-gradient(90deg, #79ffc0, #44e19f);
  border-color: rgba(148, 255, 207, 0.95);
}

.giveaway-badge.status-scheduled {
  color: #4a2c00;
  background: linear-gradient(90deg, #ffe58c, #ffc756);
  border-color: rgba(255, 224, 140, 0.96);
}

.giveaway-badge.status-finished {
  color: #fff5e8;
  background: linear-gradient(90deg, #ff736f, #ff4e80);
  border-color: rgba(255, 142, 138, 0.95);
}

.giveaway-badge.status-spinning {
  color: #033448;
  background: linear-gradient(90deg, #8feeff, #56d8ff);
  border-color: rgba(135, 232, 255, 0.95);
}

.back-to-main {
  border: 2px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(140deg, rgba(255, 218, 84, 0.5), rgba(255, 162, 58, 0.34)),
    rgba(12, 34, 90, 0.84);
  color: #fff9e4;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(8, 20, 56, 0.5);
}

.round-kicker {
  background: linear-gradient(98deg, #ffe266, #ffc340 48%, #fff09f);
  color: #3e2a00;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 5px 0 rgba(142, 95, 14, 0.48),
    0 9px 16px rgba(18, 30, 72, 0.3);
}

.wheel-head p,
.metric-card span,
.donate-hint,
.input-label,
.pay-convert,
.pay-method-note,
.pay-status,
.donation-meta,
.participant-item,
.chance-live p,
.profile-progress-meta,
#profileUsername {
  color: #d6e7ff;
}

.wheel-stage {
  border: 12px solid rgba(255, 226, 98, 0.98);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.3), transparent 42%),
    radial-gradient(circle at 80% 82%, rgba(71, 221, 255, 0.3), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(255, 87, 113, 0.2), transparent 44%),
    rgba(8, 24, 70, 0.86);
  box-shadow:
    0 16px 0 rgba(8, 18, 52, 0.52),
    0 24px 40px rgba(6, 12, 36, 0.52),
    0 0 0 2px rgba(255, 238, 162, 0.35);
}

.pointer {
  border-top-color: #ff4f5f;
  filter: drop-shadow(0 8px 10px rgba(9, 16, 43, 0.6));
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(59, 183, 255, 0.28), rgba(11, 38, 98, 0.9) 54%, rgba(8, 28, 79, 0.92));
}

.metric-card strong,
.donation-name,
.participant-item strong,
.chance-live-head,
.profile-stat strong,
.fairness-history-item strong {
  color: #f8fbff;
}

.metric-card.winner {
  border-color: rgba(255, 225, 99, 0.8);
  background:
    linear-gradient(130deg, rgba(255, 225, 99, 0.34), rgba(44, 167, 255, 0.24) 42%, rgba(8, 34, 90, 0.9));
}

.media-wrap,
.media-viewer,
.fairness-current,
.fairness-history-item,
.profile-stat,
.switch-row,
.my-part-item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(9, 28, 79, 0.7);
}

.media-dot.active {
  background: #ffd84b;
  box-shadow: 0 0 0 2px rgba(255, 214, 62, 0.35);
}

.media-nav {
  background: rgba(7, 24, 66, 0.92);
  color: #fff3b8;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chance-live {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(145deg, rgba(58, 186, 255, 0.22), rgba(8, 31, 83, 0.88));
}

.action-btn,
.pay-method-btn,
.filter-sheet-head button,
.pay-modal-close,
.pay-back-btn,
.mini-filter,
.legal-link-btn {
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 6px 0 rgba(8, 20, 54, 0.5),
    0 10px 18px rgba(5, 11, 30, 0.34);
}

.action-btn,
.pay-method-btn,
.bottom-nav-btn.active {
  color: #2f2200;
}

.action-btn.stars,
.pay-method-btn.stars {
  background: linear-gradient(100deg, #ffe580, #ffc84c 45%, #fff0a8);
}

.action-btn.bonus,
.pay-method-btn.bonus {
  background: linear-gradient(100deg, #aee7ff, #68cbff 48%, #d7f4ff);
}

.action-btn.ton,
.pay-method-btn.ton {
  background: linear-gradient(100deg, #8feaff, #44cffc 48%, #bcf4ff);
}

.action-btn.rub,
.pay-method-btn.rub {
  background: linear-gradient(100deg, #9affca, #67e9aa 48%, #c9ffe4);
}

.action-btn.donate-open {
  background: linear-gradient(100deg, #ffe57f, #ffbf46 46%, #ffd96b);
}

.action-btn:hover,
.pay-method-btn:hover,
.mini-filter:hover {
  transform: translateY(-1px);
}

.pay-modal,
.filter-sheet {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(150deg, rgba(64, 197, 255, 0.3), rgba(10, 34, 91, 0.95) 42%, rgba(8, 26, 74, 0.98));
}

.filter-option-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(59, 188, 255, 0.22), rgba(8, 31, 82, 0.9));
}

.filter-option-btn.active {
  border-color: rgba(255, 224, 106, 0.88);
  background:
    linear-gradient(145deg, rgba(255, 223, 101, 0.32), rgba(42, 160, 255, 0.24) 44%, rgba(10, 33, 88, 0.93));
}

.filter-option-btn strong {
  color: #fff1b1;
}

.donation-item,
.participant-item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(57, 186, 255, 0.2), rgba(9, 33, 88, 0.88));
}

.donation-amount {
  color: #ffe17c;
}

.profile-card {
  background:
    radial-gradient(120% 130% at 100% -12%, rgba(255, 221, 85, 0.28), transparent 46%),
    radial-gradient(120% 130% at -12% 112%, rgba(68, 208, 255, 0.25), transparent 45%),
    linear-gradient(165deg, rgba(12, 34, 92, 0.95), rgba(9, 26, 74, 0.95));
}

.profile-avatar,
.profile-avatar-fallback {
  border: 2px solid rgba(255, 223, 95, 0.82);
  box-shadow:
    0 8px 0 rgba(9, 19, 54, 0.5),
    0 16px 24px rgba(5, 11, 33, 0.44);
}

.profile-balance {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 223, 96, 0.36), rgba(255, 170, 65, 0.26)),
    rgba(10, 34, 90, 0.84);
  color: #fff9dd;
}

.profile-badge {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 222, 94, 0.2);
  color: #fff4ce;
}

.mini-filter {
  background: rgba(9, 30, 84, 0.74);
  color: #e8f2ff;
}

.mini-filter.active {
  background: linear-gradient(98deg, #ffe272, #ffc44a 45%, #ffec9f);
  color: #392700;
}

.bottom-nav {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(62, 190, 255, 0.3), rgba(10, 33, 88, 0.94) 50%, rgba(8, 24, 70, 0.96));
  box-shadow:
    0 10px 0 rgba(9, 21, 57, 0.52),
    0 16px 26px rgba(5, 11, 31, 0.42);
}

.bottom-nav-btn {
  color: #d9e8ff;
  font-weight: 900;
}

.bottom-nav-btn.active {
  background: linear-gradient(100deg, #ffe477, #ffc34b 46%, #ffe9a0);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.toast-item {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(68, 201, 255, 0.34), rgba(10, 34, 91, 0.93) 46%, rgba(8, 27, 76, 0.96));
  color: #f5fbff;
}

.toast-item p {
  color: #dbeaff;
}

.toast-item.toast-success {
  border-color: rgba(123, 255, 191, 0.7);
}

.toast-item.toast-warning {
  border-color: rgba(255, 222, 89, 0.72);
}

.toast-item.toast-error {
  border-color: rgba(255, 117, 117, 0.72);
}

@media (max-width: 760px) {
  .card-head h2,
  #profileName,
  .wheel-head h1,
  .giveaway-item-title {
    letter-spacing: 0.03em;
  }

  .wheel-stage {
    border-width: 10px;
  }
}

/* Brawl palette final override: yellow + emerald + deep red + black contour */
:root {
  --bg-1: #0d2f86;
  --bg-2: #1a56c7;
  --bg-3: #2d79e6;
  --card: rgba(13, 44, 128, 0.9);
  --card-border: rgba(13, 16, 24, 0.95);
  --text-main: #f8fff9;
  --text-soft: #d5e6ff;
  --accent: #ffcd22;
  --accent-2: #bc2b2b;
  --danger: #e53a3a;
  --ok: #6cf5b0;
}

body {
  background:
    radial-gradient(1100px 700px at 10% -14%, rgba(255, 205, 45, 0.4), transparent 58%),
    radial-gradient(940px 620px at 104% -10%, rgba(197, 46, 46, 0.3), transparent 56%),
    radial-gradient(980px 660px at 50% 114%, rgba(88, 142, 255, 0.2), transparent 52%),
    linear-gradient(165deg, #102d78 8%, #1a58c7 52%, #2f79e0 100%);
}

.wheel-zone,
.giveaways-card,
.media-card,
.donate-card,
.donations-card,
.participants-card,
.profile-card,
.fairness-card,
.profile-participations-card {
  border: 2px solid #0a0d16;
  background:
    linear-gradient(152deg, rgba(255, 206, 52, 0.28), rgba(28, 88, 199, 0.94) 42%, rgba(14, 52, 140, 0.96) 100%);
  box-shadow:
    0 8px 0 #090c15,
    0 18px 28px rgba(3, 8, 24, 0.48),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.filter-btn,
.giveaway-item,
.metric-card,
.donation-item,
.participant-item,
.media-wrap,
.media-viewer,
.fairness-current,
.fairness-history-item,
.profile-stat,
.switch-row,
.my-part-item,
.filter-option-btn,
.bottom-nav,
.pay-modal,
.filter-sheet,
.toast-item {
  border: 2px solid #090d16;
  background:
    linear-gradient(145deg, rgba(255, 206, 52, 0.24), rgba(26, 82, 187, 0.92) 48%, rgba(12, 48, 133, 0.96));
  box-shadow:
    0 5px 0 #090c14,
    0 10px 20px rgba(3, 8, 22, 0.38);
}

.card-head h2,
#profileName,
.wheel-head h1,
.giveaway-item-title {
  color: #ffffff;
  text-shadow:
    0 2px 0 #0a0d16,
    0 0 10px rgba(255, 214, 72, 0.24);
}

.giveaway-item.active,
.filter-option-btn.active,
.metric-card.winner {
  border-color: #0a0d16;
  background:
    linear-gradient(145deg, rgba(255, 216, 72, 0.38), rgba(191, 44, 44, 0.24) 40%, rgba(27, 87, 188, 0.94) 100%);
  box-shadow:
    0 6px 0 #090c14,
    0 0 0 2px rgba(255, 223, 98, 0.32),
    0 14px 24px rgba(4, 8, 22, 0.42);
}

.round-kicker,
.bottom-nav-btn.active,
.mini-filter.active,
.action-btn.donate-open {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #ffdf5a, #ffbe26 46%, #ffeb82);
  color: #2f2100;
  box-shadow:
    0 5px 0 #7b5200,
    0 10px 16px rgba(7, 13, 33, 0.34);
}

.action-btn.stars,
.pay-method-btn.stars {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #ffdc52, #ffbd1f 48%, #ffe878);
}

.action-btn.ton,
.pay-method-btn.ton {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #99d9ff, #4ca8ff 48%, #d1ebff);
}

.action-btn.bonus,
.pay-method-btn.bonus {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #ffd97e, #ffb34f 48%, #ffe9a8);
}

.action-btn.rub,
.pay-method-btn.rub {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #89ffc9, #5be6a7 48%, #c8ffe5);
}

.media-nav {
  border: 2px solid #090d16;
  background: rgba(12, 51, 138, 0.94);
  color: #fff1ba;
}

.giveaway-badge.status-finished {
  border-color: #0a0d16;
  color: #fff2f2;
  background: linear-gradient(90deg, #ea5a5a, #be2e2e);
}

.pointer {
  border-top-color: #d93535;
  filter: drop-shadow(0 8px 10px rgba(8, 12, 25, 0.62));
}

.wheel-stage {
  border: 12px solid #ffd94b;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 248, 225, 0.33), transparent 42%),
    radial-gradient(circle at 80% 82%, rgba(110, 195, 255, 0.28), transparent 40%),
    radial-gradient(circle at 50% 120%, rgba(220, 58, 58, 0.24), transparent 44%),
    rgba(12, 48, 134, 0.88);
  box-shadow:
    0 10px 0 #0a0d16,
    0 24px 38px rgba(4, 9, 24, 0.5),
    0 0 0 2px rgba(9, 13, 22, 0.9);
}

/* Main menu soft lobby tune (lighter, less harsh contour) */
.view-main .giveaways-card {
  border-color: rgba(23, 63, 145, 0.72);
  background:
    linear-gradient(152deg, rgba(255, 223, 106, 0.22), rgba(67, 134, 255, 0.86) 44%, rgba(35, 89, 209, 0.88) 100%);
  box-shadow:
    0 5px 0 rgba(14, 39, 93, 0.58),
    0 14px 24px rgba(6, 14, 36, 0.32),
    inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.view-main .filter-btn {
  border-color: rgba(27, 72, 161, 0.64);
  background:
    linear-gradient(145deg, rgba(255, 222, 108, 0.18), rgba(73, 146, 255, 0.86) 46%, rgba(40, 103, 219, 0.9));
  box-shadow:
    0 3px 0 rgba(15, 40, 104, 0.52),
    0 10px 16px rgba(6, 14, 35, 0.24);
}

.view-main .giveaway-item {
  border-color: rgba(24, 72, 165, 0.66);
  background:
    linear-gradient(146deg, rgba(255, 226, 120, 0.2), rgba(81, 154, 255, 0.84) 46%, rgba(48, 112, 219, 0.9));
  box-shadow:
    0 3px 0 rgba(15, 40, 104, 0.52),
    0 10px 16px rgba(6, 14, 35, 0.24);
}

.view-main .giveaway-item.active {
  border-color: rgba(255, 228, 120, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 227, 118, 0.26), rgba(232, 73, 73, 0.16) 34%, rgba(85, 156, 255, 0.86) 64%);
  box-shadow:
    0 4px 0 rgba(15, 38, 99, 0.52),
    0 0 0 2px rgba(255, 224, 104, 0.24),
    0 14px 22px rgba(6, 14, 35, 0.28);
}

.view-main .giveaway-item-thumb {
  border-color: rgba(24, 73, 166, 0.64);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 248, 223, 0.3), transparent 52%),
    rgba(66, 139, 255, 0.7);
}

.view-main .card-head h2,
.view-main .giveaway-item-title {
  text-shadow:
    0 1px 0 rgba(18, 49, 116, 0.64),
    0 0 8px rgba(255, 218, 92, 0.2);
}

.view-main .giveaway-item-meta,
.view-main .filter-btn span {
  color: #eaf3ff;
}

.view-main .giveaway-badge {
  border-color: rgba(24, 74, 168, 0.62);
  background: rgba(41, 102, 224, 0.58);
}

/* Combined core-color gradient background */
body {
  background:
    radial-gradient(980px 620px at 8% -14%, rgba(255, 206, 46, 0.4), transparent 58%),
    radial-gradient(940px 620px at 104% -8%, rgba(55, 160, 255, 0.3), transparent 56%),
    radial-gradient(920px 620px at 86% 112%, rgba(76, 136, 255, 0.24), transparent 58%),
    radial-gradient(880px 560px at 12% 112%, rgba(84, 138, 255, 0.24), transparent 56%),
    linear-gradient(162deg, #121a42 8%, #1b5db5 42%, #2e74da 78%, #f0be47 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-color: #121a42;
}

.view-main .giveaways-card {
  background:
    linear-gradient(
      148deg,
      rgba(255, 212, 65, 0.28) 0%,
      rgba(67, 162, 255, 0.2) 33%,
      rgba(84, 146, 255, 0.2) 62%,
      rgba(74, 133, 245, 0.16) 100%
    ),
    rgba(17, 47, 129, 0.86);
}

.view-main .giveaway-item {
  background:
    linear-gradient(
      146deg,
      rgba(255, 216, 72, 0.26) 0%,
      rgba(74, 168, 255, 0.2) 36%,
      rgba(86, 150, 255, 0.18) 68%,
      rgba(68, 129, 243, 0.15) 100%
    ),
    rgba(22, 66, 160, 0.84);
}

.view-main .giveaway-item.active {
  background:
    linear-gradient(145deg, rgba(255, 222, 92, 0.28), rgba(87, 156, 255, 0.2) 34%, rgba(71, 136, 245, 0.24) 64%),
    rgba(24, 71, 168, 0.9);
}

/* UX pack: favorites, upcoming feed, mini-history, winner card */
.giveaway-quick-tools {
  margin-top: 8px;
}

.filter-favorite-btn {
  max-width: 220px;
}

.filter-favorite-btn.active {
  border-color: rgba(255, 230, 118, 0.88);
  box-shadow:
    0 4px 0 rgba(15, 38, 98, 0.54),
    0 0 0 2px rgba(255, 223, 102, 0.32),
    0 12px 20px rgba(6, 14, 34, 0.3);
}

.upcoming-card,
.my-history-card,
.winner-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 22px;
  border: 2px solid #0a0d16;
  background:
    linear-gradient(146deg, rgba(255, 214, 70, 0.2), rgba(77, 154, 255, 0.84) 46%, rgba(35, 93, 206, 0.9));
  box-shadow:
    0 4px 0 rgba(14, 39, 94, 0.58),
    0 12px 22px rgba(5, 12, 30, 0.32);
}

.upcoming-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  max-height: min(34vh, 280px);
  overflow-y: auto;
  padding-right: 2px;
}

.upcoming-item {
  border: 2px solid rgba(9, 13, 22, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 219, 90, 0.2), rgba(50, 119, 235, 0.9) 48%, rgba(23, 76, 183, 0.94));
  box-shadow:
    0 4px 0 rgba(9, 14, 23, 0.82),
    0 9px 16px rgba(6, 13, 32, 0.3);
  padding: 10px;
}

.upcoming-item strong {
  display: block;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  font-size: 17px;
  color: #fff7dd;
}

.upcoming-item p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #e8f0ff;
  line-height: 1.35;
}

.upcoming-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.upcoming-open-btn,
.upcoming-bell-btn,
.giveaway-fav-btn {
  border: 2px solid #0a0d16;
  border-radius: 12px;
  background: rgba(13, 40, 100, 0.94);
  color: #f7fbff;
  cursor: pointer;
  font-weight: 800;
}

.upcoming-open-btn {
  padding: 6px 10px;
  min-width: 92px;
}

.upcoming-bell-btn {
  padding: 6px 10px;
}

.upcoming-bell-btn.active {
  background: linear-gradient(100deg, #ffe370, #ffc645 48%, #fff0a8);
  color: #3c2600;
}

.giveaway-item-row {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.giveaway-item-tools {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.giveaway-fav-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.giveaway-fav-btn.active {
  background: linear-gradient(100deg, #ffe268, #ffc13a 45%, #fff0a6);
  color: #3a2500;
}

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

.winner-card {
  display: grid;
  gap: 8px;
}

.winner-card[hidden] {
  display: none !important;
}

.winner-card-main strong {
  display: block;
  font-size: 24px;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  color: #fff5d3;
  text-shadow:
    0 2px 0 rgba(10, 13, 22, 0.9),
    0 0 12px rgba(255, 222, 96, 0.3);
}

.winner-card-main p {
  margin: 6px 0 0;
  color: #e6f1ff;
  line-height: 1.4;
}

.winner-card-count {
  margin-top: 6px;
  font-size: 12px;
  color: #fff3cc;
  opacity: 0.9;
}

.winner-card-list {
  display: grid;
  gap: 6px;
  max-height: min(26vh, 220px);
  overflow-y: auto;
  padding-right: 2px;
}

.winner-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid rgba(8, 14, 25, 0.8);
  background: rgba(10, 34, 88, 0.52);
}

.winner-card-row span:first-child {
  min-width: 0;
  color: #fff4d0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-card-row-meta {
  color: #cfe3ff;
  font-size: 12px;
  opacity: 0.9;
}

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

.action-btn.secondary {
  background: linear-gradient(100deg, #8ec8ff, #5aa6ff 46%, #d8ebff);
  color: #06234d;
}

.round-share-btn {
  border: 2px solid #0a0d16;
  border-radius: 999px;
  padding: 6px 12px;
  background: linear-gradient(100deg, #9fd3ff, #69aeff 46%, #d8ecff);
  color: #04244d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 4px 0 rgba(7, 17, 40, 0.76),
    0 8px 12px rgba(5, 12, 28, 0.28);
}

.round-share-btn:active {
  transform: translateY(1px);
}

.profile-badge.tier-bronze {
  color: #f6dbc2;
}

.profile-badge.tier-silver {
  color: #ecf3ff;
}

.profile-badge.tier-gold {
  color: #fff5c5;
}

.action-btn.free,
.pay-method-btn.free {
  border: 2px solid #0a0d16;
  background: linear-gradient(100deg, #fff2a8, #ffd553 46%, #ffe98a);
  color: #2f2200;
}

#paySubmitBtn {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1px;
  align-items: center;
  justify-items: center;
  line-height: 1.05;
  min-width: 148px;
}

#paySubmitMain {
  font-size: 18px;
  font-weight: 900;
}

#paySubmitSub {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.92;
  max-width: 136px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pay-security-hint {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 16, 36, 0.42);
  color: #d7f3ff;
  font-size: 12px;
  line-height: 1.35;
}

.pay-tx-id {
  margin: 6px 0 0;
  color: #fff2a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-category-subs {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.profile-category-hint {
  margin: 0;
  color: #d4e8ff;
  font-size: 12px;
  line-height: 1.35;
}

.profile-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sub-chip {
  border: 2px solid #0a0d16;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #dbe8ff;
  background: linear-gradient(100deg, #244f9f, #1b458f 48%, #2b65ba);
  box-shadow: 0 3px 0 rgba(7, 17, 40, 0.78);
  cursor: pointer;
}

.category-sub-chip.active {
  color: #2a2200;
  background: linear-gradient(100deg, #ffe87c, #ffd453 45%, #fff2ac);
}

.giveaway-search-wrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.giveaway-search-input {
  width: 100%;
  border: 2px solid #0a0d16;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  color: #ebf4ff;
  background: linear-gradient(110deg, rgba(17, 41, 87, 0.86), rgba(25, 51, 102, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.giveaway-search-input::-webkit-search-decoration,
.giveaway-search-input::-webkit-search-cancel-button,
.giveaway-search-input::-webkit-search-results-button,
.giveaway-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.giveaway-search-input::placeholder {
  color: #c5d8ef;
}

.giveaway-search-clear {
  border: 2px solid #0a0d16;
  border-radius: 12px;
  min-width: 42px;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: #253252;
  background: linear-gradient(100deg, #ffe684, #ffd35a 45%, #fff1b8);
  box-shadow: 0 3px 0 rgba(8, 18, 42, 0.72);
}

.giveaway-search-clear:active {
  transform: translateY(1px);
}

.giveaway-badge.new-for-user {
  color: #3a2500;
  background: linear-gradient(100deg, #ffe779, #ffc83d 45%, #fff1ad);
}

.my-actions-card {
  border: 2px solid rgba(10, 13, 22, 0.9);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(130deg, rgba(17, 40, 86, 0.86), rgba(11, 30, 68, 0.9));
  display: grid;
  gap: 8px;
}

.my-actions-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 2px;
}

.my-action-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(10, 20, 48, 0.36);
}

.my-action-item strong {
  display: block;
  color: #f7f2ce;
  font-size: 13px;
}

.my-action-item span {
  display: block;
  margin-top: 3px;
  color: #d0e2ff;
  font-size: 12px;
}

.stars-invoice-status {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(8, 18, 42, 0.4);
  color: #e4f2ff;
  font-size: 12px;
  line-height: 1.35;
}

.sticky-join-bar {
  display: none !important;
}

.sticky-join-meta span {
  display: block;
  color: #d4e8ff;
  font-size: 11px;
  font-weight: 700;
}

.sticky-join-meta strong {
  display: block;
  margin-top: 2px;
  color: #fff3b2;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.sticky-join-bar .action-btn {
  min-width: 142px;
}

.receipt-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 10, 24, 0.62);
  padding: 16px;
}

.receipt-layer.active {
  display: flex;
}

.receipt-card {
  width: min(540px, 100%);
  border: 2px solid #0a0d16;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(120deg, #143266 0%, #1b4a98 48%, #2c5db1 100%);
  box-shadow:
    0 10px 24px rgba(8, 17, 38, 0.34),
    0 4px 0 rgba(8, 17, 38, 0.75);
  display: grid;
  gap: 10px;
}

.receipt-badge {
  justify-self: start;
  border: 2px solid #0a0d16;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #2f2400;
  background: linear-gradient(95deg, #ffe779, #ffd04d 46%, #fff2b4);
}

.receipt-card h3 {
  margin: 0;
  color: #fff3c4;
  font-size: 22px;
  font-family: 'Tektur', 'Rajdhani', sans-serif;
}

.receipt-card p {
  margin: 0;
  color: #dcecff;
  font-size: 14px;
  line-height: 1.4;
}

.receipt-tx-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.receipt-tx-wrap code {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(11, 24, 52, 0.5);
  color: #fff1a8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.receipt-tx-wrap button {
  border: 2px solid #0a0d16;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 800;
  color: #233455;
  background: linear-gradient(100deg, #b9e0ff, #82bbff 48%, #dceeff);
}

.view-detail {
  padding-bottom: calc(246px + env(safe-area-inset-bottom, 0px));
}

body.profile-mode .sticky-join-bar,
body.main-mode .sticky-join-bar {
  display: none !important;
}

@media (max-width: 460px) {
  .sticky-join-bar {
    left: 10px;
    right: 10px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-join-bar .action-btn {
    min-width: 128px;
  }
}

.referral-progress-wrap {
  margin: 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(140deg, rgba(15, 28, 61, 0.62), rgba(8, 16, 39, 0.74));
}

.referral-progress-wrap.done {
  border-color: rgba(130, 255, 185, 0.5);
  box-shadow: 0 0 0 1px rgba(83, 224, 151, 0.2) inset;
}

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

.referral-progress-head strong {
  color: #f8e8a6;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.referral-progress-head span {
  color: #d8ebff;
  font-size: 12px;
  font-weight: 700;
}

.referral-progress-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  max-height: 140px;
  overflow: auto;
  padding-right: 2px;
}

.referral-progress-note {
  margin: 8px 0 0;
  color: #d8e8ff;
  font-size: 12px;
  line-height: 1.45;
}

.referral-progress-share {
  margin-top: 10px;
}

.referral-progress-item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(8, 17, 42, 0.42);
}

.referral-progress-item strong {
  display: block;
  color: #fff7cc;
  font-size: 12px;
}

.referral-progress-item span {
  display: block;
  margin-top: 2px;
  color: #cfe2ff;
  font-size: 11px;
}

/* Tasks UI refresh */
#tasksList.my-actions-list {
  max-height: none;
  overflow: visible;
  gap: 12px;
}

.task-card-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 11px;
  background:
    radial-gradient(140% 180% at 100% -30%, rgba(255, 203, 74, 0.24), transparent 58%),
    linear-gradient(160deg, rgba(16, 30, 63, 0.94), rgba(10, 20, 46, 0.95));
  box-shadow:
    0 9px 20px rgba(4, 10, 28, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.task-card-item:active {
  transform: translateY(1px);
}

.task-card-item:hover,
.task-card-item:focus-within {
  border-color: rgba(255, 214, 120, 0.56);
  box-shadow:
    0 12px 22px rgba(4, 10, 28, 0.42),
    0 0 0 1px rgba(255, 214, 120, 0.22) inset;
}

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

.task-card-head-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.task-card-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 214, 120, 0.32), rgba(86, 132, 255, 0.32));
  display: grid;
  place-items: center;
  font-size: 16px;
}

.task-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.task-card-title-wrap {
  min-width: 0;
}

.task-card-subtitle {
  margin: 1px 0 0;
  color: rgba(214, 231, 255, 0.84);
  font-size: 11px;
}

.task-card-head h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  color: #fff9e2;
  text-shadow: 0 1px 0 rgba(5, 10, 26, 0.8);
}

.task-status-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.task-status-pill.progress {
  color: #dbe8ff;
  background: rgba(22, 47, 102, 0.46);
}

.task-status-pill.done {
  color: #fff8df;
  background: rgba(40, 94, 178, 0.62);
}

.task-status-pill.ready {
  color: #19300f;
  border-color: rgba(165, 255, 176, 0.82);
  background: linear-gradient(95deg, #b9ff88, #7ce850);
}

.task-status-pill.claimed {
  color: #0f2b17;
  border-color: rgba(166, 255, 214, 0.8);
  background: linear-gradient(95deg, #8cffca, #5be8a2);
}

.task-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.task-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 3px 9px;
  font-size: 11px;
  color: #f2f8ff;
  background: rgba(8, 18, 44, 0.5);
}

.task-progress {
  margin-top: 10px;
  height: 9px;
  border-radius: 999px;
  background: rgba(5, 12, 30, 0.58);
  overflow: hidden;
}

.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(95deg, #ffe978, #ffc531 44%, #ffe99d);
}

.task-card-desc {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #d8e8ff;
}

.task-card-actions {
  margin-top: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.task-primary-btn,
.task-detail-btn {
  min-height: 37px;
  padding: 8px 10px;
}

.task-detail-btn {
  min-width: 108px;
}

.task-log-item {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(9, 18, 43, 0.42);
}

.task-log-item strong {
  display: block;
  color: #f4eccd;
  font-size: 13px;
}

.task-log-item p {
  margin: 4px 0 0;
  color: #c9dbff;
  font-size: 12px;
}

.profile-ref-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 66;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 10, 18, 0.64);
  backdrop-filter: blur(4px);
}

.profile-ref-modal-layer.active {
  display: flex;
}

.profile-ref-modal {
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px 18px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(130% 170% at 100% -35%, rgba(255, 214, 120, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(15, 29, 62, 0.98), rgba(10, 20, 46, 0.98));
  padding: 14px;
  box-shadow: 0 20px 36px rgba(1, 6, 20, 0.54);
}

.profile-ref-modal-close {
  position: absolute;
  width: 36px;
  height: 36px;
  margin-left: auto;
  right: 16px;
  top: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 18, 44, 0.74);
  color: #e9f3ff;
  cursor: pointer;
}

.profile-ref-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  padding-right: 40px;
}

.profile-ref-modal-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #fff9dd;
}

.profile-ref-modal-summary {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #d8e9ff;
}

.profile-ref-modal-list {
  margin-top: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.profile-ref-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(9, 18, 43, 0.42);
  padding: 10px;
}

.profile-ref-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-ref-item-head strong {
  color: #f4eccd;
  font-size: 13px;
}

.profile-ref-item p {
  margin: 5px 0 0;
  color: #c9dbff;
  font-size: 12px;
  line-height: 1.35;
}

.task-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 10, 18, 0.64);
  backdrop-filter: blur(4px);
}

.task-modal-layer.active {
  display: flex;
}

.task-modal {
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px 18px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(130% 170% at 100% -35%, rgba(255, 214, 120, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(15, 29, 62, 0.98), rgba(10, 20, 46, 0.98));
  padding: 14px;
  box-shadow: 0 20px 36px rgba(1, 6, 20, 0.54);
}

.task-modal-close {
  position: absolute;
  width: 36px;
  height: 36px;
  margin-left: auto;
  right: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 18, 44, 0.74);
  color: #e9f3ff;
  cursor: pointer;
}

.task-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  padding-right: 40px;
}

.task-modal-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #fff9dd;
}

.task-modal-description {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.44;
  color: #d8e9ff;
}

.task-modal-progress {
  margin-top: 10px;
}

.task-modal-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.task-modal-actions .action-btn {
  min-height: 40px;
}

@media (max-width: 430px) {
  .task-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-detail-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Navigation and sticky fixes */
.bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: min(460px, calc(100vw - 20px)) !important;
  gap: 6px !important;
}

.bottom-nav-btn {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 13px;
  padding: 10px 6px !important;
}

body.tasks-mode .sticky-join-bar {
  display: none !important;
}

@media (max-width: 430px) {
  .bottom-nav-btn {
    font-size: 12px;
    letter-spacing: 0.01em;
  }
}

/* Snezh-like task cards */
#tasksList.my-actions-list {
  display: grid;
  gap: 10px;
}

.task-card-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 222, 116, 0.14), rgba(94, 168, 255, 0.08) 30%, rgba(11, 22, 52, 0.97)),
    rgba(9, 18, 42, 0.95);
  box-shadow:
    0 10px 20px rgba(1, 8, 24, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.task-card-head {
  align-items: center;
}

.task-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(13, 26, 58, 0.86);
}

.task-card-head h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.task-card-subtitle {
  font-size: 10px;
  opacity: 0.92;
}

.task-chip-row {
  margin-top: 6px;
  gap: 6px;
}

.task-chip {
  font-size: 10px;
  padding: 3px 8px;
}

.task-progress {
  margin-top: 8px;
  height: 8px;
}

.task-card-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.task-card-actions {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
}

.task-primary-btn,
.task-detail-btn {
  min-height: 36px;
  font-size: 13px;
  font-weight: 800;
}

.task-group-section {
  display: grid;
  gap: 9px;
}

.task-group-title {
  margin: 2px 2px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8e7b4;
}

.snezh-task-card {
  border-radius: 13px;
  padding: 9px;
}

.snezh-task-card .task-card-head h4 {
  font-size: 14px;
}

.snezh-task-card .task-card-subtitle {
  font-size: 10px;
  opacity: 0.94;
}

.snezh-task-card .task-chip-row {
  margin-top: 6px;
  gap: 5px;
}

.snezh-task-card .task-chip {
  font-size: 10px;
  padding: 3px 8px;
}

.snezh-task-card .task-progress {
  margin-top: 7px;
  height: 7px;
}

.snezh-task-card .task-card-desc {
  margin-top: 7px;
}

.task-card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.task-inline-btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.winners-under-pointer {
  align-items: stretch;
}

.winners-under-pointer-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.winners-under-pointer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 226, 138, 0.08);
  border: 1px solid rgba(255, 226, 138, 0.22);
}

.winners-under-pointer-place {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #1f1b08;
  background: #ffe28a;
  flex: 0 0 auto;
}

.winners-under-pointer-item strong {
  font-size: 14px;
  line-height: 1.2;
  color: #fff6df;
}

.pay-methods.is-empty {
  min-height: 72px;
}

.pay-methods-empty {
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

/* Tasks compact card (reference-like) */
.snezh-task-card {
  padding: 8px 9px;
}

.snezh-task-card .task-card-head {
  align-items: center;
}

.snezh-task-card .task-card-subtitle {
  display: none;
}

.task-card-meta-line {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-reward-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 154, 0.45);
  background: rgba(255, 214, 86, 0.16);
  color: #fff7cf;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.task-card-actions {
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr);
}

.task-card-actions .task-primary-btn {
  min-height: 34px;
}

/* Tasks view sizing: wider cards, tighter height */
#tasksView .profile-card,
#tasksView .profile-participations-card {
  padding: 8px;
}

#tasksView #tasksList.my-actions-list {
  display: flex;
  flex-direction: column;
  margin-left: -6px;
  margin-right: -6px;
  gap: 8px;
}

#tasksView .task-group-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

#tasksView .task-card-item {
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  border-radius: 12px;
}

#tasksView .task-card-head {
  gap: 7px;
}

#tasksView .task-card-icon {
  width: 31px;
  height: 31px;
}

#tasksView .task-card-head h4 {
  font-size: 13px;
}

#tasksView .task-card-meta-line {
  margin-top: 4px;
}

#tasksView .task-card-actions {
  margin-top: 6px;
}

#tasksView .task-card-actions .task-primary-btn {
  min-height: 30px;
  font-size: 12px;
  padding: 5px 8px;
}

/* Tasks final alignment and compact layout */
#tasksView .profile-card,
#tasksView .profile-participations-card {
  padding: 10px 10px 12px;
}

#tasksView #tasksList.my-actions-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  width: 100%;
}

#tasksView .task-group-section {
  display: grid;
  gap: 6px;
  width: 100%;
}

#tasksView .task-group-title {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

#tasksView .task-card-item {
  width: 100%;
  min-height: 0;
  padding: 7px 8px;
  border-radius: 12px;
}

#tasksView .task-card-head {
  gap: 7px;
  align-items: center;
}

#tasksView .task-card-icon {
  width: 30px;
  height: 30px;
}

#tasksView .task-card-head h4 {
  font-size: 13px;
  line-height: 1.15;
}

#tasksView .task-status-pill {
  padding: 2px 7px;
  font-size: 10px;
}

#tasksView .task-card-meta-line {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

#tasksView .task-reward-pill,
#tasksView .task-info-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8dc;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  line-height: 1.2;
}

#tasksView .task-card-actions {
  margin-top: 7px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

#tasksView .task-card-actions .task-primary-btn,
#tasksView .task-card-actions .task-detail-btn {
  min-height: 31px;
  font-size: 12px;
  padding: 5px 8px;
  font-weight: 700;
}

#tasksView .task-card-actions .task-detail-btn {
  min-width: 92px;
}

#tasksView .task-state-error {
  color: #ffd9d9;
}

#tasksView .task-retry-btn {
  margin-top: 6px;
  min-height: 34px;
}

@media (max-width: 430px) {
  #tasksView .task-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  #tasksView .task-card-actions .task-detail-btn {
    min-width: 0;
    width: 100%;
  }
}

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

.proposal-form-grid label,
#tasksView .profile-card > label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #d8e5ff;
}

.proposal-form-grid input,
.proposal-form-grid select,
#tasksView .profile-card > label input,
#tasksView .profile-card > label textarea {
  width: 100%;
}

.proposal-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#proposalSubmitStatus {
  margin: 0;
}

.proposal-card-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 28, 54, 0.5);
}

.proposal-card-item .task-card-subtitle,
.proposal-card-item .task-card-desc {
  margin: 0;
}

.proposal-card-item .task-card-actions {
  margin-top: 0;
  align-items: center;
  justify-content: space-between;
}

.proposal-card-item .action-btn {
  margin-top: 0;
  padding: 8px 10px;
}

.proposal-card-top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.proposal-card-top img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.proposal-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.proposal-like-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.proposal-like-btn.liked {
  border-color: #ff97b8;
  color: #ffd4e5;
  background: rgba(255, 102, 153, 0.18);
}

.spin-sequence-banner {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
}

.spin-sequence-banner strong {
  font-size: 13px;
  line-height: 1.2;
}

.spin-sequence-banner span {
  font-size: 12px;
  color: #d6e8ff;
}

@media (max-width: 520px) {
  .proposal-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.showcase-cta-row {
  margin: 8px 0 10px;
}

.showcase-cta-row .action-btn {
  width: 100%;
}

.showcase-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.showcase-filters .filter-btn {
  min-height: 62px;
}

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

#showcaseView .proposal-card-item {
  background:
    linear-gradient(145deg, rgba(255, 222, 116, 0.14), rgba(94, 168, 255, 0.08) 30%, rgba(11, 22, 52, 0.97)),
    rgba(9, 18, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 520px) {
  .showcase-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #proposalsRefreshBtn {
    grid-column: 1 / -1;
  }
}
