.adsgram-task-card {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
}

adsgram-task {
  --adsgram-task-font-size: 15px;
  --adsgram-task-icon-size: 32px;
  --adsgram-task-icon-title-gap: 10px;
  --adsgram-task-icon-border-radius: 10px;
  --adsgram-task-button-width: 120px;
}

.adsgram-btn {
  background: #666;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.adsgram-btn[disabled] { opacity: .6; cursor: not-allowed; }
.adsgram-btn.accent { background: linear-gradient(135deg,#7f00ff,#4e8cff); }
.adsgram-badge { color:#9fd59f; font-weight:700; }
/*
 * RTM Style - DO NOT CACHE
 * This file should always be loaded fresh to prevent styling issues
 * Cache-Control: no-cache, no-store, must-revalidate
 */

#earn-tab-sponsors .subs-warning {
  color: #ff9b9b;
  background: rgba(255,74,74,0.08);
  border: 1px dashed rgba(255,74,74,0.45);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.active-ticker {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.active-ticker .track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 22s linear infinite;
}
.active-ticker .item { display: inline-flex; align-items: center; gap: 8px; color: #e8ecf3; font-size: 0.95em; }
.active-ticker .item img { width: 18px; height: 18px; display:block; border-radius: 4px; }
.active-ticker .item i { font-size: 18px; }
.active-ticker .item a { color: #bcd1ff; text-decoration: none; font-weight: 600; }
.active-ticker .item a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === DAILY WHEEL STYLES === */
.wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 25px auto;
}

.wheel-wrapper canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.wheel-pointer {
  position: absolute;
  top: -8px; /* Position it slightly above the wheel circle */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid #ff6b35; /* Bright orange pointer */
  z-index: 10;
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.3));
}
/* End Daily Wheel Styles */

.wheel-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.wheel-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  font-size: 14px;
  color: #bbb;
}

.energy-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.energy-icon {
  color: #FFD700;
  font-size: 16px;
}

.spin-button {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spin-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.spin-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.spin-button:disabled {
  background: rgba(128, 128, 128, 0.3);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.wheel-disabled {
  position: relative;
  opacity: 0.4;
  filter: blur(2px);
  pointer-events: none;
}

.wheel-disabled::after {
  content: "Не выполнено ежедневное задание";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 20;
  pointer-events: all;
}

.wheel-spinning {
  pointer-events: none;
}

.wheel-spinning .wheel-container {
  animation: wheel-spin 4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes wheel-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(var(--final-rotation)); }
}

.prize-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.prize-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

.prize-popup h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

.prize-popup p {
  margin: 0;
  font-size: 18px;
  opacity: 0.9;
}

.wheel-ad-button {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.wheel-ad-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.wheel-ad-button:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .wheel-wrapper {
    width: 240px;
    height: 240px;
  }
  
  .spin-button {
    width: 100px;
    height: 100px;
    font-size: 14px;
  }
  
  .wheel-sector-text {
    font-size: 10px;
    padding: 2px 6px;
  }
}
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto:wght@400;500;700&display=swap');

:root {
  --main-bg: #0f1116;            /* темнее фон как в современных TMA */
  --card-bg: rgba(22, 25, 34, 0.9);
  --card-border: rgba(255,255,255,0.06);
  --accent: #7f00ff;             /* фиолетовый акцент */
  --accent-hover: #9a32ff;
  --text-main: #e8ecf3;
  --text-muted: #97a3b6;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --radius: 14px;
  --glass: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

body, html {
  background: var(--main-bg);
  color: var(--text-main);
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.app-container {
  max-width: 480px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-top: 0;
}

header, .tab-navigation {
  max-width: 480px;
  width: 100%;
  min-width: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

header {
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 8px 4px 8px;
  height: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 102;
}

.main-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  padding-bottom: 80px; /* 56px навигация + 24px дополнительный отступ */
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  padding: 22px 18px 18px 18px;
  margin-bottom: 18px;
  transition: box-shadow 0.18s, background 0.18s;
}
.card:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.45); }

.button, button, .btn {
  background-image: linear-gradient(135deg, var(--accent), #4e8cff);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  outline: none;
  margin-bottom: 8px;
}
.button:hover, button:hover, .btn:hover {
  filter: brightness(1.07);
}
.button:active, button:active, .btn:active {
  filter: brightness(0.96);
  box-shadow: 0 1px 4px rgba(0,0,0,0.28);
}

h1, h2, h3, h4 {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  background: #232a36;
  color: var(--text-main);
  margin-bottom: 12px;
    box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  background: #232f45;
}

.tab-navigation {
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
    position: fixed;
    bottom: 0;
  left: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 101;
}
.tab-button {
    background: none;
    border: none;
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0 2px 0;
  color: var(--text-muted);
  font-size: 13px;
    font-weight: 500;
    cursor: pointer;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  margin: 0 2px;
}
.tab-button i { font-size: 20px; margin-bottom: 2px; line-height: 1; }
.tab-button i.ph-bold { font-weight: 700; }
.tab-button.active, .tab-button:focus {
  color: #ffffff;
  background: rgba(127,0,255,0.12);
}
/* Контраст для неактивных иконок */
.tab-button { color: rgba(255,255,255,0.76); }
.tab-button i { color: currentColor; }
.tab-icon { display:none; }

.daily-bonus-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.daily-bonus-emoji {
  font-size: 2.2em;
  margin-right: 10px;
}
.daily-bonus-action {
  font-size: 1.7em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--accent);
  margin-left: 10px;
  transition: color 0.18s;
}
.daily-bonus-action:active {
  color: var(--accent-hover);
}
.daily-bonus-received {
  color: var(--text-muted);
    font-size: 1em;
  margin-left: 10px;
  font-weight: 500;
}

/* --- Новый профиль --- */
.profile-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 32px;
  margin-bottom: 8px;
}
.admin-label {
  background: linear-gradient(90deg, #7b61ff 0%, #4e8cff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  padding: 4px 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px #4e8cff33;
  letter-spacing: 1px;
  margin-left: 0;
  margin-top: 4px;
  transition: background 0.2s;
  user-select: none;
}
.admin-label:hover {
  background: linear-gradient(90deg, #4e8cff 0%, #7b61ff 100%);
}

.profile-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}
/* Страница достижений */
.achievements-stats-summary {
    display: flex;
    justify-content: space-around;
    margin: 16px 0 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.achievements-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666, #666);
    transition: all 0.3s ease;
}

.achievement-card.completed::before {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.achievement-card.claimable::before {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    animation: pulse-gradient 2s infinite;
}

@keyframes pulse-gradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.achievement-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.achievement-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.achievement-card-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.achievement-card-info {
    flex: 1;
}

.achievement-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.achievement-card-reward {
    font-size: 14px;
    color: #4caf50;
    font-weight: 600;
}

.achievement-card-progress {
    margin: 16px 0;
}

.achievement-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.achievement-progress-value {
    color: #fff;
    font-weight: 600;
}

.achievement-progress-percent {
    color: #aaa;
}

.achievement-card-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.achievement-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.achievement-card.completed .achievement-card-progress-fill {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.achievement-card.claimable .achievement-card-progress-fill {
    background: linear-gradient(90deg, #ffc107, #ffeb3b);
}

.achievement-card-action {
    text-align: center;
}

.achievement-claim-button {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.achievement-claim-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.achievement-claimed-badge {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.loading-spinner {
    text-align: center;
    color: #aaa;
    padding: 40px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .achievements-container {
        grid-template-columns: 1fr;
    }
    
    .achievements-stats-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

.profile-avatar-wrapper {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #232a36;
  box-shadow: 0 2px 12px #0005;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  overflow: hidden;
}
.profile-avatar {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  object-fit: cover;
  background: #232a36;
  border: 2.5px solid #4e8cff;
}
.profile-nickname {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  text-align: center;
}
.profile-balance-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}
.profile-balance {
  font-size: 2.2em;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.profile-balance-currency {
  font-size: 1.1em;
  color: #4e8cff;
  font-weight: 700;
}
.profile-progress-bar-container {
  width: 100%;
  max-width: 320px;
  height: 16px;
  background: #232a36;
  border-radius: 8px;
  margin-bottom: 6px;
  box-shadow: 0 0 8px #4e8cff33 inset;
  overflow: hidden;
}
.profile-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,#4e8cff,#7b61ff);
  border-radius: 8px;
  width: 0%;
  transition: width 0.5s;
}
.profile-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}
.profile-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 18px 0 0 0;
}
.profile-action-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #232a36;
  border: 2.5px solid #4e8cff;
  color: #fff;
  font-size: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #4e8cff22;
  cursor: pointer;
  transition: background 0.18s, border 0.18s, color 0.18s;
  outline: none;
  padding: 0;
}
.profile-action-btn:hover {
  background: #2d3340;
  border-color: #7b61ff;
  color: #7b61ff;
}
.profile-action-icon {
  display: block;
  font-size: 1.3em;
  line-height: 1;
}
@media (max-width: 600px) {
  .profile-avatar-wrapper {
    width: 68px;
    height: 68px;
  }
  
  .achievements-icon-btn {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
  
  .achievements-icon {
    font-size: 20px;
  }
  
  .achievements-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
  }
  .profile-action-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2em;
  }
  .profile-balance {
    font-size: 1.3em;
  }
}

@media (max-width: 600px) {
  .app-container, .main-content, .card, .tab-content, .profile-section {
    max-width: 100vw;
    width: 100%;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
  }
  .tab-navigation, header {
    max-width: 100vw;
    width: 100%;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
  }
  .tab-icon { width: 20px; height: 20px; }
  .tab-button span { font-size: 10px; }
  .card { padding: 12px 6px 10px 6px; }
}

.card .card {
  border: none;
  box-shadow: none;
  background: transparent;
}

#admin-panel {
  max-height: 60vh;
  overflow-y: auto;
}

#tasks, #games, #user-profile {
  max-height: none;
  overflow-y: visible;
}

::-webkit-scrollbar { width: 7px; background: #232a36; }
::-webkit-scrollbar-thumb { background: #2e3440; border-radius: 6px; } 

.notif-bell {
  font-size: 22px;
  position: relative;
  cursor: pointer;
  margin-left: 4px; /* левее, чтобы не вылазило за экран */
  margin-right: 10px; /* чуть внутрь от правого края */
}
.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
  display: none;
  z-index: 2;
  border: 2px solid rgba(15,17,22,.85);
  box-shadow: 0 0 0 3px rgba(255,59,48,0.25);
}

.swal2-container {
  z-index: 9999 !important;
} 

/* --- SweetAlert2 кастомизация (компактнее) --- */
.swal2-popup {
  max-width: 520px !important;
  width: calc(100% - 24px) !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: #151826 !important;
  color: #e6eaff !important;
}
.swal2-html-container {
  text-align: left !important;
  max-height: 60vh !important;
  overflow-y: auto !important;
  color: #bfcfff !important;
}
.swal2-input, .swal2-select {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #0f1320 !important;
  color: #fff !important;
  border: 1px solid #2a3350 !important;
}
.chip { background:#0f1320; color:#e6eaff; border:1px solid #2a3350; border-radius:10px; padding:6px 10px; cursor:pointer; }
.chip.active { background:#1a2140; border-color:#4e8cff; }
.chip-geo.active { background:#1a2140; border-color:#7f00ff; }
.swal2-actions { flex-wrap: wrap !important; gap: 8px !important; }
.swal2-cancel { margin-left: 0 !important; }
.swal2-title {
  color: #fff !important;
  font-size: 1.18em !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}
.swal2-html-container {
  color: #bfcfff !important;
  font-size: 1em !important;
  margin-bottom: 12px !important;
}
.swal2-icon.swal2-info {
  border-color: #7f00ff !important;
  color: #7f00ff !important;
  font-size: 2em !important;
  margin-bottom: 6px !important;
}
.swal2-confirm {
  background: #7f00ff !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  padding: 8px 28px !important;
  box-shadow: 0 2px 10px #7f00ff44 !important;
  border: none !important;
  transition: background 0.2s;
}
.swal2-confirm:hover, .swal2-confirm:focus {
  background: #4e8cff !important;
  color: #fff !important;
}
.swal2-actions {
  margin-top: 12px !important;
}

/* --- Главные вкладки (earn-main-tabs) --- */
.earn-main-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.earn-main-tab-btn {
  background: rgba(127,0,255,0.12);
  color: #fff;
  border: 2px solid rgba(127,0,255,0.45);
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.earn-main-tab-btn.active {
  background: linear-gradient(135deg,#7f00ff,#4e8cff);
  color: #fff;
  border-color: transparent;
}

/* --- Сабвкладки (subs-subtabs) --- */
.subs-subtabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: center;
}
.subs-subtab-btn {
  background: rgba(35,46,60,0.85);
  color: #fff;
  border: 2px solid #4e8cff66;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 500;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.subs-subtab-btn.active {
  background: linear-gradient(135deg,#7f00ff,#4e8cff);
  color: #fff;
  border-color: transparent;
}

/* --- Карточки заданий (подписки и отчёты) --- */
.subs-list, .report-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.empty-tasks { color:#bfcfff; opacity:.9; padding:10px 6px; }
.subs-task-item, .report-task-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: box-shadow 0.2s, background 0.2s;
}
.subs-task-item:hover, .report-task-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.subs-task-item .actions, .report-task-item .actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.subs-task-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4e8cff33;
  margin-right: 10px;
}
.subs-task-item strong, .report-task-item strong {
  font-size: 1.15em;
  font-weight: 600;
  color: #fff;
}
.subs-task-item.subs-task-unavailable {
  opacity: 0.7;
  background: #232e3c;
}
.subs-unavail-reason small {
  color: #ff4a4a;
  font-size: 0.98em;
  font-weight: 500;
}

/* --- Кнопки внутри карточек --- */
.subs-task-item .actions button, .report-task-item .actions button {
  background: linear-gradient(135deg,#6ca8ff,#8c4bff);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.subs-task-item .actions button:hover, .report-task-item .actions button:hover {
  filter: brightness(1.07);
}

/* --- Отдельные стили для секции "Задания с отчётом" --- */
.report-section h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.08em;
  font-weight: 600;
}

/* --- Общие --- */
#earn-tab-sponsors, #earn-tab-system {
  margin-top: 10px;
} 

/* CTA‑кнопки Перейти/Проверить крупнее на мобильных */
@media (max-width: 420px) {
  .subs-task-item .actions button, .report-task-item .actions button {
    padding: 10px 20px;
    font-size: 1.02em;
    border-radius: 10px;
  }
}

/* --- Анимация точек загрузки --- */
.pageload-dots {
  margin-top: 8px;
  margin-bottom: 0;
}
.pageload-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7f00ff;
  opacity: 0.5;
  animation: pageload-bounce 1.2s infinite;
}
.pageload-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.pageload-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pageload-bounce {
  0%, 80%, 100% { opacity: 0.5; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.35); }
} 

/* --- Кастомный экран загрузки: фон-картинка на весь экран --- */
#pageload-screen {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #181828 url('/images/pageload.png') center center no-repeat;
  background-size: cover;
}
#pageload-screen img {
  width: 140px;
  height: 140px;
  max-width: 40vw;
  max-height: 40vw;
  object-fit: contain;
  margin-bottom: 38px;
  box-shadow: 0 4px 32px #0008;
  border-radius: 18px;
  background: rgba(24,24,40,0.7);
  padding: 18px;
}
#pageload-screen .pageload-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
} 

/* --- Проекты по заработку --- */
.promo-order-card {
  background: #181828;
  border-radius: 16px;
  padding: 22px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.promo-order-card-plus {
  font-size: 2.8em;
  color: #7f00ff;
}
.promo-order-card-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.13em;
  margin-top: 2px;
}

/* Ссылка купить место справа от заголовка */
.buy-slot-link {
  margin-left: 6px;
  font-size: 0.9em;
  font-weight: 600;
  color: #bcd1ff;
  text-decoration: none;
}
.buy-slot-link:hover { text-decoration: underline; }
.buy-sep { opacity: .6; margin-left: 6px; }
.earn-project-card {
  display: flex;
  align-items: center;
  background: #191929;
  border-radius: 14px;
  box-shadow: 0 2px 8px #0001;
  padding: 16px;
  margin-bottom: 16px;
  color: #fff;
}
.earn-project-icon {
  width: 56px;
  height: 56px;
  margin-right: 18px;
  object-fit: contain;
  border-radius: 10px;
}
.earn-project-info {
  flex: 1;
}
.earn-project-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.earn-project-desc {
  font-size: 15px;
  color: #bfcfff;
  margin-bottom: 10px;
}
.earn-project-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #2481cc;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.earn-project-btn:hover {
  background: #7f00ff;
}

