:root {
  --page: #f1f4fa;
  --paper: #ffffff;
  --ink: #19202e;
  --muted: #667188;
  --line: #d8e0ef;
  --brand: #0f4ac2;
  --brand-2: #0a3592;
  --gold: #df8c2a;
  --text-muted: #667188;
  --text-secondary: #5f6c86;
  --accent-gold: #df8c2a;
  --red-bearish: #ef4444;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  font-family: "Archivo", "Trebuchet MS", "Gill Sans", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(223, 140, 42, 0.2), transparent 32%),
    radial-gradient(circle at 10% 100%, rgba(15, 74, 194, 0.17), transparent 28%),
    var(--page);
}

.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 14px 96px;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0e1d3f, #163679);
  color: #eef3ff;
  box-shadow: 0 8px 20px rgba(9,24,58,0.25);
}

.top-nav-brand { display: flex; align-items: center; gap: 10px; }

.top-nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffd69c, #f2ac4c);
}

.top-nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-nav-title { font-size: 20px; font-weight: 700; }

.top-nav-center { display: flex; align-items: center; gap: 6px; justify-content: center; }

.top-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  display: inline-block;
  animation: pulseGlow 2s infinite;
}

.top-nav-status { font-size: 12px; color: #bfd0fb; }
.top-nav-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

.top-nav-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 700;
}

.credits-icon { font-size: 14px; }

@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 0.5; box-shadow: 0 0 10px currentColor; }
}

.pages { margin-top: 14px; }

.tab-page {
  display: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
}

.tab-page.active {
  display: block;
  animation: fadeIn 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tab-page.active::before {
  content: "";
  display: block;
  height: 3px;
  width: 88px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--gold), var(--brand));
}

.home-banner-frame {
  margin: 0 0 12px;
  aspect-ratio: 1024 / 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d7e2f5;
  box-shadow: 0 10px 24px rgba(12, 33, 77, 0.18);
  background: #0f1f45;
}

