/* نفس ألوان وخطوط استديو الرأي */
@font-face { font-family: "Almarai"; src: url(../fonts/Almarai-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url(../fonts/Almarai-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Almarai"; src: url(../fonts/Almarai-ExtraBold.ttf); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/Montserrat-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/Montserrat-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --bg: #0F0E11; --panel: #18161B; --panel-2: #211E25; --line: #2E2A33;
  --text: #EDEBEF; --muted: #9A96A0; --accent: #009DDF; --accent-2: #7FD3F5; --ink: #1A171B;
  --danger: #FF6B6B; --ok: #3DD68C; --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: "Almarai", system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-2); }
.num { font-family: "Montserrat", "Almarai", sans-serif; font-weight: 600; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: var(--panel-2); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-weight: 700; text-decoration: none; color: var(--text); }
.btn:hover { border-color: #46404D; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0aa8ec; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); cursor: pointer; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }

.toast { position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; z-index: 100;
  opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
