@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700&display=swap");

:root {
  --gold: #f2c94c;
  --gold-soft: #f8df7a;
  --black: #050608;
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --radius-xl: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Almarai", system-ui, sans-serif;
  background: radial-gradient(circle at top, #222 0, #050608 45%);
  color: var(--text);
  direction: rtl;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}

/* إعادة استخدام ستايل الناف بار بتبسيط */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(5, 6, 8, 0.92);
  border-bottom: 1px solid rgba(242, 201, 76, 0.2);
  z-index: 20;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a.active {
  color: var(--gold-soft);
}

.btn-login {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 76, 0.7);
  color: var(--gold);
}

/* زر الهامبرغر للموبايل */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* محتوى الصفحة */
.page {
  padding: 30px 0 40px;
}

.page h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  color: #fffbe6;
}

.page p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.8;
}

.page ul {
  margin-top: 10px;
  padding-right: 20px;
  color: var(--text);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(242, 201, 76, 0.25);
  padding: 12px 0;
  background: #050608;
}

.footer-content {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 60px;
    background: rgba(5, 6, 8, 0.98);
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}
