:root, html, body {
  --bg: #0a1929 !important;
  --bg-deep: #06101c !important;
  --panel: #102234 !important;
  --panel-2: #14283c !important;
  --separator: rgba(255,255,255,0.08) !important;
  --text: #f5f7fb !important;
  --hint: #7e8ea3 !important;
  --green: #2ee06f !important;
  --green-soft: rgba(46, 224, 111, 0.18) !important;
  --green-deep: #20a553 !important;
  --red: #ff4757 !important;
  --red-soft: rgba(255, 71, 87, 0.18) !important;
  --red-deep: #c23341 !important;
  --orange: #ff7a1a !important;
  --orange-soft: rgba(255, 122, 26, 0.18) !important;
  --blue: #5b9cff !important;
  --purple: #a06bff !important;

  --grad-hero: linear-gradient(135deg, #5b9cff 0%, #a06bff 50%, #ff6b9d 100%) !important;
  --grad-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%) !important;

  /* затираем все возможные переменные Telegram чтобы не зависеть от темы */
  --tg-theme-bg-color: #0a1929 !important;
  --tg-theme-secondary-bg-color: #102234 !important;
  --tg-theme-section-bg-color: #102234 !important;
  --tg-theme-text-color: #f5f7fb !important;
  --tg-theme-hint-color: #7e8ea3 !important;
  --tg-theme-link-color: #5b9cff !important;
  --tg-theme-button-color: #5b9cff !important;
  --tg-theme-button-text-color: #ffffff !important;
  --tg-theme-section-separator-color: rgba(255,255,255,0.08) !important;
  --tg-theme-header-bg-color: #06101c !important;
  --tg-theme-accent-text-color: #5b9cff !important;
  --tg-theme-subtitle-text-color: #7e8ea3 !important;
  --tg-theme-destructive-text-color: #ff4757 !important;

  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.4;
  overflow-x: hidden;
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  overscroll-behavior: none;
}

/* ========== Background orbs ========== */
.bg-orbs {
  position: fixed; inset: 0; pointer-events: none;
  z-index: -1; overflow: hidden;
  filter: blur(80px); opacity: 0.18;
}
.bg-orbs span {
  position: absolute; border-radius: 50%;
  width: 280px; height: 280px;
  animation: float 24s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) { background: radial-gradient(circle, var(--blue), transparent 70%); top: -80px; left: -60px; }
.bg-orbs span:nth-child(2) { background: radial-gradient(circle, var(--purple), transparent 70%); top: 40%; right: -100px; animation-delay: -8s; }
.bg-orbs span:nth-child(3) { background: radial-gradient(circle, var(--green), transparent 70%); bottom: 20%; left: -80px; animation-delay: -16s; }
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ========== Screens ========== */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  animation: fade 0.2s ease;
}
.screen.active { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ========== TRADE SCREEN ========== */
#screen-trade { padding-bottom: 0; }

.trade-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--separator);
}
.header-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}
.header-btn:active { background: var(--panel); }
.header-btn.wallet {
  background: var(--orange);
  color: white;
  box-shadow: 0 4px 14px rgba(255,122,26,0.4);
}
.header-btn.wallet:active { transform: scale(0.95); }

.header-balance {
  flex: 1;
  text-align: right;
  cursor: pointer;
  padding: 2px 8px;
}
.header-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  opacity: 0.85;
  /* компенсация ширины кнопки слева для визуального центрирования */
  padding-right: 36px;
}
.balance-amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--green);
  font-feature-settings: "tnum";
  text-shadow: 0 0 12px rgba(46,224,111,0.3);
  line-height: 1.1;
}
.balance-mode-row {
  display: flex; justify-content: flex-end; gap: 6px;
  font-size: 9px;
  margin-top: 2px;
  letter-spacing: 0.6px;
}
.balance-mode { color: var(--hint); font-weight: 600; }
.balance-type { color: var(--green); font-weight: 700; }

