/* بوابة حواء — تصميم مطابق للوحة الألوان المرجعية */
:root {
  --rose: #9b6b6b;
  --rose-dark: #7d5656;
  --cream: #fdf8f5;
  --sidebar-tan: #ead7c7;
  --mint: #53d3af;
  --mint-hover: #3bc49a;
  --white: #ffffff;
  --ink: #2a2424;
  --ink-muted: #5c5353;
  --gold: #e8c547;
  --gold-dark: #c9a632;
  --radius-card: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 40px rgba(42, 36, 36, 0.08);
  --shadow-soft: 0 4px 20px rgba(42, 36, 36, 0.06);
  --font: "Tajawal", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  direction: rtl;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— الهيدر ——— */
.site-header {
  background: var(--rose);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
  }

  .header-brand {
    grid-area: brand;
  }

  .header-tools {
    grid-area: tools;
    justify-self: end;
  }

  .header-nav-wrap {
    grid-area: nav;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.header-brand__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.header-brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-brand small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
}

.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.35rem 0 0.5rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    white-space: normal;
    padding: 0.55rem 0.5rem;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ——— هيكل الصفحة: محتوى + شريط جانبي ——— */
.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    order: -1;
    position: static !important;
  }
}

.page-main {
  min-width: 0;
}

.page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 72px;
}

/* ——— إعلانات ——— */
.ad-slot {
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(155, 107, 107, 0.35);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  padding: 0.75rem;
}

.ad-slot span {
  line-height: 1.4;
}

.ad-slot--leader {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 0 auto 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ad-slot--sky {
  min-height: 600px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: var(--sidebar-tan);
  border-color: rgba(155, 107, 107, 0.25);
}

.ad-slot--square {
  min-height: 250px;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  background: var(--white);
}

/* ——— قسم الأحلام في الشريط ——— */
.widget-dreams {
  background: var(--rose);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.widget-dreams h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.widget-dreams form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.widget-dreams input[type="search"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.widget-dreams button[type="submit"] {
  background: var(--white);
  color: var(--rose-dark);
  border: none;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.widget-dreams button[type="submit"]:hover {
  background: var(--cream);
}

.widget-dreams p {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.45;
}

/* ——— شبكة بطاقات الواجهة ——— */
.cards-hero-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(155, 107, 107, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(42, 36, 36, 0.12);
}

.category-card__head {
  padding: 1rem 1.15rem 0.5rem;
}

.category-card__label-en {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose);
  margin-bottom: 0.15rem;
}

.category-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.category-card__body {
  padding: 0 1.15rem 1.15rem;
}

.category-card__media {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

@media (max-width: 480px) {
  .category-card__media {
    grid-template-columns: 1fr 88px;
  }
}

.category-card__media--single {
  grid-template-columns: 1fr;
}

.category-card__hero-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
}

.category-card__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1.1rem 0.35rem 0.35rem;
  text-align: center;
  line-height: 1.2;
}

/* ديكور: صورة + إعلان */
.decor-split {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  align-items: stretch;
}

@media (max-width: 480px) {
  .decor-split {
    grid-template-columns: 1fr;
  }
}

.decor-split__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: 140px;
}

.decor-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* مطبخ */
.kitchen-banner {
  padding: 0 1rem 0.75rem;
}

.kitchen-banner__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 21/9;
  min-height: 120px;
}

.kitchen-banner__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kitchen-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1rem 1.15rem;
}

.flag-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--cream);
  border: 2px solid var(--sidebar-tan);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.flag-chip:hover {
  border-color: var(--rose);
  transform: scale(1.05);
  text-decoration: none;
}

/* منتدى */
.forum-card .category-card__body {
  padding-top: 0.25rem;
}

.forum-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.forum-links li {
  border-bottom: 1px solid rgba(155, 107, 107, 0.12);
}

.forum-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.forum-links a:hover {
  color: var(--rose-dark);
}

.forum-links a svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.btn-mint {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--mint);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(83, 211, 175, 0.35);
  transition: background 0.2s, transform 0.15s;
}

.btn-mint:hover {
  background: var(--mint-hover);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* صف ثانٍ: أقسام إضافية */
.cards-grid--compact {
  margin-top: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .cards-grid--compact {
    grid-template-columns: 1fr;
  }
}

.mini-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(155, 107, 107, 0.1);
  text-align: center;
}

.mini-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--rose-dark);
}

.mini-card p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.mini-card a {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ——— الأقسام التفصيلية (روابط المدونات) ——— */
.sections-detail {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(155, 107, 107, 0.15);
}

.sections-detail__intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  color: var(--ink-muted);
}

.section-block {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(155, 107, 107, 0.1);
}

.section-block__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--rose-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-block__title .num {
  background: var(--rose);
  color: var(--white);
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.section-block__intro {
  color: var(--ink-muted);
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.subsection {
  margin-bottom: 1.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(155, 107, 107, 0.12);
}

.subsection:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.subsection h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.subsection p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  font-weight: 600;
  color: var(--rose-dark);
}

.link-list a::before {
  content: "←";
  opacity: 0.45;
  font-size: 0.85em;
}

.calc-box {
  background: var(--cream);
  border: 1px solid rgba(155, 107, 107, 0.2);
  border-radius: var(--radius-card);
  padding: 1.15rem;
  margin-top: 0.75rem;
}

.calc-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.calc-box input[type="date"] {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(155, 107, 107, 0.25);
  font-family: inherit;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn--rose {
  background: var(--rose);
  color: var(--white);
  margin-top: 0.75rem;
}

.btn--rose:hover {
  background: var(--rose-dark);
}

.calc-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(155, 107, 107, 0.15);
  font-weight: 600;
  font-size: 0.92rem;
}

.calc-result span {
  color: var(--rose-dark);
}

.adsense-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: #fff8ef;
  border: 1px solid var(--sidebar-tan);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin: 1rem 0 0;
}

