:root {
  --bg: #06060f;
  --surface: #111129;
  --surface-soft: #17173b;
  --surface-accent: #20184f;
  --text: #f5f6ff;
  --muted: #8f96c5;
  --primary: #b04eff;
  --primary-2: #6a7dff;
  --accent: #27f5d3;
  --gold: #ffc86b;
  --stroke: rgba(185, 193, 255, 0.2);
  --stroke-soft: rgba(176, 184, 252, 0.12);
  --shadow: 0 22px 40px rgba(2, 3, 18, 0.58);
  --shadow-soft: 0 12px 24px rgba(5, 7, 26, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(140% 120% at 12% -10%, rgba(146, 87, 255, 0.14), transparent 78%),
    radial-gradient(120% 100% at 88% 10%, rgba(39, 245, 211, 0.1), transparent 80%),
    linear-gradient(180deg, #0a0f1f 0%, #090d1a 55%, #070a14 100%);
  background-color: #070a14;
  background-attachment: fixed;
}

body {
  padding: 16px 16px 94px;
}

body.no-scroll {
  overflow: hidden;
}

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

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
  flex: 0 0 auto;
}

.coin-inline-icon {
  color: #24f0be;
  filter: drop-shadow(0 0 8px rgba(36, 240, 190, 0.45));
}

.coin-amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9ffe9;
  font-weight: 800;
  white-space: nowrap;
}

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  gap: 13px;
}

body.app-preauth-hidden .app-shell,
body.app-preauth-hidden .bottom-nav {
  visibility: hidden;
}

.screen {
  display: none;
}

.screen.is-active {
  display: grid;
  animation: screen-fade-in 220ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

@keyframes screen-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    filter: saturate(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active {
    animation: none;
  }
}

.card {
  position: relative;
  background:
    linear-gradient(155deg, rgba(36, 34, 75, 0.95), rgba(13, 13, 30, 0.96)),
    linear-gradient(115deg, rgba(176, 78, 255, 0.08), rgba(39, 245, 211, 0.03));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 15px;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 28%);
}

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

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(187, 205, 255, 0.45);
  background: linear-gradient(135deg, #7784ff, #c154ff 55%, #29efcb);
  box-shadow: 0 0 0 4px rgba(129, 99, 255, 0.22), var(--shadow-soft);
}

.welcome-text {
  flex: 1;
}

.caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  margin-top: 2px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
}

h3 {
  font-size: 21px;
  font-weight: 800;
}

.premium-mark {
  margin-top: 5px;
  color: #f2dcaf;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.premium-mark .icon {
  font-size: 14px;
}

.premium-mark.boost-active {
  color: #9fffd9;
}

.premium-mark.boost-inactive {
  color: #ff8a9c;
}

.home-balance-card {
  padding: 12px;
}

.home-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.home-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-user h2 {
  font-size: 22px;
  line-height: 1.1;
}

.home-icon-actions {
  display: flex;
  gap: 8px;
}

.home-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: #daf6ff;
  border: 1px solid rgba(151, 170, 255, 0.28);
  background: rgba(28, 35, 87, 0.7);
}

.upx-logo-btn {
  width: auto;
  min-width: 96px;
  height: 32px;
  padding: 0;
  border-radius: 0;
  color: #ffffff;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  transition: none !important;
}

.upx-logo-img {
  display: block;
  width: 92px;
  height: 28px;
  object-fit: contain;
}

.upx-logo-btn:hover,
.upx-logo-btn:active {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

.upx-logo-btn:focus-visible {
  outline: none;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.home-balance-main {
  margin-top: 6px;
  text-align: center;
}

.home-balance-main h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
}

.home-balance-main h1 .coin-amount {
  font-size: 1em;
}

.home-balance-main h1 .coin-inline-icon {
  font-size: 0.9em;
}

.home-balance-main .caption {
  margin-top: 6px;
  color: #c2cbf7;
  font-size: 13px;
}

.wallet-pill {
  background: linear-gradient(140deg, rgba(39, 245, 211, 0.16), rgba(54, 103, 255, 0.19));
  border: 1px solid rgba(63, 243, 213, 0.45);
  border-radius: 999px;
  padding: 10px 12px;
  color: #b8ffeb;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(92, 249, 224, 0.15), 0 0 22px rgba(39, 245, 211, 0.18);
}

.wallet-pill .icon {
  font-size: 16px;
}

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

.shop-wallet-pill {
  padding: 7px 11px;
  min-height: 34px;
  border-color: rgba(84, 255, 226, 0.56);
  background: linear-gradient(140deg, rgba(21, 168, 146, 0.26), rgba(41, 96, 185, 0.24));
  box-shadow: inset 0 0 0 1px rgba(134, 255, 234, 0.16), 0 0 16px rgba(39, 245, 211, 0.2);
}

.shop-wallet-pill .coin-amount {
  font-size: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  display: grid;
  gap: 7px;
  background:
    linear-gradient(180deg, rgba(19, 19, 48, 0.96), rgba(15, 15, 33, 0.96)),
    linear-gradient(135deg, rgba(150, 85, 255, 0.1), transparent 65%);
}

.icon-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.icon-caption .icon {
  font-size: 14px;
  color: #adc1ff;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-with-icon .icon {
  font-size: 18px;
}

.streak {
  display: grid;
  gap: 9px;
}

.streak .title-with-icon .icon {
  color: #ffbc64;
}

.bonus-line {
  color: #d1d6f9;
  font-size: 14px;
}

.bonus-line strong {
  color: var(--gold);
}

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

.progress-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: rgba(95, 98, 177, 0.28);
  border: 1px solid rgba(132, 140, 228, 0.24);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #35f3ce, #73b8ff 45%, #bc66ff);
  box-shadow: 0 0 20px rgba(86, 180, 255, 0.75);
  transition: width 0.35s ease;
}

.promo {
  display: grid;
  gap: 8px;
}

.promo .title-with-icon .icon {
  color: #95b3ff;
}

.promo-controls {
  display: flex;
  gap: 6px;
}

#homeScreen {
  gap: 10px;
}

#homeScreen .card {
  border-radius: 18px;
  padding: 12px;
}

#homeScreen .avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

#homeScreen .premium-mark {
  margin-top: 4px;
  font-size: 10px;
  gap: 5px;
}

#homeScreen .title-with-icon {
  gap: 6px;
}

#homeScreen .title-with-icon .icon {
  font-size: 16px;
}

#homeScreen .section-head {
  margin-bottom: 8px;
}

#homeScreen .section-head h3 {
  font-size: 19px;
}

#homeScreen .promo input {
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
  padding: 10px 12px;
}

#homeScreen .promo button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
}

#homeScreen .ghost-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

#homeScreen .caption {
  font-size: 12px;
}

#giveawaysList .giveaway-card-compact {
  border-radius: 14px;
}

