:root{
  --bg: #ffffff;
  --bg2:#f6f8ff;
  --text:#0b1220;
  --muted:#5b6476;
  --line: rgba(15,23,42,.10);

  --navy:#0a1b3d;
  --gold:#c8a85a;
  --gold2:#e7d39a;

  --brand:#1d4ed8;

  --radius:18px;
  --shadow: 0 18px 50px rgba(2,6,23,.12);
  --shadow2: 0 10px 24px rgba(2,6,23,.10);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 80% -12%, rgba(29,78,216,.09), transparent 60%),
    radial-gradient(800px 480px at 10% 0%, rgba(200,168,90,.10), transparent 55%),
    var(--bg);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
.container{ width:min(1200px, 92%); margin-inline:auto; }

.section{ padding: 72px 0; }
.h2{
  margin:0 0 10px;
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 900;
  letter-spacing:.2px;
}
.h3{
  margin:0 0 10px;
  font-size: 18px;
  font-weight: 900;
}
.lead{
  margin:0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16.8px;
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight: 900;
  color: rgba(10,27,61,.80);
  letter-spacing:.25px;
}
.kicker::before{
  content:"";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(231,211,154,.35));
}

/* Prevent header overlap on anchors */
#services, #about, #hospital, #contact { scroll-margin-top: 86px; }

/* Topbar */
.topbar{
  background: rgba(10,27,61,.92);
  border-bottom: 1px solid rgba(231,211,154,.18);
  color: rgba(255,255,255,.86);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar__pill{
  border: 1px solid rgba(231,211,154,.24);
  background: rgba(200,168,90,.14);
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 900;
  color:#fff;
}
.topbar__links a{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.topbar__links .sep{ margin: 0 10px; opacity:.8; }

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 999;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 230px;
}
.brand img{
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
}
.brand__title{ font-weight: 900; line-height: 1.1; }
.brand__sub{ color: var(--muted); font-size: 12.5px; margin-top:2px; }

.nav{
  display:flex;
  align-items:center;
  gap: 6px;
}
.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  color: rgba(25,35,55,.78);
}
.nav a:hover{
  background: rgba(246,248,255,.9);
  color: var(--text);
}
.nav__cta{
  border: 1px solid rgba(200,168,90,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,248,255,.9));
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

.header__actions{
  display:flex;
  align-items:center;
  gap: 8px;
}
.lang{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  font-weight: 900;
}
.lang.is-active{
  border-color: rgba(200,168,90,.45);
  background: rgba(200,168,90,.10);
  color: rgba(10,27,61,.92);
}

/* Burger */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px; height:2px;
  margin: 5px auto;
  background: rgba(10,27,61,.9);
  border-radius: 2px;
}

/* Mobile menu */
.mobile{
  display:none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.90);
}
.mobile.is-open{ display:block; }
.mobile__inner{
  padding: 10px 0 14px;
  display:grid;
  gap: 6px;
}
.mobile__inner a{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  color: rgba(25,35,55,.78);
}
.mobile__inner a:hover{
  background: rgba(246,248,255,.9);
  color: var(--text);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.btn--solid{
  background: linear-gradient(180deg, rgba(10,27,61,.96), rgba(10,27,61,.90));
  border-color: rgba(231,211,154,.32);
  color:#fff;
}
.btn--solid:hover{
  background: linear-gradient(180deg, rgba(10,27,61,.98), rgba(10,27,61,.92));
}
.btn--ghost{
  background: rgba(246,248,255,.92);
  border-color: rgba(15,23,42,.10);
}
.btn--outline{
  background: transparent;
  border-color: rgba(200,168,90,.45);
}
.btn--full{ width:100%; }

/* Hero */
.hero{ padding: 54px 0 28px; }
.hero__frame{
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(200,168,90,.16), transparent 55%),
    linear-gradient(90deg, rgba(29,78,216,.05), rgba(255,255,255,1));
  box-shadow: var(--shadow);
}
.hero__grid{
  padding: 42px 20px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: stretch;
}
.hero__badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200,168,90,.35);
  background: rgba(255,255,255,.72);
  color: rgba(10,27,61,.90);
  font-weight: 900;
}
.hero__title{
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing:.2px;
}
.hero__subtitle{
  margin:0 0 12px;
  color: rgba(25,35,55,.82);
  font-weight: 900;
  line-height: 1.6;
}
.hero__text{
  margin:0 0 18px;
  color: var(--muted);
  line-height: 1.95;
  font-size: 17px;
}
.hero__cta{ display:flex; gap: 10px; flex-wrap: wrap; }