.home-banner-img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 { margin: 0; font-size: 23px; }
.lead { margin: 8px 0 12px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.feature-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

.feature-card h3 { margin: 0; font-size: 16px; color: #1b356b; }
.feature-card p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.bot-form-title {
  margin: 18px 0 10px;
  font-size: 18px;
  color: #12346f;
}

.bot-pricing-card {
  margin-top: 10px;
  background: linear-gradient(155deg, #ffffff, #f7faff);
}

.bot-pricing-table {
  margin-top: 10px;
  border: 1px solid #d7e2f5;
  border-radius: 12px;
  overflow: hidden;
}

.bot-pricing-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e6edf9;
  font-size: 13px;
}

.bot-pricing-row:last-child {
  border-bottom: 0;
}

.bot-package {
  font-weight: 700;
  color: #1a3568;
}

.bot-pricing-prices {
  display: contents;
}

.bot-pricing-row--head {
  background: linear-gradient(180deg, #edf4ff, #e8f0ff);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2b4f93;
  font-weight: 700;
}

.bot-pricing-row strong {
  color: #12346f;
  font-size: 14px;
}

.bot-price {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.bot-price small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.bot-price--nonib small {
  color: #9a5a08;
}

.bot-price--ib small {
  color: #0f7a44;
}

.bot-history-item {
  border: 1px solid #dfe7f7;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.bot-history-item:last-child {
  margin-bottom: 0;
}

.bot-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.bot-history-head strong {
  color: #12284d;
  font-size: 14px;
}

.bot-history-time {
  font-size: 11px;
  color: #6b7a95;
}

.bot-history-meta {
  margin-top: 4px;
  color: #596882;
  font-size: 12px;
}

.bot-history-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bot-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cfe0fb;
  background: #edf4ff;
  color: #254a8f;
  font-size: 11px;
  font-weight: 700;
}

.bot-history-notes {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #dbe5f5;
  color: #4e5f7c;
  font-size: 12px;
  line-height: 1.4;
}

.mandatory-req-card {
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #f4b4b4;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.14), transparent 45%),
    linear-gradient(150deg, #fff7f7, #fff1f1);
  box-shadow: 0 8px 20px rgba(170, 45, 45, 0.08);
}

.mandatory-req-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mandatory-req-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #9f1f1f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mandatory-req-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #f0c48f;
  background: #fff6e8;
  color: #9a5a08;
  font-size: 11px;
  font-weight: 700;
}

.mandatory-req-card h4 {
  margin: 4px 0 6px;
  font-size: 19px;
  color: #8f1f1f;
}

.mandatory-req-card h4 strong {
  color: #c62828;
  font-size: 21px;
}

.mandatory-req-card p {
  margin: 0;
  color: #5f2230;
  font-size: 14px;
  line-height: 1.45;
}

.mandatory-req-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #f3b1b1;
  color: #7a2c2c;
  font-size: 12px;
  font-weight: 700;
}

.auth-box, .ingest-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; }
.auth-box h3, .ingest-box h3 { margin: 0 0 8px; color: #163571; }

.social-auth-box { margin-top: 10px; border: 1px dashed #bfd0f5; border-radius: 12px; padding: 10px; background: #f7faff; }
.social-auth-box h4 { margin: 0; color: #12346f; font-size: 15px; }
.social-auth-box p { margin: 4px 0 0; font-size: 13px; color: #5f6c86; }

.social-auth-status { margin-top: 8px; padding: 7px 9px; border-radius: 8px; background: #eaf1ff; color: #2a467c; font-size: 12px; }

.session-actions { margin-top: 8px; grid-template-columns: 1fr; }
.secondary-btn { background: linear-gradient(180deg, #7c8aa6, #5f6b84); }

.profile-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.metric-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; display: grid; gap: 5px; }
.metric-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.metric-card strong { font-size: 18px; }

.realtime-banner { margin: 10px 0; padding: 10px; border-radius: 10px; font-size: 13px; border: 1px solid #d8e2fb; background: #edf3ff; color: #1c4288; }
.realtime-banner.limited { border-color: #f3d6ae; background: #fff3e1; color: #8b560a; }
.realtime-banner.blocked { border-color: #c62828; background: #ffebee; color: #c62828; font-weight: 700; }

.list-box { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 130px; max-height: 320px; overflow: auto; padding: 8px; }

.list-item { border: 1px solid #e3e8f5; border-radius: 10px; padding: 8px; margin-bottom: 8px; font-size: 13px; background: #fcfdff; }
.list-item:last-child { margin-bottom: 0; }

.faq-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; margin-bottom: 10px; }
.faq-item { border-bottom: 1px dashed #dde3f2; padding: 8px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h4 { margin: 0; font-size: 14px; color: #173872; }
.faq-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

label { display: block; margin: 8px 0 4px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

input, select, textarea, button { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; font-family: inherit; }
textarea { resize: vertical; font-family: "IBM Plex Mono", Consolas, monospace; }

button { border: 0; background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; cursor: pointer; transition: transform 0.15s ease; }
button:hover { transform: translateY(-1px); }

.actions { display: grid; gap: 8px; margin-top: 10px; }
.actions.triple { grid-template-columns: repeat(3, 1fr); }
.actions.dual { grid-template-columns: repeat(2, 1fr); }
.actions.quad { grid-template-columns: repeat(4, 1fr); }

.inline-wrap { margin-top: 10px; }
.signal-grid, .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.signal-grid { grid-template-columns: repeat(4, 1fr); }

.feed { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; min-height: 240px; max-height: 390px; overflow: auto; background: #fff; padding: 8px; }

/* ─── SIGNAL ITEMS ─────────────────────────────────────────────── */
.signal-item {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.signal-item:hover {
  box-shadow: 0 4px 16px rgba(15,74,194,0.10);
  border-color: #c8d4f0;
}
.signal-item:last-child { margin-bottom: 0; }

/* Header: side + id + time */
.signal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.signal-side-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 44px;
}
.signal-side-badge.buy {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 2px 6px rgba(34,197,94,0.3);
}
.signal-side-badge.sell {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.signal-id-text {
  font-size: 10px;
  font-weight: 600;
  color: #8896b0;
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.signal-time {
  margin-left: auto;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  text-align: right;
  color: #99a7c0;
  font-weight: 500;
}

/* Symbol + timeframe */
.signal-symbol-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  margin-bottom: 8px;
}
.signal-symbol {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.signal-timeframe {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7a99;
  background: #eef1f8;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Prices: Entry / SL / TP */
.signal-prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.signal-price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: #f8f9fc;
}
.signal-price-item .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8896b0;
  font-weight: 700;
  margin-bottom: 2px;
}
.signal-price-item .value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.signal-price-item .value.entry { color: #2563eb; }
.signal-price-item .value.sl { color: #dc2626; }
.signal-price-item .value.tp { color: #16a34a; }

/* Metrics: RR + AI Score bar */
.signal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.signal-metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}
.signal-metric-progress {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.10);
}
.signal-metric-progress-label {
  font-size: 10px;
  font-weight: 600;
  color: #8896b0;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.signal-metric-card .metric-label {
  font-size: 10px;
  font-weight: 600;
  color: #8896b0;
  text-transform: uppercase;
}
.signal-metric-card .metric-value {
  font-weight: 700;
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.metric-value.rr { color: #8b5cf6; }
.ai-score-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}
.ai-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.3s ease;
}

/* Summary text */
.signal-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  font-family: "IBM Plex Mono", Consolas, monospace;
  white-space: pre-wrap;
  border-top: 1px solid #eef1f8;
  padding-top: 8px;
  margin-top: 2px;
}

/* Blur overlay */
.signal-item.signal-blurred {
  position: relative;
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
.signal-item.signal-blurred .signal-blur-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  filter: none;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  color: #c62828;
  font-weight: 700;
  pointer-events: auto;
}
.signal-item.signal-blurred .signal-blur-overlay small {
  display: block;
  font-size: 11px;
  color: #8f1f1f;
  margin-top: 4px;
  font-weight: 400;
}

#console { min-height: 260px; max-height: 340px; overflow: auto; margin-top: 10px; border: 1px solid #273962; background: #121c32; color: #d0deff; border-radius: 12px; padding: 10px; font-size: 12px; font-family: "IBM Plex Mono", Consolas, monospace; }

.bottom-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 10px; width: min(1020px, calc(100% - 18px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; background: rgba(14, 26, 53, 0.95); border: 1px solid rgba(255, 255, 255, 0.12); padding: 8px; border-radius: 14px; backdrop-filter: blur(8px); }

.tab-btn { border-radius: 10px; border: 1px solid #2f4778; background: rgba(255, 255, 255, 0.06); color: #deebff; font-size: 13px; padding: 9px 6px; transition: all 0.2s ease; }
.tab-btn.active { background: linear-gradient(180deg, var(--gold), #b66e18); border-color: #e39d44; color: #fff; box-shadow: 0 10px 16px rgba(189, 114, 25, 0.36); transform: translateY(-2px); }
.tab-btn:not(.active):hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }

.hidden-btn { display: none !important; }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 1; transition: opacity 0.2s; }
.modal.hidden { display: none !important; opacity: 0; }
.modal-content { background: white; padding: 1.5rem; border-radius: 16px; max-width: 540px; width: 90%; color: #111; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.modal-content header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.modal-close-btn { background: #f0f0f0 !important; color: #333 !important; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer; border: none; transition: background 0.2s; }
.modal-close-btn:hover { background: #e0e0e0 !important; transform: none !important; }

.iap-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0 0.5rem; }

.iap-card { border: 2px solid #e8ecf5; padding: 1.25rem 0.75rem; border-radius: 12px; text-align: center; transition: all 0.2s ease; background: #fafbff; position: relative; overflow: hidden; }
.iap-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #d0d8f0, #8a9bd0); transition: background 0.3s; }
.iap-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 74, 194, 0.12); }
.iap-card.starter { border-color: #d0d8f0; }
.iap-card.starter::before { background: linear-gradient(90deg, #a8b8d8, #7c8cb0); }
.iap-card.starter .badge { background: #e8ecf5; color: #5a6a8a; }
.iap-card.value { border-color: #f2d6a8; }
.iap-card.value::before { background: linear-gradient(90deg, #f2ac4c, #df8c2a); }
.iap-card.value .badge { background: #fef0d8; color: #a86e18; }
.iap-card.premium { border-color: #b0c4f0; }
.iap-card.premium::before { background: linear-gradient(90deg, #0f4ac2, #163679); }
.iap-card.premium .badge { background: #dce6ff; color: #1b4288; }

.iap-card .badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 6px; margin-bottom: 6px; }
.iap-card h4 { margin: 0 0 0.25rem; font-size: 0.85rem; color: #555; font-weight: 700; }
.iap-card .credit-amount { display: block; font-size: 1.5rem; font-weight: 800; margin: 0.25rem 0; color: #19202e; }
.iap-card .usd-price { display: block; font-size: 1rem; color: #2a467c; margin: 0.25rem 0 0.75rem; font-weight: 700; }
.iap-card .per-credit { font-size: 0.7rem; color: #888; margin-bottom: 0.75rem; }

.iap-card button { width: 100%; font-size: 0.8rem; padding: 0.6rem; border-radius: 8px; background: linear-gradient(180deg, #2a467c, #163679); color: white; border: none; font-weight: 700; cursor: pointer; transition: transform 0.15s ease; }
.iap-card button:hover { transform: translateY(-1px); }
.iap-card.value button { background: linear-gradient(180deg, #df8c2a, #b66e18); }
.iap-card.premium button { background: linear-gradient(180deg, #0f4ac2, #0a3592); }

/* ── PayPal Checkout (Web/PWA top-up) ─────────────────────────── */
.paypal-section { margin-top: 1rem; }
.paypal-divider {
  display: flex; align-items: center; gap: 0.75rem;
  color: #888; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; margin: 0.75rem 0;
}
.paypal-divider::before,
.paypal-divider::after {
  content: ''; flex: 1; height: 1px; background: #e8ecf5;
}
.paypal-status {
  margin: 0.5rem 0 0; font-size: 0.8rem; color: #2a467c;
  min-height: 1rem; text-align: center;
}
#paypal-button-container { min-height: 45px; }


.modal-footer { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #eee; text-align: center; }
.modal-badge { display: inline-block; font-size: 0.7rem; padding: 3px 10px; border-radius: 6px; background: #fef3d5; color: #8b6a1a; font-weight: 600; }
.small { font-size: 0.75rem; color: #888; text-align: center; }
.primary-btn { background: linear-gradient(180deg, #2a467c, #163679) !important; color: white !important; }

.reward-ad-section { margin-top: 12px; border: 1px dashed #b8d0f0; border-radius: 12px; padding: 16px; background: linear-gradient(135deg, #f7faff, #edf3ff); text-align: center; }
.reward-ad-section h4 { margin: 0 0 4px; color: #1b4288; font-size: 15px; }
.reward-ad-section p { margin: 4px 0 10px; color: #5a6a8a; font-size: 13px; }
.reward-ad-section .ad-badge { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 5px; background: #d4e2fc; color: #1b4288; margin-bottom: 8px; }

.btn-reward-ad { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: linear-gradient(180deg, #34a853, #2d8f47) !important; color: white !important; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 0.15s ease; width: auto; }
.btn-reward-ad:hover { transform: translateY(-2px) !important; }
.btn-reward-ad .icon { font-size: 18px; }
.earn-modal-content { max-width: 620px; }
.earn-modal-lead { margin-top: 0; color: var(--text-secondary); font-size: 14px; }
.earn-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.earn-option-card { border: 1px solid #d7e3f8; border-radius: 12px; padding: 14px; background: #f8fbff; }
.earn-option-card h4 { margin: 4px 0 6px; color: #1b4288; }
.earn-option-card p { margin: 0 0 12px; color: #5a6a8a; font-size: 13px; }
.earn-option-card .primary-btn, .earn-option-card .btn-reward-ad, .earn-option-card .btn-install-pwa { width: 100%; justify-content: center; }
.earn-status { min-height: 18px; margin-top: 10px; font-size: 12px; color: var(--text-muted); }

/* ── PWA Install reward ────────────────────────────────────────── */
.btn-install-pwa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: linear-gradient(180deg, #0f4ac2, #0a3592); color: white !important; border: none; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform 0.15s ease; width: auto; }
.btn-install-pwa:hover { transform: translateY(-2px); }
.btn-install-pwa .icon { font-size: 18px; }
.pwa-install-modal-content { max-width: 640px; }
.pwa-install-lead { margin-top: 0; color: var(--text-secondary); font-size: 14px; }
.pwa-install-platforms { display: grid; gap: 12px; margin: 12px 0; }
.pwa-install-step { border: 1px solid #d7e3f8; border-radius: 12px; padding: 12px 14px; background: #f8fbff; text-align: left; }
.pwa-install-step h4 { margin: 0 0 8px; color: #1b4288; font-size: 15px; }
.pwa-install-step ol { margin: 0; padding-left: 20px; color: #5a6a8a; font-size: 13px; line-height: 1.6; }
.pwa-install-step li { margin-bottom: 4px; }
.pwa-install-actions { text-align: center; }
.pwa-install-actions .btn-install-pwa { width: 100%; justify-content: center; }

/* ── PWA reward card (gift style) ─────────────────────────────────── */
.pwa-reward-card { position: relative; overflow: hidden; }
.pwa-reward-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pwa-reward-gift { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(15, 74, 194, 0.25)); }
.pwa-reward-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.pwa-reward-title-wrap h4 { margin: 0; }
.pwa-reward-amount { display: inline-block; width: fit-content; font-size: 12px; font-weight: 800; color: #0a6b2f; background: #d9f2e2; border: 1px solid #a5d6a7; border-radius: 999px; padding: 2px 10px; }
.pwa-reward-desc { margin: 0 0 8px !important; }
.pwa-reward-microcopy { margin: 0 0 12px !important; font-size: 12px !important; line-height: 1.5; color: #6b7a99 !important; background: rgba(15, 74, 194, 0.05); border-left: 3px solid #0f4ac2; border-radius: 0 8px 8px 0; padding: 8px 10px; }
.pwa-inapp-hint { margin-top: 10px; }
.pwa-inapp-text { margin: 0 0 8px !important; font-size: 12px !important; line-height: 1.5; color: #8a5a00 !important; background: #fff7e0; border: 1px solid #f0d48a; border-radius: 8px; padding: 8px 10px; }
.btn-open-external { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 10px 14px; background: linear-gradient(180deg, #e8a020, #c77f0a); color: #fff !important; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 0.15s ease; }
.btn-open-external:hover { transform: translateY(-2px); }
.btn-open-external .icon { font-size: 18px; }
.btn-reinstall-guide { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 10px 14px; background: linear-gradient(180deg, #2a467c, #163679); color: #fff !important; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 0.15s ease; }
.btn-reinstall-guide:hover { transform: translateY(-2px); }
.btn-reinstall-guide .icon { font-size: 18px; }

/* Credit pop animation overlay */
.pwa-credit-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  background: linear-gradient(180deg, #1a8a3a, #2d8f47);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(26, 138, 58, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}
.pwa-credit-pop--show {
  animation: pwaCreditPopAnim 2.2s ease forwards;
}
@keyframes pwaCreditPopAnim {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  15%  { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
  30%  { transform: translate(-50%, -70%) scale(1); }
  70%  { opacity: 1; transform: translate(-50%, -90%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(0.9); }
}

/* Credit balance bump (flash) */
.credit-bump {
  animation: creditBumpAnim 0.9s ease;
}
@keyframes creditBumpAnim {
  0%   { transform: scale(1); color: inherit; }
  30%  { transform: scale(1.35); color: #1a8a3a; }
  100% { transform: scale(1); color: inherit; }
}

.hidden { display: none !important; }

.referral-confirm-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  background: #f1faf1;
  text-align: center;
}
.referral-confirm-text { margin: 0 0 10px; color: #1b4288; font-size: 13px; line-height: 1.4; }
.btn-share-confirm {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a8a3a, #2d8f47);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn-share-confirm:hover { transform: translateY(-1px); }

/* ── Referral (Invite & Earn) modal ────────────────────────────── */
.referral-modal-content { max-width: 560px; }
.referral-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.referral-stat { border: 1px solid #d7e3f8; border-radius: 12px; padding: 12px 10px; background: #f8fbff; text-align: center; }
.referral-stat-value { display: block; font-size: 20px; font-weight: 800; color: #1b4288; }
.referral-stat-label { display: block; margin-top: 2px; font-size: 11px; color: #5a6a8a; text-transform: uppercase; letter-spacing: 0.04em; }
.referral-link-box { display: flex; gap: 8px; margin: 12px 0; }
.referral-link-box input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d7e3f8; border-radius: 10px; background: #fff; color: #1f2a44; font-size: 13px; }
.btn-copy-link { padding: 10px 16px; border: none; border-radius: 10px; background: linear-gradient(180deg, #2a467c, #163679); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-copy-link:hover { opacity: 0.92; }
.referral-share-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.btn-share { padding: 10px 12px; border: none; border-radius: 10px; color: #fff; font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-share:hover { opacity: 0.92; }
.btn-share-fb { background: linear-gradient(180deg, #1877f2, #0f5fd0); }
.btn-share-x { background: linear-gradient(180deg, #1d1f23, #0f1114); }
.btn-share-wa { background: linear-gradient(180deg, #25d366, #1cae4f); }
.btn-share-tg { background: linear-gradient(180deg, #2aabee, #1e8fc9); }

.ledger-item {

  border: 1px solid #e3e8f5;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  background: linear-gradient(135deg, #fcfdff 0%, #f6f9ff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ledger-item .ledger-info { flex: 1; min-width: 0; }
.ledger-item .ledger-amount {
  font-size: 15px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 54px;
  text-align: center;
}
.ledger-item .ledger-amount.positive {
  color: #1a8a3a;
  background: #e9f8ec;
}
.ledger-item .ledger-amount.negative {
  color: #c62828;
  background: #ffecee;
}
.ledger-item .ledger-reason {
  font-size: 12px;
  font-weight: 700;
  color: #1f2a44;
  margin-bottom: 3px;
}
.ledger-item .ledger-time {
  font-size: 11px;
  color: #7a869d;
}
.list-box .list-item {
  padding: 10px 6px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}

.error { color: #ffd1d1; }

.ad-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.ad-overlay-box { background: white; border-radius: 16px; padding: 20px; max-width: 400px; width: 90%; text-align: center; }

.filter-section { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; }
.filter-section.hidden { display: none; }
.filter-section.unlocked { border-color: #a5d6a7; background: #f1faf1; }
.filter-section h3 { margin: 0 0 10px; font-size: 16px; color: #1b356b; }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.filter-row { display: grid; grid-template-columns: 1fr; gap: 6px; }
.filter-row label { margin: 0; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.filter-row select, .filter-row input { padding: 9px 10px; font-size: 13px; width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-input, #fff); color: inherit; }
.filter-row input[type="range"] { padding: 0; width: 100%; }
.filter-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e4eaf6;
  background: #f8fbff;
  color: #36507b;
  font-size: 12px;
  font-weight: 600;
}
.filter-checkbox-row input { width: auto; margin: 0; accent-color: #2563eb; }
.filter-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f0d9a6;
  background: #fff7e6;
  color: #8b560a;
  font-size: 12px;
  font-weight: 600;
}
.filter-consent-row input { width: auto; margin: 0; accent-color: #d97706; }
.filter-range-wrap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.filter-range-wrap input[type="range"] { width: 100%; }
.filter-range-value { font-size: 12px; font-weight: 600; white-space: nowrap; min-width: 44px; text-align: right; }

.filter-section .actions { margin-top: 10px; }
.filter-access-expiry {
  margin-top: 8px;
  font-size: 12px;
  color: #36507b;
  font-weight: 600;
}
.filter-status { margin-top: 8px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #fff8e6; color: #8b560a; }
.filter-section.unlocked .filter-status { background: #e8f5e9; color: #1a8a3a; }

/* Collapsible signals filter toolbar (tools only when the toggle is pressed) */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line, rgba(0,0,0,0.12));
  border-radius: 10px;
  background: var(--bg-card, #fff);
  color: var(--text-primary, #222);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-toggle-btn:hover { background: var(--bg-input-hover, #f0f4fb); }
.filter-toggle-icon { font-size: 15px; line-height: 1; }
.filter-toggle-caret { font-size: 11px; opacity: 0.8; }
.filter-active-pill {
  font-size: 12px;
  font-weight: 600;
  color: #1a6e2f;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 999px;
  padding: 4px 10px;
}
/* When collapsed, hide the bordered body entirely (keeps only the toolbar). */
.filter-section.collapsed {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
.filter-section.collapsed .filter-inner { display: none !important; }
.filter-section.open .filter-inner {
  display: block !important;
  margin-top: 12px;
}

/* Filter behaviour explanation shown at the top of the Signals tab */
.filter-info-note {
  margin: 10px 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #2a3d66;
  background: #eef4ff;
  border: 1px solid #c9dcff;
  border-radius: 10px;
}
.filter-info-note small {
  display: block;
  margin-top: 4px;
  color: #6b7f9c;
}
.filter-info-note strong { color: #16326e; }

/* Multi-select symbol chips */
.filter-symbol-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.filter-symbol-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #33445f;
  background: #eef1f8;
  border: 1px solid #d9e0ef;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-symbol-chip:hover { background: #e2e9fb; }
.filter-symbol-chip input[type="checkbox"] {
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  accent-color: #2563eb;
}
.filter-symbol-chip:has(input:checked) {
  color: #1e3a8a;
  background: #dbe7ff;
  border-color: #8fb2ff;
}
.filter-symbol-multi.locked { opacity: 0.6; pointer-events: none; }
/* The explicit "All symbols" chip is a clear shortcut & default. When it is on,
   every market is included; picking a specific symbol chip turns it off. */
.filter-symbol-chip.filter-symbol-all {
  color: #1e3a8a;
  background: #fff7e6;
  border: 1px dashed #e6b54a;
}
.filter-symbol-chip.filter-symbol-all input[type="checkbox"] { accent-color: #e8a33c; }
.filter-symbol-chip.filter-symbol-all:has(input:checked) {
  color: #ffffff;
  background: linear-gradient(135deg, #f0a83a, #d9851f);
  border: 1px solid transparent;
  border-color: #d9851f;
}
.filter-symbol-hint {
  font-size: 11px;
  color: #7a869d;
  line-height: 1.4;
}

/* Signal card expander ("Xem vị thế từ bot") */
.signal-item-expander {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 4px 0 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1b4fd8;
  background: #f0f4ff;
  border: 1px dashed #b6c9f5;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.signal-item-expander:hover {
  background: #e3ecff;
  border-color: #7aa2ff;
  color: #123d9e;
}
.signal-item-expander[aria-expanded="true"] {
  color: #16a34a;
  background: #e9f9ec;
  border-color: #a5e0b4;
}
.signal-expander-caret { font-size: 10px; line-height: 1; }

/* Text area a signal card can fold/unfold via the "Xem vị thế từ bot" button.
   Only the plain text copy of a position is hidden here — the pretty header,
   price boxes and metric cards stay visible while collapsed. */
.signal-details { display: block; }
.signal-details.collapsed { display: none; }


/* Per-signal optimal AI threshold line (taken from the Statistics tab) */
.signal-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(173,139,21,0.3);
  background: rgba(255,196,0,0.07);
  font-size: 12px;
}
.signal-opt-label { color: var(--text-secondary, #7a869d); font-weight: 700; }
.signal-opt-value {
  font-weight: 800;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: #d99a06;
}

/* ─── HOME TAB ──────────────────────────────────────────────────── */
.home-pulse-bar { display: flex; gap: 8px; margin-bottom: 14px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #0e1d3f, #163679); color: #eef3ff; box-shadow: 0 6px 18px rgba(9,24,58,0.2); overflow-x: auto; }
.pulse-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 70px; text-align: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34a853; display: inline-block; animation: pulseGlow 2s infinite; }
.pulse-dot--idle { background: #fbbc04; animation: pulseGlow 1.5s infinite; }
.pulse-dot--down { background: #c62828; animation: pulseGlow 1s infinite; }
.pulse-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: #bfd0fb; font-weight: 600; }
.pulse-value { font-size: 14px; font-weight: 800; white-space: nowrap; }

.home-launch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.launch-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; background: #fff; cursor: pointer; transition: all 0.2s ease; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit; width: 100%; }
.launch-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,74,194,0.12); border-color: var(--brand); }
.launch-icon { font-size: 28px; line-height: 1; }
.launch-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.launch-desc { font-size: 11px; color: var(--muted); }

.home-identity-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 10px; }
.identity-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.identity-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #0a3592); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.identity-details { display: flex; flex-direction: column; min-width: 0; }
.identity-name { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-sub { font-size: 11px; color: var(--muted); }
.identity-actions { display: flex; gap: 8px; flex-shrink: 0; }
.identity-google-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid #dadce0; color: #333; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s ease; width: auto; }
.identity-google-btn:hover { border-color: #4285f4; box-shadow: 0 4px 12px rgba(66,133,244,0.15); transform: translateY(-1px); }
.identity-google-btn .google-icon { font-weight: 800; color: #4285f4; }
.identity-logout-btn { padding: 8px 14px; border-radius: 10px; background: linear-gradient(180deg, #c62828, #8f1f1f); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; border: none; transition: all 0.2s ease; width: auto; }
.identity-logout-btn:hover { transform: translateY(-1px); }

.home-auth-status { margin-bottom: 14px; padding: 8px 12px; border-radius: 10px; background: #eaf1ff; color: #2a467c; font-size: 12px; line-height: 1.4; }

.home-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; background: #fff; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-size: 18px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a0e1a;
    --paper: #13182b;
    --ink: #e8ecf4;
    --muted: #7a8aa5;
    --line: #2a3250;
    --brand: #2d7aff;
    --brand-2: #1a5adf;
    --gold: #f5b342;
    --text-muted: #7a8aa5;
    --text-secondary: #9aa8c2;
    --accent-gold: #f5b342;
    --red-bearish: #ef4444;
  }

  body {
    background:
      radial-gradient(circle at 90% 0%, rgba(245, 179, 66, 0.08), transparent 32%),
      radial-gradient(circle at 10% 100%, rgba(45, 122, 255, 0.1), transparent 28%),
      var(--page);
  }

  .tab-page {
    background: rgba(19, 24, 43, 0.95);
    border-color: var(--line);
  }

  .signal-item {
    background: #141b30;
    border-color: #1f2742;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .signal-item:hover {
    box-shadow: 0 4px 16px rgba(45,122,255,0.08);
    border-color: #2a3a6a;
  }

  .signal-symbol { color: #d0deff; }
  .signal-price-item { background: #0f1425; }
  .signal-price-item .value { color: #d0deff; }
  .signal-summary { color: #8896b0; border-color: #1f2742; }
  .signal-id-text { color: #5a6a8a; }
  .signal-time { color: #5a6a8a; }
  .signal-timeframe { color: #7a8aa5; background: #0f1425; }
  .signal-metric { color: #7a8aa5; }

  .metric-card { background: #0f1425; border-color: #1f2742; }
  .metric-card span { color: #7a8aa5; }
  .metric-card strong { color: #d0deff; }

  .list-box { background: #0f1425; border-color: #1f2742; }
  .list-item { background: #13182b; border-color: #1f2742; color: #b0bed8; }

  label { color: #7a8aa5; }
  input, select, textarea {
    background: #0f1425;
    border-color: #1f2742;
    color: #d0deff;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 2px rgba(45,122,255,0.15);
  }

  .launch-card {
    background: #0f1425;
    border-color: #1f2742;
  }
  .launch-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(45,122,255,0.08);
  }
  .launch-title { color: #d0deff; }
  .launch-desc { color: #7a8aa5; }

  .home-identity-strip { background: #0f1425; border-color: #1f2742; }
  .identity-name { color: #d0deff; }
  .identity-sub { color: #7a8aa5; }

  .stat-tile { background: #0f1425; border-color: #1f2742; }
  .stat-num { color: #d0deff; }
  .stat-label { color: #7a8aa5; }

  .feature-card { background: #0f1425; border-color: #1f2742; }
  .feature-card h3 { color: #a0b8e8; }
  .feature-card p { color: #7a8aa5; }
  .bot-package { color: #b8cdf4; }
  .bot-form-title { color: #b8cdf4; }
  .bot-pricing-card { background: linear-gradient(160deg, #111a30, #0d1628); }
  .bot-pricing-table { border-color: #253252; }
  .bot-pricing-row { border-color: #253252; color: #9db1d9; }
  .bot-pricing-row--head { background: #172544; color: #9eb7e8; }
  .bot-pricing-row strong { color: #d0deff; }
  .bot-price--nonib small { color: #f3be67; }
  .bot-price--ib small { color: #63d39e; }
  .bot-history-item { background: linear-gradient(180deg, #10182c, #0f1629); border-color: #253252; }
  .bot-history-head strong { color: #d0deff; }
  .bot-history-time { color: #7f93ba; }
  .bot-history-meta { color: #8fa0c1; }
  .bot-tag { background: #162646; border-color: #2d4679; color: #b8cdf4; }
  .bot-history-notes { border-color: #253252; color: #93a8cf; }
  .mandatory-req-card {
    border-color: #5a2d33;
    background:
      radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.16), transparent 45%),
      linear-gradient(150deg, #2a1116, #241016);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  .mandatory-req-badge { background: rgba(239, 68, 68, 0.24); color: #ffb7b7; }
  .mandatory-req-flag { background: #2a1f08; border-color: #5a3a0a; color: #f3be67; }
  .mandatory-req-card h4 { color: #ffc1c1; }
  .mandatory-req-card h4 strong { color: #ff8f8f; }
  .mandatory-req-card p { color: #d6b4be; }
  .mandatory-req-foot { border-color: #5a2d33; color: #e3b0b8; }

  .faq-list { background: #0f1425; border-color: #1f2742; }
  .faq-item { border-color: #1f2742; }
  .faq-item h4 { color: #a0b8e8; }
  .faq-item p { color: #7a8aa5; }

  .modal-content { background: #13182b; color: #d0deff; }
  .modal-close-btn { background: #1f2742 !important; color: #d0deff !important; }
  .modal-close-btn:hover { background: #2a3250 !important; }
  .modal-footer { border-color: #1f2742; }

  .iap-card { background: #0f1425; border-color: #1f2742; }
  .iap-card .credit-amount { color: #d0deff; }
  .iap-card .usd-price { color: #7a8aa5; }
  .iap-card .per-credit { color: #5a6a8a; }
  .iap-card.starter { border-color: #1f2742; }
  .iap-card.value { border-color: #3a3250; }
  .iap-card.premium { border-color: #1a2a5a; }

  .filter-section { background: #0f1425; border-color: #1f2742; }
  .filter-section h3 { color: #a0b8e8; }
  .filter-section.unlocked { background: #0a1a15; border-color: #1a4a3a; }

  .reward-ad-section { background: linear-gradient(135deg, #0a1225, #0a1a35); border-color: #1a2a4a; }
  .reward-ad-section h4 { color: #a0b8e8; }
  .reward-ad-section p { color: #7a8aa5; }
  .earn-option-card { background: #0f1425; border-color: #1f2742; }
  .earn-option-card h4 { color: #a0b8e8; }
  .earn-option-card p { color: #7a8aa5; }
  .earn-status { color: #7a8aa5; }
  .pwa-install-step { background: #0f1425; border-color: #1f2742; }
  .pwa-install-step h4 { color: #a0b8e8; }
  .pwa-install-step li { color: #7a8aa5; }
  .pwa-reward-amount { color: #63d39e; background: #0a1a10; border-color: #1f4a33; }
  .pwa-reward-microcopy { color: #9aa8c2 !important; background: rgba(45, 122, 255, 0.08); border-left-color: #2d7aff; }
  .pwa-inapp-text { color: #f5b342 !important; background: #2a1f08; border-color: #5a3a0a; }
  .referral-confirm-box { background: #0a1a15; border-color: #1a4a3a; }

  .referral-confirm-text { color: #a0b8e8; }
  .referral-stat { background: #0f1425; border-color: #1f2742; }
  .referral-stat-value { color: #a0b8e8; }
  .referral-stat-label { color: #7a8aa5; }
  .referral-link-box input { background: #0f1425; border-color: #1f2742; color: #d0deff; }

  .realtime-banner { background: #0a1a35; border-color: #1a2a5a; color: #a0b8e8; }

  .realtime-banner.limited { background: #2a1a05; border-color: #5a3a0a; color: #f5b342; }
  .realtime-banner.blocked { background: #2a0a0a; border-color: #5a1a1a; color: #ef4444; }

  .ingest-box { background: #0f1425; border-color: #1f2742; }
  .ingest-box h3 { color: #a0b8e8; }

  .faq-item p, .lead { color: #7a8aa5; }
  h2 { color: #d0deff; }

  .bottom-nav { background: rgba(10, 14, 26, 0.97); border-color: rgba(255,255,255,0.06); }
  .tab-btn { border-color: #1f2742; color: #7a8aa5; }
  .tab-btn:not(.active):hover { background: rgba(255,255,255,0.08); }

  #console { background: #080c1a; color: #a0b8e8; border-color: #1a2238; }

  .identity-google-btn { background: #0f1425; border-color: #2a3250; color: #b0bed8; }
  .identity-google-btn:hover { border-color: #4285f4; }

  .filter-status { background: #1a1505; color: #f5b342; }
  .filter-section.unlocked .filter-status { background: #0a1a10; color: #34a853; }
  .filter-consent-row { background: #2a1f08; border-color: #5a3a0a; color: #f5b342; }
  .filter-access-expiry { color: #9cb4e6; }

  .filter-toggle-btn { background: #0f1425; border-color: #2a3250; color: #d0deff; }
  .filter-toggle-btn:hover { background: #182140; }
  .filter-active-pill {
    color: #34a853;
    background: #0a1a10;
    border-color: #1f4a33;
  }
  .signal-opt-row {
    border-color: rgba(245, 179, 66, 0.28);
    background: rgba(245, 179, 66, 0.06);
  }
  .signal-opt-label { color: #9aa8c2; }
  .signal-opt-value { color: #f5b342; }


  .ai-score-bar { background: #1a2240; }

  /* Dark overrides for the filter note / symbol chips / card expanders */
  .filter-info-note {
    color: #b7c9f2;
    background: rgba(24, 36, 74, 0.55);
    border-color: #22335f;
  }
  .filter-info-note strong { color: #dce9ff; }
  .filter-info-note small { color: #8296bd; }
  .filter-symbol-chip {
    color: #b6c4e0;
    background: #141b30;
    border-color: #283250;
  }
  .filter-symbol-chip:hover { background: #1d2a4d; }
  .filter-symbol-chip input[type="checkbox"] { accent-color: #4d8bff; }
  .filter-symbol-chip:has(input:checked) {
    color: #ffffff;
    background: #183a74;
    border-color: #4d7ed6;
  }
  .filter-symbol-hint { color: #8296bd; }
  .filter-symbol-chip.filter-symbol-all {
    color: #b7a45e;
    background: #201b09;
    border-color: #8a6d24;
  }
  .filter-symbol-chip.filter-symbol-all input[type="checkbox"] { accent-color: #e8a33c; }
  .filter-symbol-chip.filter-symbol-all:has(input:checked) {
    color: #1b1506;
    background: linear-gradient(135deg, #f0a83a, #d9851f);
    border-color: #f0c877;
  }
  .signal-item-expander {
    color: #8fb2ff;
    background: rgba(29, 45, 90, 0.45);
    border-color: #2c3f73;
  }
  .signal-item-expander:hover {
    background: rgba(41, 66, 124, 0.55);
    border-color: #6290f0;
    color: #cfe0ff;
  }
  .signal-item-expander[aria-expanded="true"] {
    color: #63d39e;
    background: rgba(11, 42, 26, 0.5);
    border-color: #176b45;
  }
}

@media (max-width: 700px) {
  .feature-grid, .form-grid, .actions.triple, .actions.dual,
  .actions.quad, .profile-grid { grid-template-columns: 1fr; }
  .earn-options { grid-template-columns: 1fr; }
  .bottom-nav { gap: 6px; padding: 6px; }
  .tab-btn { font-size: 12px; }
  .iap-packages { grid-template-columns: 1fr; }

  .signal-grid { grid-template-columns: 1fr; }
  .bot-pricing-row--head { display: none; }
  .bot-pricing-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    background: #f8fbff;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .bot-pricing-row:last-child { margin-bottom: 0; }
  .bot-pricing-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bot-price {
    border: 1px solid #d7e2f5;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
  }
  .bot-price--nonib {
    background: linear-gradient(180deg, #fff7ea, #ffefcf);
    border-color: #f2d099;
    color: #9a5a08;
  }
  .bot-price--ib {
    background: linear-gradient(180deg, #eaf9f0, #d9f3e4);
    border-color: #9ad6b4;
    color: #0f7a44;
  }
  .mandatory-req-card {
    padding: 12px;
  }
  .mandatory-req-head {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mandatory-req-card h4 {
    font-size: 17px;
  }
  .mandatory-req-card h4 strong {
    font-size: 19px;
  }
  .home-launch-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stats-row { grid-template-columns: repeat(2, 1fr); }
  .home-pulse-bar { padding: 8px 10px; }
  .pulse-item { min-width: 55px; }
  .pulse-value { font-size: 12px; }
  .identity-google-btn, .identity-logout-btn { font-size: 11px; padding: 6px 10px; }
  .modal-content { padding: 1rem; width: 95%; }

  @media (prefers-color-scheme: dark) {
    .bot-pricing-row {
      background: #0f172b;
      border: 1px solid #253252;
    }
    .bot-price {
      border-color: #31446d;
      color: #d0deff;
    }
    .bot-price--nonib {
      background: linear-gradient(180deg, #2e2210, #261b0d);
      color: #f3be67;
      border-color: #6c4f1f;
    }
    .bot-price--ib {
      background: linear-gradient(180deg, #13281d, #102219);
      color: #63d39e;
      border-color: #2d6d4c;
    }
  }
}

/* ═══ Referral income tab ═══ */
.referral-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.ref-code-badge { font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 800; color: #b78a1b; letter-spacing: .05em; }
.ref-ol { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--text-secondary, #5a6a8a); }
.referral-stats.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.referral-stats.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.referral-stats .referral-stat { min-width: 0; }
.income-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.income-amt { color: #1a8a3a; }
.payout-note { font-size: 12px; color: var(--text-secondary, #5a6a8a); }
.ref-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ref-item-meta { font-size: 12px; color: var(--text-secondary, #5a6a8a); margin-top: 4px; }
.ref-amt { margin-left: auto; color: #1a8a3a; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Referral tier ladder + payout helper blocks */
.ref-tier-wrap { margin-top: 10px; }
.ref-tier-scroll { overflow-x: auto; border: 1px solid #e3e8f5; border-radius: 12px; }
.ref-tier-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.ref-tier-table caption { caption-side: top; text-align: left; font-size: 12px; color: var(--text-secondary, #5a6a8a); padding: 8px 10px 4px; }
.ref-tier-table th, .ref-tier-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef1f8; }
.ref-tier-table thead th { background: #f4f7fd; color: #1b356b; font-weight: 800; }
.ref-tier-table th.ref-tier-range { color: #1b356b; font-weight: 700; }
.ref-tier-table td { color: #24407a; font-variant-numeric: tabular-nums; }
.ref-tier-table tbody tr:last-child th, .ref-tier-table tbody tr:last-child td { border-bottom: 0; }
.ref-tier-table tbody tr:hover td { background: #f7faff; }
.ref-tier-note { margin: 8px 0 0; font-size: 12px; color: var(--text-secondary, #5a6a8a); }
.ref-copy-feedback { margin: 8px 0 0; min-height: 16px; font-size: 13px; color: #1a8a3a; }
.ref-copy-feedback.is-error { color: #c62828; }
.payout-min-banner { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid #f0dfae; background: #fff7e0; color: #7a5b10; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.ref-minpay-line { margin: 6px 0 12px; font-size: 13px; color: #1f2a44; }
.ref-paypal-label { margin: 4px 0 2px; font-size: 12px; color: var(--text-secondary, #5a6a8a); font-weight: 600; }
.ref-payout-settings .referral-link-box { margin: 8px 0 4px; }

@media (max-width: 520px) {
  .referral-stats.count-4, .referral-stats.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-link-box { flex-wrap: wrap; }
  .referral-link-box .btn-copy-link { width: 100%; }
}
@media (prefers-color-scheme: dark) {
  .ref-code-badge { color: #e2b055; }
  .income-amt, .ref-amt { color: #63d39e; }
  .payout-note { color: #7a8aa5; }
  .ref-ol { color: #7a8aa5; }
  .ref-tier-scroll { border-color: #253252; }
  .ref-tier-table thead th { background: #1a2440; color: #cfe0ff; }
  .ref-tier-table th.ref-tier-range { color: #e0e9ff; }
  .ref-tier-table td { color: #cfe0ff; border-bottom-color: #253252; }
  .ref-tier-table tbody tr:hover td { background: #1d2947; }
  .ref-tier-table caption, .ref-tier-note, .ref-paypal-label { color: #7a8aa5; }
  .payout-min-banner { background: #3a2f12; border-color: #6c5a22; color: #f0d98a; }
  .ref-minpay-line { color: #e4ecff; }
  .ref-copy-feedback { color: #63d39e; }
  .ref-copy-feedback.is-error { color: #ff8f8f; }
}

/* ═══ Legal & Policies pages (Terms, Privacy, Disclaimer, Refund) ═══ */
.home-legal-section { margin-top: 22px; }
.home-legal-title {
  font-size: 15px;
  font-weight: 800;
  color: #1b356b;
  margin: 0 0 2px;
  letter-spacing: .02em;
}
.home-legal-sub {
  font-size: 12px;
  color: var(--text-secondary, #5a6a8a);
  margin: 0 0 10px;
}
.home-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.legal-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e3e8f5;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  font-family: inherit;
}
.legal-link-card:hover {
  border-color: var(--brand, #2d7aff);
  box-shadow: 0 6px 16px rgba(45, 122, 255, 0.10);
  transform: translateY(-1px);
}
.legal-link-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: linear-gradient(150deg, #eef4ff, #e3ecff);
  color: #2d7aff;
}
.legal-link-text { min-width: 0; flex: 1 1 auto; }
.legal-link-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1b356b;
  line-height: 1.2;
}
.legal-link-desc {
  display: block;
  font-size: 11px;
  color: var(--text-secondary, #5a6a8a);
  margin-top: 2px;
  line-height: 1.35;
}
.legal-link-arrow {
  flex: 0 0 auto;
  color: #9db1d9;
  font-size: 15px;
  transition: transform .18s ease;
}
.legal-link-card:hover .legal-link-arrow { transform: translateX(2px); color: var(--brand, #2d7aff); }

/* Legal content pages */
.legal-page { padding: 4px 0 24px; }
.legal-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e3e8f5;
  background: #ffffff;
  color: #1b356b;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.legal-back-btn:hover { border-color: var(--brand, #2d7aff); background: #f4f8ff; }
.legal-updated {
  font-size: 11px;
  color: var(--text-secondary, #5a6a8a);
  background: #f4f7fd;
  border: 1px solid #eef1f8;
  padding: 4px 10px;
  border-radius: 999px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 900;
  color: #1b356b;
  margin: 0 0 4px;
}
.legal-page .legal-lead {
  font-size: 13px;
  color: var(--text-secondary, #5a6a8a);
  margin: 0 0 16px;
  line-height: 1.6;
}
.legal-block {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #eef1f8;
  border-left: 3px solid var(--brand, #2d7aff);
  border-radius: 12px;
}
.legal-block h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1b356b;
  margin: 0 0 6px;
}
.legal-block p {
  font-size: 13px;
  color: #3a4a6a;
  line-height: 1.65;
  margin: 0 0 8px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul {
  margin: 6px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.legal-block li {
  font-size: 13px;
  color: #3a4a6a;
  line-height: 1.6;
}
.legal-block strong { color: #1b356b; }
.legal-warning {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #f0dfae;
  background: #fff7e0;
  border-radius: 12px;
}
.legal-warning h3 {
  font-size: 14px;
  font-weight: 800;
  color: #7a5b10;
  margin: 0 0 6px;
}
.legal-warning p {
  font-size: 13px;
  color: #6b5a20;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 520px) {
  .home-legal-grid { grid-template-columns: 1fr; }
  .legal-page h2 { font-size: 19px; }
}

@media (prefers-color-scheme: dark) {
  .home-legal-title { color: #cfe0ff; }
  .home-legal-sub { color: #7a8aa5; }
  .legal-link-card { background: #0f1425; border-color: #1f2742; }
  .legal-link-card:hover { border-color: var(--brand, #2d7aff); box-shadow: 0 8px 20px rgba(45, 122, 255, 0.08); }
  .legal-link-icon { background: linear-gradient(150deg, #162646, #12203c); color: #7fb0ff; }
  .legal-link-name { color: #d0deff; }
  .legal-link-desc { color: #7a8aa5; }
  .legal-link-arrow { color: #5a6a8a; }
  .legal-link-card:hover .legal-link-arrow { color: #7fb0ff; }

  .legal-back-btn { background: #0f1425; border-color: #1f2742; color: #d0deff; }
  .legal-back-btn:hover { background: #182140; border-color: var(--brand, #2d7aff); }
  .legal-updated { background: #13182b; border-color: #1f2742; color: #7a8aa5; }
  .legal-page h2 { color: #d0deff; }
  .legal-page .legal-lead { color: #7a8aa5; }
  .legal-block { background: #0f1425; border-color: #1f2742; }
  .legal-block h3 { color: #a0b8e8; }
  .legal-block p, .legal-block li { color: #9db1d9; }
  .legal-block strong { color: #d0deff; }
  .legal-warning { background: #3a2f12; border-color: #6c5a22; }
  .legal-warning h3 { color: #f0d98a; }
  .legal-warning p { color: #e6d9a8; }
}



/* ___SIGNALS_FILTER_POPUP_STYLES___ */
/* ═══ Signals: prominent Filter toggle (opens a popup instead of expanding below) ═══ */
.filter-toolbar { margin: 14px 0 4px; }
.filter-toggle-btn {
  flex: 1 1 100%;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #db2777 100%);
  box-shadow: 0 12px 24px rgba(88, 28, 200, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.filter-toggle-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(88, 28, 200, 0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.filter-toggle-btn:active { transform: translateY(0); }
.filter-toggle-icon { font-size: 18px; line-height: 1; }
.filter-toggle-caret { display: none !important; }
.filter-active-pill { margin: 2px 0 0; }

/* Filter popup */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 14px;
  overflow-y: auto;
  background: rgba(10, 18, 35, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.filter-modal-overlay.open { display: flex; }
.filter-modal-dialog {
  width: min(600px, 100%);
  align-self: center;
  margin: auto;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #d5e1f6;
  background: #fbfdff;
  color: #1f2a44;
  box-shadow: 0 24px 70px rgba(20, 28, 70, 0.35);
}
.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-modal-head h3 { margin: 0; font-size: 19px; color: #1b4288; }
.filter-modal-dialog .filter-info-note {
  margin: 0 0 14px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  border-radius: 12px;
  color: #2a3d66;
  background: #eef4ff;
  border: 1px solid #c9dcff;
}
#filterSection.popup-section {
  margin: 0;
  padding: 4px;
  border: none;
  box-shadow: none;
  background: transparent;
}
.filter-save-btn {
  background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.3);
}
.filter-section .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter-section .actions .secondary-btn { flex: 1 1 auto; white-space: nowrap; }

@media (prefers-color-scheme: dark) {
  .filter-modal-dialog {
    background: #0d1226;
    color: #d0deff;
    border-color: #253252;
  }
  .filter-modal-head h3 { color: #cfe0ff; }
  .filter-modal-dialog .filter-info-note {
    color: #b7c9f2;
    background: rgba(24, 36, 74, 0.6);
    border-color: #22335f;
  }
  .filter-modal-dialog .filter-info-note strong { color: #dce9ff; }
  #filterSection.popup-section { background: transparent; border-color: transparent; }
}