#giveawaysList .giveaway-title.compact {
  font-size: 14px;
}

#giveawaysList .giveaway-meta.compact {
  font-size: 11px;
}

input {
  width: 100%;
  border: 1px solid var(--stroke-soft);
  border-radius: 13px;
  background: linear-gradient(170deg, #1a1a3e, #12122d);
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

input::placeholder {
  color: #7d84b1;
}

input:focus {
  border-color: rgba(126, 177, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(117, 170, 255, 0.14);
}

button {
  border: 0;
  border-radius: 13px;
  color: #03161f;
  background: linear-gradient(135deg, #2ef5d6, #74d6ff 48%, #9f7cff);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(75, 184, 255, 0.3);
}

button:active {
  transform: translateY(0);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h3 .icon {
  color: #b492ff;
}

.ghost-btn {
  border: 1px solid rgba(175, 183, 255, 0.28);
  border-radius: 999px;
  background: rgba(44, 42, 89, 0.58);
  color: #d5dcff;
  min-height: 34px;
  padding: 0 14px;
}

.giveaways-list {
  display: grid;
  gap: 11px;
}

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

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

.giveaways-filters {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.giveaways-filter-btn {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(168, 177, 255, 0.22);
  background: rgba(21, 23, 52, 0.7);
  color: #aeb5dd;
  font-size: 14px;
  font-weight: 700;
}

.giveaways-filter-btn.is-active {
  border-color: rgba(47, 244, 210, 0.62);
  background: linear-gradient(140deg, rgba(37, 245, 206, 0.33), rgba(35, 97, 255, 0.2));
  color: #e7fff8;
}

.giveaways-feed-status {
  margin-top: 10px;
  text-align: center;
}

.giveaway-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(185, 194, 255, 0.2);
  background: linear-gradient(150deg, rgba(65, 59, 145, 0.23), rgba(16, 13, 37, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 13px;
}

.giveaway-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -70px;
  right: -78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 140, 255, 0.45), rgba(87, 140, 255, 0));
}

.giveaway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(196, 139, 255, 0.19), transparent 45%);
}

.giveaway-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.giveaway-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
}

.giveaway-meta {
  position: relative;
  margin-top: 8px;
  color: #bec4f2;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.giveaway-meta .icon {
  font-size: 13px;
  color: #9fb3ff;
}

.badge {
  align-self: start;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

.badge-top {
  border: 1px solid rgba(255, 209, 128, 0.45);
  color: #ffe0aa;
  background: rgba(250, 193, 81, 0.14);
}

.badge-hot {
  border: 1px solid rgba(255, 157, 157, 0.45);
  color: #ffc4ca;
  background: rgba(255, 93, 120, 0.13);
}

.badge-new {
  border: 1px solid rgba(132, 254, 231, 0.45);
  color: #affff1;
  background: rgba(39, 245, 211, 0.13);
}

.giveaway-prize {
  margin-top: 10px;
  color: #f3f6ff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(181, 190, 255, 0.2);
  border-radius: 999px;
  background: rgba(39, 35, 88, 0.5);
  padding: 6px 10px;
}

.giveaway-prize .icon {
  color: #f7bc68;
}

.giveaway-card-compact {
  position: relative;
  border-radius: 18px;
  padding: 8px 8px 10px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(136, 173, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 16, 48, 0.96), rgba(6, 10, 33, 0.98));
  box-shadow:
    0 16px 26px rgba(2, 7, 24, 0.64),
    inset 0 1px 0 rgba(180, 210, 255, 0.2);
}

.giveaway-card-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(76, 213, 255, 0.14);
}

.giveaway-card-compact::after {
  display: none;
}

.giveaway-card.giveaway-card-compact::before {
  display: none;
}

.giveaway-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(129, 169, 255, 0.36);
  background: #121634;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
}

.giveaway-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 36, 0.06) 46%, rgba(3, 8, 26, 0.68) 100%);
}

.giveaway-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.giveaway-title.compact {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  min-height: 32px;
  font-weight: 800;
  color: #f4f8ff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.giveaway-compact-meta-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid rgba(54, 242, 200, 0.42);
  background: linear-gradient(180deg, rgba(14, 75, 92, 0.78), rgba(8, 55, 68, 0.72));
  box-shadow: inset 0 1px 0 rgba(140, 255, 236, 0.22);
}

.giveaway-meta.compact {
  margin: 0;
  font-size: 11px;
  color: #85ffe1;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(72, 255, 218, 0.22);
}

.giveaway-meta.compact .icon {
  font-size: 11px;
  color: #3ef7cb;
}

.giveaway-compact-meta-row .giveaway-meta {
  min-width: 0;
}

.giveaway-compact-meta-row .giveaway-meta:first-child {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.giveaway-compact-meta-row .giveaway-meta:last-child {
  flex: 0 0 auto;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom));
  width: calc(100% - 20px);
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  border-radius: 20px;
  border: 1px solid rgba(151, 162, 252, 0.32);
  background:
    linear-gradient(180deg, rgba(17, 16, 42, 0.96), rgba(13, 13, 31, 0.96)),
    linear-gradient(120deg, rgba(180, 81, 255, 0.13), rgba(69, 200, 255, 0.08));
  box-shadow: 0 16px 30px rgba(3, 4, 18, 0.56);
  backdrop-filter: blur(8px);
  padding: 8px;
}

.tab {
  min-height: 52px;
  min-width: 0;
  padding: 6px 0 5px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #a9b1e2;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
}

.tab .icon {
  font-size: 18px;
}

.tab span {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.05;
  max-width: 100%;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  letter-spacing: -0.01em;
}

.tab.active {
  color: #f2f5ff;
  border-color: rgba(128, 180, 255, 0.38);
  background: linear-gradient(160deg, rgba(177, 84, 255, 0.3), rgba(49, 238, 215, 0.16));
}

.tab.active .icon {
  color: #87fbeb;
  filter: drop-shadow(0 0 7px rgba(39, 245, 211, 0.56));
}

.promo-ok {
  color: #9fffd9;
}

.promo-fail {
  color: #ffc1ce;
}

.olympus-header .title-with-icon .icon {
  color: #d7b37a;
}

.olympus-screen {
  position: relative;
  isolation: isolate;
}

.olympus-screen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: min(95vw, 420px);
  height: 560px;
  background: url("./assets/zeus1.png") center top / contain no-repeat;
  opacity: 0.3;
  filter: drop-shadow(0 0 26px rgba(95, 166, 255, 0.26));
  pointer-events: none;
  z-index: 0;
}

.olympus-screen > * {
  position: relative;
  z-index: 1;
}

.olympus-header .caption::after {
  content: " Страж Олимпуса ждет шифр.";
  color: #d3d9ff;
}