.hero__trust{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.trust{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  padding: 12px;
}
.trust__k{
  font-weight: 900;
  color: rgba(10,27,61,.92);
}
.trust__v{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.6;
}

.hero__side .panel{
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(231,211,154,.25);
  background: linear-gradient(180deg, rgba(10,27,61,.96), rgba(10,27,61,.92));
  color:#fff;
  box-shadow: 0 16px 48px rgba(2,6,23,.18);
  padding: 18px;
}
.panel__title{
  font-weight: 900;
  letter-spacing:.2px;
  margin-bottom: 12px;
  color: rgba(231,211,154,.95);
}

.steps{ display:grid; gap: 10px; }
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.step__n{
  width: 38px; height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(231,211,154,.35);
  background: rgba(200,168,90,.18);
  display:flex; align-items:center; justify-content:center;
  font-weight: 900;
  color:#fff;
  flex: 0 0 38px;
}
.step__b b{ display:block; color:#fff; margin-bottom: 2px; }
.step__b span{ color: rgba(255,255,255,.80); line-height: 1.75; font-weight: 700; font-size: 14px; }

.mini{ margin-top: 12px; display:grid; gap: 10px; }
.mini__card{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.mini__icon{
  width: 40px; height:40px;
  border-radius: 14px;
  border: 1px solid rgba(231,211,154,.30);
  background: rgba(200,168,90,.14);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 40px;
}
.mini__t{ font-weight: 900; color:#fff; }
.mini__p{ color: rgba(255,255,255,.78); font-weight: 700; font-size: 13.8px; line-height: 1.7; margin-top:2px; }

/* Section head */
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Cards */
.cards{ display:grid; gap: 14px; }
.cards--4{ grid-template-columns: repeat(4, 1fr); }
.cards--3{ grid-template-columns: repeat(3, 1fr); }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  overflow:hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media{ height: 180px; background: var(--bg2); position:relative; }
.card__media img{ width:100%; height:100%; object-fit: cover; }
.card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent, rgba(10,27,61,.10));
}
.card__body{ padding: 14px 14px 16px; }

.card__body{
    color: var(--muted);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.bullets{
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 7px;
}
.bullets li{
  color: rgba(25,35,55,.78);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.7;
}
.bullets li::before{
  content:"•";
  color: var(--gold);
  font-weight: 900;
  margin-inline-end: 8px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,168,90,.28);
  background: rgba(200,168,90,.10);
  color: rgba(10,27,61,.92);
  font-weight: 900;
  font-size: 13px;
}

.meta{ color: rgba(25,35,55,.74); font-weight: 900; margin-bottom: 12px; }

/* CTA band */
.cta{
  margin-top: 16px;
  border-radius: 24px;
  border: 1px solid rgba(231,211,154,.22);
  background: linear-gradient(90deg, rgba(10,27,61,.96), rgba(15,42,90,.92));
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
  padding: 18px;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta__t{ font-weight: 900; letter-spacing:.2px; margin-bottom: 4px; color: rgba(231,211,154,.95); }
.cta__p{ color: rgba(255,255,255,.82); font-weight: 800; line-height: 1.85; max-width: 780px; }
.cta__btns{ display:flex; gap: 10px; flex-wrap: wrap; }

/* About */
.about{
  display:grid;
/*  grid-template-columns: 1.1fr .9fr; */
  gap: 14px;
  align-items: start;
}
.about__text{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  padding: 18px;
}
.about__text p{
  margin:0;
  color: var(--muted);
  line-height: 2.0;
  font-weight: 700;
  font-size: 16px;
}
.about__text p + p{ margin-top: 12px; }

.about__side{ display:grid; gap: 14px; align-content: start; }
.profile{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.profile img{
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(15,23,42,.10);
}
.profile__name{ font-weight: 900; }
.profile__role{ color: rgba(25,35,55,.74); font-weight: 900; margin-top:2px; }

.reg{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  overflow:hidden;
}
.reg__kicker{ padding: 14px 16px 0; color: rgba(25,35,55,.72); font-weight: 900; }
.reg__title{ padding: 2px 16px 12px; font-weight: 900; color: rgba(10,27,61,.92); }
.logos{
  border-top: 1px solid rgba(15,23,42,.10);
  background: rgba(246,248,255,.65);
  overflow:hidden;
}
.logos__track{
  display:flex;
  gap: 26px;
  align-items:center;
  padding: 14px 16px;
  width: max-content;
  animation: slide 22s linear infinite;
}
.logos__track img{ height: 44px; width:auto; opacity: .95; }
@keyframes slide{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
[dir="rtl"] .logos__track{ animation-direction: reverse; }

/* Stats */
.stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
  padding: 16px;
  
  /* التعديل هنا لتوسيط النصوص */
  text-align: center; 
}

.stat__k { 
  color: rgba(25, 35, 55, .72); 
  font-weight: 900; 
}

.stat__n {
  margin: 10px 0 2px;
  font-size: 28px;
  font-weight: 900;
  color: rgba(10, 27, 61, .92);
}

.stat__v { 
  color: var(--muted); 
  font-weight: 800; 
}

/* Map */
.map{
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
  background: #fff;
  box-shadow: var(--shadow2);
}
.map iframe{ width:100%; height: 420px; border:0; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact__card{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
  padding: 18px;
}
.kv{
  display:flex;
  gap: 10px;
  margin: 12px 0;
  align-items:flex-start;
}
.kv__i{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(231,211,154,.24);
  background: rgba(200,168,90,.12);
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 40px;
}
.kv__b span{ display:block; color: rgba(25,35,55,.72); font-weight: 900; font-size: 13px; }
.kv__b p{ margin: 2px 0 0; font-weight: 900; }
.note{ margin: 10px 0 0; color: var(--muted); font-weight: 800; font-size: 13px; line-height:1.7; }

/* WhatsApp */
.wa{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(231,211,154,.28);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
  backdrop-filter: blur(10px);
}
.wa__ico{
  width: 42px; height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(200,168,90,.40);
  background: rgba(200,168,90,.12);
  display:flex; align-items:center; justify-content:center;
  color: rgba(10,27,61,.92);
  font-weight: 900;
}
.wa__txt{ display:flex; flex-direction: column; line-height: 1.12; }
.wa__txt b{ font-weight: 900; color: rgba(10,27,61,.92); }
.wa__txt small{ color: rgba(25,35,55,.74); font-weight: 900; }
[dir="rtl"] .wa{ right:auto; left:18px; }

/* Footer */
.footer{
  border-top: 1px solid rgba(15,23,42,.10);
  padding: 22px 0;
  background: rgba(255,255,255,.86);
}
.footer__inner{ text-align:center; }
.social{
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap: wrap;
}
.social a{
  width: 46px; height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  display:flex; align-items:center; justify-content:center;
}
.copy{
  margin-top: 10px;
  color: rgba(25,35,55,.72);
  font-weight: 900;
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{ display:block; }
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__trust{ grid-template-columns: 1fr; }
  .cards--4{ grid-template-columns: repeat(2, 1fr); }
  .cards--3{ grid-template-columns: repeat(2, 1fr); }
  .about{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .cards--4, .cards--3{ grid-template-columns: 1fr; }
  .wa__txt{ display:none; }
}

/* Tel/Mail direction inside RTL */
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] a[href^="mailto:"],
[dir="rtl"] .topbar__links a,
[dir="rtl"] .kv__b a{
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* Utility */
.ltr{
  direction:ltr;
  unicode-bidi: isolate;
  text-align:left;
}

/* ===========================
   Contact Form (Clean + Pro)
   =========================== */

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{ width:100%; }
.field-full{ grid-column: 1 / -1; }

/* Prevent double borders: wrapper has no border */
.form-grid .field{
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Inputs / textarea / select */
.form-grid .input,
.form-grid .textarea,
.form-grid select.input{
  width:100%;
  padding: 12px 14px;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  font-weight: 700;
  outline: none;
}

.form-grid .textarea{
  min-height: 160px;
  resize: vertical;
}

.form-grid .input:focus,
.form-grid .textarea:focus,
.form-grid select.input:focus{
  border-color: rgba(29,78,216,.35) !important;
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}

/* Keep typing LTR but look correct */
[dir="rtl"] input[dir="ltr"],
[dir="rtl"] textarea[dir="ltr"]{
  text-align: right;
  direction: ltr;
}

/* Label */
.field-label{
  display:block;
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--muted);
  font-size: 13px;
}

/* ===========================
   CAPTCHA Row (Aligned)
   =========================== */

.captcha-row{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: stretch;
}

.captcha-media{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  min-height: 56px; /* same as input height */
}

.captcha-media img{
  height: 36px;
  width: 100%;
  object-fit: contain;
  display:block;
}

.captcha-refresh{
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.captcha-entry{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.captcha-entry .input{
  min-height: 56px;
}

/* ===========================
   Submit Button
   =========================== */

.btn.solid{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-submit{
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.btn-submit__text{
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

/* Responsive for form */
@media (max-width: 900px){
  .form-grid{ grid-template-columns: 1fr; }
  .captcha-row{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .btn-submit{ font-size: 15px; }
}

/* ===========================
   Fancy Toast (Micro-animations)
   =========================== */

.toast-stack{
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  pointer-events: none;
}
/* LTR: show on right */
html[dir="ltr"] .toast-stack{
  inset-inline-start: auto;
  inset-inline-end: 18px;
}

.toast{
  pointer-events: auto;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  animation: toastIn .24s cubic-bezier(.2,.8,.2,1) forwards;
}

.toast--ok{ border-color: rgba(22,163,74,.25); }
.toast--err{ border-color: rgba(220,38,38,.25); }
.toast--info{ border-color: rgba(29,78,216,.20); }

.toast__inner{
  display:flex;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  align-items:flex-start;
}

.toast__icon{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  flex: 0 0 40px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(29,78,216,.10);
}

.toast--ok .toast__icon{ background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.20); }
.toast--err .toast__icon{ background: rgba(220,38,38,.10); border-color: rgba(220,38,38,.20); }
.toast--info .toast__icon{ background: rgba(29,78,216,.10); border-color: rgba(29,78,216,.20); }

.toast__body{ flex:1; }
.toast__title{ font-weight: 900; margin: 0 0 2px; }
.toast__msg{ margin: 0; color: rgba(15,23,42,.75); font-weight: 800; line-height: 1.6; }

.toast__close{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: .75;
}

@keyframes toastIn{
  from{ opacity:0; transform: translateY(12px) scale(.985); filter: blur(1px); }
  to{ opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes toastOut{
  from{ opacity:1; transform: translateY(0) scale(1); }
  to{ opacity:0; transform: translateY(10px) scale(.985); }
}

/* ==========================================================
   EH Daily Tools (Scoping) — /daily/
   Add at END of /assets/style.css
   ========================================================== */

.eh-daily{
  padding: 20px 0 34px;
}
.eh-daily .frame{
  border-radius: 26px;
  border: 1px solid rgba(15,23,42,.10);
  overflow:hidden;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(200,168,90,.18), transparent 55%),
    radial-gradient(900px 520px at 15% -10%, rgba(29,78,216,.10), transparent 60%),
    rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

/* Top header */
.eh-daily__top{
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
}
.eh-daily__brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.eh-daily__logo{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: linear-gradient(135deg, rgba(10,27,61,.96), rgba(15,42,90,.92));
  box-shadow: 0 14px 34px rgba(2,6,23,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(231,211,154,.98);
  font-weight: 900;
  letter-spacing:.2px;
}
.eh-daily__title{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.eh-daily__title h1{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing:.2px;
  color: rgba(10,27,61,.94);
}
.eh-daily__title p{
  margin:0;
  font-size: 12.8px;
  font-weight: 800;
  color: rgba(25,35,55,.74);
  line-height: 1.6;
}
.eh-daily__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.eh-pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(200,168,90,.25);
  background: rgba(200,168,90,.10);
  color: rgba(10,27,61,.92);
  font-weight: 900;
  font-size: 12.5px;
}

/* Tabs */
.eh-tabs{
  padding: 12px 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.85);
}
.eh-tab{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(246,248,255,.90);
  font-weight: 900;
  color: rgba(25,35,55,.78);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.eh-tab:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.eh-tab.is-active{
  background: linear-gradient(180deg, rgba(10,27,61,.96), rgba(10,27,61,.90));
  border-color: rgba(231,211,154,.32);
  color: rgba(231,211,154,.98);
}

/* Grid */
.eh-daily__grid{
  padding: 16px;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}
.eh-card{
  grid-column: span 12;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow2);
  overflow:hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.eh-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
@media (min-width: 980px){
  .eh-card.is-half{ grid-column: span 6; }
}
.eh-card__head{
  padding: 14px 14px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.eh-card__head h2{
  margin:0;
  font-size: 15px;
  font-weight: 900;
  color: rgba(10,27,61,.94);
}
.eh-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(200,168,90,.28);
  background: rgba(200,168,90,.10);
  color: rgba(10,27,61,.92);
  font-weight: 900;
  font-size: 12.5px;
}
.eh-card__body{ padding: 14px; }

/* Form */
.eh-form{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.eh-field{ grid-column: span 12; }
@media (min-width: 720px){
  .eh-field{ grid-column: span 6; }
}
.eh-label{
  display:block;
  margin: 0 0 6px;
  font-weight: 900;
  color: rgba(25,35,55,.72);
  font-size: 13px;
}
.eh-input,
.eh-select{
  width:100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  outline:none;
}
.eh-input:focus,
.eh-select:focus{
  border-color: rgba(29,78,216,.35);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}

/* Buttons (reuse your .btn but give spacing + sizes) */
.eh-btns{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.eh-btns .btn{ padding: 11px 14px; }
.eh-btns .btn--mini{ padding: 10px 12px; border-radius: 12px; font-size: 13px; }

/* Result card */
.eh-result{
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(246,248,255,.70);
  padding: 12px;
}
.eh-result__k{
  color: rgba(25,35,55,.68);
  font-weight: 900;
  font-size: 12.5px;
}
.eh-result__v{
  margin-top: 4px;
  font-weight: 900;
  font-size: 16px;
  color: rgba(10,27,61,.94);
}
.eh-result__hint{
  margin-top: 7px;
  color: rgba(25,35,55,.70);
  font-weight: 800;
  font-size: 12.8px;
  line-height: 1.7;
}
.eh-tone-ok{ color: #15803d; }
.eh-tone-warn{ color: #b45309; }
.eh-tone-bad{ color: #b42318; }

/* Chart */
.eh-chart{
  margin-top: 12px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.88);
  padding: 12px;
}
.eh-chart__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.eh-chart canvas{
  width: 100%;
  height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(246,248,255,.65);
}

/* Log table */
.eh-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.eh-table th,
.eh-table td{
  padding: 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  text-align:right;
  font-size: 13px;
}
.eh-table th{
  color: rgba(25,35,55,.70);
  font-weight: 900;
}

/* Toast (simple, uses your theme) */
.eh-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 36px));
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(2,6,23,.18);
  padding: 12px 14px;
  font-weight: 900;
  color: rgba(10,27,61,.94);
  display:none;
  z-index: 99999;
}
.eh-toast.is-show{ display:block; }
