.app-page{min-height:100vh;background:#eef3f3}.app-header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1280px)/2));position:relative;z-index:10}.app-header-actions{display:flex;align-items:center;gap:13px}.ghost-link{font-size:.82rem;color:var(--blue);font-weight:800}.icon-back{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:1.5rem}.booking-shell{min-height:calc(100vh - 78px);display:grid;grid-template-columns:minmax(360px,42%) 1fr}.booking-aside{background:var(--navy);color:#fff;padding:clamp(55px,8vw,120px) clamp(32px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.booking-aside:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 20%,rgba(13,139,139,.28),transparent 35%),url("assets/hero-patient-v2.png") 22% bottom/auto 48% no-repeat;opacity:.22}.booking-aside:after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(205,164,106,.16);border-radius:50%;bottom:-150px;left:-130px;box-shadow:0 0 0 70px rgba(205,164,106,.04)}.booking-aside>div{position:relative;z-index:2}.booking-aside h1{font-size:clamp(2.6rem,4.7vw,5rem);line-height:1.24;letter-spacing:-.06em;margin:0 0 25px}.booking-aside h1 em{font-style:normal;color:transparent;-webkit-text-stroke:1px #fff}.booking-aside>div>p:not(.eyebrow){color:#bdd0d8;max-width:520px}.booking-help{display:flex;flex-direction:column;border-right:2px solid var(--gold);padding-right:18px}.booking-help span,.booking-help small{color:#a9bec7;font-size:.76rem}.booking-help a{font-size:1.7rem;font-weight:800;color:var(--gold-2)}.booking-card{background:#fff;margin:36px;align-self:start;border-radius:28px;padding:32px clamp(24px,5vw,64px);box-shadow:0 25px 80px rgba(3,29,48,.09);min-height:720px}.stepper{display:flex;align-items:flex-start;margin-bottom:50px}.step{display:flex;flex-direction:column;align-items:center;gap:6px;color:#96a6ae;white-space:nowrap}.step b{width:34px;height:34px;border-radius:50%;border:1px solid #cfd9dd;display:grid;place-items:center;font-size:.75rem;background:#fff}.step span{font-size:.66rem}.step.active{color:var(--navy);font-weight:700}.step.active b{background:var(--navy);border-color:var(--navy);color:#fff}.step.done b{background:var(--teal);border-color:var(--teal);color:#fff}.stepper>i{height:1px;background:#dfe5e7;flex:1;margin-top:17px}.form-step{display:none}.form-step.active{display:block;animation:stepIn .3s ease}@keyframes stepIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.form-heading{margin-bottom:28px}.form-heading>span{color:var(--gold);font-size:.7rem;font-weight:800}.form-heading h2{font-size:2rem;line-height:1.4;margin:5px 0}.form-heading p{margin:0;color:var(--muted);font-size:.85rem}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:26px}.choice-grid label,.date-strip label,.time-grid label{cursor:pointer}.choice-grid input,.date-strip input,.time-grid input{position:absolute;opacity:0;pointer-events:none}.choice-grid label>span{border:1px solid var(--line);border-radius:17px;padding:18px 12px;display:flex;flex-direction:column;align-items:center;text-align:center;transition:.2s}.choice-grid input:checked+span{border-color:var(--teal);background:#eef8f7;box-shadow:0 0 0 3px rgba(13,139,139,.08)}.choice-grid i{font-style:normal;font-size:1.65rem;color:var(--teal);line-height:1;margin-bottom:10px}.choice-grid b{font-size:.85rem}.choice-grid small{font-size:.65rem;color:var(--muted)}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:21px}.field>span{font-size:.76rem;font-weight:700;color:#3e5664}.field select,.field input{width:100%;border:1px solid #dce4e7;background:#fbfcfc;border-radius:13px;padding:13px 14px;outline:none;color:var(--ink)}.field select:focus,.field input:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(13,139,139,.08)}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.date-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.date-strip label>span{border:1px solid var(--line);border-radius:13px;padding:10px;display:flex;flex-direction:column;align-items:center}.date-strip input:checked+span{background:var(--navy);color:#fff;border-color:var(--navy)}.date-strip b{font-size:1.2rem}.date-strip small{font-size:.65rem;color:var(--muted)}.date-strip input:checked+span small{color:#bdd0d8}.time-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.time-grid span{border:1px solid var(--line);border-radius:10px;padding:9px;text-align:center;display:block;font-size:.78rem}.time-grid input:checked+span{background:#e9f6f5;border-color:var(--teal);color:#087474;font-weight:800}.check-field{display:flex;gap:9px;align-items:center;font-size:.75rem;color:var(--muted);margin:8px 0 25px}.check-field input{accent-color:var(--teal);width:17px;height:17px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}.secondary{background:#eef2f3;color:var(--ink)}.success-state{text-align:center;padding:35px 0}.success-icon{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#e7f7f1;color:#19a56f;font-size:2rem;box-shadow:0 0 0 10px #f3fbf8}.success-state>p{color:#159467;font-weight:800}.success-state h2{font-size:2rem;margin:8px 0 24px}.success-state>small{display:block;color:var(--muted);margin:18px 0}.booking-summary{display:grid;grid-template-columns:repeat(3,1fr);background:var(--ivory);border-radius:16px;padding:16px;text-align:right}.booking-summary div{display:flex;flex-direction:column;padding:0 14px;border-left:1px solid var(--line)}.booking-summary div:last-child{border:0}.booking-summary span{font-size:.66rem;color:var(--muted)}.booking-summary b{font-size:.78rem}
.dashboard-page{background:#f3f6f7;min-height:100vh}.dashboard-sidebar{position:fixed;right:0;top:0;bottom:0;width:250px;background:var(--navy-2);color:#fff;padding:25px 17px;z-index:30;display:flex;flex-direction:column}.dashboard-brand{min-width:0;padding:0 8px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.dashboard-brand img{width:45px;height:45px}.dashboard-brand strong{color:#fff}.dashboard-brand small{color:#86a4b0}.dashboard-sidebar nav{display:grid;gap:5px;margin-top:24px}.dashboard-sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:11px;color:#a9bdc6;font-size:.8rem}.dashboard-sidebar nav a i{font-style:normal;font-size:1.15rem}.dashboard-sidebar nav a b{margin-right:auto;background:rgba(255,255,255,.12);border-radius:99px;padding:1px 7px;font-size:.62rem}.dashboard-sidebar nav a:hover,.dashboard-sidebar nav a.active{background:rgba(255,255,255,.09);color:#fff}.dashboard-sidebar nav a.active{border-right:2px solid var(--gold)}.sidebar-bottom{margin-top:auto;display:grid;border-top:1px solid rgba(255,255,255,.1);padding-top:14px}.sidebar-bottom a{font-size:.76rem;color:#91aab5;padding:8px}.dashboard-main{margin-right:250px;min-height:100vh}.dashboard-topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.dash-menu{display:none}.dash-search{background:#f3f6f7;border-radius:11px;padding:8px 13px;color:#8ba0aa;width:min(370px,34vw)}.dash-search input{border:0;background:transparent;outline:none;width:90%;font-size:.78rem;margin-right:6px}.dash-actions{display:flex;align-items:center;gap:13px}.notification{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:50%;position:relative}.notification b{position:absolute;right:-2px;top:-3px;width:16px;height:16px;border-radius:50%;background:#de7e63;color:#fff;font-size:.55rem}.profile{display:flex;align-items:center;gap:10px}.profile>div{display:flex;flex-direction:column;text-align:left}.profile strong{font-size:.76rem}.profile small{font-size:.62rem;color:var(--muted)}.profile>span{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,var(--blue),var(--teal));color:#fff;display:grid;place-items:center;font-weight:800}.dashboard-content{padding:28px;max-width:1500px;margin:auto}.welcome-panel{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px}.welcome-panel p{margin:0;color:#9a7441;font-size:.7rem;font-weight:800}.welcome-panel h1{font-size:1.9rem;margin:2px 0}.welcome-panel>div>span{color:var(--muted);font-size:.8rem}.role-switch{display:flex;background:#e7ecee;padding:4px;border-radius:10px}.role-switch button{border:0;background:transparent;border-radius:8px;padding:7px 12px;font-size:.7rem;color:var(--muted);cursor:pointer}.role-switch button.active{background:#fff;color:var(--navy);box-shadow:0 3px 10px rgba(3,29,48,.08);font-weight:800}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:15px}.metric-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:13px}.metric-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:1.3rem}.metric-icon.teal{background:#e5f5f3;color:var(--teal)}.metric-icon.blue{background:#e8f0f7;color:var(--blue)}.metric-icon.gold{background:#faf1e4;color:#a97a3c}.metric-grid article>div{display:flex;flex-direction:column}.metric-grid small{font-size:.64rem;color:var(--muted)}.metric-grid strong{font-size:.92rem}.metric-grid p{font-size:.65rem;color:var(--muted);margin:0}.metric-grid a{font-size:.68rem;color:var(--blue);font-weight:800}.dashboard-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:15px}.dash-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.card-title{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.card-title small{color:var(--gold);font-size:.63rem}.card-title h2{font-size:1.05rem;margin:2px 0}.card-title>a,.card-title>button{color:var(--blue);font-size:.7rem;font-weight:800;background:transparent;border:0}.status-chip{background:#e6f6f0;color:#159467;border-radius:99px;padding:4px 9px;font-size:.62rem}.treatment-summary{background:var(--ivory);border-radius:15px;padding:17px;display:grid;grid-template-columns:85px 1fr;align-items:center;gap:18px}.progress-ring{position:relative;width:78px;height:78px}.progress-ring svg{width:100%;transform:rotate(-90deg)}.progress-ring circle{fill:none;stroke:#dfe7e7;stroke-width:8}.progress-ring .value{stroke:var(--teal);stroke-dasharray:264;stroke-dashoffset:100;stroke-linecap:round}.progress-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress-ring strong{font-size:1rem}.progress-ring small{font-size:.55rem;color:var(--muted)}.treatment-summary>div:last-child>strong{font-size:.82rem}.treatment-summary p{font-size:.67rem;color:var(--muted);margin:3px 0}.mini-track{height:5px;background:#dfe7e7;border-radius:99px;overflow:hidden;margin-top:8px}.mini-track b{display:block;height:100%;width:62%;background:var(--teal)}.timeline{display:grid;grid-template-columns:repeat(4,1fr);margin-top:27px;position:relative}.timeline:before{content:"";position:absolute;top:15px;right:10%;left:10%;height:1px;background:#dce4e7}.timeline>div{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative}.timeline i{width:30px;height:30px;border-radius:50%;background:#edf1f2;display:grid;place-items:center;font-style:normal;font-size:.65rem;z-index:1}.timeline .done i{background:var(--teal);color:#fff}.timeline .active i{background:var(--gold);color:var(--navy)}.timeline span{display:flex;flex-direction:column;margin-top:8px}.timeline b{font-size:.66rem}.timeline small{font-size:.55rem;color:var(--muted)}.schedule-card{grid-row:span 2}.schedule-item{display:grid;grid-template-columns:52px 1fr 20px;align-items:center;gap:11px;border:1px solid var(--line);border-radius:13px;padding:10px;margin-bottom:9px}.schedule-item.new{border-color:rgba(13,139,139,.35);background:#f2fbfa}.schedule-item time{background:var(--ivory);border-radius:10px;text-align:center;display:flex;flex-direction:column;padding:6px}.schedule-item time strong{font-size:.95rem}.schedule-item time small{font-size:.55rem;color:var(--muted)}.schedule-item>div{display:flex;flex-direction:column}.schedule-item b{font-size:.72rem}.schedule-item span{font-size:.6rem;color:var(--muted)}.schedule-item>i{font-style:normal;color:var(--gold)}.all-link{display:block;text-align:center;color:var(--blue);font-size:.68rem;font-weight:800;margin-top:14px}.document-row,.doctor{display:grid;grid-template-columns:42px 1fr 28px;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid var(--line)}.document-row>span{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font-size:.58rem;font-weight:900}.document-row .pdf{background:#fbeceb;color:#c55c50}.document-row .img{background:#e8f1f8;color:var(--blue)}.document-row>div,.doctor>div{display:flex;flex-direction:column}.document-row b,.doctor b{font-size:.7rem}.document-row small,.doctor small{font-size:.58rem;color:var(--muted)}.document-row i{font-style:normal;color:var(--blue)}.doctor>span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e8f3f4;color:var(--blue);font-size:.68rem;font-weight:800}.doctor button{border:1px solid var(--line);background:#fff;color:var(--blue);border-radius:8px;font-size:.6rem;padding:5px}
html[dir="ltr"] body{text-align:left}html[dir="ltr"] .dashboard-sidebar{right:auto;left:0}html[dir="ltr"] .dashboard-main{margin-right:0;margin-left:250px}html[dir="ltr"] .main-nav,html[dir="ltr"] .dashboard-sidebar nav,html[dir="ltr"] .sidebar-bottom{direction:ltr}html[dir="ltr"] .booking-summary,html[dir="ltr"] .profile>div{text-align:left}html[dir="ltr"] .eyebrow span{order:0}
@media(max-width:1000px){.booking-shell{grid-template-columns:1fr}.booking-aside{min-height:420px}.booking-card{margin:-45px 22px 35px;position:relative;z-index:4}.dashboard-sidebar{transform:translateX(100%);transition:.3s}.dashboard-sidebar.open{transform:none}.dashboard-main{margin-right:0}.dash-menu{display:block;border:0;background:transparent;font-size:1.3rem}.dashboard-grid{grid-template-columns:1fr}.schedule-card{grid-row:auto}html[dir="ltr"] .dashboard-sidebar{transform:translateX(-100%)}html[dir="ltr"] .dashboard-sidebar.open{transform:none}html[dir="ltr"] .dashboard-main{margin-left:0}}
@media(max-width:700px){.app-header{padding:0 14px}.app-header .brand span{display:none}.ghost-link{display:none}.booking-card{padding:24px 16px;min-height:auto}.step span{display:none}.form-heading h2{font-size:1.6rem}.choice-grid{grid-template-columns:1fr}.choice-grid label>span{flex-direction:row;text-align:right;gap:11px}.choice-grid i{margin:0}.choice-grid small{margin-right:auto}.field-row{grid-template-columns:1fr}.date-strip{display:flex;overflow-x:auto}.date-strip label{min-width:75px}.time-grid{grid-template-columns:repeat(3,1fr)}.booking-summary{grid-template-columns:1fr}.booking-summary div{border-left:0;border-bottom:1px solid var(--line);padding:8px}.app-header-actions{gap:7px}.dashboard-topbar{padding:0 14px}.dash-search{display:none}.profile>div{display:none}.dashboard-content{padding:18px 12px}.welcome-panel{align-items:start;gap:16px}.welcome-panel h1{font-size:1.35rem}.welcome-panel>div>span{font-size:.68rem}.role-switch{flex-direction:column}.metric-grid{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.timeline{grid-template-columns:1fr}.timeline:before{top:10%;bottom:10%;right:15px;left:auto;width:1px;height:auto}.timeline>div{flex-direction:row;text-align:right;gap:10px;align-items:center;margin:7px 0}.timeline span{margin:0}.treatment-summary{grid-template-columns:70px 1fr}.footer-bottom{gap:18px}}

/* Refined booking controls and patient dashboard surfaces */
.choice-grid label>span,.date-strip label>span,.time-grid span{border-color:rgba(6,43,67,.11);box-shadow:0 6px 18px rgba(3,29,48,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.choice-grid label>span{border-radius:18px;position:relative;overflow:hidden}
.portal-preview-banner{margin:0 0 18px;padding:10px 15px;border-radius:12px;background:#fff7e8;border:1px solid rgba(185,133,67,.2);color:#8b642d;font-size:.75rem;font-weight:800}
.field [aria-invalid="true"],.check-field:has([aria-invalid="true"]){border-color:#bf4b4b!important;box-shadow:0 0 0 4px rgba(191,75,75,.1)!important}.field-error{display:block;color:#a83b3b;font-size:.72rem;font-weight:700;line-height:1.7;margin-top:2px;padding:7px 10px;border-radius:10px;background:#fff1f1;border:1px solid rgba(191,75,75,.16)}.check-field .field-error{flex-basis:100%}.check-field:has(.field-error){flex-wrap:wrap;padding:9px}.booking-status{margin:14px 0 0;padding:11px 14px;border-radius:12px;background:#fff3ef;border:1px solid rgba(191,75,75,.16);color:#9e3f34;font-size:.78rem;font-weight:700}
.choice-grid label>span:before{content:"";position:absolute;right:0;top:13px;bottom:13px;width:3px;border-radius:4px;background:linear-gradient(var(--teal),var(--blue));opacity:0}
.choice-grid label:hover>span,.date-strip label:hover>span,.time-grid label:hover span{transform:translateY(-2px);border-color:rgba(13,139,139,.3);box-shadow:0 12px 28px rgba(3,29,48,.08)}
.choice-grid input:checked+span{background:linear-gradient(145deg,#f4fbfa,#eaf6f5);box-shadow:0 12px 30px rgba(13,139,139,.11),inset 0 0 0 1px rgba(13,139,139,.08)}
.choice-grid input:checked+span:before{opacity:1}
.date-strip label>span{border-radius:14px}.time-grid span{min-height:42px;border-radius:11px;display:grid;place-items:center}
.time-grid input:checked+span{background:linear-gradient(145deg,#eaf8f6,#dcf1ef);box-shadow:0 8px 20px rgba(13,139,139,.1)}
.form-actions .button{min-width:145px}
.role-switch{border-radius:13px;padding:4px;background:#e8edef}
.role-switch button,.role-switch a{min-height:38px;border-radius:10px;padding:7px 13px;display:grid;place-items:center;font-size:.7rem;color:var(--muted);cursor:pointer}
.role-switch button.active,.role-switch a:hover{background:#fff;color:var(--navy);box-shadow:0 6px 16px rgba(3,29,48,.09);font-weight:800}
.metric-grid article,.dash-card{border-color:rgba(6,43,67,.085);box-shadow:0 8px 28px rgba(3,29,48,.045)}
.metric-grid article{border-radius:18px;transition:.18s ease}
.metric-grid article:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(3,29,48,.085)}
.dash-card{border-radius:20px}
.doctor button{min-height:32px;border-radius:9px;padding:4px 10px;font-weight:800;cursor:pointer;transition:.18s ease}
.doctor button:hover{background:#eaf5f5;border-color:rgba(13,139,139,.3);transform:translateY(-1px)}
@media(max-width:700px){.form-actions{display:grid;grid-template-columns:1fr 1.4fr}.form-actions .button{min-width:0;width:100%}.role-switch button,.role-switch a{min-height:36px}}
.booking-status{margin:16px 0 0;padding:11px 14px;border:1px solid rgba(184,117,42,.22);border-radius:12px;background:#fff8eb;color:#8c5a20;font-size:.72rem}
.button:disabled{cursor:wait;opacity:.72;transform:none!important}
.role-switch a{border:0;background:transparent;border-radius:8px;padding:7px 12px;font-size:.7rem;color:var(--blue);cursor:pointer;font-weight:800}
.auth-pending .dashboard-main,.auth-pending .dashboard-sidebar{visibility:hidden}.auth-pending:before{content:"در حال بررسی دسترسی امن…";position:fixed;inset:0;display:grid;place-items:center;background:#f4f7f6;color:#063c4e;font-weight:900;z-index:9999}.secure-redirect{min-height:100vh;display:grid;place-items:center;background:#f4f7f6;text-align:center}.secure-redirect main{width:min(480px,calc(100% - 32px));padding:42px;background:#fff;border-radius:28px;box-shadow:0 20px 70px rgba(3,29,48,.1)}.secure-redirect img{width:230px;max-width:80%}.secure-redirect h1{font-size:1.5rem;margin:20px 0 8px}.secure-redirect p{color:#647983;margin:0 0 20px}