.olympus-lock button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.olympus-rewards {
  position: relative;
  z-index: 1;
}

.olympus-rewards-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.olympus-rewards-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #e9ecff;
}

.olympus-rewards-head strong {
  color: #27f5d3;
}

.olympus-rewards-head strong.is-live-bump {
  animation: live-count-bump 520ms ease;
}

.olympus-rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: stretch;
}

.reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(180, 188, 255, 0.22);
  background: linear-gradient(160deg, rgba(25, 25, 58, 0.94), rgba(12, 13, 33, 0.96));
  padding: 7px;
  min-height: 166px;
  height: auto;
}

.reward-card-collapsed {
  cursor: pointer;
  justify-content: space-between;
}

.reward-collapsed-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #b8c4f2;
  text-align: center;
}

.reward-drops-collapsed {
  margin-top: 4px;
  font-size: 12px;
  text-align: center;
}

.reward-thumb {
  position: relative;
  width: 82%;
  aspect-ratio: 16 / 9;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-bottom: 4px;
  border: 1px solid rgba(207, 216, 255, 0.16);
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.26), transparent 35%), var(--reward-bg);
}

.reward-icon {
  font-size: 24px;
}

.reward-thumb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  border-radius: 8px;
  display: block;
}

.reward-thumb-label {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #edf2ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.reward-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-top: 0;
  white-space: nowrap;
  min-height: 20px;
  display: flex;
  align-items: flex-end;
  color: #f3f7ff;
}

.reward-title .coin-inline-icon {
  font-size: 0.88em;
  vertical-align: -1px;
}

.reward-meta-block {
  margin-top: 4px;
  min-height: 30px;
  padding-top: 0;
}

.reward-subtitle {
  margin-top: 1px;
  color: #eef2ff;
  font-size: 13px;
  font-weight: 700;
}

.reward-percent {
  margin-top: 0;
  color: #9ca3ce;
  font-size: 11px;
}

.reward-drops {
  margin-top: 2px;
  color: #2bf5cf;
  font-size: 13px;
  font-weight: 700;
}

.reward-drops.is-live-bump {
  animation: live-count-bump 520ms ease;
}

.olympus-reward-info-panel {
  max-width: 430px;
}

.olympus-reward-info-thumb {
  margin-top: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(178, 193, 255, 0.28);
}

.olympus-reward-info-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.olympus-reward-info-title {
  margin-top: 10px;
}

.olympus-reward-info-meta {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

@keyframes live-count-bump {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  30% {
    transform: scale(1.06);
    filter: brightness(1.22);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.olympus-wheel-card {
  padding-bottom: 18px;
}

.wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  width: 0;
  height: 0;
  z-index: 2;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid #ffd18c;
  filter: drop-shadow(0 0 10px rgba(255, 180, 78, 0.5));
}

.olympus-wheel {
  width: min(86vw, 332px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  border: 8px solid rgba(255, 218, 154, 0.25);
  box-shadow:
    0 0 0 4px rgba(255, 200, 106, 0.12),
    0 18px 35px rgba(7, 7, 24, 0.62),
    inset 0 0 22px rgba(164, 122, 255, 0.28);
  transition: transform 4.5s cubic-bezier(0.12, 0.7, 0.1, 1);
  overflow: hidden;
}

.olympus-wheel::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 222, 157, 0.35);
  pointer-events: none;
}

.olympus-wheel::after {
  content: "";
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, #f5d08d 0%, #b98b48 100%);
  box-shadow: inset 0 0 10px rgba(104, 63, 13, 0.5);
  z-index: 2;
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  width: 88px;
  margin-left: -44px;
  text-align: center;
  color: #f8f2ff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(8, 7, 31, 0.7);
  z-index: 1;
}

.spin-btn {
  min-width: 150px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #101426;
  background: linear-gradient(135deg, #ffe6a6, #ffc86b 40%, #7af9df);
  box-shadow: 0 12px 22px rgba(255, 193, 93, 0.3);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.olympus-result {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.olympus-ok {
  color: #9fffd9;
}

.olympus-fail {
  color: #ffc4ce;
}

.olympus-win {
  color: #ffe3a9;
}

.is-hidden {
  display: none;
}

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

.pager.is-hidden {
  display: none !important;
}

.ref-summary {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ref-link-title {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: #00e5bb;
  text-transform: uppercase;
}

.ref-link-subtitle {
  margin-top: 10px;
  color: #adb6df;
  font-size: 18px;
}

.ref-warning {
  margin-top: 12px;
  border: 1px solid rgba(255, 112, 112, 0.42);
  border-radius: 12px;
  padding: 10px;
  background: rgba(23, 14, 22, 0.72);
  color: #ff7e8d;
  font-size: 14px;
  font-weight: 700;
}

.ref-link-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ref-link-input {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(63, 243, 213, 0.35);
  background: rgba(9, 23, 38, 0.66);
  color: #35f4cd;
  font-size: 16px;
  font-weight: 700;
  padding: 0 12px;
}

.ref-copy-btn {
  min-width: 44px;
}

.ref-share-btn {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  color: #04162a;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d8a7, #1ef3c8);
  box-shadow: 0 10px 18px rgba(11, 208, 166, 0.28);
}

.ref-metric {
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(19, 18, 45, 0.7);
}

.ref-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.ref-card-compact {
  padding: 10px;
}

.ref-summary-compact {
  margin-top: 0;
  gap: 6px;
}

.ref-metric-compact {
  padding: 7px 8px;
  border-radius: 10px;
}

.ref-metric-compact .caption {
  font-size: 10px;
}

.ref-card-compact h3 {
  font-size: 16px;
  margin-top: 8px;
}

.ref-card-compact .ref-list {
  margin-top: 6px;
  gap: 6px;
}

.ref-card-compact .ref-row {
  grid-template-columns: 28px 1fr auto;
  gap: 7px;
  border-radius: 8px;
  padding: 6px;
}

.ref-card-compact .coin-amount {
  font-size: 12px;
  gap: 4px;
}

.ref-card-compact .ref-avatar-wrap,
.ref-card-compact .ref-avatar,
.ref-card-compact .ref-avatar-fallback {
  width: 28px;
  height: 28px;
}

.ref-card-compact .ref-avatar-fallback {
  font-size: 12px;
}

.ref-card-compact .pager {
  margin-top: 7px;
}

.ref-card-compact .ghost-btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.ref-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.ref-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 10px;
  padding: 8px;
  background: rgba(18, 18, 43, 0.68);
}

.ref-avatar-wrap {
  width: 36px;
  height: 36px;
  position: relative;
  display: block;
}

.ref-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #1f2144;
  border: 1px solid rgba(149, 163, 255, 0.3);
}

.ref-avatar.is-hidden {
  display: none;
}

.ref-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #f6f9ff;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(17, 19, 49, 0.95), rgba(8, 9, 28, 0.95)) padding-box,
    linear-gradient(135deg, #2af5cf, #7f62ff) border-box;
  box-shadow: 0 4px 14px rgba(6, 9, 38, 0.45);
}

.ref-avatar-wrap .ref-avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
}

.ref-avatar-wrap .ref-avatar-fallback.is-visible {
  display: grid;
}

#friendsScreen {
  gap: 8px;
}

#friendsScreen .card {
  border-radius: 16px;
}

