/* ==========================================================================
   كندة Kinda — تنسيق الموقع الموحّد (style.css)
   تستخدمه كل الصفحات: index.html و privacy.html و terms.html و support.html

   الترتيب:
     1. الألوان والخطوط (المتغيرات)
     2. الأساسيات المشتركة
     3. زر اللغة
     4. الفوتر (مشترك بين كل الصفحات)
     5. الصفحة الرئيسية       ← body class="page-home"
     6. الصفحات النصية         ← body class="page-doc"
     7. صفحة الدعم فقط         ← بطاقة البريد والأسئلة الشائعة
     8. الجوال وتقليل الحركة
   ========================================================================== */


/* 1. الألوان والخطوط ------------------------------------------------------ */

:root {
  --space: #0f0a26;          /* خلفية الفضاء */
  --space-2: #1b1247;
  --nebula: #5d2a86;
  --nebula-2: #3a2a8a;
  --cream: #f8eedb;          /* النص الأساسي ولون الشعار */
  --cocoa: #4b2b3d;          /* إطار الشعار */
  --gold: #f1c85e;           /* الأزرار والروابط */
  --gold-deep: #b58b3c;
  --panel: rgba(18, 13, 44, .84);
  --line: rgba(241, 200, 94, .55);
  --muted: #b9b0d6;          /* النص الثانوي */
  --farm: #4fbf6a;           /* مزرعة */
  --smithy: #ef7a3c;         /* حدادة */
  --barracks: #4f86d9;       /* ثكنة */
  --footer-bg: #08051a;

  --f-display: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  --f-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}


/* 2. الأساسيات المشتركة --------------------------------------------------- */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}


/* 3. زر اللغة (EN / ع) ---------------------------------------------------- */

.lang {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(248, 238, 219, .28);
  background: rgba(15, 10, 38, .55);
  color: var(--cream);
  font: 600 1.05rem var(--f-display);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color .2s, transform .2s;
}

.lang:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}


/* 4. الفوتر -------------------------------------------------------------- */

footer {
  background: var(--footer-bg);
  color: var(--muted);
  text-align: center;
  padding: 44px 16px calc(44px + env(safe-area-inset-bottom, 0px));
}

footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.f-logo {
  font: 800 2rem var(--f-display);
  color: var(--cream);
  -webkit-text-stroke: 5px var(--cocoa);
  paint-order: stroke fill;
  margin: 0;
}

footer .domain {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
}

