/* Wella Trader Signals — shared styles */
:root {
  --gold-1: #FFCF5B;
  --gold-2: #E0A92E;
  --gold-3: #7A5A14;
  --green-1: #22D3A5;
  --green-2: #1AA67F;
  --red-1: #FF4D5E;
  --red-2: #C73746;
  --bg-0: #030A06;
  --bg-1: #07160D;
  --bg-2: #0C2417;
  --text-1: #F4F1E8;
  --text-2: #B8B3A0;
  --text-3: #6B6857;
  --border: rgba(212, 175, 55, 0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-0); color: var(--text-1); min-height: 100vh; }
a { color: var(--gold-1); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── Pretty modal + toast (replaces native confirm/alert) ─── */
.ui-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3, 8, 5, 0.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.18s ease;
}
.ui-overlay.show { opacity: 1; }
.ui-modal {
  width: 100%; max-width: 440px; overflow: hidden;
  background: linear-gradient(180deg, #123420, #0A1F13);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.08);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ui-overlay.show .ui-modal { transform: none; }
.ui-modal .ui-accent { height: 4px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); }
.ui-modal.danger .ui-accent { background: linear-gradient(90deg, #FF7A86, var(--red-1)); }
.ui-modal.success .ui-accent { background: linear-gradient(90deg, var(--green-1), var(--green-2)); }
.ui-modal .ui-body { padding: 26px 28px 8px; }
.ui-modal .ui-ic { font-size: 38px; line-height: 1; margin-bottom: 12px; display: block; }
.ui-modal .ui-title { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-1); margin-bottom: 8px; }
.ui-modal .ui-text { font-size: 14px; line-height: 1.65; color: var(--text-2); word-break: break-word; }
.ui-modal .ui-text a { color: var(--gold-1); text-decoration: underline; font-weight: 700; }
.ui-modal .ui-scroll {
  max-height: 230px; overflow: auto; margin-top: 14px; padding: 14px 16px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap;
}
.ui-modal .ui-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 20px 28px 24px; }
.ui-btn { padding: 11px 24px; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: 1px; cursor: pointer; border: none; transition: box-shadow 0.18s, background 0.18s, color 0.18s; }
.ui-btn-cancel { background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--text-2); }
.ui-btn-cancel:hover { color: var(--text-1); background: rgba(255,255,255,0.12); }
.ui-btn-ok { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #0A1024; box-shadow: 0 0 18px rgba(224,169,46,0.3); }
.ui-btn-ok:hover { box-shadow: 0 0 28px rgba(224,169,46,0.55); }
.ui-modal.danger .ui-btn-ok { background: linear-gradient(135deg, #FF7A86, var(--red-1)); color: #2c0a0e; box-shadow: 0 0 18px rgba(255,77,94,0.3); }
.ui-modal.success .ui-btn-ok { background: linear-gradient(135deg, var(--green-1), var(--green-2)); color: #052418; box-shadow: 0 0 18px rgba(34,211,165,0.3); }

.ui-toasts { position: fixed; top: 18px; right: 18px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.ui-toast {
  background: linear-gradient(180deg, #123420, #0A1F13);
  border: 1px solid var(--border); border-left: 4px solid var(--gold-2); border-radius: 12px;
  padding: 14px 18px; box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  color: var(--text-1); font-size: 13px; line-height: 1.5; cursor: pointer;
  transform: translateX(120%); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ui-toast.show { transform: none; }
.ui-toast.success { border-left-color: var(--green-1); }
.ui-toast.error { border-left-color: var(--red-1); }
.ui-toast.info { border-left-color: var(--gold-2); }
.ui-toast .t-title { font-weight: 800; margin-bottom: 3px; color: var(--text-1); }
.ui-toast a { color: var(--gold-1); text-decoration: underline; }
@media (max-width: 520px) {
  .ui-toasts { left: 12px; right: 12px; max-width: none; }
}