.ref-hero-card {
  padding: 8px;
  background:
    radial-gradient(120% 120% at 84% -12%, rgba(144, 92, 255, 0.25), transparent 58%),
    linear-gradient(165deg, rgba(11, 16, 41, 0.98), rgba(6, 9, 24, 0.98));
  border: 1px solid rgba(122, 136, 219, 0.24);
}

.ref-hero-banner {
  border-radius: 14px;
  padding: 10px 12px 12px;
  background:
    radial-gradient(130% 95% at 86% 16%, rgba(165, 111, 255, 0.48), transparent 56%),
    radial-gradient(95% 82% at 14% 0%, rgba(48, 233, 203, 0.22), transparent 62%),
    linear-gradient(145deg, #2b42cd, #4128cb 52%, #30168d);
  border: 1px solid rgba(180, 196, 255, 0.32);
  position: relative;
  overflow: hidden;
}

.ref-hero-banner::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 5px rgba(19, 34, 118, 0.35);
  opacity: 0.8;
}

.ref-hero-brand {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #dff5ff;
  text-transform: uppercase;
}

.ref-hero-banner h3 {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.01;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #f7f9ff;
  text-shadow: 0 2px 12px rgba(4, 9, 42, 0.4);
}

.ref-hero-bonus {
  margin: 9px 0 0;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 220, 107, 0.65);
  background: linear-gradient(130deg, rgba(255, 218, 102, 0.92), rgba(255, 177, 74, 0.92));
  color: #332205;
  font-size: 12px;
  font-weight: 900;
}

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

.ref-hero-tab {
  border-radius: 10px;
  border: 1px solid rgba(143, 154, 226, 0.22);
  background: rgba(9, 13, 33, 0.78);
  padding: 7px 6px;
  text-align: center;
}

.ref-hero-tab .icon {
  font-size: 13px;
  color: #9cb4ff;
}

.ref-hero-tab span {
  margin-top: 2px;
  display: block;
  font-size: 10px;
  color: #97a1d0;
}

.ref-hero-tab strong {
  margin-top: 3px;
  display: block;
  font-size: 13px;
  color: #f3f7ff;
}

.ref-income-note {
  margin: 8px 2px 0;
  font-size: 11px;
  color: #c8d3ff;
}

.ref-link-card {
  padding: 9px;
}

.ref-link-title {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #d9e2ff;
  text-transform: uppercase;
}

.ref-link-subtitle {
  margin-top: 7px;
  color: #9fa8d6;
  font-size: 11px;
}

.ref-link-row {
  margin-top: 7px;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 6px;
}

.ref-link-input {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(83, 224, 198, 0.24);
  background: rgba(8, 16, 34, 0.78);
  color: #39f0c9;
  font-size: 12px;
  font-weight: 700;
  padding: 0 9px;
}

.ref-copy-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
}

.ref-share-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(138, 157, 255, 0.26);
  color: #e5ebff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(25, 45, 95, 0.96), rgba(12, 20, 44, 0.96));
  box-shadow: none;
}

.ref-social-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(139, 158, 255, 0.26);
  font-size: 11px;
  font-weight: 800;
  color: #ecf2ff;
  background: rgba(20, 28, 58, 0.95);
}

