/* ==========================================================================
   أبطال البحر — "رحلة الغوص" (الإصدار 4)
   فكرة التصميم: الموقع كله غوصة من السطح إلى الأعماق.
   كل قسم = منطقة عمق لها لونها، يتدرّج من فيروزي مشمس إلى أزرق عميق،
   مع مقياس عمق حي أثناء التمرير، وعناوين تحريرية كبيرة وأرقام أعماق.
   ========================================================================== */

/* ---------- 0) الرموز ---------- */
html.ocean-pro, html.ocean-pro body {
  --dj-navy: #0a2a52;
  --dj-navy-2: #123a74;
  --dj-abyss: #04102a;
  --dj-teal: #14b8c4;
  --dj-cyan: #7ff0f4;
  --dj-orange: #d94f0b;
  --dj-orange-d: #b33e06;
  --dj-sun: #ffc450;
  --dj-sand: #fff4de;
  --dj-surface: #cdf1f1;
  --dj-gut: clamp(16px, 4vw, 56px);
  --dj-max: 1240px;
  --dj-ease: cubic-bezier(.2,.7,.2,1);
  --dj-head: "Reem Kufi", "Cairo", "Tajawal", system-ui, sans-serif;
  --dj-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;

  /* متغيّرات المنطقة (الفاتحة افتراضياً) */
  --z-ink: #0a2a52;
  --z-ink2: #2f5675;
  --z-card: #ffffff;
  --z-card-b: rgba(10,42,82,.09);
  --z-card-ink: #0a2a52;
  --z-card-ink2: #476682;
  --z-shadow: 0 1px 2px rgba(10,60,100,.06), 0 12px 32px rgba(10,60,100,.12);
  --z-shadow-h: 0 2px 4px rgba(10,60,100,.08), 0 22px 46px rgba(10,60,100,.2);
  --z-chip: #ffffff;
  --z-chip-ink: #0a2a52;
  --z-chip-b: rgba(10,42,82,.14);
  --z-chip-on: #0a2a52;
  --z-chip-on-ink: #ffffff;
  --z-icon: rgba(20,184,196,.16);

  /* متغيّرات النظام القديمة */
  --primary: #0a2a52 !important;
  --primary-dark: #061a38 !important;
  --primary-light: #14b8c4 !important;
  --accent: #d94f0b !important;
  --accent-light: #ffc450 !important;
  --bg-dark: #cdf1f1 !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #ffffff !important;
  --text: #2f5675 !important;
  --text-muted: #5a7893 !important;
  --text-heading: #0a2a52 !important;
  --glass: rgba(255,255,255,.96) !important;
  --glass-light: rgba(20,184,196,.07) !important;
  --border-subtle: rgba(10,42,82,.1) !important;
  --gradient-card: linear-gradient(#fff,#fff) !important;
  --radius: 22px !important;
  --radius-sm: 12px !important;
  --shadow: 0 10px 30px rgba(10,60,100,.12) !important;
  --glow: 0 12px 30px rgba(20,184,196,.2) !important;
}

html.ocean-pro body, html.ocean-pro body #ui-layer {
  background: var(--dj-surface) !important; background-image: none !important;
  color: var(--z-ink2) !important; font-family: var(--dj-body) !important;
}
html.ocean-pro body #gameContainer { background: transparent !important; }
html.ocean-pro body :is(h1,h2,h3,.nav-brand,.footer-brand,.dash-brand,.stat-number,.pbl-tile strong) { font-family: var(--dj-head) !important; }
html { scroll-behavior: smooth; }

/* ---------- 1) هيكل الصفحة: ترتيب الغوص ---------- */
html.ocean-pro body #ui-layer #mainContent { display: flex !important; flex-direction: column; align-items: stretch; background: var(--dj-surface) !important; }
html.ocean-pro body #ui-layer #mainContent > * { order: 20; }
html.ocean-pro body #ui-layer #mainContent > #section-hero         { order: 0; }
html.ocean-pro body #ui-layer #mainContent > #section-stats        { order: 1; }
html.ocean-pro body #ui-layer #mainContent > #pbClassroomEntry     { order: 2; }
html.ocean-pro body #ui-layer #mainContent > #section-creatures    { order: 3; }
html.ocean-pro body #ui-layer #mainContent > #section-workshops    { order: 4; }
html.ocean-pro body #ui-layer #mainContent > #section-library      { order: 5; }
html.ocean-pro body #ui-layer #mainContent > #section-games        { order: 6; }
html.ocean-pro body #ui-layer #mainContent > #section-dt-preview   { order: 7; }
html.ocean-pro body #ui-layer #mainContent > #section-digital-twin { order: 8; }
html.ocean-pro body #ui-layer #mainContent > #section-videos       { order: 9; }
html.ocean-pro body #ui-layer #mainContent > #section-activities   { order: 10; }
html.ocean-pro body #ui-layer #mainContent > #section-projects     { order: 11; }
html.ocean-pro body #ui-layer #mainContent > #section-blog         { order: 12; }
html.ocean-pro body #ui-layer #mainContent > #section-team         { order: 13; }

/* الأقسام أشرطة كاملة العرض (مناطق عمق) */
html.ocean-pro body #ui-layer #mainContent > .site-section:not(.hero-section):not(.dtx-section):not(.dt2-section):not(#section-stats):not(#pbClassroomEntry) {
  position: relative; width: 100% !important; max-width: none !important; margin: 0 !important;
  padding: clamp(64px, 8vw, 118px) max(var(--dj-gut), calc((100% - var(--dj-max)) / 2)) !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; scroll-margin-top: 74px;
  transition: opacity .9s var(--dj-ease), transform .9s var(--dj-ease);
}
/* مناطق الألوان */
html.ocean-pro body #ui-layer #mainContent > #section-creatures { background: linear-gradient(180deg, #cdf1f1, #bfeaf0) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-workshops { background: linear-gradient(180deg, #bfeaf0, #aee2ee) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-library   { background: linear-gradient(180deg, #aee2ee, #9bd8ea) !important; }

