﻿/* 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}


