/* ── Price Alerts — bell icon + modal + manage-alerts list ──────────────────── */

/* Bell icon button — mirrors .star-btn's visual weight */
.bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.02rem;
  color: var(--text-dim);
  padding: 0.15rem 0.3rem;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}
.bell-btn:hover { color: var(--accent); }
.bell-btn.active { color: var(--accent); }

/* Larger variant used on the individual ticker page, next to the star button */
.bell-btn-lg {
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.bell-btn-lg:hover { color: var(--accent); border-color: var(--accent); }
.bell-btn-lg.active { color: var(--accent); border-color: var(--accent); }

/* Bell icon inline next to an AI-summary ticker chip */
.ai-ticker-chip .bell-btn,
.ai-related-chip .bell-btn { margin-left: 0.3rem; font-size: 0.85rem; }

/* ── Modal ── */
.pa-overlay {
  position: fixed; inset: 0; z-index: 9450;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.18s;
  padding: 1rem;
}
.pa-overlay.open { opacity: 1; pointer-events: auto; }
.pa-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px); box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.5));
  padding: 2rem; width: min(420px, 100%);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.pa-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-dim);
  font-size: 1rem; cursor: pointer; padding: 0.3rem; border-radius: 6px;
  line-height: 1;
}
.pa-close:hover { color: var(--text-primary); }
.pa-title { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.2rem; }
.pa-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.9rem; }
.pa-subtitle strong { color: var(--text-primary); font-weight: 700; }
.pa-current-price {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-secondary); border-radius: 8px;
  padding: 0.55rem 0.8rem; margin-bottom: 1.25rem;
}
.pa-current-price strong { color: var(--text-primary); font-weight: 700; }

.pa-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.pa-field label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.pa-row { display: flex; gap: 0.6rem; }
.pa-direction {
  background: var(--bg-secondary); border: 1px solid var(--border2);
  border-radius: 9px; padding: 0.6rem 0.7rem;
  color: var(--text-primary); font-size: 0.9rem; font-family: inherit; outline: none;
  flex: 0 0 110px; cursor: pointer;
}
.pa-price-input {
  background: var(--bg-secondary); border: 1px solid var(--border2);
  border-radius: 9px; padding: 0.6rem 0.8rem;
  color: var(--text-primary); font-size: 0.9rem; font-family: inherit; outline: none;
  flex: 1; min-width: 0;
}
.pa-direction:focus, .pa-price-input:focus { border-color: var(--accent); }

.pa-toggle-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.pa-toggle-row span { font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.pa-toggle-hint { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.15rem; }

.pa-submit {
  width: 100%; background: #000000; color: #fff; border: none;
  border-radius: 9px; padding: 0.7rem 1rem; font-family: inherit;
  font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: opacity 0.15s;
}
.pa-submit:hover { opacity: 0.88; }
.pa-submit:disabled { opacity: 0.5; cursor: default; }

.pa-error {
  font-size: 0.78rem; color: var(--negative); background: var(--negative-subtle);
  border: 1px solid var(--negative); border-radius: 7px;
  padding: 0.5rem 0.75rem; margin-bottom: 0.9rem; display: none;
}
.pa-error.visible { display: block; }

.pa-success { text-align: center; padding: 0.5rem 0 0.25rem; }
.pa-success-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.pa-success-msg { font-size: 0.92rem; color: var(--text-primary); line-height: 1.55; }

/* Login / upgrade in-modal prompts (reuses .pa-modal shell, different body) */
.pa-prompt { text-align: center; padding: 0.5rem 0; }
.pa-prompt-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.pa-prompt-text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.pa-prompt-btns { display: flex; gap: 0.6rem; justify-content: center; }
.pa-prompt-btn {
  border-radius: 9px; padding: 0.55rem 1.2rem; font-family: inherit;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border2);
  background: none; color: var(--text-primary); transition: opacity 0.15s;
}
.pa-prompt-btn-primary { background: #000000; color: #fff; border-color: #000000; }
.pa-prompt-btn:hover { opacity: 0.85; }

/* ── Manage Alerts list (Account Settings pane) ── */
.pa-list-empty { text-align: center; padding: 2rem 1rem; color: var(--text-dim); font-size: 0.85rem; }
.pa-list-row {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.65rem;
}
.pa-list-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.pa-list-id { display: flex; align-items: baseline; gap: 0.45rem; min-width: 0; flex: 1; }
.pa-list-symbol { font-size: 0.9rem; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; flex-shrink: 0; }
.pa-list-name { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-list-target { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); flex-shrink: 0; }
.pa-list-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.7rem; color: var(--text-dim); }
.pa-list-badge {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.12rem 0.45rem; border-radius: 10px; border: 1px solid var(--border2); color: var(--text-muted);
}
.pa-list-badge.triggered { color: var(--text-dim); border-color: var(--border); }
.pa-list-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.pa-list-repeat { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; color: var(--text-muted); }
.pa-list-delete {
  background: none; border: none; font-size: 0.7rem; font-family: inherit;
  color: var(--text-dim); cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 7px;
  transition: color 0.15s;
}
.pa-list-delete:hover { color: var(--negative); }

/* iOS-style toggle, self-contained (some pages already have an equivalent .menu-toggle) */
.pa-toggle { position: relative; width: 38px; height: 21px; cursor: pointer; flex-shrink: 0; display: inline-block; }
.pa-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pa-toggle-track { position: absolute; inset: 0; border-radius: 11px; background: var(--border2); transition: background 0.2s; }
.pa-toggle input:checked ~ .pa-toggle-track { background: var(--accent); }
.pa-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform 0.2s; pointer-events: none; }
.pa-toggle input:checked ~ .pa-toggle-thumb { transform: translateX(17px); }

@media (max-width: 768px) {
  .pa-modal { padding: 1.5rem; width: 100%; }
  .pa-row { flex-direction: column; }
  .pa-direction { flex: 1; }
}