/* asset bar */
.asset-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  padding: 9px 14px;
  border-bottom: 1px solid var(--separator);
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.asset-bar:active { background: var(--panel-2); }
.asset-info { flex: 1; display: flex; align-items: center; gap: 12px; }
.asset-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.asset-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--hint);
}
.payout-pct {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.dropdown-btn {
  background: transparent;
  border: none;
  color: var(--hint);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.pro-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  background: var(--bg-deep);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--hint);
  letter-spacing: 0.5px;
}

.asset-dropdown {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--panel);
  z-index: 30;
  border-bottom: 1px solid var(--separator);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.asset-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--separator);
  font-size: 15px;
  font-weight: 600;
}
.asset-option:last-child { border-bottom: none; }
.asset-option:active { background: var(--panel-2); }
.asset-option .payout { color: var(--green); font-size: 13px; font-weight: 700; }
.asset-option.active { background: var(--panel-2); color: var(--green); }
.asset-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.asset-option.inactive .pair-name { opacity: 0.55; }
.asset-option .pair-name { flex: 1; }
.pair-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ee06f;
  box-shadow: 0 0 8px #2ee06f, 0 0 0 0 rgba(46, 224, 111, 0.7);
  animation: livePulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 8px #2ee06f, 0 0 0 0 rgba(46, 224, 111, 0.7); }
  70%  { box-shadow: 0 0 8px #2ee06f, 0 0 0 10px rgba(46, 224, 111, 0); }
  100% { box-shadow: 0 0 8px #2ee06f, 0 0 0 0 rgba(46, 224, 111, 0); }
}
.pair-schedule {
  font-size: 11px;
  color: var(--muted);
  background: rgba(91, 156, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* On-demand "Запросить сигнал" button */
.btn-request-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a3d, #ff4d6d 60%, #c042ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 77, 109, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-request-signal::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1.2s;
}
.btn-request-signal:hover::before { transform: translateX(100%); }
.btn-request-signal:active { transform: scale(0.98); box-shadow: 0 3px 12px rgba(255, 77, 109, 0.3); }
.btn-request-signal:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: linear-gradient(135deg, #5a6378, #3a4358);
  box-shadow: none;
}
.btn-request-signal.loading { opacity: 0.7; pointer-events: none; }
.btn-request-signal.admin {
  background: linear-gradient(135deg, #ffcc00, #ff7a00 50%, #ff4d6d);
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.55);
}
.btn-request-signal.admin .rq-counter {
  background: rgba(0, 0, 0, 0.35);
  font-size: 18px;
}
.btn-request-signal .rq-icon { font-size: 20px; }
.btn-request-signal .rq-counter {
  margin-left: auto;
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}

/* ===== Schedule banner в help-modal ===== */
.help-section.schedule-section {
  background: linear-gradient(135deg, rgba(46, 224, 111, 0.10), rgba(91, 156, 255, 0.10));
  border: 1px solid rgba(91, 156, 255, 0.25);
}
.schedule-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.schedule-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel-2);
  border: 1px solid var(--separator);
  border-radius: 8px;
  font-size: 12px;
}
.schedule-row.active {
  background: rgba(46, 224, 111, 0.12);
  border-color: rgba(46, 224, 111, 0.4);
  box-shadow: 0 0 12px rgba(46, 224, 111, 0.15);
}
.schedule-time {
  font-weight: 700;
  color: var(--text);
  min-width: 92px;
}
.schedule-pairs {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
}
.schedule-row.active .schedule-pairs { color: var(--text); }
.schedule-badge {
  font-size: 11px;
  font-weight: 700;
  color: #2ee06f;
  white-space: nowrap;
}
.schedule-row.otc-row .schedule-pairs { font-style: italic; }

.market-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 4px;
}
.market-badge.open { background: var(--green-soft); color: var(--green); }
.market-badge.closed { background: var(--orange-soft); color: var(--orange); }
.connection-tag {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--hint);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hint);
  transition: 0.3s;
}
.live-dot.online {
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
.live-dot.error { background: var(--red); }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46,224,111,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(46,224,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,224,111,0); }
}

/* ===== Signal stage (replaces chart) ===== */
.signal-stage {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #0e1f33 0%, #06101c 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-height: 280px;
}
.stage-state {
  text-align: center;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  animation: fadeIn 0.35s ease;
}
.stage-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.stage-sub {
  font-size: 13px;
  color: var(--hint);
  min-height: 18px;
}

