/* =========================================
   Specter Roleplay - الألوان (غيّر من هنا)
   ========================================= */
:root {
  --bg: #0b0a0c;
  --fg: #f4f1f2;
  --muted: #a8a0a3;
  --red: #e23a46;
  --red-deep: #8f1a24;
  --red-glow: rgba(226, 58, 70, .45);
  --pill: rgba(18, 14, 16, .72);
  --line: rgba(255, 255, 255, .14);
  --discord: #5865f2;
  --display: "Orbitron", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---------- الخلفية: البنر + تعتيم + خطوط ---------- */
.bg {
  position: fixed;
  inset: -4%;
  z-index: 0;
  background: url("../images/bg.jpg") center / cover no-repeat;
  animation: drift 28s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(75% 65% at 50% 45%, rgba(11, 10, 12, .12), rgba(11, 10, 12, .78) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}

#sparks {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- الواجهة ---------- */
.hero {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 48px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow: hidden;
}

/* حروف SP الكبيرة ورا اللوقو */
.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: -1;
}

.watermark span {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(200px, 46vw, 560px);
  line-height: 1;
  letter-spacing: -.06em;
  transform: skewX(-10deg) translateY(-6%);
  color: transparent;
  background: linear-gradient(180deg, rgba(226, 58, 70, .22), rgba(226, 58, 70, .02) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1.5px rgba(226, 58, 70, .12);
  direction: ltr;
}

/* اللوقو المتحرك */
.logo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 210deg, var(--red), var(--red-deep), var(--red));
  box-shadow: 0 0 40px var(--red-glow), 0 0 90px rgba(226, 58, 70, .2);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  border: 3px solid #050405;
}

/* حالة السيرفر */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill);
  backdrop-filter: blur(6px);
  font-size: 14px;
  direction: ltr;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.status .on { color: var(--red); }
.status .sep { width: 1px; height: 14px; background: var(--line); }
.status .count { font-family: var(--display); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.status .lbl { color: var(--muted); }

/* الاسم */
h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 10vw, 104px);
  line-height: 1;
  letter-spacing: .06em;
  direction: ltr;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

h1 .r {
  color: var(--red);
  text-shadow: 0 0 28px var(--red-glow);
}

.lead {
  max-width: 660px;
  margin: 22px auto 0;
  color: #ddd6d8;
  font-size: clamp(16px, 2.3vw, 19px);
  font-weight: 300;
  text-wrap: balance;
}

/* الأزرار */
.ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:focus-visible, .code button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-server {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  box-shadow: 0 10px 30px var(--red-glow);
}

.btn-discord {
  background: var(--discord);
  box-shadow: 0 10px 30px rgba(88, 101, 242, .4);
}

/* كود الانضمام */
.code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.code svg { width: 18px; height: 18px; color: var(--red); }

.code button {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--red);
  background: var(--pill);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 14px;
  cursor: pointer;
  direction: ltr;
  transition: border-color .2s;
}

.code button:hover { border-color: var(--red); }

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ---------- الشريط العلوي ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(11, 10, 12, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: .08em;
  direction: ltr;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red);
  object-fit: cover;
}

.brand b { color: var(--red); }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s, background .2s;
}

.tab:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.tab[aria-current="page"] { color: #fff; background: var(--red); font-weight: 500; }
.tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- الصفحات الداخلية ---------- */
.page {
  position: relative;
  z-index: 3;
  padding-block: 56px 80px;
}

.head { text-align: center; margin-bottom: 44px; }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--red);
  direction: ltr;
  display: inline-block;
}

.head h2 { margin: 8px 0 10px; font-size: clamp(30px, 5vw, 46px); text-wrap: balance; }
.head p { margin: 0 auto; max-width: 560px; color: var(--muted); }

