/* ── Helm Design Tokens & Shared Components ───────────────────────────── */
:root {
  --bg: #09090F;
  --surface: #111118;
  --surface2: #16161F;
  --border: #1E1E2E;
  --border2: #2A2A3A;
  --text: #E8E8F0;
  --text2: #8888A8;
  --text3: #4A4A6A;
  --accent: #6C5CE7;
  --accent2: #A29BFE;
  --ag: rgba(108, 92, 231, 0.15);
  --green: #00B894;
  --gbg: rgba(0, 184, 148, 0.1);
  --gb: rgba(0, 184, 148, 0.3);
  --red: #E17055;
  --rbg: rgba(225, 112, 85, 0.1);
  --rb: rgba(225, 112, 85, 0.3);
  --gold: #FDCB6E;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.ar { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }

/* ── Toast notifications ─────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  max-width: 320px;
  animation: toastIn 0.22s ease;
  pointer-events: auto;
}
.toast-ok   { background: rgba(0,184,148,.15); color: var(--green); border: 1px solid var(--gb); }
.toast-err  { background: rgba(225,112,85,.15); color: var(--red); border: 1px solid var(--rb); }
.toast-info { background: var(--ag); color: var(--accent2); border: 1px solid rgba(108,92,231,.3); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Common utility classes ──────────────────────────────────────────── */
.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
}
.btn:hover { background: #5849D4; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(108,92,231,.4); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); box-shadow: none; transform: none; }
.btn-link { background: transparent; color: var(--accent2); padding: 6px 0; font-weight: 500; font-size: 13px; cursor: pointer; border: 0; }
.btn-link:hover { color: #bdb6ff; background: transparent; box-shadow: none; transform: none; }

/* ── Hex logo shape ──────────────────────────────────────────────────── */
.logo-hex {
  width: 30px;
  height: 30px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* ── Scrollbar styling ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