/* --- Scanning radar --- */
.radar {
  width: 130px; height: 130px;
  position: relative;
}
.radar-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  animation: radar-pulse 2.4s infinite cubic-bezier(0.2, 0.7, 0.4, 1);
  opacity: 0;
}
.radar-ring:nth-child(2) { animation-delay: 0.8s; }
.radar-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar-pulse {
  0% { transform: scale(0.25); opacity: 0.85; }
  100% { transform: scale(1); opacity: 0; }
}
.radar-sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 80%, rgba(91,156,255,0.5) 95%, transparent 100%);
  animation: radar-spin 3s linear infinite;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  filter: drop-shadow(0 0 12px var(--blue));
  animation: radar-tick 1.6s infinite;
}
@keyframes radar-tick {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.scanning-pair {
  font-size: 11px;
  color: var(--hint);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}

.other-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
  padding: 0 12px;
  max-width: 100%;
}
.other-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  border: 1px solid transparent;
  user-select: none;
  -webkit-user-select: none;
}
.other-alert:active { transform: scale(0.96); }
.other-alert.signal {
  background: rgba(91, 156, 255, 0.18);
  color: var(--blue);
  border-color: rgba(91, 156, 255, 0.4);
  animation: alert-pulse 1.6s infinite;
}
.other-alert.warning {
  background: var(--orange-soft);
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.4);
}
.other-alert .dir.up { color: var(--green); }
.other-alert .dir.down { color: var(--red); }
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,156,255,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(91,156,255,0); }
}

