/* ====================================================================
   بنت السبيت — هوية المنصة «المجلس الفاخر»
==================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@400;600;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --felt: #0d5c46;
  --felt-2: #0a4433;
  --bg: #06241c;
  --gold: #d9b44a;
  --gold-2: #b8912a;
  --gold-soft: rgba(217,180,74,.35);
  --cream: #f7f3e8;
  --ink: #071d16;
  --red: #c0392b;
  --danger: #e74c3c;
  --safe: #2ecc71;
  --line: rgba(217,180,74,.22);
}

html { background: var(--bg); color-scheme: dark; }
html, body { min-height: 100%; }
body {
  font-family: 'Cairo', sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% 15%, rgba(217,180,74,.10), transparent 42%),
    radial-gradient(circle at 82% 82%, rgba(217,180,74,.08), transparent 45%),
    radial-gradient(ellipse at center, var(--felt) 0%, var(--bg) 95%);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}
/* زخرفة رموز الورق الخافتة بالخلفية */
body::before {
  content: '♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣ ♠ ♥ ♦ ♣';
  position: fixed; inset: -20px; z-index: 0;
  font-size: 42px; line-height: 2.4; letter-spacing: 30px;
  color: rgba(255,255,255,.02); pointer-events: none;
  word-break: break-all; transform: rotate(-8deg);
}
.wrap { position: relative; z-index: 1; }

/* ---------- خطوط العناوين ---------- */
.display { font-family: 'Aref Ruqaa', serif; }

/* ---------- الترويسة ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(4,20,15,.4); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.logo-mark {
  font-family: 'Aref Ruqaa', serif; font-size: 24px; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.logo-mark .suit { font-family: sans-serif; font-size: 20px; filter: drop-shadow(0 0 6px var(--gold-soft)); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 30px; padding: 5px 14px;
}
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 8px var(--safe); }

/* ---------- أزرار ---------- */
.btn {
  font-family: inherit; font-weight: 700; cursor: pointer; border: none;
  border-radius: 12px; padding: 11px 22px; font-size: 15px;
  transition: transform .12s, filter .15s, box-shadow .15s; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn.primary {
  background: linear-gradient(160deg, var(--gold) 0%, var(--gold-2) 100%); color: var(--ink);
  box-shadow: 0 6px 18px rgba(184,145,42,.35);
}
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(184,145,42,.5); }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); background: rgba(217,180,74,.08); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(231,76,60,.5); }
.btn.big { width: 100%; padding: 15px; font-size: 17px; }
.btn.small { padding: 7px 15px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- البطاقات/اللوحات ---------- */
.panel {
  background: linear-gradient(165deg, rgba(16,69,58,.92), rgba(8,44,34,.94));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.field { margin-bottom: 14px; text-align: right; }
.field label { display: block; font-size: 13px; color: var(--gold); margin-bottom: 6px; font-weight: 600; }
.input {
  width: 100%; padding: 12px 15px; border-radius: 11px; font-family: inherit; font-size: 16px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--cream); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,180,74,.15); }
select.input { cursor: pointer; }

.msg { font-size: 13.5px; padding: 9px 13px; border-radius: 10px; margin-bottom: 12px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(231,76,60,.15); border: 1px solid rgba(231,76,60,.4); color: #ffb4a8; }
.msg.ok { background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.4); color: #a8f0c8; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: rgba(0,0,0,.22); padding: 5px; border-radius: 12px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 14px; transition: .15s; color: rgba(247,243,232,.7); }
.tab.active { background: linear-gradient(160deg, var(--gold), var(--gold-2)); color: var(--ink); }

/* ---------- شبكة عامة ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 22px 18px 60px; }
.stagger > * { opacity: 0; animation: rise .55s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .13s; }
.stagger > *:nth-child(3) { animation-delay: .21s; }
.stagger > *:nth-child(4) { animation-delay: .29s; }
.stagger > *:nth-child(5) { animation-delay: .37s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.toast-site {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(4,20,15,.95); border: 1px solid var(--gold-soft); color: var(--cream);
  padding: 12px 22px; border-radius: 30px; font-weight: 700; z-index: 90; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); display: none;
}