.box {
  background: rgba(18, 14, 16, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s;
}

.box:hover { border-color: rgba(226, 58, 70, .6); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* عن السيرفر */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.about-text { min-width: 0; }
.about-text h3 { margin: 0 0 10px; font-size: 24px; }
.about-text p { margin: 0 0 14px; color: #ddd6d8; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.fact { padding: 14px 16px; }
.fact span { display: block; color: var(--muted); font-size: 13px; }
.fact b { font-family: var(--display); color: var(--red); font-size: 17px; }
.about-logo { display: grid; place-items: center; padding: 30px; }
.about-logo img { width: min(260px, 70%); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 60px var(--red-glow); border: 4px solid var(--red); }
.rules { margin-top: 40px; padding: 24px 26px; }
.rules h3 { margin: 0 0 12px; font-size: 20px; }
.rules ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; color: #ddd6d8; }
.rules li::marker { color: var(--red); font-weight: 700; }


.crime { margin-top: 20px; }
.crime h4 { margin: 22px 0 10px; font-size: 16px; color: var(--red); }
.crime h4:first-of-type { margin-top: 4px; }

.rule-note { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.rules-sub { margin: -6px 0 12px; max-width: 75ch; color: var(--muted); font-size: 14px; }
.rules ul.sub { margin: 6px 0 2px; padding-inline-start: 22px; display: grid; gap: 4px; list-style: square; font-family: var(--display); font-size: 14px; letter-spacing: .04em; }
.rules ul.sub li::marker { color: var(--red); }
.rules h4 .en { font-family: var(--display); font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-inline-start: 8px; }
.notice { margin-top: 20px; padding: 14px 18px; border-inline-start: 3px solid var(--red); background: rgba(226, 58, 70, .08); border-radius: 10px; }
.notice b { color: var(--red); }
.notice p { margin: 6px 0 0; color: #ddd6d8; font-size: 14.5px; }
.spray .t { display: block; color: var(--fg); font-weight: 700; }
.spray .d { display: block; color: #ddd6d8; }
.spray li { margin-bottom: 6px; }

/* طاقم الإدارة */
.tier { margin-bottom: 44px; }
.tier-label { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; }
.tier-label::before, .tier-label::after { content: ""; flex: 1; max-width: 180px; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 58, 70, .5)); }
.tier-label::after { transform: scaleX(-1); }
.tier-label span { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .24em; color: var(--red); direction: ltr; }
.row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.member { width: 230px; max-width: 100%; padding: 24px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.member:hover { transform: translateY(-4px); }
.avatar { width: 86px; height: 86px; border-radius: 50%; border: 3px solid var(--red); display: grid; place-items: center; color: var(--red); background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 8px, rgba(255,255,255,.01) 8px 16px); overflow: hidden; }
.avatar svg { width: 34px; height: 34px; opacity: .7; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member .name { margin: 4px 0 0; font-size: 21px; font-weight: 700; unicode-bidi: plaintext; }
.member .role { font-family: var(--display); font-size: 11px; letter-spacing: .14em; padding: 3px 12px; border-radius: 999px; color: var(--red); background: rgba(226, 58, 70, .12); border: 1px solid rgba(226, 58, 70, .4); direction: ltr; }
.member.top { width: 320px; padding: 32px 22px; border-color: var(--red); background: linear-gradient(180deg, rgba(226, 58, 70, .16), rgba(18, 14, 16, .8) 60%); box-shadow: 0 0 60px rgba(226, 58, 70, .18); }
.member.top .avatar { width: 116px; height: 116px; box-shadow: 0 0 30px var(--red-glow); }
.member.top .name { font-size: 28px; }
.crown { width: 28px; height: 28px; color: var(--red); }


/* القوانين: أزرار التنقل بين الأقسام */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -14px 0 28px; }
.chip { font: 500 14px var(--body); color: var(--fg); background: rgba(18, 14, 16, .78); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover, .chip:focus-visible { border-color: var(--red); background: rgba(226, 58, 70, .14); outline: none; }
#v-rules .rules { margin-top: 20px; scroll-margin-top: 90px; }
#v-rules .rules:first-of-type { margin-top: 0; }
/* المميزات */
.feat { padding: 24px; }
.feat:hover { transform: translateY(-4px); }
.feat .ic {
  width: 48px; height: 48px; margin-bottom: 14px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: rgba(226, 58, 70, .12);
  border: 1px solid rgba(226, 58, 70, .4);
}
.feat .ic svg { width: 24px; height: 24px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* المتجر */
.pkg { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.pkg:hover { transform: translateY(-4px); }
.pkg.hot { border-color: var(--red); box-shadow: 0 0 50px rgba(226, 58, 70, .18); }
.pkg h3 { margin: 0; font-size: 20px; }
.price { font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--red); line-height: 1.1; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.price small { font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--muted); }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #ddd6d8; font-size: 14.5px; }
.pkg li { display: flex; gap: 8px; }
.pkg li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.pkg .btn { margin-top: auto; min-width: 0; width: 100%; padding: 13px 20px; }
.badge {
  position: absolute; top: -12px; inset-inline-start: 18px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 16px var(--red-glow);
}
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* الأسئلة */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 20px; }
.faq details[open] { border-color: var(--red); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 0; font-size: 17px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* الإنجازات */
.ach { overflow: hidden; display: flex; flex-direction: column; }
.ach:hover { transform: translateY(-4px); }
.slot {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center; gap: 6px;
  text-align: center; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, rgba(255,255,255,.01) 12px 24px);
  border-bottom: 1px dashed var(--line);
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot svg { width: 34px; height: 34px; color: var(--red); opacity: .7; }
.slot .tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  padding: 2px 10px; border-radius: 6px;
  background: #000; border: 1px solid var(--red); color: var(--red);
  font-family: var(--display); font-size: 12px; direction: ltr;
}
.ach-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ach-body h3 { margin: 0; font-size: 19px; }
.ach-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ach-body .date { margin-top: auto; padding-top: 10px; color: var(--red); font-family: var(--display); font-size: 13px; direction: ltr; text-align: end; }

footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding-block: 22px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid3, .facts { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
}

@media (max-width: 520px) {
  .btn { width: 100%; min-width: 0; }
  .ctas { width: 100%; }
  .logo { width: 116px; height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg, .dot { animation: none; }
}
