/* ATBN – ثيم الصفحة الجديدة (عاجي + زليج + زمرّدي + ذهبي). مصدره index-atbn-jdid.html */
:root {
  --ivory: #FAF6EE;
  --ivory-dark: #F2EBE0;
  --zellige-line: #E6DBC4;
  --emerald-royal: #0E5640;
  --emerald-deep: #0A3F2F;
  --gold-antique: #B88A3E;
  --gold-bright: #C99A45;
  --ink-dark: #162821;
  --g: #0E5640;
  --gold: #B88A3E;
}

body.atbn-jdid-theme {
  background-color: #FAF6EE !important;
  color: #162821 !important;
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E6DBC4' stroke-width='0.9'%3E%3Cpolygon points='60,10 74,46 110,60 74,74 60,110 46,74 10,60 46,46'/%3E%3Crect x='32' y='32' width='56' height='56' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3Cpath d='M0,0 L22,22 M120,0 L98,22 M0,120 L22,98 M120,120 L98,98'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.diacritic {
  color: #B88A3E;
  font-weight: 700;
}

.calligraphy-title {
  font-family: 'Amiri', 'Reem Kufi', serif !important;
  color: #0E5640;
  text-shadow: 0 2px 12px rgba(14, 86, 64, 0.08);
}

.atbn-jdid-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 238, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 138, 62, 0.35) !important;
  box-shadow: 0 4px 18px rgba(10, 63, 47, 0.05);
}

.atbn-jdid-star-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0E5640;
  border: 2px solid #B88A3E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(14, 86, 64, 0.16);
  flex-shrink: 0;
}

.atbn-jdid-hero-shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.96) 0%, rgba(253, 251, 246, 0.95) 55%, rgba(242, 235, 224, 0.88) 100%);
  border: 1px solid rgba(184, 138, 62, 0.4);
  border-radius: 24px;
  padding: 2.25rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 18px 40px -18px rgba(14, 86, 64, 0.14);
}

.atbn-jdid-corner-tl {
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 190px;
  height: 190px;
  z-index: 0;
  opacity: 0.92;
}

.atbn-jdid-corner-br {
  pointer-events: none;
  user-select: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 190px;
  height: 190px;
  z-index: 0;
  opacity: 0.92;
  transform: rotate(180deg);
}

