/* أهلنا — الهوية المشتركة */
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Aref Ruqaa'; src: url('/fonts/aref-ruqaa-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Aref Ruqaa'; src: url('/fonts/aref-ruqaa-arabic-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --velvet: #4a1424;
  --velvet-deep: #2c0a15;
  --paper: #fbf6ee;
  --paper-2: #efe4d2;
  --ink: #2a1a1d;
  --muted: #7d6b66;
  --gold-1: #f3dfa6;
  --gold-2: #cfa968;
  --gold-3: #8f6a2e;
  --line: #e2d5c1;
  --card: #ffffff;
  --bg: #f8f4ee;
  --bg2: #efe6d8;
  --accent: #6e1a2e;
  --accent-ink: #fff;
  --ok: #2e7d4f;
  --bad: #b3261e;
  --radius: 14px;
  --font: 'Amiri', 'Times New Roman', serif;
  --script: 'Aref Ruqaa', 'Amiri', serif;
  --gold: linear-gradient(115deg, var(--gold-3) 0%, var(--gold-2) 22%, var(--gold-1) 45%, var(--gold-2) 62%, var(--gold-3) 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.35; margin: 0 0 .4em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: .55em 1.4em;
  cursor: pointer;
  background: var(--bg2);
  color: var(--ink);
  transition: transform .15s ease, filter .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  text-decoration: none;
  line-height: 1.6;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-gold { background: var(--gold); color: #3a2608; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px -12px rgba(207,169,104,.7); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid currentColor; }
.btn-sm { padding: .3em .95em; font-size: .92rem; }
.btn-lg { padding: .7em 2.2em; font-size: 1.2rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

input, textarea, select {
  font: inherit;
  width: 100%;
  padding: .55em .85em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(207,169,104,.25); }
label { display: block; font-weight: 700; margin: .9em 0 .3em; font-size: .98rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px);
  background: var(--ink); color: #fff; padding: .55em 1.3em; border-radius: 999px;
  opacity: 0; transition: all .25s ease; z-index: 1000; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

.spinner { width: 38px; height: 38px; border: 2px solid rgba(207,169,104,.25); border-top-color: var(--gold-2); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.brand { font-family: var(--script); font-weight: 700; font-size: 1.9rem; color: var(--accent); text-decoration: none; line-height: 1; }
.foil { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
