/* Shared styles for the account pages (welcome, login). Material Design 3 tokens, same as the landing page. */
:root{
  --primary:#0b57d0; --on-primary:#fff; --primary-c:#d3e3fd; --on-primary-c:#041e49;
  --green:#146c2e; --green-c:#c4eed0; --on-green-c:#072711; --error:#b3261e; --error-c:#f9dedc;
  --surface:#fff; --surface-1:#f8fafd; --surface-2:#f0f4f9; --surface-3:#e9eef6;
  --on:#1f1f1f; --on-v:#444746; --outline:#747775; --outline-v:#c4c7c5;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;color:var(--on);background:var(--surface-1);line-height:1.65;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bar{background:var(--surface);border-bottom:1px solid var(--surface-3)}
.bar a{display:flex;align-items:center;gap:10px;height:60px;max-width:480px;margin:0 auto;padding:0 20px;font-weight:700;font-size:18px;text-decoration:none;color:inherit;white-space:nowrap}
.bar i{width:32px;height:32px;border-radius:10px;background:var(--primary);color:#fff;display:grid;place-items:center}
.bar i svg{width:18px;height:18px;fill:#fff;stroke:none}
main{flex:1;display:grid;place-items:start center;padding:24px 16px 48px}
.box{width:100%;max-width:440px;background:var(--surface);border:1px solid var(--outline-v);border-radius:28px;padding:26px 22px}
h1{font-size:26px;font-weight:800;line-height:1.35;margin:0 0 6px}
.lead{color:var(--on-v);margin:0 0 18px;font-size:16px}
.ok{display:flex;gap:10px;align-items:center;background:var(--green-c);color:var(--on-green-c);border-radius:16px;padding:12px 14px;font-weight:700;margin-bottom:18px}
.ok svg{stroke-width:3;color:var(--green)}
label{display:block;font-weight:600;font-size:14px;margin:14px 0 6px;color:var(--on-v)}
input,select{width:100%;height:54px;font-size:17px;padding:0 16px;border:1px solid var(--outline);border-radius:8px;background:var(--surface)}
input:focus,select:focus{outline:2px solid var(--primary);outline-offset:-1px;border-color:var(--primary)}
input[readonly]{background:var(--surface-2);color:var(--on-v);border-color:var(--outline-v)}
.phone{display:grid;grid-template-columns:1fr 132px;gap:8px}
.phone select{padding:0 8px;font-size:15px}
.hint{font-size:13px;color:var(--on-v);margin:6px 0 0}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;border-radius:100px;background:var(--primary);color:#fff;font-weight:700;font-size:18px;margin-top:22px;text-decoration:none}
.btn[disabled]{opacity:.6;cursor:default}
.err{display:none;margin-top:14px;background:var(--error-c);color:#410e0b;border-radius:12px;padding:10px 14px;font-size:15px;font-weight:600}
.err.show{display:block}
.alt{text-align:center;margin:18px 0 0;font-size:15px;color:var(--on-v)}
.alt a{color:var(--primary);font-weight:700}
.center{text-align:center;color:var(--on-v);padding:30px 0}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* quick questions */
.q{border:0;padding:0;margin:22px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.q legend{font-weight:700;font-size:16px;color:var(--on);padding:0;margin-bottom:10px;width:100%}
.opt{min-height:44px;padding:0 16px;border-radius:8px;border:1px solid var(--outline);background:var(--surface);font-size:15px;font-weight:600}
.opt[aria-pressed="true"]{background:var(--primary-c);border-color:var(--primary);color:var(--on-primary-c)}

/* payment success bubble (welcome page) */
.done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:var(--green-c);color:var(--on-green-c);border-radius:28px;padding:24px 16px 20px;margin-bottom:22px;animation:done-in .45s cubic-bezier(.2,.9,.3,1.3) both}
.done i{position:relative;width:72px;height:72px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin-bottom:10px;animation:done-pop .5s .15s cubic-bezier(.2,.9,.3,1.5) both}
.done i::after{content:"";position:absolute;inset:0;border-radius:50%;border:3px solid var(--green);animation:done-ring 1.4s .5s ease-out 2 both}
.done i svg{width:38px;height:38px;stroke-width:3.2}
.done b{font-size:24px;font-weight:800;line-height:1.3}
.done span{font-size:16px;font-weight:500}
@keyframes done-in{from{transform:scale(.94)}to{transform:none}}
@keyframes done-pop{from{transform:scale(.6)}to{transform:scale(1)}}
@keyframes done-ring{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(1.7)}}
@media (prefers-reduced-motion:reduce){.done,.done i{animation:none}.done i::after{display:none}}

/* popup that says what is still missing */
.pop{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.45);display:grid;place-items:center;padding:20px}
.pop-box{width:100%;max-width:380px;background:var(--surface);border-radius:28px;padding:24px 22px 20px;animation:done-in .25s ease-out both}
.pop-box h2{font-size:21px;font-weight:800;line-height:1.4;margin:0 0 10px}
.pop-box ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pop-box li{background:var(--surface-2);border-radius:12px;padding:10px 14px;font-size:16px;font-weight:600}
.pop-box .btn{margin-top:18px}
input.miss,select.miss{border-color:var(--error);outline:2px solid var(--error);outline-offset:-1px}
.q.miss legend{color:var(--error)}
.q.miss .opt{border-color:var(--error)}

/* brand name beside the logo */
.bn{display:flex;flex-direction:column;line-height:1.15;font-size:17px;font-weight:800;white-space:nowrap}.bn small{font-size:11px;font-weight:600;color:var(--on-v)}

/* example text inside an empty field: lighter than what the person types */
input::placeholder{color:#9aa0a6;font-weight:400;opacity:1;text-align:right;direction:rtl}