/* --- Warning (приготовьтесь) --- */
.stage-warning {
  background: linear-gradient(135deg, rgba(255,122,26,0.18) 0%, rgba(255,122,26,0.05) 100%);
  border: 1px solid rgba(255,122,26,0.35);
  margin: 12px;
  border-radius: 22px;
  padding: 24px 18px;
  width: calc(100% - 24px);
  box-shadow: 0 8px 24px rgba(255,122,26,0.22);
}
.warning-icon {
  font-size: 60px;
  filter: drop-shadow(0 0 12px var(--orange));
  animation: hourglass-flip 2.4s infinite;
}
.warning-pair {
  background: rgba(255,255,255,0.10);
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.warning-direction {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  text-shadow: 0 0 14px rgba(255,122,26,0.45);
  letter-spacing: 1px;
}
.warning-strength-pill {
  background: rgba(255,122,26,0.25);
  color: var(--orange);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}
.stage-warning .stage-title { color: var(--orange); letter-spacing: 1.5px; }

/* --- Signal big card --- */
.stage-signal {
  background: linear-gradient(135deg, #0a4d6e 0%, #1561a3 50%, #1d7dd1 100%);
  margin: 12px;
  border-radius: 22px;
  padding: 22px 18px;
  width: calc(100% - 24px);
  box-shadow: 0 12px 36px rgba(29, 125, 209, 0.45);
  position: relative;
  overflow: hidden;
}
.stage-signal::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.stage-signal.put {
  background: linear-gradient(135deg, #6e0a1d 0%, #a3152e 50%, #d11d3a 100%);
  box-shadow: 0 12px 36px rgba(209, 29, 58, 0.45);
}
.signal-tag-pair {
  background: rgba(255,255,255,0.18);
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
}
.signal-arrow {
  color: #2ee06f;
  filter: drop-shadow(0 0 18px currentColor);
  animation: arrow-bounce 1.4s infinite cubic-bezier(0.5, 0, 0.5, 1);
  position: relative;
}
.stage-signal.put .signal-arrow { color: #ff4757; }
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.signal-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: relative;
}
.signal-strength-pill {
  background: rgba(0,0,0,0.25);
  color: white;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}
.signal-countdown {
  background: rgba(255,255,255,0.18);
  color: white;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

/* --- Awaiting --- */
.hourglass {
  font-size: 64px;
  animation: hourglass-flip 2s infinite;
}
@keyframes hourglass-flip {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
}
.awaiting-info {
  background: var(--panel);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.awaiting-countdown {
  font-size: 42px;
  font-weight: 900;
  font-feature-settings: "tnum";
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255,122,26,0.4);
  margin-top: 4px;
}

/* --- Result --- */
.stage-result {
  padding: 30px 20px;
}
.stage-result.win .result-icon { color: var(--green); }
.stage-result.loss .result-icon { color: var(--red); }
.result-icon {
  font-size: 96px;
  animation: result-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}
@keyframes result-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.result-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.stage-result.win .result-title { color: var(--green); text-shadow: 0 0 20px rgba(46,224,111,0.4); }
.stage-result.loss .result-title { color: var(--red); text-shadow: 0 0 20px rgba(255,71,87,0.4); }
.result-amount {
  font-size: 36px;
  font-weight: 800;
  font-feature-settings: "tnum";
}
.stage-result.win .result-amount { color: var(--green); }
.stage-result.loss .result-amount { color: var(--red); }
.result-trade-info {
  font-size: 13px;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* signal meta bar — информационная полоска внизу терминала */
.signal-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--separator);
  border-top: 1px solid var(--separator);
  margin-bottom: calc(env(safe-area-inset-bottom) + 60px);
}
.meta-cell {
  background: var(--bg-deep);
  padding: 10px 8px;
  text-align: center;
  min-height: 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.meta-label {
  font-size: 9px;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin-bottom: 4px;
}
.meta-value {
  font-size: 14px;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.meta-value.up { color: var(--green); }
.meta-value.down { color: var(--red); }
.meta-value.win { color: var(--green); }
.meta-value.loss { color: var(--red); }
.meta-value.pending { color: var(--orange); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  flex-shrink: 0;
}
.pulse::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ========== Other screens (account, history, stats, pairs) ========== */
.screen-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--separator);
  position: sticky; top: 0; z-index: 10;
}
.back-btn {
  background: transparent;
  border: none;
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.back-btn:active { background: var(--panel); }
.screen-header h2 { margin: 0; font-size: 17px; font-weight: 700; }

.screen-body { padding: 12px; }

/* ========== Cards (binarium-style: dense, less rounded) ========== */
.card {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 14px 14px;
  margin-bottom: 10px;
}
.card-title {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--hint);
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: "";
  width: 3px; height: 12px;
  background: var(--green);
  border-radius: 2px;
}
.card-sub { font-size: 12px; color: var(--hint); margin-top: 2px; }

/* ========== Account hero (binarium-style: dark with green accent) ========== */
.account-hero {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 18px 16px;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.account-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.account-mode-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.account-mode-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.link-btn {
  background: none; border: none;
  color: var(--blue);
  font-size: 13px;
  cursor: pointer;
}
.account-balance-label {
  font-size: 10px;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.account-balance {
  font-size: 38px;
  font-weight: 800;
  margin-top: 2px;
  font-feature-settings: "tnum";
  color: var(--green);
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(46,224,111,0.25);
}
.balance-sync-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--hint);
}
.account-pnl-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
}
.kpi-label { font-size: 9px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.kpi-value { font-size: 15px; font-weight: 700; margin-top: 2px; font-feature-settings: "tnum"; color: var(--text); }

/* ========== Access locked screen ========== */
.lock-screen {
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  text-align: center;
}
.lock-container {
  max-width: 360px;
  width: 100%;
}
.lock-icon {
  font-size: 64px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(255,122,26,0.4));
}
.lock-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}
.lock-text {
  color: var(--hint);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.lock-steps {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.lock-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.lock-step + .lock-step { border-top: 1px solid var(--separator); }
.lock-step .num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.lock-step.done .num { background: var(--green); }
.lock-step.done .text { color: var(--hint); text-decoration: line-through; }
.lock-step .text { flex: 1; }
.lock-step .sub { font-size: 12px; color: var(--hint); margin-top: 2px; }

.lock-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.lock-actions .btn-primary {
  background: var(--orange);
  box-shadow: 0 4px 14px rgba(255,122,26,0.3);
}

/* ========== Broker (Binarium) block ========== */
.broker-loading {
  text-align: center;
  padding: 14px;
  color: var(--hint);
  font-size: 13px;
}
.broker-status-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--separator);
  font-size: 14px;
}
.broker-status-row:last-of-type { border-bottom: none; }
.broker-status-row .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.broker-status-row .icon.ok { background: var(--green-soft); color: var(--green); }
.broker-status-row .icon.no { background: rgba(139,149,173,0.18); color: var(--hint); }
.broker-status-row .icon.warn { background: var(--orange-soft); color: var(--orange); }
.broker-status-row .body { flex: 1; min-width: 0; }
.broker-status-row .body .title { font-weight: 600; }
.broker-status-row .body .sub { color: var(--hint); font-size: 12px; margin-top: 2px; }

.broker-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 12px;
}
.broker-actions .btn-primary, .broker-actions .btn-secondary { margin-top: 0; }

