* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; }
html, body { height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body {
  background: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0e1f 60%, #000 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 18px;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top, 14px);
  padding-bottom: env(safe-area-inset-bottom, 18px);
}
.top { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.header { display: flex; width: 100%; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4a5577, #2a3550);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-info { flex: 1; min-width: 0; }
.header-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-level { font-size: 11px; color: #94a0bd; }
.header-daily {
  background: linear-gradient(135deg, #ffd54f, #f0a020);
  color: #3d2500; border: none; padding: 6px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.header-daily.unavailable { background: rgba(255,255,255,0.06); color: #6a728a; cursor: default; }
.lang-btn { margin-right: 6px !important; padding: 6px 10px !important; min-width: 48px; }
.lang-btn .lang-flag-box { display: inline-flex; vertical-align: middle; }
.recharge-rate { color: #94a0bd; font-size: 11px; }
.progress { width: 100%; height: 5px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ffb74d, #ffd54f); width: 0%; transition: width 0.4s ease; border-radius: 4px; }
.balance { display: flex; align-items: center; gap: 8px; font-size: 36px; font-weight: 700; letter-spacing: -0.5px; margin-top: 2px; }
.coin-mini {
  width: 32px; height: 32px; border-radius: 50%;
  background-image: url('/coin.png'); background-size: 105%; background-position: center;
  box-shadow: 0 0 10px rgba(255, 201, 53, 0.5);
}
.stats { display: flex; gap: 16px; color: #94a0bd; font-size: 12px; }
.stats b { color: #fff; }
.wallet-link-row { width: 100%; display: flex; justify-content: flex-end; margin-top: -2px; padding-right: 42px; }
.wallet-link-btn {
  border: 1px solid rgba(255, 213, 79, 0.38);
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.2), rgba(240, 160, 32, 0.12));
  color: #ffd54f;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 193, 7, 0.14);
}
.wallet-link-btn:active { transform: scale(0.97); }
.center { position: relative; flex: 1; width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.coin-stage { position: relative; width: 260px; height: 260px; }
.activation-info-button { position: absolute; top: 0; left: calc(100% + 12px); width: 34px; height: 34px; border: 1px solid rgba(255, 213, 79, 0.4); border-radius: 50%; background: rgba(255, 213, 79, 0.1); color: #ffd54f; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 5px 16px rgba(255, 193, 7, 0.14); }
.activation-info-button:active { transform: scale(0.94); }
.activation-prompt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 213, 79, 0.45);
  background: linear-gradient(135deg, rgba(255, 213, 79, 0.18), rgba(240, 160, 32, 0.12));
  color: #ffd54f;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 193, 7, 0.16);
}
.activation-prompt-arrow { color: #ffd54f; font-size: 18px; font-weight: 950; line-height: 1; text-shadow: 0 1px 3px rgba(255, 213, 79, 0.65); }
.activation-prompt[hidden] { display: none; }
.activation-prompt:active { transform: scale(0.97); }
.activation-info-box { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255, 213, 79, 0.2); border-radius: 12px; background: rgba(255, 213, 79, 0.06); }
.activation-info-title { color: #ffd54f; font-size: 16px; font-weight: 800; }
.activation-info-text { color: #c4cce0; font-size: 13px; line-height: 1.45; }
.activation-referral-note { color: #ffd54f; }
.activation-progress-label, .activation-taps-left { color: #94a0bd; font-size: 12px; }
.activation-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.activation-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb74d, #ffd54f); transition: width 0.25s ease; }
.activation-celebration { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; overflow: hidden; background: rgba(5, 8, 20, 0.72); backdrop-filter: blur(5px); }
.activation-celebration[hidden] { display: none; }
.activation-celebration-card { position: relative; z-index: 2; width: min(86vw, 340px); display: grid; justify-items: center; gap: 10px; padding: 24px 20px 20px; border: 1px solid rgba(255, 213, 79, 0.45); border-radius: 20px; background: linear-gradient(145deg, #252d51, #12182e); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 36px rgba(255, 193, 7, 0.22); text-align: center; animation: activationCelebrateIn 0.35s ease-out both; }
.activation-celebration-icon { font-size: 42px; line-height: 1; animation: activationCelebratePulse 1.1s ease-in-out infinite; }
.activation-celebration-title { color: #ffd54f; font-size: 20px; font-weight: 850; }
.activation-celebration-text { color: #e2e7f5; font-size: 14px; line-height: 1.45; }
.activation-celebration-close { margin-top: 4px; padding: 9px 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ffd54f, #f0a020); color: #3d2500; font-size: 12px; font-weight: 850; cursor: pointer; }
.activation-confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.activation-confetti-piece { position: absolute; left: 50%; top: 50%; width: 7px; height: 16px; border-radius: 2px; background: var(--confetti-color); opacity: 0; animation: activationConfetti 1.7s ease-out var(--confetti-delay) both; }
@keyframes activationCelebrateIn { from { opacity: 0; transform: scale(0.9) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes activationCelebratePulse { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.12) rotate(4deg); } }
@keyframes activationConfetti { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--confetti-x)), calc(-50% - 170px)) rotate(540deg); } }
.coin {
  width: 260px; height: 260px; border-radius: 50%; overflow: hidden;
  background: #1a1f3a;
  box-shadow: 0 0 60px rgba(255, 193, 7, 0.45), 0 0 0 4px rgba(255,255,255,0.06), 0 0 0 10px rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.06s ease; position: relative;
}
.coin:active { transform: scale(0.96); }
.coin.disabled { filter: grayscale(0.7) brightness(0.6); cursor: not-allowed; }
.coin-img { width: 104%; height: 104%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.float {
  position: absolute; color: #ffd54f; font-size: 30px; font-weight: 800;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  animation: floatUp 0.9s ease-out forwards; z-index: 10;
}
@keyframes floatUp { 0% { opacity: 1; transform: translateY(0) scale(0.8); } 100% { opacity: 0; transform: translateY(-100px) scale(1.2); } }
.energy-row { width: 100%; max-width: 460px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 6px; }
.energy-row .energy-label { display: flex; align-items: center; gap: 6px; color: #ffd54f; font-weight: 600; }
.energy-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.energy-fill { height: 100%; background: linear-gradient(90deg, #ffd54f, #ffeb3b); width: 100%; border-radius: 6px; transition: width 0.2s ease; }
.bottom { width: 100%; max-width: 460px; }
.app-version-footer {
  margin-top: 6px;
  color: rgba(148, 160, 189, 0.72);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-bar {
  /* What: горизонтальный нижний nav. Why: Community добавляет шестую кнопку. Why this way: flex+scroll сохраняет стабильную ширину кнопок в Telegram WebView. */
  display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 8px; margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}
.bottom-bar::-webkit-scrollbar { display: none; }
.nav-btn {
  background: transparent; border: none; color: #c4cce0;
  min-width: 76px; flex: 0 0 76px; padding: 8px 4px; border-radius: 10px; font-size: 11px; font-weight: 600;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: background 0.15s;
}
.nav-btn:active { background: rgba(255,255,255,0.08); }
.nav-btn .ico { font-size: 20px; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center; z-index: 100;
}
.modal-bg.open { display: flex; }
.modal {
  background: linear-gradient(180deg, #1d2440, #0e1326);
  width: 100%; max-width: 480px; border-radius: 24px 24px 0 0;
  padding: 18px 16px 24px; max-height: 85vh; overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}
/* What: keeps every TOP-100 tab at the same bottom-sheet height. Why: switching between long lists and the shorter chart must not move the sheet. */
.modal.leaderboard-modal { min-height: 85vh; }
.modal-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.modal-title.top-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.top-users-count {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(79, 156, 255, 0.14); border: 1px solid rgba(79, 156, 255, 0.28);
  color: #dce9ff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 14px rgba(79, 156, 255, 0.12);
}
.top-users-count .top-users-icon {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #36d399, #4f9cff); color: #061a33;
  font-size: 11px;
}
.top-users-count .top-users-label { color: #94a0bd; font-weight: 700; }
.top-users-count .top-users-value { color: #ffd54f; font-weight: 900; }
.modal-sub { font-size: 12px; color: #94a0bd; margin-bottom: 14px; }
.modal-close {
  float: right; background: rgba(255,255,255,0.08); color: #fff; border: none;
  width: 28px; height: 28px; border-radius: 50%; font-size: 14px; cursor: pointer;
}
.required-notice-bg {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(0,0,0,0.76); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.required-notice-bg.open { display: flex; }
.required-notice {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, #202846, #0f1528);
  border: 1px solid rgba(255,213,79,0.26);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,0.45);
}
.required-notice-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.required-notice-body { color: #d7def3; font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.upgrade, .lb-row, .ref-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  padding: 10px; border-radius: 12px; margin-bottom: 8px;
}
.upgrade .ico-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #ffd54f, #f0a020);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.upgrade .info { flex: 1; min-width: 0; }
.upgrade .name { font-size: 13px; font-weight: 600; }
.upgrade .desc { font-size: 11px; color: #8a93b0; margin-top: 2px; }
.upgrade .price { font-size: 12px; font-weight: 700; color: #ffd54f; margin-top: 3px; }
.upgrade .lvl { font-size: 11px; color: #94a0bd; }
.upgrade button {
  background: linear-gradient(135deg, #ffd54f, #f0a020);
  color: #3d2500; border: none; padding: 7px 12px; border-radius: 9px;
  font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.upgrade button:disabled { background: rgba(255,255,255,0.08); color: #6a728a; cursor: not-allowed; white-space: normal; line-height: 1.3; max-width: 120px; }
.task {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  padding: 11px 13px; border-radius: 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.task.done { opacity: 0.5; }
.task .reward { color: #ffd54f; font-weight: 700; font-size: 12px; }
.task.channel-task { align-items: stretch; gap: 12px; }
.task.channel-task.available {
  background: rgba(54, 211, 153, 0.08);
  border-color: rgba(54, 211, 153, 0.28);
}
.task.channel-task.locked {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,213,79,0.24);
  opacity: 0.82;
}
.task.channel-task.done { opacity: 0.72; }
.task-main { min-width: 0; flex: 1; }
.task-title { font-weight: 600; font-size: 13px; }
.task-status { font-size: 11px; color: #94a0bd; margin-top: 2px; line-height: 1.35; }
.channel-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.task-action {
  border: none; border-radius: 8px; padding: 7px 10px;
  background: linear-gradient(135deg, #ffd54f, #f0a020);
  color: #3d2500; font-size: 11px; font-weight: 800; cursor: pointer;
  text-decoration: none; text-align: center;
}
.task-action.secondary { background: rgba(255,255,255,0.1); color: #fff; }
.task-action.group { background: #4f9cff; color: #061a33; }
.task-action.danger { background: #f05252; color: #fff; }
.task-action.active { background: #2fbf71; color: #062714; }
.task-action:disabled { background: rgba(255,255,255,0.08); color: #6a728a; cursor: not-allowed; }

/* What: Community instruction layout. Why: the 8-level text is long and needs readable scrollable cards. Why this way: scoped classes avoid changing other modal screens. */
.community-guide { display: grid; gap: 12px; padding-bottom: 6px; }
.community-intro,
.community-level-card {
  border-radius: 12px; padding: 12px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08);
}
.community-intro h2 { font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.community-intro p,
.community-level-body p {
  color: #d7def3; font-size: 12px; line-height: 1.48; margin-bottom: 8px;
}
.community-level-body p:last-child { margin-bottom: 0; }
.community-rule {
  color: #ffe08a; font-size: 12px; font-weight: 800; line-height: 1.42;
  border: 1px solid rgba(255,213,79,0.34); border-radius: 10px;
  background: rgba(255,213,79,0.08); padding: 9px 10px; margin-top: 10px;
}
.community-level-card { display: grid; gap: 10px; }
.community-level-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 10px; padding: 10px 11px; cursor: pointer; text-align: left;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.community-level-toggle:active { transform: scale(0.99); }
.community-level-toggle-copy { min-width: 0; }
.community-level-title { display: block; font-size: 15px; font-weight: 900; line-height: 1.25; }
.community-level-toggle-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.community-level-toggle-icon { font-size: 18px; font-weight: 500; line-height: 1; }
.community-level-code { color: #94a0bd; font-size: 10px; margin-top: 3px; }
.community-level-state {
  flex-shrink: 0; border-radius: 999px; padding: 4px 8px;
  font-size: 10px; font-weight: 900; line-height: 1;
}
.community-level-content { display: grid; gap: 10px; }
.community-level-content[hidden] { display: none; }
.community-level-task {
  color: #f4f7ff; font-size: 12px; line-height: 1.42;
  border-radius: 10px; padding: 9px 10px; background: rgba(0,0,0,0.16);
}
.community-progress-box {
  display: grid; gap: 7px; border-radius: 10px; padding: 9px 10px;
  background: rgba(255,213,79,0.065); border: 1px solid rgba(255,213,79,0.2);
}
.community-progress-row {
  display: flex; justify-content: space-between; gap: 10px;
  color: #f4f7ff; font-size: 12px; line-height: 1.2;
}
.community-progress-row span { color: #ffd54f; font-weight: 900; }
.community-progress-count { flex-shrink: 0; white-space: nowrap; }
.community-progress-track {
  height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.08);
}
.community-progress-fill {
  height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd54f, #f0a020);
}
.community-progress-note { color: #aeb8d2; font-size: 11px; line-height: 1.35; }
.community-dev-panel {
  display: grid; gap: 8px; border-radius: 10px; padding: 9px 10px;
  background: rgba(79,156,255,0.07); border: 1px dashed rgba(79,156,255,0.34);
}
.community-dev-title { color: #dce9ff; font-size: 11px; font-weight: 900; line-height: 1.2; }
.community-dev-note { color: #aeb8d2; font-size: 10px; line-height: 1.35; }
.community-dev-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.community-dev-btn {
  border-radius: 9px; border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 7px; font-size: 11px; font-weight: 900; cursor: pointer;
}
.community-dev-btn.success { background: rgba(54,211,153,0.14); border-color: rgba(54,211,153,0.45); color: #8bf0c0; }
.community-dev-btn.danger { background: rgba(240,82,82,0.12); border-color: rgba(240,82,82,0.45); color: #ff9b9b; }
.community-confirm-box {
  display: grid; gap: 8px; border-radius: 10px; padding: 10px;
  background: rgba(255,213,79,0.08); border: 1px solid rgba(255,213,79,0.34);
}
.community-confirm-text { color: #f4f7ff; font-size: 12px; font-weight: 800; line-height: 1.38; }
.community-hint-box {
  color: #ffe08a; font-size: 12px; font-weight: 800; line-height: 1.38;
  border-radius: 10px; padding: 9px 10px;
  background: rgba(255,213,79,0.09); border: 1px solid rgba(255,213,79,0.32);
}
.community-level4-form { display: grid; gap: 10px; }
.community-level4-note { border-color: rgba(79,156,255,0.24); background: rgba(79,156,255,0.06); }
.community-field {
  display: grid; gap: 7px; border-radius: 10px; padding: 10px;
  background: rgba(0,0,0,0.14); border: 1px solid rgba(255,255,255,0.08);
}
.community-field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.community-field-label { color: #f4f7ff; font-size: 12px; font-weight: 900; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
/* What: required/optional field markers. Why: users must quickly distinguish mandatory and optional Candidate fields. Why this way: scoped classes survive translated text inside the marker span. */
.community-field-label span { font-size: 10px; font-weight: 900; white-space: nowrap; }
.community-required-marker { color: #36d399; }
.community-optional-marker { color: #aeb8d2; }
.community-field-counter { color: #aeb8d2; font-size: 10px; font-weight: 900; white-space: nowrap; }
.community-field-counter.over { color: #ff8a8a; }
.community-field-help { color: #aeb8d2; font-size: 11px; line-height: 1.38; }
.community-input {
  width: 100%; border-radius: 9px; border: 1px solid rgba(148,160,189,0.24);
  background: rgba(7,11,24,0.82); color: #f4f7ff; padding: 9px 10px;
  font-size: 12px; line-height: 1.35; outline: none; resize: vertical;
}
.community-input:focus { border-color: rgba(255,213,79,0.7); box-shadow: 0 0 0 2px rgba(255,213,79,0.09); }
.community-category-selector { position: relative; display: grid; gap: 6px; }
.community-location-selector { position: relative; display: grid; gap: 6px; }
.community-category-menu {
  display: grid; gap: 6px; max-height: 192px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 10px; padding: 7px; border: 1px solid rgba(148,160,189,0.24);
  background: rgba(7,11,24,0.94); box-shadow: 0 12px 26px rgba(0,0,0,0.24);
}
.community-location-menu {
  display: grid; gap: 6px; max-height: 192px; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 10px; padding: 7px; border: 1px solid rgba(148,160,189,0.24);
  background: rgba(7,11,24,0.94); box-shadow: 0 12px 26px rgba(0,0,0,0.24);
}
.community-category-menu[hidden] { display: none; }
.community-location-menu[hidden] { display: none; }
.community-category-option {
  min-height: 34px; border-radius: 9px; padding: 8px 9px; cursor: pointer; text-align: left;
  border: 1px solid rgba(148,160,189,0.24); background: rgba(255,255,255,0.055);
  color: #d7def3; font-size: 11px; font-weight: 900; line-height: 1.2;
}
.community-location-option {
  display: grid; gap: 3px; min-height: 34px; border-radius: 9px; padding: 8px 9px; cursor: pointer; text-align: left;
  border: 1px solid rgba(148,160,189,0.24); background: rgba(255,255,255,0.055);
  color: #d7def3; font-size: 11px; font-weight: 900; line-height: 1.2;
}
.community-location-option small { color: #aeb8d2; font-size: 10px; font-weight: 800; line-height: 1.2; }
.community-category-option[hidden] { display: none; }
.community-category-option.selected {
  border-color: rgba(255,213,79,0.78); background: rgba(255,213,79,0.18);
  color: #ffd54f; box-shadow: 0 0 0 1px rgba(255,213,79,0.08);
}
.community-category-empty[hidden] { display: none; }
.community-location-empty[hidden] { display: none; }
.community-file-input {
  width: 100%; color: #d7def3; font-size: 11px; line-height: 1.3;
}
.community-photo-name { color: #ffe08a; }
.community-field-error {
  min-height: 14px; color: #ff9b9b; font-size: 10px; font-weight: 800; line-height: 1.35;
}
.community-confirmations {
  display: grid; gap: 6px; border-radius: 10px; padding: 10px;
  background: rgba(54,211,153,0.06); border: 1px solid rgba(54,211,153,0.18);
}
.community-checkbox-row {
  display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: flex-start;
  color: #d7def3; font-size: 11px; font-weight: 800; line-height: 1.38;
}
.community-checkbox-row input { width: 16px; height: 16px; margin-top: 1px; accent-color: #36d399; }
.community-level4-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-draft-btn {
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid rgba(79,156,255,0.42); background: rgba(79,156,255,0.12);
  color: #dce9ff; font-size: 12px; font-weight: 900;
}
.community-level4-message {
  min-height: 16px; color: #d7def3; font-size: 11px; font-weight: 800; line-height: 1.35;
}
/* What: Level 4 total Telegram caption state. Why: the full post limit can fail even when each single field is valid. Why this way: a scoped warning state avoids changing shared progress boxes. */
.community-level4-total-box.over {
  border-color: rgba(240,82,82,0.44);
  background: rgba(240,82,82,0.09);
}
.community-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.community-confirm-btn {
  border-radius: 9px; padding: 9px 10px; font-size: 12px; font-weight: 900; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
}
.community-confirm-btn.yes { background: #36d399; border-color: rgba(54,211,153,0.72); color: #062714; }
.community-confirm-btn.no { background: rgba(255,255,255,0.08); border-color: rgba(148,160,189,0.28); color: #d7def3; }
.community-level-locked {
  border-color: rgba(148,160,189,0.18); background: rgba(255,255,255,0.028);
}
.community-level-toggle-locked {
  border: 1px solid rgba(148,160,189,0.22);
  background: rgba(255,255,255,0.045); color: #a8b0c6;
}
.community-level-locked .community-level-state { background: rgba(148,160,189,0.14); color: #a8b0c6; }
.community-level-active {
  border-color: rgba(255,213,79,0.44); background: rgba(255,213,79,0.06);
}
.community-level-toggle-active {
  border: 1px solid rgba(255,213,79,0.7);
  background: linear-gradient(135deg, rgba(255,213,79,0.2), rgba(240,160,32,0.16)); color: #ffe08a;
}
.community-level-active .community-level-state { background: rgba(255,213,79,0.18); color: #ffd54f; }
.community-level-completed {
  border-color: rgba(54,211,153,0.44); background: rgba(54,211,153,0.06);
}
.community-level-toggle-completed {
  border: 1px solid rgba(54,211,153,0.72);
  background: linear-gradient(135deg, rgba(54,211,153,0.22), rgba(47,191,113,0.16)); color: #8bf0c0;
}
.community-level-completed .community-level-state { background: rgba(54,211,153,0.18); color: #36d399; }
.community-level-error {
  border-color: rgba(240,82,82,0.5); background: rgba(240,82,82,0.08);
}
.community-level-error .community-level-state { background: rgba(240,82,82,0.2); color: #ff8a8a; }
.community-action {
  width: 100%; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; font-weight: 900; cursor: pointer; text-align: center;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.community-action:active:not(:disabled) { transform: scale(0.985); }
.community-action-locked {
  border: 1px solid rgba(148,160,189,0.18);
  background: rgba(255,255,255,0.055); color: #6a728a; cursor: not-allowed;
}
.community-action-active {
  border: 1px solid rgba(255,213,79,0.7);
  background: linear-gradient(135deg, #ffd54f, #f0a020); color: #3d2500;
  box-shadow: 0 8px 20px rgba(255,193,7,0.14);
}
.community-action-completed {
  border: 1px solid rgba(54,211,153,0.72);
  background: linear-gradient(135deg, #36d399, #2fbf71); color: #062714;
  box-shadow: 0 8px 20px rgba(54,211,153,0.12);
}
.community-action-error {
  border: 1px solid rgba(240,82,82,0.78);
  background: linear-gradient(135deg, #f05252, #c93d3d); color: #fff;
}
.community-action:disabled { opacity: 0.82; }
.community-secondary-action { margin-top: -2px; }
.community-bottom-return { display: flex; justify-content: flex-end; padding: 2px 0 4px; }
.community-bottom-return .community-action { width: auto; min-width: 178px; }
.lb-row .rank { width: 26px; text-align: center; font-weight: 800; color: #94a0bd; font-size: 14px; flex-shrink: 0; }
.lb-row .rank.gold { color: #ffd54f; }
.lb-row .rank.silver { color: #d0d8e8; }
.lb-row .rank.bronze { color: #d49060; }
.lb-row .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4a5577, #2a3550);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.lb-row .av img { width: 100%; height: 100%; object-fit: cover; }
.lb-row .name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .bal { color: #ffd54f; font-weight: 700; font-size: 13px; }
.lb-row.me { background: rgba(255,213,79,0.1); border-color: rgba(255,213,79,0.3); }
.ref-cta {
  background: linear-gradient(135deg, #4a5fff, #6c4aff); border: none; color: #fff;
  padding: 14px; border-radius: 14px; font-size: 14px; font-weight: 700;
  width: 100%; cursor: pointer; margin-bottom: 14px; box-shadow: 0 6px 20px rgba(74, 95, 255, 0.4);
}
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ref-stats .box { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); padding: 12px; border-radius: 12px; text-align: center; }
.ref-stats .num { font-size: 20px; font-weight: 800; color: #ffd54f; }
.ref-stats .label { font-size: 11px; color: #94a0bd; margin-top: 2px; }
.ref-info-box { background:rgba(74,95,255,0.08); border:1px solid rgba(74,95,255,0.2); padding:10px 12px; border-radius:10px; font-size:11px; color:#c4cce0; line-height:1.5; margin-bottom:14px; }
.ref-levels { margin-left:12px; margin-top:4px; line-height:1.45; }
.ref-link-label { font-size:12px; color:#94a0bd; margin-bottom:6px; }
.ref-link-row { display:flex; align-items:stretch; gap:8px; margin-bottom:14px; }
.ref-link-box { flex:1; min-width:0; background:rgba(255,255,255,0.05); padding:10px; border-radius:10px; font-size:11px; color:#c4cce0; word-break:break-all; user-select:text; -webkit-user-select:text; }
.ref-link-copy, .ref-link-share { flex:0 0 auto; border:1px solid rgba(255,213,79,0.45); background:rgba(255,213,79,0.08); color:#ffd54f; border-radius:10px; min-width:42px; padding:8px 10px; cursor:pointer; }
.ref-link-copy { display:grid; place-items:center; padding:8px; }
.ref-link-copy-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ref-link-share { font-size:12px; font-weight:700; white-space:nowrap; }
.ref-link-copy:disabled, .ref-link-share:disabled { opacity:.45; cursor:not-allowed; }
/* What: каталог прямых рефералов с controls и серверной пагинацией. Why: список должен оставаться компактным при тысячах записей. Why this way: отдельный scroll container ограничивает DOM-область без изменения других modal. */
.friends-directory { display:grid; gap:10px; }
.friends-directory-head { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#fff; font-size:13px; }
.friends-directory-head span { color:#94a0bd; font-size:11px; text-align:right; }
.friends-controls { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.friends-control-field { display:grid; gap:4px; min-width:0; }
.friends-control-label { color:#94a0bd; font-size:10px; }
.friends-select-trigger,
.friends-search input,
.friends-search button {
  min-width:0; min-height:36px; border:1px solid rgba(255,255,255,0.09); border-radius:8px;
  background:rgba(255,255,255,0.055); color:#fff; font-size:12px; outline:none;
}
.friends-custom-select { position:relative; min-width:0; }
.friends-select-trigger { width:100%; display:flex; align-items:center; justify-content:space-between; gap:7px; padding:8px 10px; cursor:pointer; text-align:left; }
.friends-select-value { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.friends-select-arrow { width:7px; height:7px; flex-shrink:0; border-right:2px solid #94a0bd; border-bottom:2px solid #94a0bd; transform:rotate(45deg) translateY(-2px); transition:transform 0.15s ease; }
.friends-custom-select.open .friends-select-trigger { border-color:rgba(255,213,79,0.45); background:rgba(255,213,79,0.09); }
.friends-custom-select.open .friends-select-arrow { border-color:#ffd54f; transform:rotate(225deg) translate(-1px, -1px); }
.friends-select-menu { position:absolute; top:calc(100% + 5px); left:0; z-index:20; display:grid; width:max(100%, 112px); max-height:210px; overflow-y:auto; padding:5px; border:1px solid rgba(255,213,79,0.22); border-radius:10px; background:#171e35; box-shadow:0 12px 28px rgba(0,0,0,0.45); }
.friends-select-menu[hidden] { display:none; }
.friends-select-option { width:100%; min-height:34px; padding:7px 9px; border:none; border-radius:7px; background:transparent; color:#c4cce0; font-size:12px; text-align:left; cursor:pointer; }
.friends-select-option:hover,
.friends-select-option:focus { background:rgba(255,255,255,0.07); outline:none; }
.friends-select-option.active { background:linear-gradient(135deg,rgba(255,213,79,0.95),rgba(240,160,32,0.95)); color:#3d2500; font-weight:800; }
.friends-select-trigger:focus-visible,
.friends-search input:focus { border-color:rgba(255,213,79,0.35); }
.friends-search { grid-column:1 / -1; display:grid; grid-template-columns:1fr auto; gap:8px; }
.friends-search input { width:100%; padding:8px 10px; user-select:text; }
.friends-search input::placeholder { color:#6a728a; }
.friends-search button,
.friends-retry-btn { padding:8px 12px; border:none; border-radius:8px; background:linear-gradient(135deg,#ffd54f,#f0a020); color:#3d2500; font-weight:800; cursor:pointer; }
.friends-controls :disabled,
.friends-pagination button:disabled { opacity:0.45; cursor:not-allowed; }
.friends-list-shell { position:relative; min-height:72px; border:1px solid rgba(255,255,255,0.06); border-radius:10px; background:rgba(255,255,255,0.025); overflow:hidden; }
.friends-list { max-height:min(45vh, 430px); overflow-y:auto; color:#94a0bd; text-align:center; padding:8px; font-size:12px; scrollbar-gutter:stable; }
.friends-list.is-loading { opacity:0.35; }
.friends-loading { position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center; gap:8px; color:#c4cce0; background:rgba(14,19,38,0.72); font-size:12px; }
.friends-loading[hidden] { display:none; }
.friends-spinner { width:18px; height:18px; border:2px solid rgba(255,213,79,0.2); border-top-color:#ffd54f; border-radius:50%; animation:spin 0.8s linear infinite; }
.friends-empty { padding:20px 8px; }
.friends-error { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid rgba(240,82,82,0.3); border-radius:8px; background:rgba(240,82,82,0.08); color:#ff9b9b; font-size:11px; }
.friends-error[hidden] { display:none; }
.friends-retry-btn { flex-shrink:0; font-size:11px; }
.friends-range { color:#94a0bd; text-align:center; font-size:11px; }
.friends-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; }
.friends-page-btn { min-width:32px; min-height:32px; padding:5px 8px; border:1px solid rgba(255,255,255,0.09); border-radius:8px; background:rgba(255,255,255,0.045); color:#c4cce0; font-size:12px; cursor:pointer; }
.friends-page-btn.active { border-color:transparent; background:linear-gradient(135deg,#ffd54f,#f0a020); color:#3d2500; font-weight:800; }
.friends-pagination-ellipsis { min-width:16px; color:#6a728a; text-align:center; }
.badge { padding:2px 6px; border-radius:6px; font-size:10px; font-weight:600; }
.badge-activated { background:rgba(106,255,180,0.15); color:#6affb4; }
.badge-pending { background:rgba(255,213,79,0.15); color:#ffd54f; }
.ref-row-item { display:flex; align-items:center; gap:10px; padding:7px 4px; border-bottom:1px solid rgba(255,255,255,0.045); }
.ref-row-item:last-child { border-bottom:none; }
.ref-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#4a5577,#2a3550); display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; }
.ref-info { flex:1; min-width:0; text-align:left; }
.ref-name-row { font-size:13px; font-weight:600; color:#fff; display:flex; align-items:center; gap:6px; min-width:0; }
.ref-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ref-username { margin-top:1px; color:#6f7b98; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ref-balance { font-size:11px; color:#94a0bd; }
/* What: компактная кнопка Telegram-чата в referral row. Why: быстрый переход к общению не должен перегружать строку. Why this way: квадратная icon-button повторяет тёмный стиль controls и сохраняет touch target. */
.ref-chat-btn { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; padding:0; border:1px solid rgba(255,255,255,0.09); border-radius:8px; background:rgba(255,255,255,0.045); color:#fff; font-size:15px; cursor:pointer; transition:border-color 0.15s, background 0.15s, transform 0.15s; }
.ref-chat-btn:hover,
.ref-chat-btn:focus-visible { border-color:rgba(255,213,79,0.5); background:rgba(255,213,79,0.12); outline:none; }
.ref-chat-btn:active { transform:scale(0.94); }
.task-name { font-weight:600; font-size:13px; }
.task-progress { font-size:11px; color:#94a0bd; margin-top:2px; }
.lang-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.lang-btn { display:flex; align-items:center; gap:8px; padding:12px; border-radius:12px; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03); color:#fff; cursor:pointer; font-size:13px; text-align:left; }
.lang-btn.active { border-color:rgba(255,213,79,0.4); background:rgba(255,213,79,0.12); }
.lang-flag { font-size:20px; }
/* What: fixed visual slot for every language flag. Why: image flags and platform emoji must occupy the same UI footprint. Why this way: a centered box normalizes glyph/image differences without changing language data. */
.lang-flag-box { display:inline-flex; align-items:center; justify-content:center; width:22px; height:18px; flex:0 0 22px; overflow:hidden; }
.lang-flag-img { display:block; width:18px; height:13px; border-radius:2px; object-fit:cover; box-shadow:0 0 0 1px rgba(255,255,255,0.18); }
.lang-flag-emoji { display:block; width:18px; height:16px; text-align:center; font-size:17px; line-height:16px; }
/* What: horizontal language title row. Why: platform emoji glyphs can otherwise jump above the language name. Why this way: flex aligns image flags and emoji flags with the text baseline consistently. */
.lang-title { display:inline-flex; align-items:center; gap:8px; min-width:0; max-width:100%; line-height:1.15; }
.lang-title-text { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.settings-language-current { display:inline-flex; align-items:center; gap:3px; min-width:0; }
.lang-name { flex:1; }
.lang-check { color:#ffd54f; }
/* What: горизонтально прокручиваемая панель TOP-вкладок. Why: четвёртая вкладка Statistics должна помещаться на мобильной ширине. Why this way: flex + overflow-x сохраняют старые вкладки и не сжимают текст до нечитаемости. */
.tab-bar { display:flex; gap:6px; margin-bottom:12px; background:rgba(255,255,255,0.04); padding:4px; border-radius:10px; overflow-x:auto; scrollbar-width:none; }
.tab-bar::-webkit-scrollbar { display:none; }
.tab-btn { flex:0 0 auto; min-width:max-content; padding:8px 10px; border-radius:8px; border:none; cursor:pointer; font-size:12px; font-weight:600; background:transparent; color:#94a0bd; white-space:nowrap; }
.tab-btn.active { background:linear-gradient(135deg,#ffd54f,#f0a020); color:#3d2500; }
/* What: read-only график роста пользователей в стиле биржевого chart. Why: вкладка Statistics должна показывать динамику, а не список чисел. Why this way: SVG внутри scroll-контейнера даёт line/area chart без новой frontend-зависимости. */
.growth-metrics { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-bottom:10px; }
.growth-metric { min-width:0; padding:10px; border:1px solid rgba(255,255,255,0.07); border-radius:8px; background:rgba(255,255,255,0.04); }
.growth-metric-wide { grid-column:1 / -1; }
.growth-metric-value { color:#ffd54f; font-size:17px; font-weight:900; line-height:1.1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.growth-metric-label { margin-top:4px; color:#94a0bd; font-size:10px; font-weight:700; }
.growth-range-value { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; color:#ffd54f; font-size:17px; font-weight:900; line-height:1.1; }
.growth-range-value span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.growth-range-value b { flex:0 0 auto; color:#94a0bd; font-size:14px; }
.growth-range-dates { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:5px; color:#94a0bd; font-size:10px; font-weight:700; line-height:1.2; }
.growth-range-dates span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.growth-range-dates b { flex:0 0 auto; color:#6a728a; }
.growth-controls { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:start; gap:7px; margin-bottom:10px; }
.growth-scale-bar { display:flex; gap:6px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
.growth-scale-bar::-webkit-scrollbar { display:none; }
.growth-scale-btn { flex:0 0 auto; min-width:42px; min-height:30px; padding:6px 9px; border:1px solid rgba(255,255,255,0.08); border-radius:8px; background:rgba(255,255,255,0.045); color:#94a0bd; font-size:11px; font-weight:800; cursor:pointer; }
.growth-scale-btn.active { border-color:transparent; background:linear-gradient(135deg,#36d399,#4f9cff); color:#061a33; }
.growth-view-toggle { display:flex; flex:0 0 auto; gap:2px; padding:2px; border:1px solid rgba(255,255,255,0.08); border-radius:8px; background:rgba(255,255,255,0.045); }
.growth-view-btn { min-height:26px; padding:5px 7px; border:0; border-radius:6px; background:transparent; color:#94a0bd; font-size:10px; font-weight:850; cursor:pointer; }
.growth-view-btn.active { background:rgba(255,213,79,0.96); color:#3d2500; }
.growth-chart-box { border:1px solid rgba(255,255,255,0.07); border-radius:8px; background:linear-gradient(180deg,rgba(9,14,30,0.92),rgba(18,24,45,0.72)); overflow:hidden; }
.growth-chart-frame { position:relative; min-height:200px; }
.growth-chart-frame.candles { min-height:230px; }
.growth-chart-scroll { width:100%; overflow-x:auto; overflow-y:hidden; padding:8px 0 2px; scrollbar-width:thin; scrollbar-color:rgba(255,213,79,0.38) rgba(255,255,255,0.04); }
.growth-chart-scroll::-webkit-scrollbar { height:6px; }
.growth-chart-scroll::-webkit-scrollbar-track { background:rgba(255,255,255,0.04); }
.growth-chart-scroll::-webkit-scrollbar-thumb { background:rgba(255,213,79,0.38); border-radius:999px; }
.growth-chart-svg { display:block; min-width:100%; }
.growth-chart-grid { stroke:rgba(148,160,189,0.18); stroke-width:1; stroke-dasharray:4 5; }
.growth-chart-axis { stroke:rgba(148,160,189,0.24); stroke-width:1; }
.growth-chart-area { fill:url(#growthGradient); fill:rgba(54,211,153,0.13); }
.growth-chart-line { fill:none; stroke:#36d399; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 6px rgba(54,211,153,0.35)); }
.growth-chart-point { fill:#36d399; stroke:#07111f; stroke-width:1; opacity:0.82; }
.growth-chart-point.last { fill:#ffd54f; stroke:#3d2500; stroke-width:1.4; opacity:1; }
.growth-chart-point.baseline { fill:#94a0bd; stroke:#07111f; opacity:0.82; }
.growth-chart-candle-wick { stroke:rgba(148,160,189,0.5); stroke-width:1; }
.growth-chart-candle { stroke:#07111f; stroke-width:1; filter:drop-shadow(0 0 5px rgba(54,211,153,0.22)); }
.growth-chart-candle.up { fill:#36d399; }
.growth-chart-candle.flat { fill:#94a0bd; opacity:0.72; }
.growth-chart-candle.down { fill:#ff6b6b; }
.growth-chart-date,
.growth-chart-y-label,
.growth-chart-last-label { fill:#94a0bd; font-size:10px; font-weight:700; }
.growth-chart-y-label { text-anchor:end; }
.growth-chart-date.middle { text-anchor:middle; }
.growth-chart-date.end { text-anchor:end; }
.growth-chart-date.candle { font-size:5.5px; font-weight:800; text-anchor:start; dominant-baseline:middle; }
.growth-chart-last-label { fill:#ffd54f; font-size:11px; }
.growth-chart-scale-overlay { position:absolute; top:8px; right:0; bottom:28px; z-index:3; width:96px; padding:0 8px 0 7px; border-left:1px solid rgba(148,160,189,0.22); background:linear-gradient(90deg,rgba(14,19,38,0.2),rgba(14,19,38,0.92) 34%,rgba(14,19,38,0.98)); pointer-events:none; }
.growth-chart-frame.candles .growth-chart-scale-overlay { bottom:60px; }
.growth-chart-scale-title { position:absolute; top:4px; right:8px; max-width:82px; color:#ffd54f; font-size:6px; font-weight:900; line-height:1.05; text-align:right; text-transform:uppercase; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:clip; }
.growth-chart-scale-values { position:absolute; inset:0; color:#94a0bd; font-size:10px; font-weight:800; line-height:1; }
.growth-chart-scale-value { position:absolute; right:8px; transform:translateY(-50%); }
.growth-error { display:grid; gap:10px; justify-items:center; }
.growth-retry-btn { border:none; border-radius:8px; padding:8px 13px; background:linear-gradient(135deg,#ffd54f,#f0a020); color:#3d2500; font-size:12px; font-weight:800; cursor:pointer; }
.leaderboard-content.is-loading { opacity:0.72; pointer-events:none; }
.loading-placeholder { text-align:center; color:#94a0bd; padding:20px; }
.empty-placeholder { text-align:center; color:#94a0bd; padding:20px; }
.err-placeholder { text-align:center; color:#ff8a8a; padding:20px; }
.loader {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0a0e1f; z-index: 999; gap: 14px;
}
.loader .spin {
  width: 40px; height: 40px; border: 3px solid rgba(255,213,79,0.2);
  border-top-color: #ffd54f; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader .msg { color: #94a0bd; font-size: 13px; }
.toast {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd54f, #f0a020); color: #3d2500;
  padding: 12px 20px; border-radius: 14px; font-weight: 700; z-index: 200;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4); animation: floatUp 2.4s ease-out forwards; pointer-events: none;
}
.toast.success { background: #2fbf71; color: #062714; }
.toast.group { background: #4f9cff; color: #061a33; }
.toast.danger { background: #f05252; color: #fff; }

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 13px;
  color: #fff;
  background: rgba(255,255,255,0.032);
  text-align: left;
  cursor: pointer;
  margin-bottom: 8px;
}
.settings-row span {
  display: grid;
  gap: 3px;
}
.settings-row em {
  color: #94a0bd;
  font-style: normal;
  font-size: 12px;
}
.settings-row b {
  color: #ffd54f;
  font-size: 12px;
  white-space: nowrap;
}
.settings-row.active {
  border-color: rgba(255,213,79,0.4);
  background: rgba(232,185,88,0.09);
}
.search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  margin-bottom: 12px;
}
.search-input::placeholder {
  color: #6a728a;
}
.search-input:focus {
  border-color: rgba(255,213,79,0.3);
}
.language-list {
  display: grid;
  gap: 8px;
}
.scroll-list {
  max-height: min(52vh, 430px);
  overflow-y: auto;
  padding-right: 4px;
}
.link-btn {
  display: grid;
  place-items: center;
  text-decoration: none;
}