/* Стили для кнопок выбора пола */
.swal2-confirm-male {
  background: #007bff !important;
  color: #fff !important;
}

.swal2-confirm-male:hover {
  background: #0056b3 !important;
  color: #fff !important;
}

.swal2-cancel-female {
  background: #e83e8c !important;
  color: #fff !important;
}

.swal2-cancel-female:hover {
  background: #d63384 !important;
  color: #fff !important;
} 

/* form helpers */
.card { background: var(--card-bg); border:1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-form .row { display:block; margin:10px 0; }
.grid-form .row.two-col { display:flex; gap:10px; }
.input { width:100%; padding:10px 12px; background:#0f1320; color:#fff; border:1px solid #2a3350; border-radius:10px; }

/* Task Section Styles */
.tasks-section {
    margin-bottom: 24px;
}
.tasks-section-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #3a3a3e;
}

.tasks-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-toggle-btn {
    background: #3a3a3e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 8px; /* Выравнивание по заголовку */
}

.task-instructions {
    background: #232e3c;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.4;
}

/* New Task Card Styles */
.subs-list, #report-tasks-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card-item {
    background: #1a1d2e;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #2a3350;
}

.task-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #232e3c;
    box-shadow: 0 2px 8px #0002;
}

.task-card-icon {
    font-size: 24px;
}

