@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
:root{--green:#0e603e;--deep:#123d2c;--gold:#ef9a21;--ink:#1b3b31;--muted:#789086;--line:#ddebe3;--soft:#ecf6ef;--bg:#f6f9f7;--shadow:0 10px 30px #11433010}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Cairo,Tahoma,Arial,sans-serif;color:var(--ink);background:#edf3ef}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}.app-frame{max-width:1020px;margin:auto;min-height:100dvh;background:var(--bg);padding-bottom:calc(87px + env(safe-area-inset-bottom));box-shadow:0 0 54px #0000000b}.topbar{height:75px;background:white;display:flex;align-items:center;justify-content:space-between;padding:10px 24px;gap:12px;position:sticky;top:0;z-index:9;border-bottom:1px solid #e8efe9}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand img{width:50px;height:50px;object-fit:contain}.brand span{line-height:1.4}.brand b{font-size:17px;font-weight:800;white-space:nowrap}.brand small{display:block;font-size:10px;color:#8a9b92}.top-actions{display:flex;align-items:center;gap:9px}.icon-btn,.account-pill{background:#eff6f1;border:1px solid #e1ece3;color:var(--green);border-radius:18px;min-height:43px}.icon-btn{width:43px;position:relative;font-size:22px}.icon-btn i{position:absolute;background:#f56b60;border:2px solid white;width:10px;height:10px;border-radius:50%;top:6px;left:7px}.account-pill{padding:4px 10px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}.account-pill .ico{width:28px;height:28px;display:grid;place-items:center;background:white;border-radius:50%;font-size:17px}.banner{background:#fff6e8;color:#93600d;border-bottom:1px solid #f4e2bf;padding:7px 16px;text-align:center;font-size:11px;line-height:1.5}.page{padding:17px 22px 35px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 13px}.section-title h2{margin:0;font-size:19px;color:#143d2c}.section-title small{font-size:11px;color:var(--muted)}h1,h2,h3,p{margin-top:0}.muted{color:var(--muted)}.small{font-size:12px}.mini{font-size:10px}.hero{border-radius:25px;position:relative;overflow:hidden;min-height:250px;padding:24px;background:linear-gradient(100deg,#0e5039dd,#0d5736aa),url('./profile-reception.webp') center/cover no-repeat;color:white;display:flex;align-items:center}.hero h1{font-size:32px;line-height:1.65;max-width:430px;margin:8px 0}.hero p{max-width:400px;font-size:13px;color:#e2f2e7}.hero-kicker{display:inline-block;border:1px solid #8bd5a6;border-radius:30px;padding:3px 12px;font-size:11px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:0;border-radius:13px;background:var(--green);color:#fff;font-weight:800;padding:12px 17px;font-size:13px;min-height:46px;display:inline-flex;justify-content:center;align-items:center;gap:8px}.btn.light{background:#fff;color:var(--green)}.btn.outline{background:#fff;color:var(--green);border:1px solid #d0e6d6}.btn.gold{background:var(--gold);color:#173d27}.btn.wide{width:100%}.btn.small-btn{padding:7px 12px;min-height:34px;font-size:11px;border-radius:10px}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick{background:white;border:1px solid var(--line);border-radius:17px;padding:17px 9px;text-align:center;color:var(--deep);font-size:12px;font-weight:800;box-shadow:var(--shadow)}.quick .symbol{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 8px;background:#eaf6ee;border-radius:15px;font-size:23px;color:var(--green)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.card{background:white;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.card h3{margin-bottom:8px;font-size:16px}.image-card{padding:0;overflow:hidden}.image-card img{width:100%;height:145px;object-fit:cover}.image-card .body{padding:12px 14px}.image-card strong{font-size:14px}.image-card p{font-size:11px;margin:4px 0 0;color:var(--muted)}.branch-card{border-radius:18px;border:1px solid #dce7de;background:white;padding:15px;display:flex;align-items:center;gap:12px;text-align:right;width:100%}.branch-card.selected,.choice.selected{border-color:#14875b;background:#f1faf3;box-shadow:0 0 0 2px #bde5cd inset}.branch-card .round{display:grid;place-items:center;background:#e8f6eb;color:var(--green);width:44px;height:44px;border-radius:14px;font-size:25px}.branch-card span:last-child{margin-right:auto;color:var(--green)}.steps{display:flex;gap:5px;justify-content:space-between;margin:12px 0 15px}.step{display:flex;flex:1;align-items:center;gap:5px;color:#8e9a94;font-size:11px}.step i{display:grid;place-items:center;background:#e9f0ec;border-radius:50%;font-style:normal;width:25px;height:25px;font-weight:bold}.step.on{color:var(--green);font-weight:800}.step.on i{color:white;background:var(--green)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{margin-bottom:12px}.field label{display:block;color:#244237;font-weight:800;font-size:12px;margin-bottom:5px}.field select,.field input,.field textarea{width:100%;border:1px solid #d5e5db;background:#fff;border-radius:12px;padding:11px;color:var(--ink);outline-color:#29935b;min-height:44px;font-size:13px}.choice{width:100%;text-align:right;background:white;padding:13px;border:1px solid #dce7de;border-radius:14px;display:flex;align-items:center;gap:11px}.choice .avatar{width:64px;height:64px;flex:0 0 64px;border-radius:14px;object-fit:cover;background:#eff6f2}.choice b{font-size:13px}.choice small{display:block;color:var(--muted);font-size:11px}.choice .mark{margin-right:auto;color:var(--green)}.calendar{background:#fff;border:1px solid var(--line);padding:12px;border-radius:16px}.cal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.cal-head h3{margin:0;font-size:14px}.cal-head button{background:#eff5f1;border:0;border-radius:8px;color:var(--green);padding:6px 13px}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;direction:rtl}.cal-dow{text-align:center;font-size:10px;color:var(--muted);padding:5px 0}.day{border:1px solid transparent;border-radius:9px;aspect-ratio:1.15;min-height:32px;background:#eff2f1;color:#b6c1bc;font-size:12px}.day.available{background:#dcf5e5;border-color:#b2e2c4;color:#08643d;font-weight:800}.day.selected{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 8px #15603d52}.day.empty{visibility:hidden}.legend{display:flex;gap:14px;justify-content:flex-start;font-size:10px;color:var(--muted);margin-top:9px}.legend b{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:4px;background:#dcf5e5;border:1px solid #a1dac0}.legend .picked{background:var(--green)}.pay-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.pay-options button{background:#fff;border:1px solid #dae7de;border-radius:14px;padding:12px 5px;color:var(--deep);font-weight:800}.pay-options button.sel{background:#e9f8ed;border-color:#0e7e4d}.pay-options span{display:block;font-size:23px}.summary{background:#f1f8f3;padding:12px 15px;border-radius:14px;border:1px solid #e1eee5;font-size:12px}.summary .line{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #e3eee7}.summary .line:last-child{border:0}.positive{color:#12613e;background:#e5f7ec;border:1px solid #b2e5c4;border-radius:12px;padding:11px;font-size:12px}.notice{color:#966016;background:#fff7e9;border:1px solid #f5dfb2;border-radius:13px;padding:12px;font-size:12px}.status-pill{padding:5px 10px;border-radius:40px;font-size:11px;font-weight:800;display:inline-block;background:#fff6e6;color:#9b671a}.status-pill.confirmed{background:#e5f8ea;color:#0c7141}.status-pill.cancelled{background:#fdebea;color:#b53e37}.book-row{padding:14px 0;border-bottom:1px solid #e5ede7}.book-row:last-child{border:0}.book-row h3{font-size:14px;margin:6px 0}.book-row p{font-size:11px;margin:3px 0;color:var(--muted)}.notice-row{padding:12px;border:1px solid var(--line);background:white;border-radius:14px;margin-bottom:9px}.notice-row strong{font-size:13px}.notice-row p{font-size:11px;margin:5px 0;color:var(--muted)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:8;width:min(1020px,100%);display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid #e1eae3;box-shadow:0 -4px 14px #0000000a;padding:8px 3px calc(8px + env(safe-area-inset-bottom))}.nav-tab{background:transparent;border:0;color:#809489;font-size:10px;font-weight:800;display:flex;flex-direction:column;align-items:center;gap:2px;padding:2px;min-width:0}.nav-tab span{font-size:23px;line-height:1.2}.nav-tab.active{color:var(--green)}.overlay{position:fixed;inset:0;background:#0b221b9e;z-index:30;display:flex;justify-content:center;align-items:flex-end;padding:12px}.overlay[hidden],.toast[hidden]{display:none!important}.sheet{width:min(570px,100%);background:white;max-height:87dvh;overflow-y:auto;border-radius:26px 26px 19px 19px;padding:18px;box-shadow:0 16px 35px #021b1450}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.sheet h2{font-size:20px;margin:0}.sheet .close{width:38px;height:38px;background:#eff4f0;border:0;border-radius:10px}.company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.company-tile{background:#fff;border:1px solid #dceae0;padding:12px;border-radius:13px;min-height:103px;font-weight:800;font-size:12px;color:var(--ink);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px}.company-tile img{width:100%;height:56px;object-fit:contain}.company-tile.selected{border-color:#14835b;background:#f1faf4}.auth-title{text-align:center;margin:9px 0 16px}.auth-title img{width:64px;height:64px;object-fit:contain}.toast{position:fixed;top:93px;left:50%;transform:translateX(-50%);background:#1b5840;color:white;z-index:100;padding:12px 22px;border-radius:13px;font-size:13px;box-shadow:0 6px 25px #0003;max-width:90vw}.further{padding:12px 0;border-bottom:1px solid #e2ede5}.further:last-child{border:0}.empty{padding:28px 15px;text-align:center;color:#779085;font-size:13px}.empty .big{font-size:42px;display:block}.loading{padding:35px;text-align:center;color:var(--muted)}.row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.spacer{flex:1}.video-call{background:#f0f7f2;padding:12px;border-radius:15px}.green-text{color:var(--green)}.info-img{width:100%;max-height:210px;object-fit:cover;border-radius:14px}.contact-actions{display:flex;gap:10px;flex-wrap:wrap}.contact-actions a{border:1px solid #dbe8df;padding:11px;border-radius:12px;background:white;color:var(--green);font-weight:800;font-size:12px}.sm-logo{width:36px;height:36px;object-fit:contain}.pill{border-radius:99px;background:#e6f5eb;color:var(--green);padding:4px 9px;font-weight:bold;font-size:11px}.right-arrow{margin-right:auto}.toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between}.profile-big{display:grid;place-items:center;width:76px;height:76px;font-size:36px;background:#e6f6ed;border-radius:50%;color:var(--green);margin:0 auto 9px}@media(max-width:600px){.topbar{height:64px;padding:8px 13px}.brand img{width:43px;height:43px}.brand b{font-size:14px}.brand small{font-size:9px}.page{padding:12px 13px 25px}.hero{min-height:216px;padding:19px}.hero h1{font-size:25px}.hero p{font-size:11px}.quick-grid{grid-template-columns:repeat(4,1fr);gap:6px}.quick{padding:12px 4px;font-size:9px;border-radius:13px}.quick .symbol{width:38px;height:38px;font-size:20px}.section-title h2{font-size:16px}.grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.grid2{gap:9px}.image-card img{height:112px}.image-card .body{padding:9px}.image-card strong{font-size:12px}.form-row{grid-template-columns:1fr}.card{padding:13px;border-radius:15px}.steps{gap:1px}.step{font-size:9px}.step i{width:22px;height:22px}.calendar{padding:8px}.cal-grid{gap:4px}.day{font-size:11px;min-height:31px}.account-pill{padding:3px 6px;font-size:10px}.account-pill .ico{width:24px;height:24px}.sheet{padding:14px}.bottom-nav{gap:0}}@media(min-width:900px){.app-frame{min-height:100dvh}.page{padding:23px 36px}.hero{min-height:315px}.grid3{grid-template-columns:repeat(3,1fr)}}

/* V13: patient profile dropdown on mobile, desktop and Median */
.profile-nav{position:relative;min-width:0}.profile-menu[hidden]{display:none!important}
.profile-menu{position:absolute;left:0;top:calc(100% + 8px);z-index:35;width:min(245px,80vw);background:#fff;border:1px solid #d6e7db;box-shadow:0 16px 34px #0b402927;border-radius:16px;padding:7px;display:flex;flex-direction:column;gap:3px;text-align:right}
.profile-menu button,.profile-menu a{display:block;width:100%;border:0;background:transparent;text-align:right;padding:10px 11px;border-radius:10px;color:var(--deep);font-weight:700;font-size:12px;white-space:normal;cursor:pointer}
.profile-menu button:hover,.profile-menu a:hover,.profile-menu button:focus-visible,.profile-menu a:focus-visible{background:var(--soft)}
.profile-static{min-height:43px;padding:11px 12px;background:#f2f6f3;border:1px solid #d9e6dd;border-radius:12px;font-size:12px;color:#516b5c}
#childrenPanel{scroll-margin-top:90px}


/* V14 desktop website booking: website visitors see booking and patient records, NOT an app shell. */
.desktop-web-links{display:none}
@media (min-width:900px) and (hover:hover) and (pointer:fine){
 .ae-desktop-booking body{background:#f5f8f5}
 .ae-desktop-booking .app-frame{max-width:1240px;min-height:100vh;padding-bottom:10px;box-shadow:none;border-left:1px solid #e7eee9;border-right:1px solid #e7eee9}
 .ae-desktop-booking .bottom-nav{display:none!important}
 .ae-desktop-booking .topbar{height:86px;padding:14px 32px;gap:22px}
 .ae-desktop-booking .topbar .brand b{font-size:20px}
 .ae-desktop-booking .desktop-web-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-inline-start:auto}
 .ae-desktop-booking .desktop-web-links a,.ae-desktop-booking .desktop-web-links button{font:700 13px Cairo,Tahoma,Arial,sans-serif;background:#f3f8f5;border:1px solid #d9e7dd;color:#155c40;border-radius:11px;padding:9px 15px;cursor:pointer}
 .ae-desktop-booking .desktop-web-links a:hover,.ae-desktop-booking .desktop-web-links button:hover{background:#e5f1e9}
 .ae-desktop-booking #appMain{min-height:calc(100vh - 165px)}
 .ae-desktop-booking #appMain > .page{padding:30px 38px 45px}
 .ae-desktop-booking .sheet{align-self:center;border-radius:24px}
}
@media(max-width:899px){.desktop-web-links{display:none!important}}