footer .privacy {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .privacy:hover {
  color: var(--cream);
}

footer .mail {
  color: var(--gold);
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

footer .mail:hover {
  text-decoration: underline;
}


/* ==========================================================================
   5. الصفحة الرئيسية (index.html)
   ========================================================================== */

.page-home {
  line-height: 1.75;
  overflow-x: hidden;
}

[lang="en"] .page-home,
[lang="en"] .app {
  letter-spacing: .005em;
}

/* --- الشريط العلوي --- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 44px) 12px;
  transition: background .35s, backdrop-filter .35s;
}

.nav.solid {
  background: rgba(15, 10, 38, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(241, 200, 94, .18);
}

.nav-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--cream);
  line-height: 1;
  opacity: 0;
  transition: opacity .35s;
}

.nav.solid .nav-brand {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.4vw, 24px);
}

.nav-links a {
  text-decoration: none;
  font-weight: 400;
  color: var(--muted);
  font-size: .95rem;
}

.nav-links a:hover {
  color: var(--cream);
}

/* --- الواجهة: الفضاء والكواكب --- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(38% 30% at 30% 18%, rgba(140, 60, 170, .55), transparent 70%),
    radial-gradient(30% 26% at 72% 70%, rgba(90, 50, 170, .45), transparent 70%),
    radial-gradient(45% 30% at 55% 95%, rgba(60, 40, 140, .5), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, var(--space-2), var(--space) 70%);
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bright {
  position: absolute;
  top: 17%;
  left: 23%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 8px rgba(255, 235, 210, .55), 0 0 60px 20px rgba(220, 160, 255, .25);
  z-index: 0;
}

.planet {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.planet img {
  width: 100%;
  height: auto;
}

.globe {
  width: clamp(150px, 24vw, 360px);
  filter: drop-shadow(0 0 40px rgba(255, 110, 90, .3));
}

.globe.g2 {
  filter: drop-shadow(0 0 44px rgba(150, 180, 255, .32));
}

.g1 {
  top: 30%;
  inset-inline-end: clamp(-30px, 8vw, 180px);
}

.g2 {
  top: 30%;
  inset-inline-start: clamp(-30px, 8vw, 180px);
}

.bob {
  animation: bob 7s ease-in-out infinite;
}

.g2 .bob {
  animation-delay: -3.5s;
}

@keyframes bob {
  50% { transform: translateY(-14px); }
}

.p-saturn { width: clamp(56px, 7vw, 110px);  top: 11%;   left: 5%; }
.p-ring   { width: clamp(60px, 7.5vw, 118px); bottom: 9%; right: 5%; }
.p-purple { width: clamp(30px, 3.6vw, 56px);  bottom: 13%; left: 5%; }
.p-pink   { width: clamp(26px, 3vw, 48px);    top: 14%;   right: 8%; }
.p-gold   { width: clamp(16px, 1.8vw, 28px);  top: 7%;    left: 61%; }

.spin {
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- الواجهة: الشعار والأزرار --- */

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
  font-size: clamp(4.6rem, 15vw, 10.5rem);
  -webkit-text-stroke: clamp(8px, 1.4vw, 16px) var(--cocoa);
  paint-order: stroke fill;
  text-shadow: 0 0 50px rgba(200, 120, 255, .35), 0 10px 30px rgba(0, 0, 0, .4);
}

[lang="en"] .logo {
  font-size: clamp(4.2rem, 13vw, 9.5rem);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(340px, 70vw);
  margin: 6px 0 18px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}

.divider::after {
  transform: scaleX(-1);
}

.divider i {
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(241, 200, 94, .7);
}

.tagline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
  max-width: 28ch;
}

.sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  font: 600 1.08rem var(--f-display);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.btn-gold {
  background: var(--gold);
  color: #2a1a10;
  box-shadow: 0 0 0 4px rgba(241, 200, 94, .16), 0 10px 30px rgba(241, 200, 94, .28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(241, 200, 94, .2), 0 14px 36px rgba(241, 200, 94, .38);
}

.btn-ghost {
  background: rgba(15, 10, 38, .6);
  color: var(--cream);
  border-color: rgba(248, 238, 219, .3);
}

.btn-ghost:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* سهم التشغيل داخل الزر */
.tri {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline-start: 9px solid currentColor;
}

[dir="rtl"] .tri {
  transform: scaleX(-1);
}

/* مؤشر النزول أسفل الواجهة */
.scroll {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(248, 238, 219, .5);
  border-radius: 16px;
}

.scroll::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  to { transform: translateY(16px); opacity: 0; }
}

/* --- الأقسام العامة --- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 56px);
}

section.block {
  padding-block: clamp(72px, 11vw, 130px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 .95rem var(--f-display);
  color: var(--gold);
  letter-spacing: .04em;
  margin: 0 0 6px;
}

.kicker i {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.page-home h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

.page-home .lead {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

/* --- عن اللعبة: بطاقتا الأطوار --- */

.about {
  background: linear-gradient(180deg, var(--space) 0%, #140d33 100%);
}

.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(40px, 6vw, 64px);
}

.mode {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  min-width: 0;
}

.mode img {
  width: clamp(88px, 12vw, 128px);
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 24px rgba(110, 190, 230, .3));
}

.mode h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin: 0;
  line-height: 1.2;
}

.mode .tag {
  margin: 2px 0 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: .98rem;
}

.mode p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* --- عن اللعبة: اقرأ الخريطة --- */

.cities {
  margin-top: clamp(48px, 7vw, 80px);
}

.cities h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  margin: 0 0 4px;
}

.cities > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(248, 238, 219, .08);
  min-width: 0;
}

.legend b {
  display: block;
  font: 600 1.12rem var(--f-display);
  line-height: 1.3;
}

.legend span {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.6;
}

