/* Push notifications */
.push-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 20;
}

.push-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: pushSlide 0.4s ease;
}

.push-card--tap_cap { border-color: rgba(251, 191, 36, 0.5); }
.push-card--level_pending { border-color: rgba(14, 165, 233, 0.5); }
.push-card--level_confirmed { border-color: rgba(34, 197, 94, 0.6); }
.push-card--coach_level_confirm { border-color: rgba(168, 85, 247, 0.6); }

@keyframes pushSlide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.push-icon { font-size: 22px; flex-shrink: 0; }
.push-title { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.push-text { font-size: 12px; color: var(--muted); line-height: 1.35; }
.push-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Stock chart */
.results-chart-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .results-chart-panel { grid-template-columns: 1fr; }
}

.dist-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.dist-chip {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dist-chip.active {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.dist-chip-time { font-size: 10px; color: var(--muted); font-weight: 600; }

.best-mini-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.best-mini-row.active { color: var(--green); font-weight: 700; }

.stock-chart-wrap {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 14px;
  padding: 12px;
}

.stock-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stock-chart-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.stock-chart-last {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.stock-chart-delta { font-size: 12px; font-weight: 700; }
.stock-chart-delta--up { color: #4ade80; }
.stock-chart-delta--down { color: #f87171; }

.stock-chart-svg { width: 100%; height: auto; display: block; }
.stock-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.stock-axis-label { font-size: 8px; fill: rgba(255, 255, 255, 0.35); }
.stock-chart-hint { font-size: 10px; color: var(--muted); margin-top: 6px; text-align: center; }
.stock-chart-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

/* Coach level cards */
.level-coach-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  margin-bottom: 8px;
}

.level-coach-icon { font-size: 28px; }
.level-coach-name { font-weight: 700; font-size: 13px; }
.level-coach-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.level-coach-warn { font-size: 10px; color: #c4b5fd; margin-top: 4px; }
.level-coach-actions { display: flex; gap: 4px; margin-left: auto; }

/* Tap cooldown */
.pool-cooldown { opacity: 0.7; pointer-events: none; }
.tap-cooldown-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
}

.ph-cap-hint {
  font-size: 9px;
  color: #fbbf24;
  margin-top: 2px;
}

.ph-seg-bar--capped .ph-seg.on { background: linear-gradient(180deg, #fbbf24, #d97706); }

/* Coach character legendary */
.coach-character { position: relative; line-height: 0; }
.coach-hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 50px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.coach-stand-svg {
  width: clamp(130px, 36vw, 170px);
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(168, 85, 247, 0.4));
}

.coach-legend-aura {
  animation: coachAura 2.5s ease-in-out infinite;
}

@keyframes coachAura {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.5)); }
}

.cosmetic-opt.legendary {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(251, 191, 36, 0.08));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* Sports ranks (разряды) */
.sports-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.sports-rank--sm { font-size: 10px; padding: 3px 6px; min-width: 28px; }
.sports-rank--md { font-size: 12px; padding: 4px 8px; min-width: 36px; }
.sports-rank--lg { font-size: 14px; padding: 5px 10px; min-width: 44px; }

.rank-ms {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.6);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(180, 83, 9, 0.2));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
}

.rank-kms {
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(88, 28, 135, 0.2));
}

.rank-1 {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}

.rank-2 {
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.12);
}

.rank-3 {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
}

.rank-br {
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}

.rank-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
}