.broker-deposit-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
}
.broker-deposit-row .label {
  font-size: 11px; color: var(--hint);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
}
.broker-deposit-row .value {
  font-size: 22px; font-weight: 800;
  font-feature-settings: "tnum";
  color: var(--green);
}

/* ========== Forms ========== */
.form-row { margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label {
  display: block;
  font-size: 11px;
  color: var(--hint);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}
.form-row input[type="number"],
.form-row input[type="text"] {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-feature-settings: "tnum";
  margin-top: 6px;
}
.form-row input:focus { outline: none; border-color: var(--blue); }
.form-row details summary {
  cursor: pointer; font-size: 13px;
  color: var(--blue); padding: 4px 0;
}
.form-row details > input,
.form-row details > button { margin-top: 8px; }

.stake-row { display: flex; gap: 6px; flex-wrap: wrap; }
.stake-chip {
  flex: 1; min-width: 50px;
  background: var(--bg-deep);
  border: 1px solid var(--separator);
  color: var(--text);
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: 0.15s;
}
.stake-chip.active {
  background: var(--blue); color: white; border-color: var(--blue);
}

.seg-control {
  display: flex;
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 3px; gap: 2px;
}
.seg-control button {
  flex: 1; background: transparent; border: none;
  padding: 8px 4px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--hint);
  cursor: pointer;
  transition: 0.15s;
}
.seg-control button.active { background: var(--blue); color: white; }
.mode-switch button.active { background: linear-gradient(135deg, var(--green), var(--green-deep)); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white; border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; width: 100%;
  margin-top: 6px; transition: 0.15s;
  box-shadow: 0 4px 14px rgba(91,156,255,0.3);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.big { padding: 16px; font-size: 16px; }
.btn-secondary {
  background: var(--bg-deep);
  border: 1px solid var(--separator);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%;
}

.sub-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.sub-row-title { font-size: 16px; font-weight: 600; }

.switch {
  position: relative; display: inline-block;
  width: 50px; height: 30px; flex-shrink: 0;
}
.switch.small { width: 32px; height: 18px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--separator);
  transition: 0.25s; border-radius: 30px;
}
.slider::before {
  position: absolute; content: "";
  height: 26px; width: 26px;
  left: 2px; top: 2px;
  background: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.switch.small .slider::before { height: 14px; width: 14px; }
input:checked + .slider { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
input:checked + .slider::before { transform: translateX(20px); }
.switch.small input:checked + .slider::before { transform: translateX(14px); }

.pair-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
}
.pair-toggle:last-child { border-bottom: none; }
.pair-name { font-size: 16px; font-weight: 600; }

/* ========== Hero / stats ========== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 10px;
  color: var(--text);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}
.hero-glow { display: none; }
.hero-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--hint); font-weight: 700; }
.hero-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 2px;
  font-feature-settings: "tnum";
  color: var(--green);
  text-shadow: 0 0 18px rgba(46,224,111,0.25);
}
.hero-foot {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--separator);
  font-size: 12px;
  color: var(--hint);
}
.hero-foot div { display: flex; align-items: center; gap: 6px; }
.dot-green, .dot-red { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-red { background: var(--red); box-shadow: 0 0 8px var(--red); }

.spark {
  display: flex; align-items: flex-end; gap: 2px;
  height: 32px; margin-top: 12px; position: relative;
}
.spark-bar {
  flex: 1; border-radius: 1px; min-height: 3px;
  transition: 0.3s;
  animation: spark-grow 0.5s ease;
  transform-origin: bottom;
}
.spark-bar.win { background: var(--green); opacity: 0.8; }
.spark-bar.loss { background: var(--red); opacity: 0.8; }
.spark-bar.draw { background: var(--hint); opacity: 0.4; }
@keyframes spark-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.mini-card {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}
.mini-num { font-size: 22px; font-weight: 700; font-feature-settings: "tnum"; line-height: 1.1; }
.mini-label { font-size: 10px; color: var(--hint); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

.streak-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(255,169,64,0.18), rgba(255,71,87,0.12));
  border-color: rgba(255,169,64,0.3);
}
.streak-card.cold {
  background: linear-gradient(135deg, rgba(91,156,255,0.18), rgba(160,107,255,0.12));
  border-color: rgba(91,156,255,0.3);
}
.streak-icon { font-size: 32px; }
.streak-title { font-size: 16px; font-weight: 700; }

.bar-list .bar-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.bar-row + .bar-row { border-top: 1px solid var(--separator); }
.bar-name { width: 90px; font-size: 13px; font-weight: 500; }
.bar-track { flex: 1; height: 8px; background: var(--separator); border-radius: 4px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.bar-pct { font-size: 12px; color: var(--hint); width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

/* ========== Signals list ========== */
.signal {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  animation: signalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.signal.fresh {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-soft), 0 8px 20px rgba(255,122,26,0.15);
  animation: signalFresh 0.6s ease;
}
.signal.win-flash { animation: flashWin 1.2s ease; }
.signal.loss-flash { animation: flashLoss 1.2s ease; }
@keyframes signalIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes signalFresh { 0% { transform: translateY(-12px) scale(0.96); opacity: 0; } 60% { transform: translateY(0) scale(1.02); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes flashWin { 0%, 100% { background: var(--panel); } 30% { background: var(--green-soft); } }
@keyframes flashLoss { 0%, 100% { background: var(--panel); } 30% { background: var(--red-soft); } }

.signal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hint); }
.signal.call::before { background: var(--green); }
.signal.put::before { background: var(--red); }

.signal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.signal-pair-wrap { display: flex; align-items: center; gap: 8px; }
.signal-direction { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; }
.signal-direction.call { background: var(--green-soft); color: var(--green); }
.signal-direction.put { background: var(--red-soft); color: var(--red); }
.signal-pair { font-weight: 700; font-size: 15px; }
.signal-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.price-row { color: var(--hint); font-variant-numeric: tabular-nums; }
.price-row b { color: var(--text); font-weight: 600; }
.signal-time { font-size: 12px; color: var(--hint); align-self: end; text-align: right; }
.signal-strength { font-size: 11px; color: var(--hint); letter-spacing: 0.3px; text-transform: uppercase; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700;
}
.badge.win { background: var(--green-soft); color: var(--green); }
.badge.loss { background: var(--red-soft); color: var(--red); }
.badge.draw { background: rgba(139,149,173,0.18); color: var(--hint); }
.badge.pending { background: var(--orange-soft); color: var(--orange); position: relative; }
.badge.pending::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-left: 2px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.signal-trade-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
  background: var(--bg-deep); color: var(--hint); margin-top: 8px;
}
.signal-trade-tag.win { background: var(--green-soft); color: var(--green); }
.signal-trade-tag.loss { background: var(--red-soft); color: var(--red); }