/* المناطق العميقة: متغيّرات داكنة */
html.ocean-pro body #ui-layer #mainContent > :is(#section-games,#section-videos,#section-activities,#section-projects,#section-blog,#section-team) {
  --z-ink: #ffffff; --z-ink2: #bcd6ee;
  --z-card: rgba(255,255,255,.07); --z-card-b: rgba(255,255,255,.15); --z-card-ink: #ffffff; --z-card-ink2: #bcd2e8;
  --z-shadow: 0 0 0 rgba(0,0,0,0); --z-shadow-h: 0 20px 44px rgba(0,0,0,.3);
  --z-chip: rgba(255,255,255,.06); --z-chip-ink: #e6f1fb; --z-chip-b: rgba(255,255,255,.28);
  --z-chip-on: #ffffff; --z-chip-on-ink: #0a2a52; --z-icon: rgba(255,255,255,.1);
  --text: #d6e6f5 !important; --text-muted: #a9c4de !important; --text-heading: #ffffff !important;
  color: #d6e6f5 !important;
}
html.ocean-pro body #ui-layer #mainContent > #section-games      { background: linear-gradient(180deg, #2b78b9, #1d5a9c) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-videos     { background: linear-gradient(180deg, #123a74, #0f3068) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-activities { background: linear-gradient(180deg, #0f3068, #0b2556) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-projects   { background: linear-gradient(180deg, #0b2556, #091d44) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-blog       { background: linear-gradient(180deg, #091d44, #061431) !important; }
html.ocean-pro body #ui-layer #mainContent > #section-team       { background: linear-gradient(180deg, #061431, #04102a) !important; }
/* موجة عند الانتقال من الضوء إلى الشفق */
html.ocean-pro body #ui-layer #mainContent > #section-games::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: clamp(34px, 5vw, 64px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V30Q1260 72 1080 36T720 40T360 36T0 52Z' fill='%239bd8ea'/%3E%3C/svg%3E") top/100% 100% no-repeat;
}

/* ---------- 2) رؤوس الأقسام: عناوين تحريرية + رقم العمق ---------- */
html.ocean-pro body #ui-layer #mainContent .section-header {
  position: relative; text-align: start !important; max-width: none !important;
  margin: 0 0 clamp(28px, 4vw, 52px) !important; padding-inline-end: clamp(0px, 20vw, 300px);
}
html.ocean-pro body #ui-layer #mainContent .section-header > * { position: relative; z-index: 1; }
html.ocean-pro body #ui-layer #mainContent .section-header h2 {
  color: var(--z-ink) !important; font-weight: 700 !important; letter-spacing: 0 !important; line-height: 1.15 !important;
  font-size: clamp(32px, 4.4vw, 62px) !important; margin: 0 0 14px !important; text-shadow: none !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
html.ocean-pro body #ui-layer #mainContent .section-header p { color: var(--z-ink2) !important; margin: 0 !important; max-width: 56ch !important; font-size: clamp(15.5px, 1.2vw + 8px, 19px) !important; line-height: 1.9 !important; }
html.ocean-pro body #ui-layer #mainContent .section-divider { display: none !important; }