.ref-social-btn.vk {
  background: linear-gradient(135deg, #2780ff, #2459d7);
}

.ref-social-btn.ok {
  background: linear-gradient(135deg, #ffa116, #e97200);
}

.ref-stats-card {
  padding: 9px;
}

.ref-stats-head h4 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.ref-stat-item {
  border-radius: 9px;
  border: 1px solid rgba(145, 159, 225, 0.2);
  background: rgba(12, 15, 36, 0.66);
  padding: 7px 6px;
  text-align: center;
}

.ref-stat-item .caption {
  margin: 0;
  font-size: 10px;
}

.ref-stat-item strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1;
}

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

.ref-tier-node {
  border-radius: 10px;
  border: 1px solid rgba(144, 156, 223, 0.2);
  background: rgba(12, 15, 36, 0.65);
  padding: 6px 4px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ref-tier-percent {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #c6d2ff;
}

.ref-tier-node strong {
  display: block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  margin: 4px auto 0;
  border-radius: 50%;
  border: 1px solid rgba(117, 136, 212, 0.4);
  color: #e8eeff;
  font-size: 14px;
}

.ref-tier-node p {
  margin: 4px 0 0;
  font-size: 9px;
  color: #8f98ca;
}

.ref-tier-node.is-active {
  border-color: rgba(61, 239, 201, 0.54);
  box-shadow: inset 0 0 0 1px rgba(79, 239, 203, 0.2), 0 0 16px rgba(65, 235, 200, 0.14);
}

.ref-tier-node.is-active strong {
  border-color: rgba(57, 235, 196, 0.8);
  color: #29efc3;
}

.ref-list-card {
  padding: 9px;
}

.ref-list-card h3 {
  margin: 0;
  font-size: 14px;
}

.ref-list-card .ref-list {
  margin-top: 8px;
}

.ref-list-card .ref-row {
  grid-template-columns: 30px 1fr auto;
  padding: 7px;
  border-radius: 9px;
}

.ref-list-card .ref-avatar-wrap,
.ref-list-card .ref-avatar,
.ref-list-card .ref-avatar-fallback {
  width: 30px;
  height: 30px;
}

.ref-list-card .pager {
  margin-top: 8px;
}

.ref-list-card .ghost-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.ref-empty-state {
  border-radius: 16px;
  border: 1px solid rgba(122, 135, 207, 0.2);
  background: linear-gradient(170deg, rgba(8, 12, 31, 0.9), rgba(6, 9, 24, 0.95));
  padding: 16px 10px;
  text-align: center;
}

.ref-empty-state .icon {
  font-size: 24px;
  color: #6f79a7;
}

.ref-empty-state p {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Friends v2: tighter layout close to provided reference */
.friends-v2 {
  gap: 4px;
  padding-left: 0;
  padding-right: 0;
}

.friends-v2 .card {
  border-radius: 9px;
  border: 1px solid rgba(94, 110, 176, 0.24);
  background: linear-gradient(180deg, rgba(10, 15, 38, 0.96), rgba(6, 10, 26, 0.96));
  box-shadow: none;
}

.friends-v2 .ref-hero-card,
.friends-v2 .ref-link-card,
.friends-v2 .ref-stats-card,
.friends-v2 .ref-list-card,
.friends-v2 .ref-empty-state {
  margin-left: 6px;
  margin-right: 6px;
}

.friends-v2 .ref-hero-card {
  padding: 5px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.friends-v2 .ref-hero-banner {
  min-height: 136px;
  padding: 7px 9px 8px;
  border-radius: 9px;
  background:
    radial-gradient(130% 92% at 88% 14%, rgba(151, 95, 255, 0.54), transparent 58%),
    radial-gradient(120% 92% at 14% -6%, rgba(48, 220, 198, 0.18), transparent 58%),
    linear-gradient(148deg, #2342cc 2%, #4027cc 56%, #2d167f 100%);
}

.friends-v2 .ref-hero-banner::after {
  right: -12px;
  bottom: -16px;
  width: 84px;
  height: 84px;
  border-color: rgba(238, 244, 255, 0.52);
}

.friends-v2 .ref-hero-brand {
  font-size: 11px;
  letter-spacing: 0.09em;
}

.friends-v2 .ref-hero-banner h3 {
  margin-top: 5px;
  font-size: 27px;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.friends-v2 .ref-hero-bonus {
  margin-top: 6px;
  font-size: 10px;
  padding: 4px 8px;
}

.friends-v2 .ref-hero-tabs {
  gap: 7px;
  margin-top: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.friends-v2 .ref-hero-tab {
  padding: 7px 5px 8px;
  border-radius: 10px;
  border: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(93, 122, 255, 0.24), transparent 64%),
    linear-gradient(165deg, rgba(8, 12, 35, 0.97), rgba(7, 10, 28, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(158, 177, 255, 0.08),
    0 10px 18px rgba(2, 6, 26, 0.34);
  position: relative;
  overflow: hidden;
}

.friends-v2 .ref-hero-tab::before {
  content: "";
  position: absolute;
  left: -16%;
  top: -44%;
  width: 132%;
  height: 72%;
  background: linear-gradient(90deg, transparent, rgba(111, 245, 217, 0.18), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.friends-v2 .ref-hero-tab .icon {
  font-size: 13px;
  color: #70e8ff;
  filter: drop-shadow(0 0 8px rgba(93, 237, 255, 0.35));
}

.friends-v2 .ref-hero-tab span {
  margin-top: 3px;
  font-size: 9px;
  color: #a7b6f5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.friends-v2 .ref-hero-tab strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(89, 255, 220, 0.24);
}

.friends-v2 .ref-hero-tab:nth-child(1) strong {
  color: #57e8ff;
}

.friends-v2 .ref-hero-tab:nth-child(2) strong {
  color: #8bffcf;
}

.friends-v2 .ref-hero-tab:nth-child(3) strong {
  color: #b8a6ff;
}

.friends-v2 .ref-hero-tab #refInvitedCount,
.friends-v2 .ref-hero-tab #refEarnedCoins {
  font-size: 18px;
  line-height: 1;
}

.friends-v2 .ref-income-note {
  font-size: 10px;
  margin-top: 7px;
  color: #c5d0ff;
}

.friends-v2 .ref-link-card {
  padding: 8px;
  border-color: rgba(97, 121, 206, 0.34);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(79, 98, 255, 0.16), transparent 54%),
    linear-gradient(175deg, rgba(11, 17, 42, 0.96), rgba(6, 10, 28, 0.98));
}

.friends-v2 .ref-link-title {
  font-size: 11px;
  color: #d7e3ff;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.friends-v2 .ref-link-row {
  margin-top: 6px;
  display: block;
}

.friends-v2 .ref-link-input-wrap {
  position: relative;
}

.friends-v2 .ref-link-input {
  min-height: 36px;
  font-size: 13px;
  border-radius: 9px;
  border-color: rgba(74, 232, 198, 0.42);
  color: #4bf2cd;
  background: rgba(7, 16, 34, 0.92);
  box-shadow: inset 0 0 0 1px rgba(80, 229, 200, 0.09);
  width: 100%;
  padding-right: 44px;
}

.friends-v2 .ref-copy-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 24px;
  min-width: 24px;
  height: 22px;
  min-height: 22px;
  border-radius: 7px;
  padding: 0;
  display: grid;
  place-items: center;
  gap: 0;
  line-height: 0;
  color: #4bf2cd;
  border: 0;
  background: linear-gradient(135deg, rgba(7, 24, 38, 0.95), rgba(6, 20, 33, 0.95));
  box-shadow: 0 0 0 1px rgba(83, 227, 199, 0.2), 0 6px 12px rgba(6, 25, 43, 0.24);
}

.friends-v2 .ref-copy-btn .icon {
  display: block;
  width: 12px;
  height: 12px;
  font-size: 12px;
  margin: 0 auto;
  transform: translateX(-0.5px);
  color: #4bf2cd;
}

.friends-v2 .ref-copy-btn:hover,
.friends-v2 .ref-copy-btn:active,
.friends-v2 .ref-copy-btn:focus-visible {
  transform: translateY(-50%) !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(83, 227, 199, 0.24), 0 6px 12px rgba(6, 25, 43, 0.24) !important;
  filter: none !important;
}

.friends-v2 .ref-link-subtitle {
  margin-top: 7px;
  font-size: 11px;
  color: #b6c1f0;
}

.friends-v2 .ref-stats-card {
  padding: 7px;
}

.friends-v2 .ref-stats-head h4 {
  font-size: 11px;
}

.friends-v2 .ref-stats-grid {
  margin-top: 6px;
  gap: 5px;
}

.friends-v2 .ref-stat-item {
  padding: 6px 4px;
  border-radius: 8px;
}

.friends-v2 .ref-stat-item .caption {
  font-size: 9px;
}

.friends-v2 .ref-stat-item strong {
  font-size: 15px;
}

.friends-v2 .ref-tier-line {
  margin-top: 7px;
  gap: 5px;
}

.friends-v2 .ref-tier-node {
  border-radius: 8px;
  padding: 5px 3px;
}

.friends-v2 .ref-tier-percent {
  font-size: 9px;
}

.friends-v2 .ref-tier-node strong {
  width: 23px;
  height: 23px;
  line-height: 23px;
  font-size: 13px;
}

.friends-v2 .ref-tier-node p {
  font-size: 8px;
}

.friends-v2 .ref-list-card {
  padding: 6px;
}

.friends-v2 .ref-list-card h3 {
  font-size: 11px;
}

.friends-v2 .ref-list-card .ref-empty-state {
  margin-top: 8px;
}

.friends-v2 .ref-list-card .ref-row {
  grid-template-columns: 26px 1fr auto;
  border-radius: 6px;
  padding: 5px;
}

.friends-v2 .ref-list-card .ref-avatar-wrap,
.friends-v2 .ref-list-card .ref-avatar,
.friends-v2 .ref-list-card .ref-avatar-fallback {
  width: 26px;
  height: 26px;
}

.friends-v2 .ref-list-card .ghost-btn {
  min-height: 28px;
  font-size: 11px;
}

.friends-v2 .ref-empty-state {
  padding: 8px 4px 10px;
  border-radius: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.friends-v2 .ref-empty-state .icon {
  font-size: 18px;
  opacity: 0.65;
}

.friends-v2 .ref-empty-state p {
  font-size: 10px;
  letter-spacing: 0.03em;
}

.admin-hero {
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(49, 39, 106, 0.95), rgba(14, 15, 40, 0.97)),
    linear-gradient(120deg, rgba(65, 252, 216, 0.12), rgba(180, 84, 255, 0.12));
  border-color: rgba(143, 161, 255, 0.3);
  box-shadow: 0 24px 42px rgba(3, 5, 20, 0.62);
}

.admin-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 90% 14%, rgba(47, 250, 212, 0.22), transparent 42%);
  z-index: -1;
}

.admin-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  border-radius: 999px;
  border: 1px solid rgba(119, 255, 218, 0.42);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b5fff0;
  background: rgba(16, 91, 84, 0.36);
  box-shadow: inset 0 0 0 1px rgba(125, 255, 227, 0.18), 0 0 20px rgba(46, 240, 204, 0.2);
}

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

.admin-kpi {
  border: 1px solid rgba(177, 187, 255, 0.22);
  border-radius: 12px;
  padding: 9px;
  background: linear-gradient(155deg, rgba(25, 28, 67, 0.86), rgba(13, 14, 36, 0.88));
  box-shadow: inset 0 0 0 1px rgba(147, 163, 255, 0.08);
}

.admin-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1;
  color: #e9efff;
}

.admin-tabs-card {
  padding: 9px;
  border-color: rgba(143, 161, 255, 0.27);
  background: linear-gradient(160deg, rgba(28, 29, 70, 0.88), rgba(10, 12, 35, 0.92));
}

.admin-tabs-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-tab-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(175, 183, 255, 0.24);
  background: rgba(33, 34, 78, 0.6);
  color: #dbe0ff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.admin-tab-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(115, 228, 255, 0.52);
  color: #eef2ff;
}

.admin-tab-btn.is-active {
  border-color: rgba(96, 244, 212, 0.62);
  background: linear-gradient(135deg, rgba(43, 250, 212, 0.24), rgba(129, 95, 255, 0.24));
  box-shadow: inset 0 0 0 1px rgba(99, 244, 215, 0.2);
  color: #f0fffb;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.admin-back-wrap {
  padding: 8px;
}

.admin-back-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border-color: rgba(108, 232, 255, 0.34);
  background: linear-gradient(155deg, rgba(42, 61, 118, 0.55), rgba(20, 31, 74, 0.55));
  color: #dbf0ff;
}

.admin-panel-head h3 {
  font-size: 19px;
}

.admin-panel-head .caption {
  margin-top: 4px;
}

.admin-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-auto-rows: max-content;
  margin-bottom: 12px;
  border: 1px solid rgba(171, 182, 255, 0.2);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(158deg, rgba(16, 20, 50, 0.76), rgba(10, 12, 34, 0.8));
  box-shadow: inset 0 0 0 1px rgba(142, 156, 255, 0.08);
}