/* أشكال المدن: دائرة ومثلث ومربع وتاج */
.shape {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 3px;
}

.s-farm {
  border-radius: 50%;
  background: var(--farm);
}

.s-smithy {
  width: 0;
  height: 0;
  border-inline: 14px solid transparent;
  border-bottom: 24px solid var(--smithy);
  background: none;
}

.s-barracks {
  border-radius: 5px;
  background: var(--barracks);
  width: 24px;
  height: 24px;
}

.s-capital {
  color: var(--gold);
}

.gestures {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}

.gestures li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gestures kbd {
  font: 500 .85rem var(--f-body);
  color: var(--cream);
  background: rgba(241, 200, 94, .12);
  border: 1px solid rgba(241, 200, 94, .35);
  border-radius: 999px;
  padding: 2px 12px;
}

/* --- الجديد في الإصدار: العواصم والمزايا --- */

.news {
  background: linear-gradient(180deg, #140d33 0%, var(--space) 100%);
}

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 2.6vw, 26px);
  margin-top: clamp(36px, 5vw, 56px);
}

.cap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px 22px;
  min-width: 0;
}

.cap img {
  width: clamp(120px, 16vw, 168px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

.cap h3 {
  font: 800 clamp(1.4rem, 2.6vw, 1.7rem)/1.2 var(--f-display);
  margin: 6px 0 0;
}

.cap p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 34ch;
}

.price {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font: 600 .95rem var(--f-display);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 2.4vw, 22px);
  margin-top: clamp(30px, 4.4vw, 46px);
}

.feat {
  border-top: 2px solid var(--line);
  padding-top: 14px;
  min-width: 0;
}

.feat h3 {
  font: 800 1.25rem/1.3 var(--f-display);
  margin: 0 0 6px;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.ver {
  display: inline-block;
  font: 600 .85rem var(--f-display);
  color: var(--space);
  background: var(--gold);
  border-radius: 99px;
  padding: 2px 12px;
  margin-inline-start: 8px;
  vertical-align: middle;
}

/* --- شاهد: المقطع والصور --- */

.media {
  background: radial-gradient(70% 50% at 50% 0%, rgba(93, 42, 134, .35), transparent 70%), #0b0720;
}

.screen {
  margin-top: clamp(34px, 5vw, 52px);
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1280 / 590;
  max-width: 100%;
  border: 1.5px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 8px rgba(241, 200, 94, .05);
}

.screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.shot {
  grid-column: span 2;
  padding: 0;
  border: 1px solid rgba(248, 238, 219, .1);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--space-2);
  aspect-ratio: 2868 / 1320;
  max-width: 100%;
  transition: transform .25s, border-color .25s;
}

.shot.wide {
  grid-column: span 3;
}

.shot:hover {
  transform: translateY(-3px);
  border-color: var(--line);
}

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

/* عرض الصورة مكبّرة */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 5, 22, .92);
  display: grid;
  place-items: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox img {
  max-height: 88vh;
  border-radius: 16px;
  border: 1.5px solid var(--line);
}

/* زر التحميل في آخر الصفحة */
.get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-top: clamp(48px, 7vw, 72px);
}

.get-title {
  font: 800 clamp(1.5rem, 3.4vw, 2.1rem)/1.3 var(--f-display);
  margin: 0;
}

/* --- حركات الظهور (المحتوى ظاهر دائمًا، تتحرك بس) --- */

.rise {
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}

.rise.pre {
  transform: translateY(28px);
}

.load-in {
  animation: loadIn 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

.load-in.d2 { animation-delay: .15s; }
.load-in.d3 { animation-delay: .3s; }

@keyframes loadIn {
  from { transform: translateY(16px) scale(.98); }
}


/* ==========================================================================
   6. الصفحات النصية (privacy.html و terms.html و support.html)
   ========================================================================== */

.page-doc {
  min-height: 100vh;
  line-height: 1.85;
  background:
    radial-gradient(40% 30% at 20% 0%, rgba(140, 60, 170, .4), transparent 70%),
    radial-gradient(35% 30% at 90% 30%, rgba(90, 50, 170, .3), transparent 70%),
    var(--space);
  background-attachment: fixed;
}

/* الشعار وزر اللغة أعلى الصفحة */
.page-doc header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 0;
}