/* ---------- 3) الشريط العلوي ---------- */
html.ocean-pro body #ui-layer #navbar {
  background: rgba(240,253,252,.9) !important; -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(10,42,82,.08) !important; box-shadow: 0 8px 28px rgba(10,60,100,.08) !important;
}
html.ocean-pro body #ui-layer #navbar .nav-brand { color: var(--dj-navy) !important; font-weight: 700 !important; font-size: 1.25em; }
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single,.nav-drop-btn,.dt-studio-nav) {
  color: var(--dj-navy) !important; background: transparent !important; border: 0 !important; border-radius: 999px !important; transition: background .2s, color .2s;
}
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single,.nav-drop-btn,.dt-studio-nav):hover,
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown:hover > .nav-drop-btn { background: rgba(20,184,196,.18) !important; color: #06496b !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .pb-classroom-nav-link { background: var(--dj-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding-inline: 1.15em !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .pb-classroom-nav-link:hover { background: var(--dj-orange-d) !important; }
html.ocean-pro body #ui-layer #navbar .nav-drop-menu { background: #fff !important; border: 1px solid rgba(10,42,82,.1) !important; border-radius: 18px !important; box-shadow: 0 20px 44px rgba(10,60,100,.2) !important; }
html.ocean-pro body #ui-layer #navbar .nav-drop-menu a { color: var(--dj-navy) !important; }
html.ocean-pro body #ui-layer #navbar .nav-drop-menu a:hover { background: rgba(20,184,196,.14) !important; }
html.ocean-pro body #ui-layer #navbar .nav-hamburger { color: var(--dj-navy) !important; background: rgba(20,184,196,.2) !important; border: 0 !important; border-radius: 12px !important; }
html.ocean-pro body #ui-layer #mobileMenu { background: #f0fdfc !important; border-bottom: 1px solid rgba(10,42,82,.1) !important; box-shadow: 0 20px 44px rgba(10,60,100,.2) !important; }
html.ocean-pro body #ui-layer #mobileMenu :is(a,.mobile-nav-group-title,.pb-mobile-language) { color: var(--dj-navy) !important; border-color: rgba(10,42,82,.1) !important; }
html.ocean-pro body #ui-layer #mobileMenu a:hover { background: rgba(20,184,196,.14) !important; }
html.ocean-pro body #ui-layer #topControls button { background: #fff !important; color: var(--dj-navy) !important; border: 1px solid rgba(10,42,82,.12) !important; border-radius: 999px !important; box-shadow: 0 4px 14px rgba(10,60,100,.1) !important; font-weight: 700; }

/* ---------- 4) السطح: الواجهة الرئيسية ---------- */
html.ocean-pro body #ui-layer #mainContent #section-hero.hero-section {
  --z-ink: #0a2a52; --z-ink2: #2f5675;
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 0 clamp(70px, 8vw, 110px) !important;
  background: linear-gradient(180deg, #f6fffe 0%, #e2f9f7 55%, #cdf1f1 100%) !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: hidden !important; position: relative;
}
/* شمس + حلقات سونار */
html.ocean-pro body #ui-layer #mainContent #section-hero.hero-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 14%, rgba(255,196,80,.65) 0, rgba(255,196,80,.22) 9%, rgba(255,196,80,0) 22%),
    repeating-radial-gradient(circle at 86% 42%, transparent 0 58px, rgba(20,184,196,.22) 59px 61px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
/* موجة سفلية */
html.ocean-pro body #ui-layer #mainContent #section-hero.hero-section::after {
  content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 84px); z-index: 4; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40Q180 0 360 30T720 40T1080 26T1440 40V80H0Z' fill='%23cdf1f1'/%3E%3C/svg%3E") bottom/100% 100% no-repeat !important;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-container {
  width: min(calc(100% - 2 * var(--dj-gut)), var(--dj-max)) !important; max-width: var(--dj-max) !important; margin: 0 auto !important;
  min-height: clamp(400px, 58vh, 580px) !important; max-height: none !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .slide { background: transparent !important; background-image: none !important; }
html.ocean-pro body #ui-layer #mainContent #section-hero .slide::before { display: none !important; }
html.ocean-pro body #ui-layer #mainContent #section-hero .slide .slide-content {
  text-align: start !important; align-items: flex-start !important; justify-content: center !important;
  max-width: min(780px, 100%) !important; margin: 0 !important; margin-inline-end: auto !important;
  padding: clamp(40px, 7vw, 96px) 0 clamp(50px, 6vw, 80px) !important;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .slide .slide-content h1 {
  color: var(--dj-navy) !important; font-weight: 700 !important; letter-spacing: 0 !important;
  font-size: clamp(38px, 6.4vw, 92px) !important; line-height: 1.08 !important; text-shadow: none !important;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .slide .slide-content p {
  color: #2f5675 !important; text-shadow: none !important; font-size: clamp(17px, 1.6vw, 22px) !important; line-height: 1.9 !important; max-width: 54ch !important;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .btn-hero {
  display: inline-flex !important; align-items: center; gap: .6em; background: var(--dj-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  min-height: 54px !important; padding: .75em 2em !important; font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(217,79,11,.32) !important; transition: transform .25s var(--dj-ease), box-shadow .25s var(--dj-ease), background .2s;
}
html.ocean-pro body #ui-layer #mainContent #section-hero .btn-hero::after { content: "↓"; font-size: 1.1em; }
html.ocean-pro body #ui-layer #mainContent #section-hero .btn-hero:hover { background: var(--dj-orange-d) !important; transform: translateY(-3px); }
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-nav { background: #fff !important; border: 1px solid rgba(10,42,82,.12) !important; color: var(--dj-navy) !important; box-shadow: 0 6px 18px rgba(10,60,100,.15); transition: transform .2s; }
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-nav:hover { transform: scale(1.08); }
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-dots { bottom: 12px !important; }
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-dot { background: rgba(10,42,82,.25) !important; border-radius: 99px !important; transition: width .3s var(--dj-ease), background .3s; }
html.ocean-pro body #ui-layer #mainContent #section-hero .slider-dot.active { background: var(--dj-orange) !important; width: 30px !important; }

/* "اختر مسارك" — بطاقات انطلاق */
html.ocean-pro body #ui-layer #mainContent #section-hero.hero-section > .pbl { max-width: var(--dj-max); margin: 0 auto; padding: 0 var(--dj-gut); position: relative; z-index: 5; }
html.ocean-pro body #ui-layer .pbl-head { text-align: start; margin-bottom: 16px; }
html.ocean-pro body #ui-layer .pbl-head h2 { color: var(--dj-navy) !important; font-weight: 700; font-size: clamp(22px, 1.8vw + 12px, 34px) !important; }
html.ocean-pro body #ui-layer .pbl-head p { color: #3d6585 !important; }
html.ocean-pro body #ui-layer .pbl-grid { gap: 14px !important; }
html.ocean-pro body #ui-layer .pbl-tile {
  align-items: flex-start !important; text-align: start !important; justify-content: space-between !important;
  background: #fff !important; color: var(--dj-navy) !important; border: 1px solid rgba(10,42,82,.08) !important;
  border-radius: 24px !important; border-end-start-radius: 8px !important; box-shadow: 0 10px 28px rgba(10,60,100,.12) !important;
  transition: transform .3s var(--dj-ease), box-shadow .3s var(--dj-ease), background .3s;
}
html.ocean-pro body #ui-layer .pbl-tile:hover { transform: translateY(-6px); background: #f4ffff !important; box-shadow: 0 20px 40px rgba(10,60,100,.2) !important; }
html.ocean-pro body #ui-layer .pbl-tile .pbl-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--g1) 16%, #fff); font-size: 30px !important; }
html.ocean-pro body #ui-layer .pbl-tile strong { color: var(--dj-navy) !important; text-shadow: none !important; font-weight: 700; font-size: 17px !important; }
html.ocean-pro body #ui-layer .pbl-tile small { color: #5a7893 !important; opacity: 1 !important; text-shadow: none !important; font-size: 13.5px !important; }

/* ---------- 5) شريط السونار (الإحصائيات) ---------- */
html.ocean-pro body #ui-layer #mainContent #section-stats {
  width: min(calc(100% - 2 * var(--dj-gut)), var(--dj-max)) !important; max-width: var(--dj-max) !important;
  margin: clamp(-60px, -5vw, -40px) auto 28px !important; padding: clamp(18px, 2.4vw, 30px) clamp(14px, 2vw, 28px) !important;
  background: linear-gradient(135deg, #0a2a52, #0d4a6e) !important; border: 0 !important; border-radius: 30px !important;
  box-shadow: 0 24px 50px rgba(10,42,82,.32) !important; position: relative; z-index: 6;
}
html.ocean-pro body #ui-layer #mainContent #section-stats .section-header { display: none !important; }
html.ocean-pro body #ui-layer #mainContent #section-stats .stats-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 0 !important; margin: 0 !important; }
html.ocean-pro body #ui-layer #mainContent .stats-grid .stat-card {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  border-inline-start: 1px solid rgba(255,255,255,.14) !important; padding: 8px 14px !important; text-align: center;
}
html.ocean-pro body #ui-layer #mainContent .stats-grid .stat-card:first-child { border-inline-start: 0 !important; }
html.ocean-pro body #ui-layer #mainContent .stat-icon { font-size: 24px !important; }
html.ocean-pro body #ui-layer #mainContent .stat-number { color: var(--dj-cyan) !important; font-weight: 700 !important; font-size: clamp(30px, 3.4vw, 46px) !important; -webkit-text-fill-color: currentColor !important; background: none !important; line-height: 1.2; }
html.ocean-pro body #ui-layer #mainContent .stat-label { color: #bcd6ee !important; font-weight: 600; font-size: 14px !important; }

/* ---------- 6) بانر المعلمين ---------- */
html.ocean-pro body #ui-layer #mainContent #pbClassroomEntry {
  width: min(calc(100% - 2 * var(--dj-gut)), var(--dj-max)) !important; max-width: var(--dj-max) !important; margin: 0 auto 48px !important;
  padding: clamp(22px, 3vw, 40px) clamp(22px, 3.6vw, 48px) !important;
  display: flex !important; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #e2530f 0%, #f27a2d 60%, #ffa04d 100%) !important; border: 0 !important;
  border-radius: 30px !important; border-end-start-radius: 10px !important; box-shadow: 0 22px 46px rgba(217,79,11,.3) !important;
}
html.ocean-pro body #ui-layer #pbClassroomEntry > div { flex: 1 1 380px; }
html.ocean-pro body #ui-layer #pbClassroomEntry span { color: #fff4e8 !important; font-weight: 700; font-size: 14px; }
html.ocean-pro body #ui-layer #pbClassroomEntry h2 { color: #fff !important; font-weight: 700 !important; margin: 8px 0 !important; font-size: clamp(24px, 2.6vw, 38px) !important; text-align: start !important; font-family: var(--dj-head) !important; }
html.ocean-pro body #ui-layer #pbClassroomEntry p { color: #fff2e4 !important; margin: 0 !important; max-width: 60ch; }
html.ocean-pro body #ui-layer #pbClassroomEntry button { background: #fff !important; color: var(--dj-orange-d) !important; border: 0 !important; border-radius: 999px !important; min-height: 52px; padding: .7em 1.8em !important; font-weight: 800 !important; cursor: pointer; transition: transform .25s var(--dj-ease); }
html.ocean-pro body #ui-layer #pbClassroomEntry button:hover { transform: translateY(-3px); }

/* ---------- 7) البطاقات (تتكيف مع المنطقة) ---------- */
html.ocean-pro body #ui-layer #mainContent .cards-grid { gap: clamp(16px, 2vw, 28px) !important; }
html.ocean-pro body #ui-layer #mainContent :is(.card,.pb-cre-card) {
  background: var(--z-card) !important; background-image: none !important; border: 1px solid var(--z-card-b) !important;
  border-radius: 26px !important; border-end-start-radius: 8px !important; box-shadow: var(--z-shadow) !important; color: var(--z-card-ink2) !important; overflow: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--dj-ease), box-shadow .35s var(--dj-ease), background .3s;
}
html.ocean-pro body #ui-layer #mainContent :is(.card,.pb-cre-card):hover { transform: translateY(-7px); box-shadow: var(--z-shadow-h) !important; }
html.ocean-pro body #ui-layer #mainContent .card :is(h3,h4) { color: var(--z-card-ink) !important; font-weight: 700; }
html.ocean-pro body #ui-layer #mainContent .card p { color: var(--z-card-ink2) !important; }
html.ocean-pro body #ui-layer #mainContent .card .card-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--z-icon); }
html.ocean-pro body #ui-layer #mainContent .card .card-img { border-radius: 16px !important; }
html.ocean-pro body #ui-layer #mainContent .card-badge:not([style*="background"]) { background: var(--dj-sun) !important; color: #3a2600 !important; border-radius: 999px !important; font-weight: 800; }
/* الأزرار */
html.ocean-pro body #ui-layer #mainContent .card-btn,
html.ocean-pro body #ui-layer .btn-primary {
  background: var(--dj-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-weight: 800 !important; box-shadow: none !important;
  transition: background .2s, transform .25s var(--dj-ease), box-shadow .25s;
}
html.ocean-pro body #ui-layer #mainContent .card-btn:hover,
html.ocean-pro body #ui-layer .btn-primary:hover { background: var(--dj-orange-d) !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217,79,11,.3) !important; }
html.ocean-pro body #ui-layer .btn-outline { background: transparent !important; color: var(--dj-navy) !important; border: 1.5px solid var(--dj-navy) !important; border-radius: 999px !important; font-weight: 800; }
html.ocean-pro body #ui-layer .btn-outline:hover { background: rgba(10,42,82,.08) !important; }
/* التبويبات والتصفية */
html.ocean-pro body #ui-layer #mainContent .ctab { background: var(--z-chip) !important; color: var(--z-chip-ink) !important; border: 1px solid var(--z-chip-b) !important; border-radius: 999px !important; font-weight: 700; transition: all .25s var(--dj-ease); }
html.ocean-pro body #ui-layer #mainContent .ctab:hover { transform: translateY(-1px); border-color: var(--dj-teal) !important; }
html.ocean-pro body #ui-layer #mainContent .ctab.active { background: var(--z-chip-on) !important; color: var(--z-chip-on-ink) !important; border-color: var(--z-chip-on) !important; }
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-chips button { background: var(--z-chip) !important; color: var(--z-chip-ink) !important; border: 1px solid var(--z-chip-b) !important; border-radius: 999px !important; transition: all .25s var(--dj-ease); }
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-chips button:hover { border-color: var(--dj-teal) !important; }
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-chips button[aria-pressed="true"],
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-chips button.active { background: var(--z-chip-on) !important; color: var(--z-chip-on-ink) !important; border-color: var(--z-chip-on) !important; }
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-quizbtn,
html.ocean-pro body #ui-layer #mainContent #section-creatures .pb-cre-more { background: var(--dj-orange) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-weight: 800; }
html.ocean-pro body #ui-layer #mainContent :is(input[type=text],input[type=search],select) { background: #fff !important; color: var(--dj-navy) !important; border: 1.5px solid rgba(10,42,82,.14) !important; border-radius: 14px !important; }
/* ظهور تدريجي للبطاقات */
@keyframes dj-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > * { animation: dj-rise .7s var(--dj-ease) backwards; }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > :nth-child(2) { animation-delay: .06s; }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > :nth-child(3) { animation-delay: .12s; }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > :nth-child(4) { animation-delay: .18s; }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > :nth-child(5) { animation-delay: .24s; }
html.ocean-pro body #ui-layer #mainContent .site-section.visible :is(.cards-grid,.pb-cre-grid) > :nth-child(n+6) { animation-delay: .3s; }