.admin-giveaways-toolbar {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-form h4,
.admin-list-title {
  font-size: 15px;
  font-weight: 700;
  color: #e6ebff;
}

.admin-primary-btn {
  min-height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(76, 245, 210, 0.52);
  background: linear-gradient(145deg, rgba(44, 245, 207, 0.34), rgba(79, 140, 255, 0.24));
  color: #dffff8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(34, 220, 187, 0.2), inset 0 0 0 1px rgba(150, 255, 235, 0.18);
}

.admin-open-create-btn {
  min-height: 40px;
}

.admin-create-modal {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  align-items: end;
}

.admin-create-modal.is-hidden {
  display: none !important;
}

.admin-create-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 4, 16, 0.76);
  backdrop-filter: blur(6px);
}

.admin-create-modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  margin-top: 0;
  height: 70dvh;
  max-height: 70dvh;
  min-height: 70dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(167, 178, 255, 0.28);
  background: linear-gradient(160deg, rgba(22, 20, 53, 0.98), rgba(10, 11, 29, 0.98));
  padding: 12px;
  box-shadow: 0 -16px 35px rgba(5, 7, 25, 0.62);
}

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

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

.admin-create-tab-btn {
  min-height: 35px;
  border-radius: 10px;
  border: 1px solid rgba(150, 164, 255, 0.25);
  background: rgba(31, 37, 84, 0.72);
  color: #b9c4f0;
  font-size: 12px;
  font-weight: 700;
}

.admin-line-label {
  margin: 0;
  color: #dbe4ff;
  font-size: 13px;
  font-weight: 700;
}

.admin-condition-line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

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

.admin-yesno-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.admin-yesno-btn {
  min-height: 32px;
  min-width: 56px;
  border-radius: 10px;
  border: 1px solid rgba(155, 167, 255, 0.28);
  background: rgba(26, 32, 74, 0.72);
  color: #c9d2fb;
  font-size: 13px;
  font-weight: 700;
}

.admin-yesno-btn.is-active {
  border-color: rgba(95, 245, 212, 0.62);
  color: #effff9;
  background: linear-gradient(145deg, rgba(34, 247, 210, 0.24), rgba(81, 112, 255, 0.2));
}

.admin-create-tab-btn.is-active {
  border-color: rgba(95, 245, 212, 0.62);
  color: #edfff9;
  background: linear-gradient(145deg, rgba(34, 247, 210, 0.24), rgba(81, 112, 255, 0.2));
}

.admin-create-modal-panel .admin-form {
  margin-top: 8px;
  margin-bottom: 0;
  border-color: rgba(171, 182, 255, 0.24);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.admin-create-tab-panel {
  display: none;
  gap: 8px;
  align-content: start;
  grid-auto-rows: max-content;
}

.admin-create-tab-panel.is-active {
  display: grid;
}

.admin-create-preview {
  border: 1px solid rgba(170, 182, 255, 0.24);
  border-radius: 12px;
  padding: 8px;
  background: rgba(16, 20, 50, 0.55);
}

.admin-create-preview.is-hidden {
  display: none !important;
}

#adminCreatePreviewCard {
  margin-top: 8px;
}

.admin-create-confirm-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(171, 184, 255, 0.2);
  background: #121634;
}

.admin-preview-title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #e9eeff;
}

.admin-preview-meta {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #dbe4ff;
}

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

.admin-field {
  display: grid;
  gap: 4px;
}