/* ========== Trades list ========== */
.trade-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--separator);
}
.trade-row:last-child { border-bottom: none; }
.trade-info { min-width: 0; }
.trade-pair { font-weight: 600; font-size: 14px; }
.trade-meta { font-size: 12px; color: var(--hint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.trade-pnl { font-size: 15px; font-weight: 700; font-feature-settings: "tnum"; text-align: right; }
.trade-pnl.win { color: var(--green); }
.trade-pnl.loss { color: var(--red); }
.trade-pnl.pending { color: var(--orange); font-size: 12px; font-weight: 600; }

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade 0.2s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg);
  width: 100%; max-width: 500px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  animation: modalUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 17px; font-weight: 700;
}
.close-btn {
  background: var(--panel); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; color: var(--hint); cursor: pointer; line-height: 1;
}
.modal-body { display: flex; flex-direction: column; gap: 14px; }
.trade-direction {
  text-align: center; padding: 16px; border-radius: 14px;
  font-size: 22px; font-weight: 800; letter-spacing: 0.5px;
}
.trade-direction.call { background: var(--green-soft); color: var(--green); }
.trade-direction.put { background: var(--red-soft); color: var(--red); }
.potential-row {
  display: flex; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-deep); border-radius: 12px;
  font-size: 14px;
}
.profit-value { color: var(--green); font-weight: 700; font-feature-settings: "tnum"; }