.atbn-jdid-theme .hs,
.atbn-jdid-theme .cat2,
.atbn-jdid-theme .auth.card,
.atbn-jdid-theme .row5 > div:not(.px),
.atbn-jdid-theme .faq details,
.atbn-jdid-theme .fcta {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(184, 138, 62, 0.35) !important;
  border-radius: 18px;
  box-shadow: 0 10px 26px -14px rgba(14, 86, 64, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.atbn-jdid-theme .cat2:hover,
.atbn-jdid-theme .row5 > div:not(.px):hover {
  border-color: #B88A3E !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(14, 86, 64, 0.16);
}

.atbn-jdid-theme .btn2.main,
.atbn-jdid-theme button.pri {
  background: #0E5640 !important;
  color: #FAF6EE !important;
  border: 1px solid #B88A3E !important;
}

.atbn-jdid-theme .btn2.main:hover,
.atbn-jdid-theme button.pri:hover {
  background: #0A3F2F !important;
}

.atbn-jdid-theme footer {
  background: #0A3F2F !important;
  color: #FAF6EE !important;
  border-top: 3px solid #C99A45 !important;
}

@media (min-width: 768px) {
  .atbn-jdid-hero-shell {
    padding: 3rem 2.5rem;
  }
  .atbn-jdid-corner-tl,
  .atbn-jdid-corner-br {
    width: 250px;
    height: 250px;
  }
}

/* ===== ATBN jdid theme: extension to the whole platform (app views, dialogs, forms) ===== */
:root{
  --g2:#0A3F2F;--hd:#0E5640;--bg:#FAF6EE;--card:#FFFFFF;--ink:#162821;--mut:#5B6A61;
  --line:#E6DBC4;--gs:#EAF1EC;--soft:#FAF6EE;--lk:#0E5640;color-scheme:light;
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* bilingual hero title: diacritized Arabic in AR, plain translated text in FR/EN */
html[lang=ar] .ttl-x{display:none}
html:not([lang=ar]) .ttl-ar{display:none}
html:not([lang=ar]) .calligraphy-title{font-family:'Amiri','Cairo',serif!important;letter-spacing:0}

.atbn-jdid-theme h1,.atbn-jdid-theme h2{font-family:'Amiri','Reem Kufi',serif;color:#0E5640}
.atbn-jdid-theme h3{color:#0A3F2F}

/* app cards, KPIs, posts, dialogs */
.atbn-jdid-theme .card,
.atbn-jdid-theme .kpi,
.atbn-jdid-theme .post,
.atbn-jdid-theme .ag-card,
.atbn-jdid-theme dialog{
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(184,138,62,.35)!important;
  border-radius:18px;
  box-shadow:0 10px 26px -14px rgba(14,86,64,.12);
  color:#162821;
}
.atbn-jdid-theme .card.mine{border-color:#B88A3E!important;box-shadow:0 14px 30px -14px rgba(14,86,64,.2)}
.atbn-jdid-theme dialog::backdrop{background:rgba(10,63,47,.45)}
.atbn-jdid-theme .kpi b{color:#0E5640}

/* navigation, tabs, chips */
.atbn-jdid-theme nav button.on,
.atbn-jdid-theme .tabs button.on,
.atbn-jdid-theme .gtabs button.on,
.atbn-jdid-theme .chips button.on{
  background:#0E5640!important;color:#FAF6EE!important;border-color:#B88A3E!important;
}
.atbn-jdid-theme nav button:hover,
.atbn-jdid-theme .tabs button:hover,
.atbn-jdid-theme .gtabs button:hover,
.atbn-jdid-theme .chips button:hover{border-color:#B88A3E}

/* buttons */
.atbn-jdid-theme button.pri:disabled{opacity:.55}
.atbn-jdid-theme button.sec{
  background:transparent;color:#0E5640;border:1px solid #B88A3E;
}
.atbn-jdid-theme button.sec:hover{background:rgba(184,138,62,.1)}
.atbn-jdid-theme .post a.pri{background:#0E5640;color:#FAF6EE;border:1px solid #B88A3E}

/* forms */
.atbn-jdid-theme input,
.atbn-jdid-theme select,
.atbn-jdid-theme textarea{
  background:#FFFEFB;color:#162821;border:1px solid rgba(184,138,62,.5);border-radius:12px;
}
.atbn-jdid-theme input:focus-visible,
.atbn-jdid-theme select:focus-visible,
.atbn-jdid-theme textarea:focus-visible,
.atbn-jdid-theme a:focus-visible,
.atbn-jdid-theme button:focus-visible{outline:3px solid #C99A45;outline-offset:2px}

/* tags, notes, banners, timeline */
.atbn-jdid-theme .tag{background:rgba(184,138,62,.14);color:#0A3F2F;border:1px solid rgba(184,138,62,.4)}
.atbn-jdid-theme .note,.atbn-jdid-theme .banner{background:#FFF9EA;border:1px solid rgba(184,138,62,.45);color:#162821}
.atbn-jdid-theme .tl .ev::before{background:#B88A3E;border-color:#0E5640}
.atbn-jdid-theme .guestbar{background:#0A3F2F;color:#FAF6EE;border-bottom:1px solid rgba(201,154,69,.4)}
.atbn-jdid-theme .toast{background:#0A3F2F;color:#FAF6EE;border:1px solid #C99A45}
.atbn-jdid-theme .tgb{border-color:rgba(184,138,62,.55);color:#0E5640;background:rgba(255,255,255,.7)}
.atbn-jdid-theme .tgb:hover,.atbn-jdid-theme .tgb.on{background:#0E5640;color:#FAF6EE}
.atbn-jdid-theme .gnav a{color:#0A3F2F}
.atbn-jdid-theme .gnav a:hover{color:#B88A3E}
.atbn-jdid-theme .strip{background:linear-gradient(90deg,#0E5640,#B88A3E,#0A3F2F);height:4px}
.atbn-jdid-theme .topbar{background:#0A3F2F;color:#FAF6EE;border-bottom:1px solid rgba(201,154,69,.35)}

/* ===== legibility on the ivory hero (figma.css colored these white for a dark photo hero) ===== */
.atbn-jdid-theme #v-auth>.intro{color:#162821;min-height:0}
.atbn-jdid-theme #v-auth>.intro::before,
.atbn-jdid-theme #v-auth>.intro::after{display:none}
.atbn-jdid-theme .intro h1.calligraphy-title{color:#0E5640;letter-spacing:0;font-weight:700}
.atbn-jdid-theme .intro p{color:#3F5147}
.atbn-jdid-theme .intro p.vp{color:#0A3F2F;font-weight:500}
.atbn-jdid-theme .intro .btn2:not(.main){
  background:#FFFFFF;color:#0E5640;border:1px solid #B88A3E;
}
.atbn-jdid-theme .intro .btn2:not(.main):hover{background:#F2EBE0;color:#0A3F2F}
.atbn-jdid-theme .chips2{color:#3F5147}
.atbn-jdid-theme .chips2 span::before{border-color:rgba(184,138,62,.7);color:#B88A3E}
.atbn-jdid-theme .intro .chips2{flex-wrap:wrap;gap:8px 20px;max-width:600px}

/* ===== hero: the real ATBN logo inside a frame shaped to fit it (replaces the illustrated arch) ===== */
.atbn-jdid-theme .harch{
  width:380px;height:420px;aspect-ratio:720/796;
  border-radius:190px 190px 22px 22px;
  background:url(/assets/logo-atbn.webp) center/94% auto no-repeat,#FEFDF9;
  border:2px solid #B88A3E;
  box-shadow:0 0 0 10px rgba(184,138,62,.14),0 0 0 11px rgba(184,138,62,.55),0 28px 60px -18px rgba(14,86,64,.35);
}
/* headings on dark green bands keep light text */
.atbn-jdid-theme .hs.join h2,.atbn-jdid-theme .hs.join .jcopy h2{color:#FAF6EE}
.atbn-jdid-theme .hs.join p{color:#EAD9AE}

/* ===== الصفحة الأولى: واجهة الدخول (Splash) ===== */
::selection{background:#0E5640;color:#FAF6EE}
.atbn-jdid-theme .card:hover{border-color:#B88A3E!important;transform:translateY(-3px);box-shadow:0 16px 34px -10px rgba(14,86,64,.16)}
html.splash-on body{overflow:hidden}
.splash{
  position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;overflow-y:auto;
  background-color:#FAF6EE;color:#162821;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E6DBC4' stroke-width='0.9'%3E%3Cpolygon points='60,10 74,46 110,60 74,74 60,110 46,74 10,60 46,46'/%3E%3Crect x='32' y='32' width='56' height='56' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='16'/%3E%3Cpath d='M0,0 L22,22 M120,0 L98,22 M0,120 L22,98 M120,120 L98,98'/%3E%3C/g%3E%3C/svg%3E");
  background-size:120px 120px;
  transition:opacity .5s ease,visibility .5s ease;
}
.splash::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 38%,rgba(255,255,255,.9),rgba(250,246,238,0) 62%)}
html.no-splash .splash{display:none}
.splash.out{opacity:0;visibility:hidden;pointer-events:none}
.splash-hd{position:relative;z-index:1;display:flex;align-items:center;gap:12px;padding:18px clamp(16px,4vw,40px)}
.splash-mini{width:42px;height:42px;border-radius:12px;background:#fff;border:1px solid rgba(184,138,62,.45);display:grid;place-items:center;overflow:hidden;flex:none}
.splash-mini img{width:34px;height:34px;object-fit:contain}
.splash-brand{font:700 clamp(1.1rem,2vw,1.45rem)/1.3 Amiri,'Reem Kufi',serif;color:#0E5640}
.splash-lang{margin-inline-start:auto;display:flex;gap:6px}
.splash-lang button{min-width:44px;height:44px;border:1.5px solid #B88A3E;border-radius:10px;background:rgba(255,255,255,.7);color:#0E5640;font:700 12px Cairo,Tajawal,Arial,sans-serif;cursor:pointer}
.splash-lang button[aria-pressed=true]{background:#0E5640;color:#FAF6EE}
.splash-main{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12px 20px 28px;gap:0}
.splash-card{width:clamp(180px,22vw,220px);aspect-ratio:1;background:#fff;border:1px solid rgba(184,138,62,.4);border-radius:30px;display:grid;place-items:center;padding:14px;box-shadow:0 22px 50px -22px rgba(14,86,64,.4),0 0 0 8px rgba(184,138,62,.1)}
.splash-card img{width:100%;height:100%;object-fit:contain;border-radius:18px}
.splash-title{margin:30px 0 14px;font:700 clamp(1.7rem,3.6vw,2.6rem)/1.5 Amiri,'Reem Kufi',serif;color:#0E5640;text-shadow:0 2px 12px rgba(14,86,64,.08)}
.splash-sub{max-width:680px;margin:0 0 28px;color:#3F5147;font-size:clamp(1rem,1.7vw,1.18rem);line-height:2}
.splash-go{border:1px solid #B88A3E;border-radius:999px;background:#0E5640;color:#FAF6EE;padding:14px 56px;font:700 1.12rem Tajawal,Cairo,Arial,sans-serif;cursor:pointer;box-shadow:0 14px 28px -12px rgba(14,86,64,.65);transition:transform .2s,background .2s}
.splash-go:hover{background:#0A3F2F;transform:translateY(-2px)}
.splash-go:focus-visible,.splash-lang button:focus-visible{outline:3px solid #C99A45;outline-offset:3px}
.splash-zig{position:relative;z-index:1;flex:none;height:22px;border-top:2px solid #C99A45;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='20' viewBox='0 0 28 20'%3E%3Cpath d='M0 20 L14 3 L28 20 Z' fill='%230E5640'/%3E%3Cpath d='M0 20 L14 3 L28 20' fill='none' stroke='%23C99A45' stroke-width='2'/%3E%3C/svg%3E") repeat-x left bottom/28px 20px}
@media (max-width:520px){.splash-go{width:100%;max-width:320px}.splash-brand{font-size:1rem}}
@media (prefers-reduced-motion:reduce){.splash,.splash-go{transition:none}}
.splash-hd{background:transparent!important;box-shadow:none!important;border:0!important;backdrop-filter:none!important}
.splash-title{border:0!important;padding:0!important}
.splash-title::after,.splash-title::before{display:none!important}
.splash:focus{outline:none}
.splash-title{background:none!important;text-decoration:none!important}

/* ===== بطاقات القطاعات: نفس أسلوب التصميم المطلوب (حاوية أيقونة مربّعة + رابط ذهبي + زخرفة ركنية) ===== */
.atbn-jdid-theme .cats2{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;border:0!important;margin-top:32px;counter-reset:none}
@media (max-width:1179px){.atbn-jdid-theme .cats2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:559px){.atbn-jdid-theme .cats2{grid-template-columns:1fr}}
.atbn-jdid-theme .cat2{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:start;
  min-height:0!important;padding:24px 20px 18px!important;overflow:hidden;
  background:rgba(255,255,255,.96)!important;border:1px solid rgba(184,138,62,.4)!important;border-radius:18px!important;
  box-shadow:none!important;text-decoration:none;transition:border-color .25s,transform .25s,box-shadow .25s;
}
.atbn-jdid-theme .cat2 .ph{display:none!important}
.atbn-jdid-theme .cat2::after{display:none!important}
.atbn-jdid-theme .cat2::before{
  content:"";counter-increment:none;position:absolute;top:0;inset-inline-end:0;left:auto;right:auto;
  width:64px;height:48px;font-size:0;color:transparent;z-index:0;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='48' viewBox='0 0 64 48'%3E%3Cpath d='M0 46 Q36 40 58 8' fill='none' stroke='%23B88A3E' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M58 3 L62 8 L58 13 L54 8Z' fill='%230E5640'/%3E%3C/svg%3E") no-repeat top left/64px 48px;
}
html[dir=rtl] .atbn-jdid-theme .cat2::before{inset-inline-end:auto;left:0;right:auto}
html[dir=ltr] .atbn-jdid-theme .cat2::before{inset-inline-end:auto;right:0;left:auto;transform:scaleX(-1)}
.atbn-jdid-theme .cat2 .ic{
  position:relative;z-index:1;flex:none;width:46px;height:46px;margin:0 0 16px!important;
  display:grid;place-items:center;border-radius:12px!important;background:#E9F1EC!important;
  border:1px solid rgba(14,86,64,.16);box-shadow:none!important;transition:background .25s,color .25s;
}
.atbn-jdid-theme .cat2 .ic svg{width:24px;height:24px;color:#0E5640;stroke:currentColor}
.atbn-jdid-theme .cat2 b{position:relative;z-index:1;margin:0 0 8px!important;padding:0;font:800 15px/1.6 Tajawal,Cairo,sans-serif;color:#0A3F2F}
.atbn-jdid-theme .cat2 span{position:relative;z-index:1;padding:0;font-size:12.5px;line-height:1.9;color:#5B6A61}
.atbn-jdid-theme .cat2 .go{position:relative;z-index:1;margin-top:auto;padding-top:16px;font:700 12.5px Tajawal,Cairo,sans-serif;font-style:normal;color:#B88A3E}
.atbn-jdid-theme .cat2 .go::after{content:" ←";display:inline-block;transition:transform .2s}
html[dir=ltr] .atbn-jdid-theme .cat2 .go::after{content:" →"}
.atbn-jdid-theme .cat2:hover,.atbn-jdid-theme .cat2:focus-visible{border-color:#B88A3E!important;transform:translateY(-3px);box-shadow:0 16px 34px -12px rgba(14,86,64,.18)!important}
.atbn-jdid-theme .cat2:hover .ic{background:#0E5640!important}
.atbn-jdid-theme .cat2:hover .ic svg{color:#FAF6EE}
.atbn-jdid-theme .cat2:hover .go::after{transform:translateX(-4px)}

/* ===== عائلة الأيقونات الموحّدة داخل التطبيق (بطاقات المزايا، شارات الفئات، الأزرار) ===== */
.ai{width:1.2em;height:1.2em;vertical-align:-.25em;flex:none;color:currentColor;stroke:currentColor}
.atbn-jdid-theme #g-chips button .ai{margin-inline-end:6px;width:18px;height:18px;color:#0E5640}
.atbn-jdid-theme #g-chips button.on .ai{color:#FAF6EE}
.atbn-jdid-theme .fn .ic{width:44px;height:44px;border-radius:12px;background:#E9F1EC;border:1px solid rgba(14,86,64,.16);font-size:0;color:#0E5640}
.atbn-jdid-theme .fn .ic .ai{width:22px;height:22px;vertical-align:middle}
.atbn-jdid-theme .card.mine .meta .ai{width:18px;height:18px;margin-inline-end:6px;color:#0E5640}

/* ===== التذييل ===== */
.atbn-jdid-theme footer.ft{display:block!important;background:#0A3F2F!important;color:#E9EFEA;padding:0!important;margin:0;border-top:3px solid #C99A45;position:relative;overflow:visible}
.atbn-jdid-theme footer.ft::before,.atbn-jdid-theme footer.ft::after{display:none}
.ft-in{max-width:1180px;margin:0 auto;padding:56px 28px 26px}
.ft-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:48px;align-items:start}
.ft-logo{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.ft-mark{flex:none;width:58px;height:58px;border-radius:14px;background:#FFFEFB;border:1px solid #C99A45;display:grid;place-items:center;overflow:hidden}
.ft-mark img{width:50px;height:50px;object-fit:contain}
.ft-name{display:block;font:700 1.55rem/1.3 Amiri,'Reem Kufi',serif;color:#E6BE6A}
.ft-latin{display:block;margin-top:4px;font:800 .72rem/1.4 Montserrat,Tajawal,sans-serif;letter-spacing:.14em;color:#C99A45}
.ft-about{margin:0;max-width:520px;color:#D3DDD6;font-size:.95rem;line-height:2}
.ft-col h4{margin:0 0 18px;font:700 1.1rem Tajawal,Cairo,sans-serif;color:#E6BE6A;border:0;padding:0}
.ft-col a,.ft-col span{display:block;margin:0 0 12px;color:#D3DDD6;font-size:.93rem;text-decoration:none}
.ft-col a:hover{color:#E6BE6A}
.ft-seo{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:34px;padding-top:18px;border-top:1px solid rgba(201,154,69,.18)}
.ft-seo a{color:#AEBFB5;font-size:.8rem;text-decoration:none}.ft-seo a:hover{color:#E6BE6A}
.ft-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:22px;padding-top:22px;border-top:1px solid rgba(201,154,69,.35);font-size:.85rem;color:#C5D1C9}
.ft-bar b{color:#E6BE6A;font-weight:700}
.atbn-jdid-theme footer.ft a:focus-visible{outline:3px solid #C99A45;outline-offset:3px;border-radius:4px}
@media (max-width:860px){
  .ft-in{padding:40px 20px 22px}
  .ft-grid{grid-template-columns:1fr;gap:30px}
  .ft-bar{flex-direction:column;align-items:flex-start}
}
.ft-brand,.ft-col,.ft-about,.ft-col h4{text-align:start}
.atbn-jdid-theme .cat2 .go::after{content:"←";margin-inline-start:6px}
html[dir=ltr] .atbn-jdid-theme .cat2 .go::after{content:"→"}
.ft-seo{border-bottom:0!important}
html[dir=rtl] .ft-col a[dir=ltr]{text-align:right}