/* ---------- 8) مقياس العمق (يُنشأ بواسطة dive-journey.js) ---------- */
#dj-gauge {
  position: fixed; z-index: 60; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 14px 14px; width: 150px;
  background: rgba(255,255,255,.88); color: #0a2a52; border: 1px solid rgba(10,42,82,.1); border-radius: 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(10,60,100,.22);
  transition: background .5s, color .5s, opacity .3s, transform .3s; font-family: "IBM Plex Sans Arabic","Tajawal",sans-serif;
}
#dj-gauge.dj-dark { background: rgba(8,24,56,.8); color: #e7f2fc; border-color: rgba(255,255,255,.16); }
#dj-gauge.dj-hide { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.96); }
#dj-gauge .dj-read { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
#dj-gauge .dj-read small { font-size: 11px; opacity: .7; margin-inline-end: auto; }
#dj-gauge .dj-read b { font-family: "Reem Kufi","Cairo",sans-serif; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
#dj-gauge .dj-read i { font-style: normal; font-size: 13px; opacity: .8; }
#dj-gauge ol { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 2px; }
#dj-gauge ol::before { content: ""; position: absolute; inset-block: 12px; inset-inline-start: 6px; width: 2px; border-radius: 2px; background: currentColor; opacity: .15; }
#dj-gauge .dj-fill { position: absolute; inset-inline-start: 6px; top: 12px; width: 2px; border-radius: 2px; background: #d94f0b; height: 0; transition: height .15s linear; }
#dj-gauge button { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; text-align: start; border-radius: 10px; opacity: .6; transition: opacity .2s; }
#dj-gauge button:hover, #dj-gauge button.on { opacity: 1; }
#dj-gauge .dj-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: var(--dj-surface, #cdf1f1); position: relative; z-index: 1; transition: all .25s; }
#dj-gauge.dj-dark .dj-dot { background: #0a2a52; }
#dj-gauge button.on .dj-dot { background: #d94f0b; border-color: #d94f0b; transform: scale(1.25); }
#dj-gauge .dj-txt { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.25; }
#dj-gauge .dj-txt em { font-style: normal; font-size: 11px; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  #dj-gauge { inset-inline-end: auto; inset-inline-start: 12px; top: auto; bottom: 14px; transform: none; width: auto; padding: 8px 14px; border-radius: 999px; flex-direction: row; }
  #dj-gauge ol { display: none; }
  #dj-gauge.dj-hide { transform: scale(.96); }
  #dj-gauge .dj-read b { font-size: 20px; }
}