.admin-field span {
  font-size: 12px;
  color: #aab4e6;
}

.admin-field input,
.admin-field select {
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(170, 180, 255, 0.3);
  background: rgba(24, 29, 66, 0.75);
  color: #e6ebff;
  padding: 0 10px;
}

#adminCreateGiveawayBtn {
  min-height: 44px;
  height: 44px;
}

.admin-dynamic-wrap {
  border: 1px dashed rgba(155, 169, 255, 0.34);
  border-radius: 11px;
  padding: 8px;
  background: rgba(13, 16, 41, 0.6);
}

.admin-dynamic-wrap.is-hidden {
  display: none;
}

.admin-dynamic-list {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.admin-manual-winner-input {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(170, 180, 255, 0.3);
  background: rgba(24, 29, 66, 0.75);
  color: #e6ebff;
  padding: 0 10px;
}

.admin-giveaway-item,
.admin-resource-item,
.admin-user-row,
.admin-log-item {
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(25, 23, 61, 0.92), rgba(10, 11, 30, 0.95));
  box-shadow: inset 0 0 0 1px rgba(147, 161, 255, 0.08);
}

.admin-giveaway-item {
  padding: 10px;
}

.admin-giveaway-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.admin-list-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-action-btn {
  min-height: 30px;
  padding: 0 10px;
  border-color: rgba(142, 170, 255, 0.33);
  background: rgba(35, 43, 95, 0.5);
  color: #dfebff;
}

.admin-action-btn.danger {
  border-color: rgba(255, 123, 140, 0.42);
  color: #ffb9c5;
  background: rgba(86, 24, 40, 0.36);
}

.admin-resource-item {
  padding: 10px;
}

.admin-olympus-tabs {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-olympus-tabs .admin-tab-btn {
  min-height: 36px;
  border-radius: 10px;
}

.admin-olympus-panel {
  display: none;
  margin-top: 10px;
}

.admin-olympus-panel.is-active {
  display: block;
}

.admin-reward-toolbar {
  margin-bottom: 8px;
}

.admin-reward-toolbar .admin-primary-btn {
  width: 100%;
}

.admin-reward-edit-item {
  padding: 10px;
}

.admin-reward-collapsed-head {
  width: 100%;
  border: 1px solid rgba(162, 176, 255, 0.24);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(22, 23, 57, 0.9), rgba(10, 12, 30, 0.95));
  color: inherit;
  padding: 8px 84px 8px 8px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.admin-reward-collapsed-row {
  position: relative;
}

.admin-reward-move-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: max-content;
}

.admin-reward-move-actions .ghost-btn {
  min-height: 30px;
}

.admin-move-arrow-btn {
  width: 34px;
  min-width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.admin-move-arrow-btn[disabled] {
  opacity: 0.45;
}

.admin-reward-collapsed-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(173, 186, 255, 0.22);
}

.admin-reward-collapsed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-reward-collapsed-meta {
  display: flex;
  align-items: center;
  min-height: 22px;
}

.admin-reward-collapsed-title {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-reward-collapsed-amount {
  font-size: 34px;
}

.admin-reward-collapsed-subtitle {
  color: #aab5e8;
  font-size: 14px;
  font-weight: 600;
}

.admin-reward-edit-grid {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.admin-reward-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-reward-edit-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-reward-details.is-hidden {
  display: none !important;
}

.admin-reward-save-btn {
  min-height: 34px;
  padding: 0 12px;
}

.admin-olympus-program-form {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-program-status,
.admin-program-history {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-program-item {
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(25, 23, 61, 0.92), rgba(10, 11, 30, 0.95));
  box-shadow: inset 0 0 0 1px rgba(147, 161, 255, 0.08);
  padding: 9px;
}

.admin-program-item strong {
  color: #ecf2ff;
}

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

.admin-program-summary {
  border: 1px dashed rgba(155, 169, 255, 0.34);
  border-radius: 11px;
  padding: 8px;
  background: rgba(13, 16, 41, 0.6);
  display: grid;
  gap: 4px;
}

.admin-olympus-confirm-panel {
  height: auto;
  min-height: 0;
  max-height: min(64dvh, 500px);
}

.admin-olympus-result-panel {
  max-height: 70dvh;
}

#adminOlympusResultContent {
  margin-top: 10px;
}

.admin-user-row {
  padding: 7px;
  cursor: pointer;
}

.admin-user-row:hover {
  border-color: rgba(96, 244, 212, 0.45);
  transform: translateY(-1px);
}

.admin-log-item {
  padding: 9px;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-items: end;
}

.admin-user-modal.is-hidden {
  display: none !important;
}

.admin-user-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 4, 16, 0.76);
  backdrop-filter: blur(6px);
}

.admin-user-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin: 0 auto;
  max-height: 68vh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(167, 178, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(22, 20, 53, 0.98), rgba(10, 11, 29, 0.98)),
    radial-gradient(circle at 82% 12%, rgba(42, 242, 209, 0.15), transparent 40%);
  padding: 12px;
  box-shadow: 0 -16px 35px rgba(5, 7, 25, 0.62);
}

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

.admin-user-profile-card {
  margin-top: 10px;
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(24, 24, 60, 0.78), rgba(13, 14, 36, 0.82));
}

.admin-user-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-user-main h4 {
  font-size: 17px;
}

.admin-user-grid {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.admin-user-grid p {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  color: #d8dfff;
  font-size: 13px;
}

.admin-user-grid span {
  color: #9aa4d9;
}

.admin-mini-edit-btn {
  border-radius: 8px;
  border: 1px solid rgba(168, 176, 255, 0.3);
  background: rgba(30, 35, 78, 0.6);
  color: #dbe0ff;
  min-height: 24px;
  min-width: 24px;
  font-size: 12px;
  padding: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.admin-mini-edit-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 244, 212, 0.58);
  color: #d7fff6;
}

.admin-user-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-user-section {
  margin-top: 12px;
}

.admin-user-section h4 {
  font-size: 15px;
}

.admin-giveaways-filters {
  margin-top: 10px;
}

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

.admin-giveaway-card .admin-list-actions {
  margin-top: 7px;
}

.admin-giveaway-card .admin-action-btn {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-history-list {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.admin-history-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(177, 187, 255, 0.2);
  border-radius: 10px;
  padding: 8px;
  background: linear-gradient(155deg, rgba(24, 24, 58, 0.76), rgba(13, 13, 35, 0.82));
}

.admin-history-item strong.plus {
  color: #74ffd2;
}

.admin-history-item strong.minus {
  color: #ff9fb4;
}

.blind-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.blind-modal.is-hidden {
  display: none !important;
}

.blind-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 16, 0.82);
  backdrop-filter: blur(5px);
}