/* ——— التذييل ——— */
.site-footer {
  background: var(--rose);
  color: var(--white);
  padding: 1.75rem 1.25rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border: 1px solid var(--gold-dark);
}

.social-btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.95;
}

/* صفحات سياسة / من نحن */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.policy-page h1 {
  color: var(--rose-dark);
}

.policy-page h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* الصفحة الرئيسية — قائمة الأقسام 1–10 */
.portal-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* شبكة الرئيسية — 3 أقسام في الصف (بدون ترقيم ظاهر) */
.portal-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .portal-sections {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.portal-tile {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(155, 107, 107, 0.14);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portal-tile:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.portal-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 44px rgba(42, 36, 36, 0.14);
  text-decoration: none;
  color: inherit;
}

.portal-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.12) saturate(0.92) contrast(0.95);
  transition: transform 0.35s ease;
}

.portal-tile:hover .portal-tile__img {
  transform: scale(1.07);
}

.portal-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(45, 36, 48, 0.08) 0%,
    rgba(45, 36, 48, 0.35) 45%,
    rgba(45, 36, 48, 0.82) 100%
  );
  pointer-events: none;
}

.portal-tile__text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.85rem 0.75rem 1rem;
  z-index: 2;
}

.portal-tile__text h2 {
  margin: 0 0 0.28rem;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.portal-tile__text p {
  margin: 0;
  font-size: clamp(0.68rem, 1.85vw, 0.78rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 380px) {
  .portal-tile__text p {
    -webkit-line-clamp: 2;
  }
}

/* صفحات الأقسام الداخلية */
.section-page-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* كروت الأقسام الفرعية داخل صفحات المحتوى */
.subsection-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .subsection-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 950px) {
  .subsection-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sub-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(155, 107, 107, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.sub-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}

.sub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sub-card:hover .sub-card__media img {
  transform: scale(1.05);
}

.sub-card__body {
  padding: 1.05rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sub-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--rose-dark);
  line-height: 1.35;
}

.sub-card__intro {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.sub-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sub-card__links a {
  display: block;
  padding: 0.48rem 0.65rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid rgba(155, 107, 107, 0.18);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--rose-dark);
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.sub-card__links a:hover {
  background: rgba(155, 107, 107, 0.1);
  border-color: var(--rose);
  text-decoration: none;
  color: var(--rose-dark);
}

.sub-card .calc-box {
  margin-top: 0;
}

.sub-card .calc-result {
  font-size: 0.85rem;
}

.breadcrumbs {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--rose-dark);
  font-weight: 600;
}

.section-page-title {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--rose-dark);
}

.section-page-lead {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}

.section-ad-gap {
  margin: 1.25rem 0;
}

/* هيدر صفحات فرعية */
.subpage-header .header-inner {
  max-width: 1320px;
}

.subpage-header .main-nav a {
  color: var(--white);
}

/* أداة تفسير الأحلام */
.dream-ai-panel {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(155, 107, 107, 0.14);
}

.dream-ai-panel__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--rose-dark);
}

.dream-ai-panel__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.dream-ai-panel__code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  background: var(--cream);
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(155, 107, 107, 0.2);
}

.dream-ai-panel__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.dream-ai-panel__textarea {
  width: 100%;
  max-width: 100%;
  min-height: 9rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(155, 107, 107, 0.28);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--cream);
  color: var(--ink);
}

.dream-ai-panel__textarea:focus {
  outline: 2px solid rgba(83, 211, 175, 0.45);
  outline-offset: 2px;
  border-color: var(--mint-hover);
}

.dream-ai-panel__actions {
  margin-top: 0.85rem;
}

.dream-ai-panel__submit {
  display: inline-block;
  width: auto;
  min-width: 12rem;
}

.dream-ai-panel__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.dream-ai-panel__error {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #b42318;
  min-height: 1.2em;
}

.dream-ai-panel__result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(253, 248, 245, 0.95), rgba(234, 215, 199, 0.35));
  border: 1px solid rgba(155, 107, 107, 0.22);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink);
}

.dream-ai-panel__details {
  margin-top: 1.15rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.dream-ai-panel__details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--rose-dark);
}

.subsection-cards--dream-sources {
  margin-top: 0.5rem;
}

/* تحسين إضافي للموبايل + تفتيح بطاقات الرئيسية */
@media (max-width: 640px) {
  .page-shell {
    padding: 1rem 0.75rem 2rem;
  }

  .header-inner {
    padding: 0.55rem 0.75rem;
  }

  .header-brand h1 {
    font-size: 1.08rem;
  }

  .header-brand__icon {
    width: 46px;
    height: 46px;
  }

  .header-brand small {
    font-size: 0.66rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .portal-sections {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .portal-tile {
    aspect-ratio: 4 / 3;
  }

  .portal-tile__text {
    padding: 0.7rem;
  }

  .portal-tile__text h2 {
    font-size: 1rem;
  }

  .portal-tile__text p {
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
  }

  .section-page-title {
    font-size: 1.35rem;
  }

  .section-page-lead {
    font-size: 0.93rem;
  }

  .subsection-cards {
    grid-template-columns: 1fr;
  }

  .ad-slot--sky {
    min-height: 180px;
    max-width: 100%;
  }
}