/* ---------- 9) النوافذ والنماذج ---------- */
html.ocean-pro body #ui-layer .modal-overlay { background: rgba(4,16,42,.62) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.ocean-pro body #ui-layer .modal-content { background: #fff !important; color: #476682 !important; border: 1px solid rgba(10,42,82,.1) !important; border-radius: 28px !important; box-shadow: 0 34px 90px rgba(4,16,42,.4) !important; }
html.ocean-pro body #ui-layer .modal-content :is(h2,h3,h4) { color: var(--dj-navy) !important; font-family: var(--dj-head) !important; }
html.ocean-pro body #ui-layer .modal-close { background: #eef7f8 !important; color: var(--dj-navy) !important; border: 0 !important; border-radius: 50% !important; transition: all .2s; }
html.ocean-pro body #ui-layer .modal-close:hover { background: var(--dj-orange) !important; color: #fff !important; }
html.ocean-pro body #ui-layer .login-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-inline: auto; border-radius: 24px; background: rgba(20,184,196,.16); }
html.ocean-pro body #ui-layer :is(.login-form,.ae-form) label { color: var(--dj-navy) !important; font-weight: 700; }
html.ocean-pro body #ui-layer :is(input[type=text],input[type=password],input[type=number],input[type=url],input[type=date],input[type=search],select,textarea,.ae-content-editor) { background: #f6fdfd !important; color: var(--dj-navy) !important; border: 1.5px solid rgba(10,42,82,.14) !important; border-radius: 14px !important; transition: border-color .2s, box-shadow .2s; }
html.ocean-pro body #ui-layer :is(input,select,textarea,.ae-content-editor):focus { outline: 0 !important; border-color: var(--dj-teal) !important; box-shadow: 0 0 0 4px rgba(20,184,196,.2) !important; }
html.ocean-pro body #ui-layer .btn-login { background: var(--dj-orange) !important; color: #fff !important; border-radius: 999px !important; box-shadow: none !important; font-weight: 800; }
html.ocean-pro body #ui-layer .btn-login:hover { background: var(--dj-orange-d) !important; }
html.ocean-pro body #ui-layer .login-error { background: #fdecea !important; color: #b3261e !important; border-radius: 14px !important; }

/* ---------- 10) لوحة الإدارة ---------- */
html.ocean-pro body #ui-layer #adminDashboard { background: #eaf8f8 !important; }
html.ocean-pro body #ui-layer .dash-sidebar { background: linear-gradient(180deg, #0d3a63, #04102a) !important; }
html.ocean-pro body #ui-layer .dash-sidebar :is(.dash-nav-item,.dash-nav-group-title) { color: #cfe3f4 !important; border-radius: 12px !important; transition: background .2s; }
html.ocean-pro body #ui-layer .dash-sidebar :is(.dash-nav-item:hover,.dash-nav-group-title:hover) { background: rgba(255,255,255,.08) !important; }
html.ocean-pro body #ui-layer .dash-sidebar .dash-nav-item.active { background: var(--dj-orange) !important; color: #fff !important; font-weight: 800; }
html.ocean-pro body #ui-layer .dash-sidebar .dash-brand { color: #fff !important; }
html.ocean-pro body #ui-layer .dash-header { background: #fff !important; border-bottom: 1px solid rgba(10,42,82,.1) !important; }
html.ocean-pro body #ui-layer .dash-header h2 { color: var(--dj-navy) !important; }
html.ocean-pro body #ui-layer .dash-btn-back { background: var(--dj-sun) !important; color: #3a2600 !important; border-radius: 12px !important; font-weight: 800; }

/* ---------- 11) التذييل وعناصر أخرى ---------- */
html.ocean-pro body #ui-layer #footer { background: #04102a !important; color: #9fbad6 !important; border-top: 0 !important; margin: 0 !important; }
html.ocean-pro body #ui-layer #footer .footer-brand { color: #fff !important; font-weight: 700; }
html.ocean-pro body #ui-layer #footer a { color: var(--dj-cyan) !important; transition: color .2s; }
html.ocean-pro body #ui-layer #footer a:hover { color: #fff !important; }
html.ocean-pro body #ui-layer #scrollTopBtn { background: var(--dj-orange) !important; color: #fff !important; border-radius: 50% !important; box-shadow: 0 10px 24px rgba(217,79,11,.45) !important; transition: transform .2s; }
html.ocean-pro body #ui-layer #scrollTopBtn:hover { transform: translateY(-3px); }
html.ocean-pro body #ui-layer #loadingScreen { background: radial-gradient(800px 420px at 80% 12%, rgba(20,184,196,.45), transparent 60%), linear-gradient(180deg, #0d4a6e, #04102a) !important; }
html.ocean-pro body #ui-layer #loadingScreen h2 { color: #fff !important; }
html.ocean-pro body #ui-layer #loadingScreen .loader-fill { background: var(--dj-sun) !important; }

/* ---------- 12) وصولية وحركة ---------- */
html.ocean-pro body :focus-visible { outline: 3px solid var(--dj-orange) !important; outline-offset: 3px; }
::selection { background: var(--dj-sun); color: #0a2a52; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.ocean-pro body *, #dj-gauge * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 760px) {
  html.ocean-pro body #ui-layer #mainContent .section-header { padding-inline-end: 0; }
  html.ocean-pro body #ui-layer #mainContent #section-hero .slider-nav { display: none !important; }
  html.ocean-pro body #ui-layer #mainContent #section-stats { margin-top: -36px !important; border-radius: 24px !important; }
}

