root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #d4af37;      /* ذهبي */
  --accent-soft: #fef3c7;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: var(--accent-soft);
}

main {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 16px;
}

.hero {
  padding: 24px 0 14px;
}

.hero-kicker {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.hero-highlight {
  color: var(--accent);
}

.hero-text {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
}

.label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #374151;
}

.input, select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  background: #f9fafb;
}

select:focus,
textarea:focus {
  border-color: var(--accent);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.button-main {
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.button-main:hover {
  filter: brightness(1.05);
}

.result-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed var(--border);
  font-size: 14px;
  white-space: pre-line;
  min-height: 80px;
}

.section-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.list {
  font-size: 13px;
  color: var(--muted);
  padding-right: 18px;
}

.list li {
  margin-bottom: 4px;
}

.book-card {
  display: flex;
  gap: 14px;
}

.book-cover {
  width: 70px;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #6b7280);
}

.book-info-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 11px;
  margin-left: 4px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 14px 10px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: #f9fafb;
}

/* صفحات فرعية */
.page-title {
  font-size: 22px;
  font-weight: 700;
  margin: 14px 0 6px;
}

.page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}