/* ========== Bottom nav ========== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex;
  background: var(--bg-deep);
  border-top: 1px solid var(--separator);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  z-index: 20;
}
body.locked .bottom-nav { display: none; }
.nav-btn {
  flex: 1;
  background: none; border: none;
  color: var(--hint);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0;
  font-size: 10px; font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn.active { color: var(--blue); }
.nav-btn svg { transition: 0.15s; }
.nav-btn.active svg { transform: scale(1.1); }

/* ========== Toasts ========== */
#toast-host {
  position: fixed;
  top: calc(70px + env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  width: calc(100% - 24px); max-width: 380px;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.4s ease 3.6s forwards;
  display: flex; align-items: center; gap: 10px;
  pointer-events: auto;
  backdrop-filter: blur(20px);
}
.toast.win { border-color: var(--green); }
.toast.loss { border-color: var(--red); }
.toast.signal { border-color: var(--orange); }
.toast-emoji { font-size: 20px; flex-shrink: 0; }
.toast-text { flex: 1; }

/* Большой toast — для сигналов на другой паре */
.toast.big {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border-width: 2px;
  background: linear-gradient(135deg, rgba(255,122,26,0.22), rgba(255,122,26,0.08));
  box-shadow: 0 12px 36px rgba(255,122,26,0.35), 0 0 0 4px rgba(255,122,26,0.10);
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1), bigToastPulse 1.4s ease infinite, toastOut 0.4s ease 8.4s forwards;
}
.toast.big .toast-emoji { font-size: 26px; }
@keyframes bigToastPulse {
  0%, 100% { box-shadow: 0 12px 36px rgba(255,122,26,0.35), 0 0 0 4px rgba(255,122,26,0.10); }
  50%      { box-shadow: 0 12px 40px rgba(255,122,26,0.55), 0 0 0 8px rgba(255,122,26,0.15); }
}

.toast-action {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.toast-action:active { transform: scale(0.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ========== Help modal ========== */
.help-modal {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.help-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}
.help-section {
  background: var(--panel);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.help-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.help-section p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.help-section p:last-child { margin-bottom: 0; }

/* support card в help-modal */
.help-section.support-section {
  background: linear-gradient(135deg, rgba(91, 156, 255, 0.18), rgba(160, 107, 255, 0.14));
  border: 1px solid rgba(91, 156, 255, 0.35);
}
.btn-support {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b9cff, #a06bff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91, 156, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-support:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(91, 156, 255, 0.3);
}
.help-section ul,
.help-section ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
}
.help-section li { margin-bottom: 4px; }
.help-section li:last-child { margin-bottom: 0; }
.help-section .hint-text {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(91, 156, 255, 0.10);
  border-left: 2px solid var(--blue);
  border-radius: 6px;
  font-size: 12px;
  color: var(--hint);
}
.help-section.warn {
  background: var(--orange-soft);
  border-color: rgba(255, 122, 26, 0.35);
}
.help-section.warn h3 { color: var(--orange); }
.help-section.warn p { color: var(--text); }

/* ========== Confetti / shake ========== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s ease; }

.confetti {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 200; overflow: hidden;
}
.confetti span {
  position: absolute; width: 10px; height: 10px;
  border-radius: 2px; top: -10px;
  animation: confettiFall 1.6s ease-out forwards;
}
@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.empty {
  text-align: center; color: var(--hint);
  padding: 40px 20px; font-size: 14px;
}
