/* ═══════════════════════════════════════
   СТРАНИЦА БОНУСОВ — redesign
═══════════════════════════════════════ */

@keyframes bon-pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.7; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes bon-tick {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes bon-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes bon-streak-pop {
  from { transform: scale(0.75) rotate(-6deg); opacity: 0; }
  to   { transform: scale(1)    rotate(0deg);  opacity: 1; }
}

/* ── Страница ── */
.bon-page {
  max-width: 1100px; margin: 0 auto;
  padding: 32px 32px 72px;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%;
}

/* ── Заголовок секции ── */
.bon-section-hdr {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--text-dim); margin-top: 8px;
}
.bon-section-hdr-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(var(--accent-rgb),0.12);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 14px;
}
.bon-section-hdr-text { display: flex; flex-direction: column; gap: 2px; }
.bon-section-hdr-title { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; }
.bon-section-hdr-sub   { font-size: 11px; color: var(--text-mute); }

/* ── Сетка 2 колонки ── */
.bon-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

/* ══════════════════════════════════════════════════════════════
   БОЛЬШИЕ БАННЕРЫ
══════════════════════════════════════════════════════════════ */
.bon-banner {
  position: relative; border-radius: 18px; overflow: hidden;
  padding: 28px 28px 24px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.bon-banner:hover { box-shadow: 0 0 40px rgba(0,0,0,0.35); }
.bon-banner--link { display: block; text-decoration: none; cursor: pointer; }
.bon-banner--link:hover .bon-banner-btn--gold { opacity: 0.88; transform: translateY(-1px); }

.bon-banner--gold {
  background: linear-gradient(135deg, #1a1000 0%, #2e1e00 40%, #3d2800 70%, #4a3200 100%);
  border: 1px solid rgba(232,200,74,0.2);
}
.bon-banner--gold:hover { border-color: rgba(232,200,74,0.4); box-shadow: 0 0 40px rgba(232,200,74,0.07); }

.bon-banner--green {
  background: linear-gradient(135deg, #001a0a 0%, #012e12 40%, #003d18 70%, #004a1e 100%);
  border: 1px solid rgba(74,212,118,0.15);
}
.bon-banner--green:hover { border-color: rgba(74,212,118,0.35); box-shadow: 0 0 40px rgba(74,212,118,0.06); }

/* Шум-текстура */
.bon-banner-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Glow-пятно */
.bon-banner-glow {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 1;
}
.bon-banner--gold .bon-banner-glow {
  right: -20px; top: -20px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,200,74,0.12) 0%, transparent 70%);
}
.bon-banner--green .bon-banner-glow {
  right: -30px; top: -30px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(74,212,118,0.08) 0%, transparent 70%);
}

/* Декор справа — приз или цепочка */
.bon-banner-deco {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  z-index: 2; pointer-events: none; opacity: 0.65;
  animation: bon-float 3s ease-in-out infinite;
}
.bon-banner--gold .bon-banner-deco {
  width: 110px; height: 70px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(232,200,74,0.06) 0px, rgba(232,200,74,0.06) 2px, transparent 2px, transparent 10px);
  border: 1px dashed rgba(232,200,74,0.22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.bon-banner-deco-gun  { font-size: 22px; }
.bon-banner-deco-lbl  { font-size: 9px; color: rgba(232,200,74,0.5); letter-spacing: 0.5px; font-family: monospace; }

.bon-banner-content { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 0; }

/* Бейдж */
.bon-banner-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  border-radius: 20px; padding: 3px 10px; margin-bottom: 12px;
  width: fit-content;
}
.bon-banner--gold  .bon-banner-badge {
  background: rgba(232,200,74,0.18); border: 1px solid rgba(232,200,74,0.35); color: #e8c84a;
}
.bon-banner--green .bon-banner-badge {
  background: rgba(74,212,118,0.15); border: 1px solid rgba(74,212,118,0.3); color: #4ad476;
}
.bon-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e8c84a; box-shadow: 0 0 6px #e8c84a;
  animation: bon-tick 1s ease-in-out infinite;
}

.bon-banner-title    { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.3px; margin-bottom: 4px; }
.bon-banner-subtitle { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }

/* Статистика розыгрыша */
.bon-raffle-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(0,0,0,0.3); border-radius: 10px;
  border: 1px solid rgba(232,200,74,0.1);
  margin-bottom: 16px; overflow: hidden;
}
.bon-raffle-stat {
  flex: 1; text-align: center; padding: 10px 8px;
  border-right: 1px solid rgba(232,200,74,0.1);
}
.bon-raffle-stat:last-child { border-right: none; }
.bon-raffle-stat-lbl { font-size: 9px; color: rgba(255,255,255,0.35); margin-bottom: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.bon-raffle-stat-val { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bon-raffle-stat--gold .bon-raffle-stat-val { color: #e8c84a; }
.bon-raffle-stat--white .bon-raffle-stat-val { color: #fff; }
.bon-raffle-stat--timer .bon-raffle-stat-val { color: #fff; }

/* Кнопки баннера */
.bon-banner-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px; border: none;
  font-size: 13px; font-weight: 800; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.25s; white-space: nowrap; text-decoration: none;
  font-family: var(--font); width: fit-content;
}
.bon-banner-btn--gold {
  background: linear-gradient(135deg, #e8c84a, #f5a800); color: #000;
}
.bon-banner-btn--gold:hover  { opacity: 0.88; transform: translateY(-1px); }
.bon-banner-btn--gold.entered {
  background: rgba(74,212,118,0.2); color: #4ad476;
  border: 1px solid rgba(74,212,118,0.4);
}
.bon-banner-btn--green {
  background: rgba(74,212,118,0.15); color: #4ad476;
  border: 1px solid rgba(74,212,118,0.35);
}
.bon-banner-btn--green:hover { background: rgba(74,212,118,0.25); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   БАННЕР ДЕПОЗИТА
══════════════════════════════════════════════════════════════ */
.bon-deposit {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #0a0624 0%, #12082e 50%, #0d0520 100%);
  border: 1px solid rgba(124,111,255,0.2);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: border-color 0.3s, box-shadow 0.3s; cursor: pointer;
}
.bon-deposit:hover { border-color: rgba(124,111,255,0.45); box-shadow: 0 0 40px rgba(124,111,255,0.07); }
.bon-deposit-glow {
  position: absolute; right: -20px; top: -20px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,111,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.bon-deposit-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124,111,255,0.2), rgba(79,143,255,0.12));
  border: 1px solid rgba(124,111,255,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  position: relative; z-index: 1;
}
.bon-deposit-body { flex: 1; position: relative; z-index: 1; }
.bon-deposit-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1px;
  background: rgba(124,111,255,0.2); border: 1px solid rgba(124,111,255,0.35);
  color: #a78bff; border-radius: 20px; padding: 2px 9px; margin-bottom: 5px;
}
.bon-deposit-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.bon-deposit-sub   { font-size: 12px; color: rgba(255,255,255,0.4); }
.bon-deposit-cta {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c6fff, #4f8fff);
  color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(124,111,255,0.3);
  transition: box-shadow 0.2s; white-space: nowrap;
  position: relative; z-index: 1;
  text-decoration: none;
}
.bon-deposit:hover .bon-deposit-cta { box-shadow: 0 6px 24px rgba(124,111,255,0.5); }

/* Blue theme deposit tweaks */
html:not([data-theme="purple"]) .bon-deposit {
  background: linear-gradient(135deg, #060924 0%, #0c1040 50%, #060820 100%);
  border-color: rgba(80,100,255,0.2);
}
html:not([data-theme="purple"]) .bon-deposit:hover { border-color: rgba(100,120,255,0.45); }
html:not([data-theme="purple"]) .bon-deposit-glow {
  background: radial-gradient(circle, rgba(80,100,255,0.1) 0%, transparent 70%);
}
html:not([data-theme="purple"]) .bon-deposit-icon {
  background: linear-gradient(135deg, rgba(80,100,255,0.2), rgba(50,80,200,0.12));
  border-color: rgba(80,100,255,0.3);
}
html:not([data-theme="purple"]) .bon-deposit-badge {
  background: rgba(80,100,255,0.2); border-color: rgba(80,100,255,0.35); color: #8fa0ff;
}

/* ══════════════════════════════════════════════════════════════
   ЕЖЕДНЕВНЫЙ СТРИК
══════════════════════════════════════════════════════════════ */
.bon-streak {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px;
  position: relative; overflow: hidden;
}
.bon-streak::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.4), transparent);
}
.bon-streak-hdr {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.bon-streak-hdr-left { display: flex; align-items: center; gap: 10px; }
.bon-streak-emoji-icon {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(232,200,74,0.12); border: 1px solid rgba(232,200,74,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.bon-streak-hdr-title { font-size: 13px; font-weight: 700; color: var(--text); }
.bon-streak-hdr-sub   { font-size: 11px; color: var(--text-mute); }
.bon-streak-counter {
  display: flex; align-items: center; gap: 5px;
  background: rgba(232,200,74,0.1); border: 1px solid rgba(232,200,74,0.2);
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px; font-weight: 800; color: #e8c84a;
}

.bon-streak-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px;
}
.bon-streak-day {
  border-radius: 10px; padding: 10px 4px 8px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative; transition: border-color 0.2s;
}
.bon-streak-day--claimed {
  background: rgba(74,212,118,0.08); border-color: rgba(74,212,118,0.15);
}
.bon-streak-day--today {
  background: rgba(232,200,74,0.1); border-color: rgba(232,200,74,0.6);
  animation: bon-streak-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.bon-streak-day--today::after {
  content: ''; position: absolute; inset: -1px; border-radius: 10px;
  border: 1.5px solid rgba(232,200,74,0.4);
  animation: bon-pulse-ring 2s ease-out infinite;
  pointer-events: none;
}
.bon-streak-day--locked { opacity: 0.5; }

.bon-streak-day-name {
  font-size: 9px; font-weight: 600; letter-spacing: 0.3px;
}
.bon-streak-day--claimed .bon-streak-day-name { color: #4ad476; }
.bon-streak-day--today   .bon-streak-day-name { color: #e8c84a; }
.bon-streak-day--locked  .bon-streak-day-name { color: var(--text-mute); }

.bon-streak-day-ico  { font-size: 16px; line-height: 1; }
.bon-streak-day-reward {
  font-size: 10px; font-weight: 800;
}
.bon-streak-day--claimed .bon-streak-day-reward { color: #4ad476; }
.bon-streak-day--today   .bon-streak-day-reward { color: #e8c84a; }
.bon-streak-day--locked  .bon-streak-day-reward { color: var(--text-faint); }

.bon-streak-claim {
  width: 100%; padding: 10px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, rgba(232,200,74,0.2), rgba(232,200,74,0.1));
  border: 1px solid rgba(232,200,74,0.35);
  color: #e8c84a; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: background 0.2s; font-family: var(--font);
  letter-spacing: 0.3px;
}
.bon-streak-claim:hover { background: linear-gradient(135deg, rgba(232,200,74,0.3), rgba(232,200,74,0.18)); }
.bon-streak-claim:disabled {
  opacity: 0.4; cursor: default;
}
.bon-streak-claim.claimed {
  background: rgba(74,212,118,0.12); border-color: rgba(74,212,118,0.3);
  color: #4ad476; cursor: default;
}

/* ══════════════════════════════════════════════════════════════
   ПРОМОКОД
══════════════════════════════════════════════════════════════ */
.bon-promo-card {
  background: var(--bg-card); border: 1px solid rgba(var(--accent-rgb),0.12);
  border-radius: 16px; padding: 18px 20px 28px;
  position: relative; overflow: hidden;
}
.bon-promo-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 50%, rgba(var(--accent-rgb),0.04) 0%, transparent 60%);
}
.bon-promo-inner {
  display: flex; align-items: flex-start; gap: 14px; position: relative;
}
.bon-promo-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.bon-promo-body { flex: 1; }
.bon-promo-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bon-promo-sub   { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; line-height: 1.5; }
.bon-promo-row   { display: flex; gap: 8px; margin-bottom: 8px; }
.bon-promo-in {
  flex: 1; background: rgba(var(--accent-rgb),0.05);
  border: 1px solid rgba(var(--accent-rgb),0.18); border-radius: 10px;
  padding: 0 14px; height: 38px; color: var(--text); font-size: 13px;
  outline: none; transition: border-color 0.2s; font-family: var(--font);
}
.bon-promo-in:focus { border-color: rgba(var(--accent-rgb),0.45); }
.bon-promo-in::placeholder { color: var(--text-faint); }
.bon-promo-in.error  { border-color: rgba(212,99,74,0.5); }
.bon-promo-in.ok     { border-color: rgba(74,212,118,0.5); }
.bon-promo-btn {
  padding: 0 16px; height: 38px; border-radius: 10px; border: none;
  background: var(--gradient-accent); color: #000;
  font-size: 12px; font-weight: 800; cursor: pointer;
  transition: opacity 0.2s; white-space: nowrap; font-family: var(--font);
}
.bon-promo-btn:hover { opacity: 0.85; }
.bon-promo-status {
  font-size: 12px; display: flex; align-items: center; gap: 5px; min-height: 0; margin-bottom: 0;
}
.bon-promo-status:not(:empty) { margin-top: 6px; }
.bon-promo-status.ok    { color: #4ad476; }
.bon-promo-status.error { color: #d4634a; }

.bon-promo-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.bon-promo-soc {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 8px; text-decoration: none;
  font-size: 11px; font-weight: 700; transition: opacity 0.2s;
}
.bon-promo-soc:hover { opacity: 0.75; }
.bon-promo-soc--tg {
  background: rgba(42,171,238,0.08); border: 1px solid rgba(42,171,238,0.2); color: #2aabee;
}
.bon-promo-soc--vk {
  background: rgba(76,110,245,0.08); border: 1px solid rgba(76,110,245,0.2); color: #4c6ef5;
}

/* ══════════════════════════════════════════════════════════════
   ЗАДАНИЯ
══════════════════════════════════════════════════════════════ */
.bon-tasks {
  display: flex; flex-direction: column; gap: 8px;
}
.bon-task {
  background: var(--bg-card); border: 1px solid rgba(var(--accent-rgb),0.12);
  border-radius: 12px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.bon-task:hover:not(.bon-task--done) {
  border-color: rgba(var(--accent-rgb),0.25);
  background: rgba(var(--accent-rgb),0.02);
}
.bon-task--done { opacity: 0.65; }

.bon-task-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bon-task-info { flex: 1; min-width: 0; }
.bon-task-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.bon-task-sub   { font-size: 11px; color: var(--text-faint); line-height: 1.4; }

.bon-task-reward {
  background: rgba(var(--accent-rgb),0.08); border: 1px solid rgba(var(--accent-rgb),0.15);
  border-radius: 8px; padding: 4px 10px;
  font-size: 14px; font-weight: 800; color: var(--accent);
  white-space: nowrap; flex-shrink: 0;
}
.bon-done-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(74,212,118,0.12); color: #4ad476;
  border: 1px solid rgba(74,212,118,0.2);
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

.bon-task-btn {
  padding: 7px 14px; border-radius: 9px;
  border: 1px solid rgba(var(--accent-rgb),0.2);
  background: rgba(var(--accent-rgb),0.07); color: var(--accent);
  font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  transition: all 0.2s; white-space: nowrap; font-family: var(--font);
}
.bon-task-btn:hover {
  background: rgba(var(--accent-rgb),0.15);
  border-color: rgba(var(--accent-rgb),0.4);
}

/* Блок с кодом ника */
.bon-code-display {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.35); border: 1px dashed rgba(74,212,118,0.4);
  border-radius: 8px; padding: 7px 12px; margin-top: 8px; cursor: pointer;
}
.bon-code-val {
  flex: 1; font-size: 14px; font-weight: 900;
  letter-spacing: 3px; color: #4ad476; font-family: monospace;
}
.bon-code-copy {
  background: rgba(74,212,118,0.12); border: 1px solid rgba(74,212,118,0.25);
  color: #4ad476; font-size: 10px; font-weight: 700; border-radius: 5px;
  padding: 4px 10px; cursor: pointer; transition: background 0.2s;
  white-space: nowrap; font-family: var(--font);
}
.bon-code-copy:hover { background: rgba(74,212,118,0.22); }

/* ── Адаптив ── */
@media (max-width: 760px) {
  .bon-page    { padding: 16px 14px 48px; gap: 12px; }
  .bon-grid-2  { grid-template-columns: 1fr; }
  .bon-banner  { min-height: 180px; }
  .bon-banner-deco { display: none; }
  .bon-deposit { flex-wrap: wrap; }
  .bon-deposit-cta { width: 100%; justify-content: center; }
  .bon-streak-grid { gap: 4px; }
  .bon-streak-day  { padding: 7px 2px 6px; }
}