.page-doc .brand {
  font: 800 2.1rem var(--f-display);
  line-height: 1;
  text-decoration: none;
  color: var(--cream);
  -webkit-text-stroke: 6px var(--cocoa);
  paint-order: stroke fill;
}

.page-doc .lang {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.page-doc .lang:hover {
  transform: none;
}

/* عمود النص */
.page-doc main {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 16px calc(40px + env(safe-area-inset-bottom, 0px));
}

.page-doc h1 {
  font: 800 clamp(2rem, 6vw, 3rem)/1.2 var(--f-display);
  margin: 0 0 10px;
  text-wrap: balance;
}

.page-doc .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 28px;
}

.page-doc .meta code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--cream);
  background: rgba(255, 255, 255, .06);
  border-radius: 6px;
  padding: 1px 8px;
}

/* اللوحة اللي فيها النص */
.page-doc .panel {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
}

/* الفقرة الأولى مع علامة الصح الخضراء (سياسة الخصوصية) */
.page-doc .lead {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(248, 238, 219, .1);
}

.page-doc .badge {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(79, 191, 106, .15);
  border: 1.5px solid var(--farm);
  display: grid;
  place-items: center;
}

.page-doc .badge svg {
  width: 22px;
  height: 22px;
}

.page-doc h2 {
  font: 800 1.45rem/1.3 var(--f-display);
  margin: 0 0 6px;
}

.page-doc section {
  padding-block: 18px;
}

.page-doc section + section {
  border-top: 1px solid rgba(248, 238, 219, .07);
}

/* عرض الأسطر محدود عشان القراءة تكون مريحة (داخل main فقط، مو الفوتر) */
.page-doc main p {
  margin: 0;
  max-width: 65ch;
}

.page-doc main p + p,
.page-doc main ul + p {
  margin-top: 12px;
}

.page-doc main ul {
  margin: 8px 0 0;
  padding-inline-start: 22px;
  max-width: 65ch;
}

.page-doc main li {
  margin: 4px 0;
}

.page-doc main li::marker {
  color: var(--gold);
}

/* رابط العودة للصفحة الرئيسية */
.page-doc .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font: 600 1rem var(--f-display);
  color: var(--gold);
  text-decoration: none;
}

.page-doc .back:hover {
  text-decoration: underline;
}


/* ==========================================================================
   7. صفحة الدعم: بطاقة البريد وزر النسخ والأسئلة الشائعة
   ========================================================================== */

.page-doc h3 {
  font: 800 1.15rem/1.3 var(--f-display);
  margin: 22px 0 10px;
  color: var(--gold);
}

/* بطاقة البريد */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(248, 238, 219, .14);
}

.contact code {
  font: 500 1.05rem var(--f-body);
  direction: ltr;
  unicode-bidi: isolate;
  user-select: all;
  word-break: break-all;
  min-width: 0;
}

.copy {
  font: 600 .95rem var(--f-display);
  background: var(--gold);
  color: #2a1a10;
  border: 0;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
}

/* السؤال: يفتح ويقفل */
.page-doc details {
  border: 1px solid rgba(248, 238, 219, .12);
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .03);
}

.page-doc details + details {
  margin-top: 10px;
}

.page-doc summary {
  cursor: pointer;
  font-weight: 500;
  list-style-position: inside;
}

.page-doc summary::marker {
  color: var(--gold);
}

.page-doc details p {
  margin-top: 8px;
  color: #e9e1f7;
}


/* ==========================================================================
   8. الجوال وتقليل الحركة
   ========================================================================== */

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

  .shot,
  .shot.wide {
    grid-column: span 1;
  }

  .shot.wide:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav-links a {
    display: none;
  }

  .g1,
  .g2 {
    top: auto;
    bottom: 12%;
  }

  .globe {
    width: 38vw;
  }

  .g1 { inset-inline-end: -6vw; }
  .g2 { inset-inline-start: -6vw; }

  .hero-inner {
    margin-top: -14vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .rise.pre {
    transform: none;
  }
}
