.eth-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.eth-card{margin-bottom:18px;padding:22px 20px}
.eth-sec-h{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;color:var(--navy);margin-bottom:16px}
.eth-n{width:26px;height:26px;border-radius:50%;background:var(--brand1);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;flex:0 0 26px}
.eth-hint{display:block;font-size:11.5px;color:#94a3b8;margin-top:5px;line-height:1.6}
.eth-opt{font-weight:400;color:var(--muted);font-size:11.5px}
.eth-terms{font-size:11.5px;color:#94a3b8;text-align:center;margin:12px 0 0;line-height:1.7}

/* بوابة التنبيه */
.eth-gate-sec{padding-top:40px;padding-bottom:40px}
.eth-gate{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px 28px;text-align:center;box-shadow:0 12px 40px rgba(11,27,45,.07)}
.eth-gate-ic{width:72px;height:72px;border-radius:50%;background:#fff1f4;color:var(--brand1);display:grid;place-items:center;margin:0 auto 16px}
.eth-gate h1{font-family:var(--brand);font-size:22px;color:var(--navy);margin:0 0 10px}
.eth-gate-lead{font-size:14.5px;color:#475569;line-height:1.85;margin:0 0 20px;max-width:480px;margin-inline:auto}
.eth-gate-lead b{color:var(--brand1)}
.eth-gate-ex{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;margin-bottom:18px;text-align:right}
.eth-ex-row{display:flex;justify-content:space-between;align-items:center;padding:7px 0;font-size:13px;color:#475569;border-bottom:1px dashed #e2e8f0}
.eth-ex-row:last-child{border-bottom:0}
.eth-ex-row b{color:var(--navy);font-weight:800}
.eth-ex-row.hl b{color:#15803d}
.eth-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.eth-facts>div{background:#fff7fa;border:1px solid #ffd9e2;border-radius:12px;padding:12px 6px}
.eth-facts b{display:block;font-size:22px;color:var(--brand1);font-weight:900;line-height:1.2;font-family:var(--brand)}
.eth-facts span{font-size:11.5px;color:#9f1239}
.eth-gate-warn{background:#fffbeb;border-right:3px solid #f59e0b;border-radius:8px;padding:11px 14px;font-size:12.5px;color:#78350f;line-height:1.75;text-align:right}
.eth-gate-lnk{display:inline-block;margin-top:14px;font-size:12.5px;color:var(--muted);text-decoration:none}
.eth-gate-lnk:hover{color:var(--brand1)}

/* النجاح */
.eth-done{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px 26px;text-align:center;box-shadow:0 12px 40px rgba(11,27,45,.07)}
.eth-done-ic{width:80px;height:80px;border-radius:50%;background:#eafaf1;color:#27ae60;display:grid;place-items:center;margin:0 auto 16px;box-shadow:0 8px 24px rgba(39,174,96,.2)}
.eth-done h1{font-family:var(--brand);font-size:21px;color:var(--navy);margin:0 0 10px}
.eth-ref{display:inline-block;padding:8px 18px;background:#f1f5fa;border:1px solid #dbe4ee;border-radius:10px;font-size:13px;color:#475569;margin-bottom:14px}
.eth-ref b{color:var(--brand1);font-size:17px}
.eth-dates{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.eth-dates>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 18px;min-width:130px}
.eth-dates span{display:block;font-size:11px;color:#94a3b8;margin-bottom:3px}
.eth-dates b{font-size:14px;color:var(--navy)}

/* الشريط الجانبي */
.eth-side{padding:18px 16px;margin-bottom:16px}
.eth-side-h{font-size:13.5px;font-weight:800;color:var(--navy);margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.eth-side-row{display:flex;justify-content:space-between;font-size:12.5px;color:#64748b;padding:6px 0}
.eth-side-row b{color:var(--navy)}
.eth-side-total{margin-top:12px;padding-top:12px;border-top:2px solid #f1f5f9;text-align:center}
.eth-side-total>span{font-size:11.5px;color:#94a3b8}
.eth-side-total b{display:block;font-size:28px;color:var(--navy);font-weight:900;font-family:var(--brand);line-height:1.2}
.eth-side-sdg{font-size:13px;color:var(--brand1);font-weight:700}
.eth-side-note{font-size:10.5px;color:#94a3b8;line-height:1.6;margin-top:8px;text-align:center}
.eth-need{list-style:none;padding:0;margin:0;font-size:12.5px;color:#475569;line-height:2}
.eth-need li::before{content:"✓";color:#27ae60;font-weight:800;margin-left:7px}

/* إيصال ثانٍ */
.eth-r2{margin-top:14px}
.eth-r2-toggle{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1.5px dashed #a5b4fc;color:#4338ca;font-size:12.5px;font-weight:800;padding:9px 14px;border-radius:10px;cursor:pointer;font-family:inherit}
.eth-r2-toggle:hover{background:#eef2ff}
.eth-r2-cancel{margin-top:8px;background:none;border:0;color:#be123c;font-size:11.5px;font-weight:700;cursor:pointer;text-decoration:underline;font-family:inherit}

@media(max-width:980px){
  .eth-grid{grid-template-columns:1fr}
  .eth-grid aside{order:-1}
  .eth-facts{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:480px){
  .eth-gate{padding:26px 18px}
  .eth-facts b{font-size:18px}
}
/* ── بوكس التنبيه المدمج ── */
.eth-alert{display:flex;align-items:center;gap:14px;background:#fff7fa;border:1.5px solid #ffd9e2;border-right:4px solid var(--brand1);border-radius:14px;padding:16px 18px;margin-bottom:22px}
.eth-alert-ic{width:40px;height:40px;flex:0 0 40px;border-radius:50%;background:#fff;color:var(--brand1);display:grid;place-items:center;border:1px solid #ffd9e2}
.eth-alert-body{flex:1;min-width:0}
.eth-alert-body p{margin:0;font-size:13.5px;line-height:1.85;color:#475569}
.eth-alert-body b{color:var(--brand1);font-weight:800}
.eth-alert-act{flex:0 0 auto}
.eth-alert-act .btn{padding:10px 22px;font-size:13.5px;white-space:nowrap}
@media(max-width:600px){
  .eth-alert{flex-wrap:wrap;text-align:right}
  .eth-alert-body{flex-basis:calc(100% - 54px)}
  .eth-alert-act{width:100%}
  .eth-alert-act .btn{width:100%;justify-content:center}
}

/* ── شريط الخطوات (تبويبات) ── */
.eth-steps{display:flex;gap:8px;margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px}
.eth-step{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;background:none;border:0;padding:10px 8px;border-radius:9px;font-family:inherit;font-size:12.5px;font-weight:700;color:#64748b;cursor:pointer;transition:.18s;white-space:nowrap}
.eth-step span{width:21px;height:21px;border-radius:50%;background:#f1f5f9;color:#94a3b8;display:grid;place-items:center;font-size:11.5px;font-weight:800;flex:0 0 21px}
.eth-step:hover{background:#fafafa;color:var(--navy)}
.eth-step.on{background:var(--brand1);color:#fff}
.eth-step.on span{background:rgba(255,255,255,.28);color:#fff}
.eth-step.done span{background:#dcfce7;color:#15803d}
.eth-step.done{color:#15803d}
.eth-pane{display:none}
.eth-pane.on{display:block;animation:ethIn .22s ease}
@keyframes ethIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* أزرار التنقل بين الخطوات */
.eth-nav{display:flex;gap:10px;margin-top:4px}
.eth-nav .btn{flex:1;justify-content:center;padding:12px}
.eth-nav .prev{background:#fff;border:1.5px solid var(--line);color:#475569;flex:0 0 auto;padding:12px 22px}
@media(max-width:600px){
  .eth-steps{overflow-x:auto;scrollbar-width:none}
  .eth-steps::-webkit-scrollbar{display:none}
  .eth-step{font-size:11.5px;padding:9px 6px}
  .eth-step span{width:18px;height:18px;font-size:10.5px;flex:0 0 18px}
}

/* ── ملخّص مصغّر تحت البوكس ── */
.eth-gate-sec{padding-bottom:34px}
.eth-mini{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.eth-mini-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 8px;text-align:center;color:var(--brand1)}
.eth-mini-card svg{opacity:.85}
.eth-mini-card b{display:block;font-size:16px;font-weight:900;color:var(--navy);margin-top:6px;line-height:1.2;font-family:var(--brand)}
.eth-mini-card span{font-size:10.5px;color:#94a3b8;display:block;margin-top:2px}
.eth-mini-note{text-align:center;font-size:12px;color:#94a3b8;margin:14px 0 0;line-height:1.7}
@media(max-width:600px){
  .eth-mini{grid-template-columns:repeat(2,1fr)}
  .eth-mini-card b{font-size:15px}
}
/* نفس ارتفاع صندوق التنبيه حتى لا يقفز المحتوى عند اختفائه */
#ethAlert{margin-bottom:16px;}
.eth-steps.locked{opacity:.55;pointer-events:none}
.eth-steps:not(.locked){opacity:1;transition:opacity .2s}
/* الأعلام: صورة حقيقية بدل الرمز النصي */
.eth-flag{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.eth-flag svg{flex:0 0 auto}
/* ═══ نافذة الشروط المنبثقة ═══ */
.eth-modal{position:fixed;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(3px);z-index:9998;display:none;align-items:center;justify-content:center;padding:20px}
.eth-modal.on{display:flex;animation:ethFade .18s ease}
@keyframes ethFade{from{opacity:0}to{opacity:1}}
.eth-modal-box{background:#fff;border-radius:18px;width:100%;max-width:540px;max-height:86vh;display:flex;flex-direction:column;box-shadow:0 24px 70px rgba(0,0,0,.3);animation:ethPop .22s ease;overflow:hidden}
@keyframes ethPop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.eth-modal-head{padding:20px 22px 12px;border-bottom:1px solid #f1f5f9;position:relative;text-align:center;flex:0 0 auto}
.eth-modal-x{position:absolute;top:12px;left:12px;width:28px;height:28px;border-radius:50%;border:0;background:#f1f5f9;color:#64748b;font-size:13px;cursor:pointer;line-height:1;font-family:inherit}
.eth-modal-x:hover{background:#e2e8f0;color:#0f172a}
.eth-modal-head h2{font-size:16px;font-weight:800;color:var(--navy);margin:0 0 4px;font-family:var(--brand)}
.eth-modal-sub{font-size:13px;color:#64748b;margin:0}
.eth-modal-body{padding:16px 22px;overflow-y:auto;flex:1 1 auto;font-size:13.5px;line-height:1.9;color:#475569}
.eth-modal-body h3{font-size:13.5px;font-weight:800;color:var(--navy);margin:16px 0 5px}
.eth-modal-body h3:first-child{margin-top:0}
.eth-modal-body p{margin:0 0 8px}
.eth-modal-body ul{margin:6px 0 10px;padding-inline-start:20px}
.eth-modal-body li{margin-bottom:4px}
.eth-modal-body b{color:#0f172a;font-weight:800}
.eth-modal-body::-webkit-scrollbar{width:6px}
.eth-modal-body::-webkit-scrollbar-thumb{background:#e2e8f0;border-radius:3px}
.eth-modal-foot{padding:14px 22px 18px;border-top:1px solid #f1f5f9;flex:0 0 auto;background:#fff}
.eth-modal-terms{font-size:11.5px;color:#94a3b8;text-align:center;margin:0 0 10px}
.eth-modal-terms a{color:var(--brand1);text-decoration:underline}
.eth-modal-btn{display:block;width:100%;padding:14px;border:0;border-radius:11px;background:linear-gradient(135deg,#d2095d,#e2205a);color:#fff;font-family:inherit;font-size:14.5px;font-weight:800;cursor:pointer;transition:.18s}
.eth-modal-btn:hover{filter:brightness(1.06);transform:translateY(-1px)}
@media(max-width:520px){
  .eth-modal{padding:0}
  .eth-modal-box{max-height:100vh;height:100%;border-radius:0;max-width:100%}
  .eth-modal-body{padding:14px 18px;font-size:13px}
}