.blind-modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(165, 176, 255, 0.3);
  background: linear-gradient(155deg, rgba(22, 20, 53, 0.98), rgba(10, 11, 29, 0.98));
  box-shadow: 0 18px 40px rgba(1, 2, 12, 0.6);
  padding: 14px;
}

.blind-cards-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.blind-card {
  height: 92px;
  border-radius: 12px;
  border: 1px solid rgba(174, 185, 255, 0.24);
  background: linear-gradient(155deg, #1a1a43, #11122e);
  color: #dce3ff;
  font-weight: 800;
  font-size: 27px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(146, 160, 255, 0.09);
}

.blind-card.is-revealed {
  font-size: 14px;
  font-weight: 700;
  color: #f5f8ff;
  padding: 8px;
  text-align: center;
}

.blind-card.is-picked {
  border-color: rgba(89, 248, 209, 0.72);
  box-shadow: 0 0 0 2px rgba(84, 249, 209, 0.2);
}

.blind-cards-grid.is-shuffling .blind-card {
  animation: blind-shuffle 0.38s ease-in-out 2;
}

@keyframes blind-shuffle {
  0% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(7px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

.blind-result {
  margin-top: 10px;
  text-align: center;
}

.blind-claim {
  margin-top: 10px;
  width: 100%;
}

.giveaway-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0;
}

.giveaway-detail-modal.is-hidden {
  display: none !important;
}

.giveaway-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 5, 18, 0.86);
  backdrop-filter: blur(5px);
}

.giveaway-detail-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  height: min(78dvh, 760px);
  max-height: 100dvh;
  overflow: auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(151, 178, 255, 0.34);
  background: linear-gradient(180deg, rgba(9, 14, 38, 0.98), rgba(6, 9, 24, 0.98));
  box-shadow: 0 20px 46px rgba(1, 4, 16, 0.72);
  padding: 12px;
}

.giveaway-detail-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(165, 179, 255, 0.24);
  background: rgba(20, 25, 56, 0.9);
  color: #aeb9e7;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.giveaway-detail-title {
  margin: 0 36px 8px 0;
  color: #f2f7ff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.giveaway-detail-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(142, 160, 255, 0.26);
  margin-top: 8px;
}

.giveaway-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.giveaway-detail-description {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #b8c0eb;
  white-space: pre-line;
}

.giveaway-detail-prize-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(46, 238, 195, 0.32);
  background: linear-gradient(180deg, rgba(8, 43, 53, 0.64), rgba(7, 26, 36, 0.72));
}

.giveaway-detail-prize {
  margin: 6px 0 0;
  color: #39f3cb;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

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

.giveaway-detail-stat {
  border-radius: 12px;
  border: 1px solid rgba(157, 173, 255, 0.18);
  background: linear-gradient(180deg, rgba(19, 25, 56, 0.86), rgba(11, 14, 34, 0.88));
  padding: 9px 6px;
  text-align: center;
  min-width: 0;
}

.giveaway-detail-stat-value {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  color: #f3f8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.giveaway-detail-stat-label {
  margin-top: 4px;
  color: #9eaad8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.giveaway-detail-conditions-box {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(150, 166, 255, 0.22);
  background: linear-gradient(180deg, rgba(18, 23, 53, 0.84), rgba(10, 13, 31, 0.9));
  padding: 10px 12px 12px;
}

.giveaway-detail-conditions-box h4 {
  margin: 0 0 7px;
  font-size: 12px;
}

.giveaway-detail-conditions-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.giveaway-detail-conditions-box li {
  color: #b7c0ea;
  font-size: 12px;
}

.giveaway-join-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 50px;
  font-size: 16px;
  letter-spacing: 0.01em;
  font-weight: 900;
}

.upx-bind-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0;
}

.upx-bind-modal.is-hidden {
  display: none !important;
}

.upx-bind-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 7, 22, 0.78);
  backdrop-filter: blur(7px);
}

.upx-bind-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: min(74dvh, 640px);
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(74, 218, 198, 0.28);
  background:
    radial-gradient(120% 72% at 50% -16%, rgba(30, 197, 175, 0.17), transparent 62%),
    linear-gradient(180deg, rgba(8, 14, 34, 0.98), rgba(5, 9, 24, 0.99));
  box-shadow: 0 -1px 0 rgba(99, 235, 206, 0.22), 0 -18px 44px rgba(2, 4, 16, 0.68);
  overflow: auto;
  animation: upx-bind-slide 220ms ease-out;
}

@keyframes upx-bind-slide {
  from {
    transform: translateY(22px);
    opacity: 0.72;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.upx-bind-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(74, 218, 198, 0.2);
  background: linear-gradient(180deg, rgba(8, 15, 36, 0.98), rgba(8, 14, 32, 0.94));
}

.upx-bind-head h3 {
  margin: 0;
  color: #f3f7ff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.upx-bind-close-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(147, 160, 229, 0.28);
  background: rgba(16, 22, 51, 0.9);
  color: #9fa9d9;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.upx-bind-body {
  display: grid;
  gap: 11px;
  padding: 12px 14px 16px;
}

.upx-bind-body .caption {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8f98c5;
}

.upx-bind-field {
  display: grid;
  gap: 7px;
}

.upx-bind-field span {
  color: #9ca6d5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.upx-bind-field input[type="text"] {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(117, 132, 205, 0.22);
  background: rgba(16, 22, 48, 0.78);
  color: #dce5ff;
  padding: 0 14px;
  font-size: 15px;
}

.upx-bind-field input[type="text"]:focus {
  border-color: rgba(87, 214, 188, 0.56);
  box-shadow: 0 0 0 2px rgba(72, 211, 182, 0.13);
  outline: none;
}

.upx-outline-btn,
.upx-file-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(118, 135, 215, 0.24);
  background: linear-gradient(180deg, rgba(18, 24, 56, 0.94), rgba(10, 15, 36, 0.98));
  color: #d9e3ff;
  font-size: 14px;
  font-weight: 800;
}

.upx-file-btn {
  border-style: dashed;
}

.upx-submit-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  color: #032c22;
  background: linear-gradient(135deg, #10e3a8, #14c793 52%, #18b47d);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(16, 203, 156, 0.23);
}

#upxE7FileName {
  margin: 0 2px;
  font-size: 11px;
  color: #808bbb;
}

@media (max-width: 400px) {
  .upx-bind-panel {
    max-height: min(78dvh, 680px);
  }

  .upx-bind-head h3 {
    font-size: 16px;
  }

  .upx-bind-body {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 19px;
  }

  .tab {
    font-size: 10px;
  }

  .tab span {
    max-width: 100%;
  }

  .reward-title {
    font-size: 13px;
  }

  .reward-subtitle {
    font-size: 12px;
  }

  .reward-percent {
    font-size: 10px;
  }

  .reward-drops {
    font-size: 11px;
  }
}
