/*
Theme Name: Al-Sahoul Safety
Theme URI: https://example.com
Author: Al-Sahoul Al-Khaligia
Author URI: https://example.com
Description: قالب ووردبريس مخصص لشركات الأمن والسلامة والدفاع المدني، مبني بتصميم كامل يشمل خدمات، معدات، أدوات تفاعلية (حاسبة، فاحص جاهزية، تذكير رخصة)، ودعم عربي/إنجليزي مع وضع ليلي/نهاري. يتضمن نظام تعديل مباشر للنصوص والصور من الواجهة الأمامية.
Version: 1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alsahoul-safety
*/


  :root{
    --bg:#0B1210; --bg-2:#0F1714; --panel:#131C19; --panel-2:#182521; --line:#233029;
    --red:#D62839; --red-dim:#8C1B27; --amber:#F0A83C;
    --text:#EDEAE2; --muted:#93A199; --muted-2:#5F6B63;
    --shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  }
  html[data-theme="light"]{
    --bg:#F7F5F0; --bg-2:#EFEBE2; --panel:#FFFFFF; --panel-2:#F2EFE7; --line:#E3DDCF;
    --red:#C4212F; --red-dim:#F4D6D6; --amber:#B8721E;
    --text:#1B1F1C; --muted:#5B655D; --muted-2:#8C948B;
    --shadow: 0 16px 40px -18px rgba(0,0,0,0.18);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{ background:var(--bg); color:var(--text); font-family:'Tajawal', sans-serif; line-height:1.7; overflow-x:hidden; transition:background .25s ease, color .25s ease; }
  html[lang="en"] body{ font-family:'Inter', sans-serif; }
  h1,h2,h3,.display{ font-family:'Almarai','Tajawal',sans-serif; }
  html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .display{ font-family:'Inter', sans-serif; font-weight:800; }
  a{ color:inherit; text-decoration:none; }
  img{max-width:100%; display:block;}
  .wrap{ max-width:1140px; margin:0 auto; padding:0 24px; }
  ::selection{ background:var(--red); color:#fff; }
  [data-i18n], [data-i18n-ph]{ transition: opacity .15s ease; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  }

  /* ---------- NAV ---------- */
  header{ position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); }
  nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:1140px; margin:0 auto; gap:12px; }
  .brand{ display:flex; align-items:center; gap:10px; }
  .brand-mark{ width:40px; height:40px; border-radius:9px; background:#182633; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; padding:4px; }
  .brand-mark img{ width:100%; height:100%; object-fit:contain; }
  .brand-name{ font-family:'Almarai'; font-weight:800; font-size:1.02rem; }
  html[lang="en"] .brand-name{ font-family:'Inter'; }
  .brand-sub{ font-size:0.68rem; color:var(--muted); }
  .nav-links{ display:flex; gap:24px; font-size:0.9rem; color:var(--muted); }
  .nav-links a:hover{ color:var(--text); }
  .nav-tools{ display:flex; align-items:center; gap:8px; }
  .tool-btn{
    display:flex; align-items:center; justify-content:center; gap:6px;
    background:var(--panel); border:1px solid var(--line); color:var(--text);
    padding:8px 12px; border-radius:8px; font-size:0.8rem; font-weight:700; cursor:pointer;
    font-family:inherit;
  }
  .tool-btn:hover{ border-color:var(--muted); }
  .nav-cta{ background:var(--red); color:#fff; padding:10px 18px; border-radius:8px; font-weight:700; font-size:0.85rem; white-space:nowrap; }
  @media (max-width:900px){ .nav-links{ display:none; } }

  /* ---------- HERO ---------- */
  .hero{ position:relative; padding:80px 0 64px; overflow:hidden; border-bottom:1px solid var(--line);
    background: radial-gradient(ellipse 900px 500px at 50% -10%, color-mix(in srgb, var(--red) 18%, transparent), transparent 60%), var(--bg); }
  .hero-inner{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:40px; align-items:center; }
  @media (max-width:900px){ .hero-inner{ grid-template-columns:1fr; } }
  .badge{ display:inline-flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--line); padding:7px 14px; border-radius:999px; font-size:0.8rem; color:var(--amber); margin-bottom:22px; }
  .badge .dot{ width:7px; height:7px; border-radius:50%; background:var(--amber); animation: pulse-dot 1.8s infinite; }
  @keyframes pulse-dot{ 0%{ box-shadow:0 0 0 0 rgba(240,168,60,0.5);} 70%{ box-shadow:0 0 0 8px rgba(240,168,60,0);} 100%{ box-shadow:0 0 0 0 rgba(240,168,60,0);} }
  .hero h1{ font-size:2.4rem; font-weight:800; line-height:1.35; margin-bottom:18px; }
  .hero h1 span{ color:var(--red); }
  .hero p.lead{ color:var(--muted); font-size:1.02rem; max-width:520px; margin-bottom:30px; }
  .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
  .btn{ display:inline-flex; align-items:center; gap:8px; padding:14px 26px; border-radius:9px; font-weight:700; font-size:0.94rem; transition:transform .15s ease; }
  .btn:hover{ transform:translateY(-2px); }
  .btn-primary{ background:var(--red); color:#fff; box-shadow:0 8px 24px -8px color-mix(in srgb, var(--red) 60%, transparent); }
  .btn-ghost{ background:transparent; border:1px solid var(--line); color:var(--text); }
  .btn-calc{ background:var(--panel); border:1px solid var(--amber); color:var(--amber); }
  .btn-calc:hover{ background:color-mix(in srgb, var(--amber) 12%, transparent); }

  .emblem-wrap{ position:relative; display:flex; align-items:center; justify-content:center; height:300px; }
  .ring{ position:absolute; border-radius:50%; border:1px solid color-mix(in srgb, var(--red) 35%, transparent); }
  .ring1{ animation:expand 3s ease-out infinite; } .ring2{ animation:expand 3s ease-out infinite 1s; } .ring3{ animation:expand 3s ease-out infinite 2s; }
  @keyframes expand{ 0%{ width:120px; height:120px; opacity:0.9; } 100%{ width:300px; height:300px; opacity:0; } }
  .emblem-core{ position:relative; z-index:2; width:126px; height:126px; border-radius:50%; background:linear-gradient(160deg, var(--panel-2), var(--panel)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
  .emblem-core svg{ width:56px; height:56px; }
  .status-chip{ position:absolute; bottom:6px; left:50%; transform:translateX(-50%); background:var(--panel); border:1px solid var(--line); padding:8px 16px; border-radius:999px; font-size:0.76rem; color:var(--muted); display:flex; align-items:center; gap:8px; white-space:nowrap; }
  .status-chip .g{ width:6px; height:6px; border-radius:50%; background:#5FBE7A; }

  /* ---------- STATS ---------- */
  .stats{ border-bottom:1px solid var(--line); background:var(--bg-2); }
  .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); text-align:center; }
  .stats-grid div{ padding:28px 10px; border-inline-start:1px solid var(--line); }
  .stats-grid div:first-child{ border-inline-start:none; }
  .stat-num{ font-family:'Almarai'; font-weight:800; font-size:1.8rem; color:var(--amber); }
  html[lang="en"] .stat-num{ font-family:'Inter'; }
  .stat-label{ color:var(--muted); font-size:0.8rem; margin-top:6px; }
  @media (max-width:700px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } .stats-grid div:nth-child(3){ border-inline-start:none; } }

  section{ padding:76px 0; }
  .eyebrow{ color:var(--red); font-weight:700; font-size:0.84rem; margin-bottom:10px; }
  .sec-head{ max-width:640px; margin-bottom:44px; }
  .sec-head h2{ font-size:1.85rem; font-weight:800; margin-bottom:12px; }
  .sec-head p{ color:var(--muted); }

  /* ---------- SERVICES ---------- */
  .services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:600px){ .services-grid{ grid-template-columns:1fr; } }
  .card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:26px; transition:border-color .2s ease, transform .2s ease; }
  .card:hover{ border-color:var(--red-dim); transform:translateY(-4px); }
  .card-icon{ width:46px; height:46px; border-radius:10px; background:color-mix(in srgb, var(--red) 12%, transparent); border:1px solid color-mix(in srgb, var(--red) 25%, transparent); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
  .card-icon svg{ width:22px; height:22px; stroke:var(--amber); }
  .card h3{ font-size:1.06rem; margin-bottom:8px; font-weight:700; }
  .card p{ color:var(--muted); font-size:0.9rem; }

  /* ---------- EQUIPMENT GALLERY ---------- */
  .eq-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
  @media (max-width:900px){ .eq-grid{ grid-template-columns:repeat(3,1fr); } }
  @media (max-width:560px){ .eq-grid{ grid-template-columns:repeat(2,1fr); } }
  .eq-item{ background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; transition:transform .2s ease, border-color .2s ease; }
  .eq-item:hover{ transform:translateY(-3px); border-color:var(--red-dim); }
  .eq-photo{ background:#fff; display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; padding:10px; }
  .eq-photo img{ width:100%; height:100%; object-fit:contain; }
  .eq-icon-tile svg{ width:46%; height:46%; }
  .eq-cap{ padding:10px 12px 14px; font-size:0.78rem; color:var(--muted); text-align:center; }
  .eq-note{ color:var(--muted); font-size:0.86rem; margin-top:22px; }
  .eq-extra{ display:none; }
  .eq-more-wrap{ text-align:center; margin-top:24px; }
  .eq-more-btn{ background:var(--panel); border:1px solid var(--line); color:var(--text); padding:11px 26px; border-radius:9px; font-weight:700; font-size:0.88rem; cursor:pointer; font-family:inherit; }
  .eq-more-btn:hover{ border-color:var(--red-dim); }

  /* ---------- PROCESS ---------- */
  .process{ background:var(--bg-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .process-list{ display:flex; flex-direction:column; }
  .p-step{ display:grid; grid-template-columns:60px 1fr; gap:20px; padding:22px 0; border-top:1px solid var(--line); }
  .p-step:last-child{ border-bottom:1px solid var(--line); }
  .p-num{ font-family:'Almarai'; font-weight:800; font-size:1.35rem; color:var(--red); display:flex; align-items:flex-start; justify-content:center; padding-top:2px; }
  html[lang="en"] .p-num{ font-family:'Inter'; }
  .p-step h3{ font-size:1.0rem; margin-bottom:5px; }
  .p-step p{ color:var(--muted); font-size:0.9rem; max-width:560px; }

  /* ---------- WHY / ABOUT ---------- */
  .why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
  @media (max-width:900px){ .why-grid{ grid-template-columns:repeat(2,1fr); } }
  .why-item{ text-align:center; padding:22px 14px; }
  .why-item .n{ font-family:'Almarai'; font-weight:800; color:var(--amber); font-size:1rem; margin-bottom:6px; }
  html[lang="en"] .why-item .n{ font-family:'Inter'; }
  .why-item .d{ color:var(--muted); font-size:0.82rem; }

  /* ---------- CONTACT ---------- */
  .contact{ background:linear-gradient(180deg, var(--bg-2), var(--bg)); }
  .contact-box{ background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:44px; display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; }
  @media (max-width:800px){ .contact-box{ grid-template-columns:1fr; padding:28px; } }
  .contact-box h2{ font-size:1.6rem; margin-bottom:14px; }
  .contact-box p{ color:var(--muted); margin-bottom:22px; }
  .info-line{ display:flex; align-items:center; gap:12px; margin-bottom:16px; font-size:0.94rem; }
  .info-line .ic{ width:36px; height:36px; border-radius:9px; background:var(--panel-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .info-line .ic svg{ width:17px; height:17px; stroke:var(--amber); }
  .form input, .form textarea{ width:100%; background:var(--panel-2); border:1px solid var(--line); color:var(--text); padding:13px 14px; border-radius:9px; font-family:inherit; font-size:0.92rem; margin-bottom:12px; }
  .form textarea{ resize:vertical; min-height:90px; }
  .form input::placeholder, .form textarea::placeholder{ color:var(--muted-2); }
  .form button{ width:100%; background:var(--red); color:#fff; border:none; padding:14px; border-radius:9px; font-weight:700; font-size:0.95rem; font-family:inherit; cursor:pointer; }

  footer{ border-top:1px solid var(--line); padding:34px 0; }
  .foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
  .foot-row p{ color:var(--muted-2); font-size:0.8rem; }

  /* ---------- FIRE PROTECTION BANNER ---------- */
  .fire-banner{ position:relative; padding:110px 0; overflow:hidden; background:#08090a; color:#EDEAE2; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  .fb-bg{ position:absolute; inset:0; background:url('assets/hero/hero_supervisor.png') center 20%/cover no-repeat; opacity:0.55; }
  .fb-smoke{ position:absolute; inset:-10%; background:
      radial-gradient(ellipse 500px 300px at 20% 30%, rgba(255,255,255,0.06), transparent 60%),
      radial-gradient(ellipse 600px 400px at 70% 70%, rgba(255,255,255,0.05), transparent 65%);
    animation: smokeDrift 14s ease-in-out infinite alternate; filter:blur(6px); }
  @keyframes smokeDrift{ 0%{ transform:translate(0,0) scale(1);} 100%{ transform:translate(3%, -2%) scale(1.06);} }
  .fb-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,7,8,0.88), rgba(6,7,8,0.65) 45%, rgba(6,7,8,0.92)); }
  .fb-inner{ position:relative; z-index:2; text-align:center; display:flex; flex-direction:column; align-items:center; }
  .fb-heading-row{ display:flex; align-items:center; gap:28px; }
  .fb-eyebrow{ color:var(--red); font-weight:700; font-size:0.85rem; margin-bottom:10px; }
  .fb-title{ font-family:'Inter','Almarai',sans-serif; font-weight:800; font-size:2.4rem; line-height:1.15; letter-spacing:1px; color:#fff; }
  .scan-line-wrap{ position:relative; width:3px; height:110px; background:rgba(214,40,57,0.15); overflow:hidden; border-radius:3px; flex-shrink:0; }
  .scan-line{ position:absolute; left:-4px; right:-4px; height:36px; background:linear-gradient(180deg, transparent, var(--red) 45%, #fff 50%, var(--red) 55%, transparent); box-shadow:0 0 14px 2px rgba(214,40,57,0.8); animation: scanMove 2.4s ease-in-out infinite; }
  @keyframes scanMove{ 0%{ top:-20%; } 50%{ top:100%; } 100%{ top:-20%; } }
  .fb-caption{ margin-top:30px; color:#C9CFC9; font-size:1.05rem; line-height:1.9; max-width:520px; }
  .fb-stats{ margin-top:38px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; justify-content:center; color:var(--amber); font-weight:700; font-size:0.9rem; letter-spacing:0.3px; }
  .fb-sep{ color:rgba(240,168,60,0.35); }
  @media (max-width:640px){ .fb-title{ font-size:1.7rem; } .fb-heading-row{ gap:16px; } .scan-line-wrap{ height:80px; } }

  /* ---------- TRUSTED PROJECTS GRID (stacked rows) ---------- */
  .trusted{ padding:76px 0 64px; }
  .trusted-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
  @media (max-width:860px){ .trusted-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .trusted-grid{ grid-template-columns:1fr; } }
  .proj-item{ border-radius:12px; overflow:hidden; border:1px solid var(--line); background:var(--panel); }
  .proj-item img{ width:100%; height:170px; object-fit:cover; display:block; }
  .proj-item span{ display:block; padding:12px 14px; font-size:0.88rem; color:var(--text); font-weight:600; }
  .trusted-caption{ margin-top:30px; color:var(--muted); font-size:0.95rem; text-align:center; max-width:600px; margin-inline:auto; }
  .inprogress-head{ margin-top:56px; margin-bottom:24px; text-align:center; }
  .inprogress-head h3{ font-size:1.3rem; font-weight:800; font-family:'Almarai','Tajawal',sans-serif; }
  html[lang="en"] .inprogress-head h3{ font-family:'Inter'; }
  .inprogress-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
  @media (max-width:860px){ .inprogress-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:520px){ .inprogress-grid{ grid-template-columns:1fr; } }
  .ip-item{ background:var(--panel); border:1px dashed var(--line); border-radius:12px; padding:20px 18px; text-align:center; }
  .ip-badge{ display:inline-block; background:color-mix(in srgb, var(--amber) 15%, transparent); color:var(--amber); font-size:0.72rem; font-weight:700; padding:4px 10px; border-radius:999px; margin-bottom:12px; }
  .ip-item h4{ font-size:0.95rem; font-weight:700; margin-bottom:4px; }
  .ip-item p{ color:var(--muted); font-size:0.82rem; }

  /* ---------- FAQ ---------- */
  .faq-list{ display:flex; flex-direction:column; gap:12px; max-width:760px; }
  .faq-item{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:6px 20px; }
  .faq-item summary{ cursor:pointer; padding:16px 0; font-weight:700; font-size:0.98rem; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary::after{ content:'+'; font-size:1.4rem; color:var(--red); flex-shrink:0; transition:transform .2s ease; }
  .faq-item[open] summary::after{ transform:rotate(45deg); }
  .faq-item p{ color:var(--muted); font-size:0.92rem; padding-bottom:18px; line-height:1.8; }

  /* ---------- EMERGENCY BAR ---------- */
  .emergency-bar{ background:var(--red); }
  .eb-inner{ display:flex; align-items:center; justify-content:space-between; padding:7px 24px; font-size:0.78rem; color:#fff; gap:10px; flex-wrap:wrap; }
  .eb-text{ opacity:0.95; }
  .eb-call{ font-weight:700; background:rgba(255,255,255,0.15); padding:4px 12px; border-radius:999px; white-space:nowrap; }
  .eb-call:hover{ background:rgba(255,255,255,0.25); }

  /* ---------- TOOLS SECTION ---------- */
  .tools-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
  @media (max-width:960px){ .tools-grid{ grid-template-columns:1fr; } }
  .tool-card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:26px; }
  .tool-card h3{ font-size:1.02rem; margin-bottom:6px; }
  .tool-card > p{ color:var(--muted); font-size:0.85rem; margin-bottom:18px; }
  .tool-card label{ display:block; font-size:0.82rem; color:var(--muted); margin-bottom:6px; margin-top:12px; }
  .tool-card select, .tool-card input{ width:100%; background:var(--panel-2); border:1px solid var(--line); color:var(--text); padding:10px 12px; border-radius:8px; font-family:inherit; font-size:0.88rem; }
  .tool-card .tool-btn-action{ width:100%; margin-top:18px; background:var(--red); color:#fff; border:none; padding:12px; border-radius:8px; font-weight:700; font-size:0.88rem; cursor:pointer; font-family:inherit; }
  .calc-wa-btn{ width:100%; margin-top:12px; background:#25D366; color:#fff; border:none; padding:12px; border-radius:8px; font-weight:700; font-size:0.85rem; cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; gap:8px; }
  .calc-wa-btn:hover{ background:#20bd5a; }
  .tool-card-wide{ grid-column:1 / -1; }
  .calc-inputs-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
  @media (max-width:700px){ .calc-inputs-row{ grid-template-columns:1fr; } }
  .calc-results-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px 20px; margin-top:4px; }
  @media (max-width:700px){ .calc-results-grid{ grid-template-columns:1fr; } }
  .calc-res-row{ display:flex; justify-content:space-between; gap:10px; font-size:0.83rem; }
  .calc-res-row b{ color:var(--amber); flex-shrink:0; }
  .calc-res-row-wrap{ border-bottom:1px solid var(--line); padding:7px 0; }
  .calc-res-note{ font-size:0.7rem; color:var(--muted-2); margin-top:3px; line-height:1.5; }
  .calc-important-note{ background:color-mix(in srgb, var(--amber) 12%, transparent); border:1px solid color-mix(in srgb, var(--amber) 35%, transparent); color:var(--amber); border-radius:8px; padding:10px 12px; font-size:0.78rem; line-height:1.7; margin-bottom:14px; }
  .calc-group-title{ font-weight:700; font-size:0.85rem; color:var(--text); margin:16px 0 4px; grid-column:1 / -1; }
  .calc-group-title:first-child{ margin-top:0; }
  .tool-check{ display:flex; align-items:center; gap:8px; padding:8px 0; font-size:0.85rem; border-bottom:1px solid var(--line); }
  .tool-check:last-of-type{ border-bottom:none; }
  .tool-check input{ width:auto; accent-color:var(--red); }
  .tool-result{ margin-top:16px; padding:14px; border-radius:10px; background:var(--panel-2); border:1px solid var(--line); font-size:0.85rem; line-height:1.8; display:none; }
  .tool-result.show{ display:block; }
  .tool-result.ok{ border-color:#3d7a4f; color:#8fd6a3; }
  .tool-result.warn{ border-color:var(--amber); color:var(--amber); }
  .tool-result.bad{ border-color:var(--red); color:#ff8f97; }
  .tool-disclaimer{ margin-top:12px; font-size:0.72rem; color:var(--muted-2); }

  .wa-float{ position:fixed; bottom:22px; inset-inline-start:22px; z-index:60; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 26px -8px rgba(37,211,102,0.6); }
  .wa-float svg{ width:27px; height:27px; fill:#fff; }

  /* ================= EDIT STUDIO ================= */
  #editStudioBar{ position:fixed; bottom:22px; inset-inline-end:22px; z-index:999; display:flex; flex-direction:column; align-items:flex-end; gap:10px; font-family:'Tajawal',sans-serif; }
  #editStudioBar *{ box-sizing:border-box; }
  .es-btn{ display:flex; align-items:center; gap:8px; background:#181f1d; color:#EDEAE2; border:1px solid #33413a; padding:12px 18px; border-radius:999px; font-weight:700; font-size:0.86rem; cursor:pointer; box-shadow:0 12px 30px -10px rgba(0,0,0,0.6); font-family:'Tajawal',sans-serif; }
  .es-btn:hover{ border-color:#D62839; }
  .es-btn.active{ background:#D62839; border-color:#D62839; color:#fff; }
  .es-panel{ display:none; background:#141b19; border:1px solid #2b3630; border-radius:14px; padding:18px; width:300px; color:#EDEAE2; box-shadow:0 20px 50px -15px rgba(0,0,0,0.7); }
  .es-panel.show{ display:block; }
  .es-panel h4{ font-size:0.92rem; margin-bottom:12px; }
  .es-panel label{ display:block; font-size:0.76rem; color:#93A199; margin:10px 0 4px; }
  .es-panel input{ width:100%; background:#0F1714; border:1px solid #2b3630; color:#EDEAE2; padding:9px 10px; border-radius:8px; font-size:0.84rem; font-family:inherit; }
  .es-panel .es-save{ margin-top:14px; width:100%; background:#D62839; color:#fff; border:none; padding:10px; border-radius:8px; font-weight:700; cursor:pointer; font-size:0.84rem; }
  .es-hint{ font-size:0.72rem; color:#93A199; line-height:1.6; margin-top:8px; }

  body.edit-mode [data-i18n], body.edit-mode [data-field]{ outline:1.5px dashed rgba(214,40,57,0.55); outline-offset:3px; cursor:text; border-radius:3px; }
  body.edit-mode [data-i18n]:hover, body.edit-mode [data-field]:hover{ outline-color:#F0A83C; background:rgba(240,168,60,0.07); }
  body.edit-mode [data-i18n]:focus, body.edit-mode [data-field]:focus{ outline:2px solid #D62839; background:rgba(214,40,57,0.08); }
  body.edit-mode .img-edit-zone{ position:relative; }
  .img-edit-btn{ display:none; }
  body.edit-mode .img-edit-zone .img-edit-btn{
    display:flex; position:absolute; inset:0; z-index:5; align-items:center; justify-content:center;
    background:rgba(8,10,9,0.62); color:#fff; font-size:0.78rem; font-weight:700; opacity:0; transition:opacity .15s ease;
    cursor:pointer; border:none; font-family:'Tajawal',sans-serif; text-align:center; gap:6px; flex-direction:column; padding:6px;
  }
  body.edit-mode .img-edit-zone:hover .img-edit-btn{ opacity:1; }
  .es-toast{ position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:#182521; color:#EDEAE2; border:1px solid #33413a; padding:10px 18px; border-radius:999px; font-size:0.82rem; z-index:1000; opacity:0; pointer-events:none; transition:opacity .25s ease; }
  .es-toast.show{ opacity:1; }