.task-card-details {
    display: flex;
    flex-direction: column;
}

.task-card-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #fff;
}

.task-card-reward {
    font-size: 0.8em;
    color: #bbb;
}

.task-card-actions {
    display: flex;
    gap: 8px;
}

.task-action-btn {
    background: #3a3a3e;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.task-action-btn:hover {
    background-color: #4f4f5a;
}

.game-card-new-button {
    background: #7f00ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 22px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    min-width: 40px;
    min-height: 40px;
}
.game-card-new-button:hover {
    background: #922cff;
}

.game-card-new {
    background:#191929;
    padding:24px 18px 18px 18px;
    border-radius:18px;
    box-shadow:0 4px 24px #0002;
    margin-bottom:24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}
.game-card-new-icon {
    font-size:38px;
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.game-card-new-info {
    display:flex;
    flex-direction:column;
}
.game-card-new-title {
    font-size:21px;
    font-weight:600;
    letter-spacing:1px;
}
/* Compact offerwall cards to match game cards visual weight */
.offerwall-list .game-card-new {
    padding: 16px 14px;
    gap: 14px;
}
.offerwall-list .game-card-new-title {
    font-size: 18px;
}
.offerwall-list .game-card-new-icon {
    font-size: 32px;
    width: 32px; height: 32px;
}
.offerwall-list .game-card-new-button {
    min-width: 40px;
    min-height: 40px;
    font-size: 18px;
}
.offerwall-list .game-card-new-button i { font-size: 22px; }

/* TADS zone styles */
.tads-slot { 
    min-height: 300px; 
    max-width: 100%;
    width: 100%;
    border: 1px dashed rgba(255,255,255,0.25); 
    border-radius: 10px; 
    padding: 16px; 
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.tads-slot * {
    max-width: 100% !important;
    box-sizing: border-box;
}
/* end TADS zone */