/* ---------- 13) الشعار والشركاء (branding.js) ---------- */
html.ocean-pro body #ui-layer #navbar .nav-inner { align-items: center; }
html.ocean-pro body #ui-layer #navbar .nav-brand { display: inline-flex !important; align-items: center; gap: .6em; flex: none; }
#navbar .pb-brand-logo { height: 44px; width: auto; max-width: 150px; object-fit: contain; display: block; flex: none; }
.pb-nav-partners { display: flex; align-items: center; gap: 14px; flex: none; margin-inline: 4px 10px; }
.pb-nav-partners-sep { width: 1px; height: 30px; background: rgba(10,42,82,.2); flex: none; }
.pb-nav-partner { display: inline-flex; align-items: center; height: 36px; transition: transform .25s var(--dj-ease, ease), opacity .2s; opacity: .95; text-decoration: none; }
.pb-nav-partner:hover { transform: translateY(-2px); opacity: 1; }
.pb-nav-partner-img { height: 34px; width: auto; max-width: 112px; object-fit: contain; display: block; }
.pb-nav-partner-txt { font-size: 13px; font-weight: 700; color: #0a2a52; white-space: nowrap; }
@media (max-width: 1180px) { .pb-nav-partner-img { height: 28px; max-width: 90px; } }
@media (max-width: 760px) { #navbar .pb-brand-logo { height: 38px; } .pb-nav-partners { gap: 8px; margin-inline: 0 4px; } .pb-nav-partners-sep { height: 24px; } .pb-nav-partner-img { height: 24px; max-width: 64px; } .pb-nav-partner-txt { display: none; } }


#footer .footer-brand { display: inline-flex; align-items: center; gap: .6em; }
#footer .pb-footer-logo { height: 46px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.pb-loader-logo { height: 96px; width: auto; max-width: 220px; object-fit: contain; display: block; margin: 0 auto; }
.pb-footer-partners { margin: 22px auto 6px; padding: 22px 0 8px; border-top: 1px solid rgba(255,255,255,.14); text-align: center; }
.pb-footer-partners h4 { margin: 0 0 16px; font-family: var(--dj-head, inherit); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #9fbad6; }
.pb-footer-partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.pb-footer-partner { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 72px; padding: 10px 20px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); text-decoration: none; transition: transform .3s var(--dj-ease, ease), box-shadow .3s; }
.pb-footer-partner:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.pb-footer-partner-img { max-height: 50px; max-width: 170px; width: auto; object-fit: contain; display: block; }
.pb-footer-partner-txt { font-weight: 700; color: #0a2a52; font-size: 15px; }
.pb-footer-partners + .footer-links { margin-top: 14px; }

/* ---------- 14) حساب المستخدم (auth-entry.js) — في طرف الشريط المقابل للشعار ---------- */
.pb-auth { position: relative; flex: none; margin: 0; z-index: 60; }
html.ocean-pro body #ui-layer #navbar #pb-nav-actions { display: flex !important; align-items: center; gap: 10px; flex: none; margin-inline-start: 0; }
.pb-auth-btn { display: inline-flex; align-items: center; gap: .5em; min-height: 42px; padding: .3em 1.1em .3em .9em; border: 1.5px solid rgba(10,42,82,.22); border-radius: 999px; cursor: pointer; font: 600 .9rem/1 var(--dj-body, inherit); color: #0a2a52; background: rgba(255,255,255,.7); box-shadow: none; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s, transform .2s; }
.pb-auth-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0a2a52; color: #fff; font-size: .9rem; flex: none; }
.pb-auth-txt { overflow: hidden; text-overflow: ellipsis; }
.pb-auth-btn:hover { background: #fff; border-color: #14b8c4; transform: translateY(-1px); }
.pb-auth-btn:focus-visible { outline: 3px solid #14b8c4; outline-offset: 2px; }
.pb-auth-menu { display: none; position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 250px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(4,16,42,.3); border: 1px solid #d3e8ec; direction: rtl; text-align: start; }
.pb-auth.open .pb-auth-menu { display: grid; gap: 6px; animation: pbAuthIn .18s ease-out; }
@keyframes pbAuthIn { from { opacity: 0; transform: translateY(-6px); } }
.pb-auth-menu button, .pb-auth-menu .pb-auth-staff { display: block; width: 100%; min-height: 44px; padding: .5em 1em; border: 0; border-radius: 12px; background: #f3fbfb; color: #0a2a52; font: 600 .95rem/1.4 var(--dj-body, inherit); text-align: start; text-decoration: none; cursor: pointer; }
.pb-auth-menu button:hover, .pb-auth-menu .pb-auth-staff:hover { background: #dff5f6; }
.pb-auth-menu button[data-a=preg] { background: linear-gradient(135deg, #ef6a1f, #d94f0b); color: #fff; }
.pb-auth-menu hr { border: 0; border-top: 1px solid #d3e8ec; margin: 4px 0; }
.pb-auth-note { margin: 2px 4px 0; font-size: .8rem; color: #4d6a86; line-height: 1.6; }
.pb-auth-hi { padding: 4px 6px 8px; color: #0a2a52; }
.pb-mobile-auth { display: grid; gap: 8px; padding: 10px 14px; margin-bottom: 8px; border-bottom: 1px solid rgba(10,42,82,.1); }
.pb-mobile-auth button { min-height: 46px; border: 0; border-radius: 14px; background: #dff5f6; color: #0a2a52; font: 700 1rem var(--dj-body, inherit); text-align: start; padding-inline: 1em; }
.pb-mobile-auth button[data-a=preg] { background: linear-gradient(135deg, #ef6a1f, #d94f0b); color: #fff; }
@media (max-width: 900px) { .pb-auth { margin-inline-start: auto; margin-inline-end: 4px; } .pb-auth-btn { min-height: 42px; width: 42px; padding: 0; justify-content: center; border-radius: 50%; } .pb-auth-txt { display: none; } .pb-auth-menu { min-width: 230px; inset-inline-end: auto; inset-inline-start: 0; } }
#footer .footer-links #pbStaffLink { opacity: .75; }

/* ---------- 15) القائمة العلوية المتطوّرة (nav-pro.js) ---------- */
html.ocean-pro body #ui-layer #navbar { transition: box-shadow .3s, background .3s; }
html.ocean-pro body #ui-layer #navbar .nav-inner { transition: min-height .3s, padding .3s; }
html.ocean-pro body #ui-layer #navbar.pb-scrolled { background: rgba(255,255,255,.94) !important; box-shadow: 0 10px 34px rgba(10,42,82,.14) !important; }
html.ocean-pro body #ui-layer #navbar.pb-scrolled .nav-inner { min-height: 58px !important; }
html.ocean-pro body #ui-layer #navbar #navLinks { flex: 1 1 auto; justify-content: center; gap: 2px; }
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single,.nav-drop-btn) { position: relative; font-weight: 600 !important; border-radius: 12px !important; }
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single,.nav-dropdown > .nav-drop-btn)::after { content: ""; position: absolute; inset-inline: 22%; bottom: 3px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #14b8c4, #0a6f86); transform: scaleX(0); transform-origin: center; transition: transform .28s var(--dj-ease, ease); }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-link-single:hover::after,
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown:hover > .nav-drop-btn::after,
html.ocean-pro body #ui-layer #navbar #navLinks .nav-link-single.is-current::after,
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown.is-current > .nav-drop-btn::after { transform: scaleX(1); }
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single.is-current,.nav-dropdown.is-current > .nav-drop-btn) { color: #06496b !important; background: rgba(20,184,196,.1) !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-arrow { transition: transform .25s; display: inline-block; font-size: 1.1em; line-height: 1; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown:hover .nav-drop-arrow { transform: rotate(180deg); }
/* لوحة القائمة المنسدلة */
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu { padding: 10px !important; min-width: 300px; border-radius: 22px !important; display: none; gap: 4px; margin-top: 6px; inset-inline-start: 0; inset-inline-end: auto; border-top: 3px solid #14b8c4 !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown:hover > .nav-drop-menu,
html.ocean-pro body #ui-layer #navbar #navLinks .nav-dropdown:focus-within > .nav-drop-menu { display: grid; animation: pbDdIn .2s ease-out; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu.pb-dd-wide { grid-template-columns: 1fr 1fr; min-width: 520px; }
@keyframes pbDdIn { from { opacity: 0; transform: translateY(-8px); } }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu a { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border-radius: 14px !important; white-space: normal; cursor: pointer; }
.pb-dd-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #e3f8f8, #bfeaee); font-size: 1.3rem; flex: none; transition: transform .25s; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu a:hover .pb-dd-i { transform: scale(1.08) rotate(-4deg); }
.pb-dd-t { display: grid; gap: 1px; min-width: 0; }
.pb-dd-t b { font-weight: 700; font-size: .95rem; color: #0a2a52; }
.pb-dd-t small { font-size: .78rem; color: #4d6a86; line-height: 1.45; }
html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu a.is-current { background: rgba(20,184,196,.14) !important; }
@media (max-width: 1180px) { html.ocean-pro body #ui-layer #navbar #navLinks .nav-drop-menu.pb-dd-wide { grid-template-columns: 1fr; min-width: 300px; } .pb-auth-txt { display: none; } .pb-auth-btn { padding: 0; width: 42px; justify-content: center; border-radius: 50%; } }

/* ---------- 16) تنظيم الشريط العلوي: شعار | قائمة | لغة + حساب (طرف مقابل) ---------- */
html.ocean-pro body #ui-layer #navbar .nav-inner {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: flex-start !important;
  grid-template-columns: none !important; gap: 14px !important; max-width: 1560px !important; width: 100% !important; margin-inline: auto !important;
  padding: 8px clamp(14px, 2.4vw, 36px) !important; min-height: 72px !important;
}
html.ocean-pro body #ui-layer #navbar .nav-inner > .nav-brand { order: 1 !important; grid-column: auto !important; flex: none !important; max-width: none !important; }
html.ocean-pro body #ui-layer #navbar .nav-inner > #pbNavPartners { order: 2 !important; }
html.ocean-pro body #ui-layer #navbar .nav-inner > #navLinks { order: 3 !important; grid-column: auto !important; flex: 1 1 auto !important; min-width: 0 !important; justify-content: center !important; align-items: center !important; gap: 4px !important; overflow: visible !important; }
html.ocean-pro body #ui-layer #navbar .nav-inner > #pb-nav-actions { order: 4 !important; grid-column: auto !important; flex: none !important; margin-inline-start: auto !important; display: flex !important; align-items: center !important; gap: 10px !important; }
html.ocean-pro body #ui-layer #navbar .nav-inner > .pb-auth { order: 5 !important; }
html.ocean-pro body #ui-layer #navbar .nav-inner > .nav-hamburger { order: 6 !important; }
/* عناصر القائمة كلها بنفس القياس والنمط */
html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single, .nav-drop-btn, .pb-classroom-nav-link, .dt-studio-nav) {
  display: inline-flex !important; align-items: center !important; justify-content: center; gap: 6px !important; height: 44px !important; min-height: 44px !important;
  padding: 0 14px !important; font: 600 .93rem/1 var(--dj-body, inherit) !important; border-radius: 12px !important; white-space: nowrap !important; letter-spacing: 0 !important; margin: 0 !important;
}
html.ocean-pro body #ui-layer #navbar #navLinks .pb-nav-icon { display: none !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .pb-classroom-nav-link { background: transparent !important; color: var(--dj-orange-d, #b83f06) !important; border: 1.5px solid rgba(217,79,11,.45) !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .pb-classroom-nav-link:hover { background: var(--dj-orange, #d94f0b) !important; color: #fff !important; border-color: transparent !important; }
html.ocean-pro body #ui-layer #navbar #navLinks .pb-classroom-nav-link::after { display: none !important; }
/* زرا اللغة والحساب: توأمان في الطرف المقابل للشعار */
html.ocean-pro body #ui-layer #navbar #pb-nav-actions #pb-language-switch {
  position: static !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; height: 42px !important; min-height: 42px !important; min-width: 0 !important; width: auto !important;
  padding: 0 1.1em !important; border: 1.5px solid rgba(10,42,82,.22) !important; border-radius: 999px !important; background: rgba(255,255,255,.7) !important; color: #0a2a52 !important;
  font: 600 .9rem/1 var(--dj-body, inherit) !important; box-shadow: none !important; white-space: nowrap;
}
html.ocean-pro body #ui-layer #navbar #pb-nav-actions #pb-language-switch:hover { background: #fff !important; border-color: #14b8c4 !important; }
.pb-auth-btn { height: 42px; }
@media (max-width: 900px) {
  html.ocean-pro body #ui-layer #navbar .nav-inner > #navLinks { display: none !important; }
  html.ocean-pro body #ui-layer #navbar .nav-inner > #pb-nav-actions { display: none !important; }
  html.ocean-pro body #ui-layer #navbar .nav-inner { min-height: 60px !important; gap: 8px !important; }
  html.ocean-pro body #ui-layer #navbar .nav-inner > .pb-auth { margin-inline-start: auto !important; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  html.ocean-pro body #ui-layer #navbar #navLinks :is(.nav-link-single, .nav-drop-btn, .pb-classroom-nav-link) { padding: 0 9px !important; font-size: .85rem !important; }
  html.ocean-pro body #ui-layer #navbar #pb-nav-actions #pb-language-switch { padding: 0 .8em !important; font-size: .82rem !important; }
}

/* زر Google */
.pb-gbtn { display: flex !important; align-items: center; justify-content: center; gap: 10px; background: #fff !important; color: #1f2a37 !important; border: 1.5px solid #cfdde4 !important; font-weight: 700 !important; box-shadow: 0 2px 6px rgba(10,42,82,.08); }
.pb-gbtn:hover { background: #f6fbfc !important; border-color: #4285f4 !important; box-shadow: 0 4px 12px rgba(66,133,244,.2); }
.pb-gbtn svg { flex: none; }
.pb-auth-or { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: #6a8196; font-size: .8rem; }
.pb-auth-or::before, .pb-auth-or::after { content: ""; flex: 1; height: 1px; background: #d3e8ec; }
.pb-mobile-auth .pb-gbtn { justify-content: center; }

/* ---------- 17) نظام الصفحات: القسم المخفي يبقى مخفيًا ---------- */
html.ocean-pro body #ui-layer #mainContent > [hidden] { display: none !important; }
html.ocean-pro body #ui-layer #mainContent.pb-page-mode > #pbClassroomEntry,
html.ocean-pro body #ui-layer #mainContent.pb-page-mode > #section-stats { display: none !important; }
html.ocean-pro body #ui-layer #mainContent.pb-page-mode > section:not([hidden]) { min-height: 70vh; }

/* ---------- 18) الدخول والنوافذ: قياسات سليمة على الهاتف والحاسوب ---------- */
/* النوافذ فوق الشريط العلوي (كان الشريط يعلو التعتيم) */
html.ocean-pro body #ui-layer .modal { z-index: 3000 !important; }
html.ocean-pro body #ui-layer .modal.hidden { display: none !important; }
html.ocean-pro body #ui-layer .modal-content {
  --glass: #ffffff; --glass-light: #eef7f8; --text: #0a2a52; --text-heading: #0a2a52; --text-muted: #5a7690;
  --primary: #0e8f9b; --primary-light: #0a6f86; --primary-dark: #0a4f7e; --border-subtle: #d3e8ec;
  overscroll-behavior: contain;
}
/* نوافذ الدخول والتسجيل واللوحات: قياسات محددة (لا تمس نوافذ الكائنات والألعاب) */
html.ocean-pro body #ui-layer :is(#loginModal, #participantRegModal, #participantLoginModal, #participantDashModal, #adminDashModal, #reportFormModal, #reportViewModal) .modal-content {
  width: 100%; max-width: min(94vw, 520px); max-height: min(90dvh, 860px); overflow-y: auto; padding: clamp(18px, 3vw, 30px) !important;
}
html.ocean-pro body #ui-layer .modal-content { color: #0a2a52 !important; }
html.ocean-pro body #ui-layer .modal-content p, html.ocean-pro body #ui-layer .modal-content label { color: #3d5a76; }
html.ocean-pro body #ui-layer .modal-content div[style*="rgba(255,255,255,0.1)"], html.ocean-pro body #ui-layer .modal-content div[style*="rgba(255,255,255,.1)"] { background: #dcecee !important; }
html.ocean-pro body #ui-layer .login-modal-content { max-width: min(94vw, 440px); }
html.ocean-pro body #ui-layer .login-header { text-align: center; margin-bottom: 14px; }
html.ocean-pro body #ui-layer .login-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
html.ocean-pro body #ui-layer .login-form { display: grid; gap: 8px; }
html.ocean-pro body #ui-layer .login-form label { font-weight: 700; font-size: .9rem; margin-top: 4px; }
html.ocean-pro body #ui-layer :is(#loginModal, #participantRegModal, #participantLoginModal, #participantDashModal, #adminDashModal, #reportFormModal, #reportViewModal) .modal-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), select, textarea) {
  width: 100% !important; max-width: 100%; min-width: 0; min-height: 46px; padding: .5em .9em; border: 1.5px solid #cfe3e8 !important; border-radius: 14px !important;
  background: #f3fbfb !important; color: #0a2a52 !important; font-size: 16px; font-family: inherit; box-sizing: border-box;
}
html.ocean-pro body #ui-layer :is(#loginModal, #participantRegModal, #participantLoginModal, #participantDashModal, #adminDashModal, #reportFormModal, #reportViewModal) .modal-content :is(input, select, textarea):focus { outline: 0; border-color: #14b8c4 !important; box-shadow: 0 0 0 4px rgba(20,184,196,.2); }
html.ocean-pro body #ui-layer .modal-content ::placeholder { color: #8aa3b5; opacity: 1; }
html.ocean-pro body #ui-layer .login-error { padding: 10px 14px; border-radius: 12px; background: #fde7e5; color: #a3221b; font-weight: 700; text-align: center; margin-bottom: 8px; }
html.ocean-pro body #ui-layer .login-error.hidden { display: none !important; }
html.ocean-pro body #ui-layer .modal-content .btn-login { min-height: 48px; margin-top: 14px; }
html.ocean-pro body #ui-layer .modal-close { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 40px; height: 40px; display: grid; place-items: center; z-index: 2; }
@media (max-width: 600px) {
  html.ocean-pro body #ui-layer :is(#loginModal, #participantRegModal, #participantLoginModal, #participantDashModal, #adminDashModal, #reportFormModal, #reportViewModal) { padding: 8px; align-items: flex-end; }
  html.ocean-pro body #ui-layer :is(#loginModal, #participantRegModal, #participantLoginModal, #participantDashModal, #adminDashModal, #reportFormModal, #reportViewModal) .modal-content { max-width: 100%; max-height: calc(100dvh - 16px); border-radius: 24px 24px 18px 18px !important; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)) !important; }
  html.ocean-pro body #ui-layer .modal-close { width: 44px; height: 44px; }
}

/* ---------- 19) سلامة القياسات العامة والأداء ---------- */
html.ocean-pro body #ui-layer { scroll-padding-top: 80px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
html.ocean-pro body #ui-layer #mainContent { max-width: 100%; overflow-x: clip; }
html.ocean-pro body #ui-layer #mainContent > * { min-width: 0; }
html.ocean-pro body #ui-layer #mainContent img { max-width: 100%; height: auto; }
html.ocean-pro body #ui-layer #mainContent :is(h1, h2, h3, h4, p, li, a, span) { overflow-wrap: break-word; }
html.ocean-pro body #ui-layer #mainContent .cards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)) !important; }
html.ocean-pro body #ui-layer :is(.table-responsive, .stats-grid) { max-width: 100%; }
html.ocean-pro :focus-visible { outline: 3px solid #14b8c4; outline-offset: 2px; }
@media (pointer: coarse) {
  html.ocean-pro body #ui-layer :is(button, .ctab, .btn-hero, .nav-link-single) { min-height: 44px; }
}
@media (max-width: 760px) {
  /* التمويه مكلف على الهاتف: نبقيه للشريط العلوي فقط */
  html.ocean-pro body #ui-layer #mainContent * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html.ocean-pro body #ui-layer #mainContent > section { padding-inline: clamp(14px, 4vw, 20px); }
}
@media (prefers-reduced-motion: reduce) {
  html.ocean-pro *, html.ocean-pro *::before, html.ocean-pro *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

#section-videos .video-card .video-thumb::after { content: none; }

#loadingScreen.pb-has-logo .loader-fish { display: none; }
/* شاشة التحميل: بلا نص «أبطال البحر»؛ الشعار فقط */
html body #ui-layer #loadingScreen h2 { font-size: 0 !important; line-height: 0 !important; margin: 0 !important; }
html body #ui-layer #loadingScreen h2 .pb-loader-logo { height: 120px; max-width: 260px; }
#section-hero .pb-hero-logo { display: block; width: auto; height: auto; max-width: min(100%, 350px); max-height: clamp(80px, 18vw, 180px); object-fit: contain; }
