/*
بسم الله الرحمن الرحیم
فقط حیدر امیرالمؤمنین است
قانون ۱ + منشور کسری — Design source of truth: locked user reference images.
*/
:root{--bg:#fdf9f7;--surface:#fffdfc;--surface2:#fbf1f1;--ink:#161313;--muted:#827b7b;--line:#efe6e3;--pink:#d76782;--pink2:#eb9aaa;--pink-soft:#fbe8ec;--cream:#fff4df;--purple:#eee7f6;--green:#e8f8ec;--green-ink:#33814a;--warn:#fff0cc;--warn-ink:#94610c;--shadow:0 8px 24px rgba(92,56,62,.08);--radius:22px;--safe-bottom:env(safe-area-inset-bottom,0px);font-family:Tahoma,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#f4efec;color:var(--ink);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}img{display:block;max-width:100%}.app-shell{width:min(100%,430px);min-height:100vh;margin:auto;background:var(--bg);position:relative;overflow-x:hidden;padding-bottom:calc(84px + var(--safe-bottom))}@media(min-width:700px){body{padding:28px 0}.app-shell{min-height:860px;height:calc(100vh - 56px);max-height:900px;border-radius:42px;box-shadow:0 20px 65px rgba(35,25,25,.22);overflow-y:auto;border:8px solid #191919}.bottom-nav{position:sticky!important;bottom:0!important}.app-shell::-webkit-scrollbar{width:0}}
.topbar{display:grid;grid-template-columns:52px 1fr 58px;align-items:center;gap:8px;padding:18px 18px 10px;position:sticky;top:0;background:rgba(253,249,247,.94);backdrop-filter:blur(16px);z-index:15}.topbar-title{text-align:center;min-width:0}.topbar-title strong{display:block;font-size:23px}.topbar-title span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.brandmark{width:54px;height:54px;border-radius:50%;background:linear-gradient(145deg,#fff,#f8dfe4);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #f8e9eb}.brandmark span{font:34px Georgia}.brandmark small{font-size:7px;letter-spacing:1px}.icon{width:22px;height:22px}.icon-btn{width:46px;height:46px;border:0;border-radius:50%;background:#f9eeee;color:#373030;display:grid;place-items:center}.page{padding:8px 16px 26px}.page.no-nav{padding-bottom:28px}.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(100%,430px);height:76px;padding:8px 12px calc(8px + var(--safe-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:20}.nav-item{border:0;background:transparent;color:#6c6868;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px}.nav-item .icon{width:24px;height:24px}.nav-item.active{color:var(--pink);font-weight:700}.card{background:var(--surface);border:1px solid #f4ecea;border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.soft-card{background:linear-gradient(145deg,#fff,#fdf2f3);border-radius:var(--radius);padding:16px}.hero{position:relative;border-radius:24px;overflow:hidden;margin:4px 0 18px}.hero img{width:100%;aspect-ratio:1.83;object-fit:cover}.hero-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;padding:22px;background:linear-gradient(90deg,rgba(255,247,246,.04),rgba(255,245,245,.85) 62%)}.hero-overlay>div{width:53%;text-align:right}.hero-overlay h2{font-size:23px;margin:4px 0 6px}.hero-overlay p{font-size:13px;color:#675e5e;line-height:1.8}.section-head{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 10px}.section-head h2,.section-head h3{margin:0;font-size:20px}.link-btn{border:0;background:#fbefef;border-radius:999px;padding:8px 12px;color:#5f5555}.btn{border:0;border-radius:15px;min-height:48px;padding:11px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.btn.primary{background:linear-gradient(135deg,var(--pink2),var(--pink));color:white;box-shadow:0 8px 18px rgba(215,103,130,.22)}.btn.secondary{background:var(--pink-soft);color:#b94e68}.btn.outline{background:white;border:1px solid var(--pink);color:var(--pink)}.btn.danger{background:#fff1f2;color:#b63a4d;border:1px solid #f2c6cf}.btn.small{min-height:40px;padding:8px 14px;font-size:13px}.btn.full{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.service-card{background:white;border-radius:18px;padding:10px;box-shadow:var(--shadow);border:1px solid #f4ece9;display:grid;grid-template-columns:1fr;gap:10px}.service-card img{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:14px}.service-card h3{margin:0 0 6px;font-size:17px}.service-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.7;min-height:40px}.service-card .meta{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#5f5757;margin:8px 0}.service-card .meta span{display:flex;align-items:center;gap:4px}.service-card .meta .icon{width:16px;height:16px}.service-card .btn{width:100%}.portfolio{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.portfolio img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:15px}.info-strip{display:grid;grid-template-columns:1fr;gap:10px}.info-row{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.info-row:last-child{border:0}.info-row .icon{color:var(--pink);flex:0 0 auto}.info-row small{display:block;color:var(--muted);margin-top:3px;line-height:1.7}.demo-notice{display:flex;gap:10px;align-items:flex-start;background:#fff6db;border:1px solid #f1dfac;border-radius:14px;padding:10px 12px;color:#7c6122;font-size:12px;line-height:1.7;margin:10px 0}.demo-notice b{background:#f0c766;border-radius:7px;padding:2px 6px;color:#5d4310}.entry{min-height:calc(100vh - 84px);display:flex;flex-direction:column;justify-content:center;gap:16px;padding:28px 22px;text-align:center}.entry-logo{width:110px;height:110px;border-radius:50%;margin:0 auto;background:linear-gradient(145deg,#fff,#f8d9e0);display:grid;place-items:center;box-shadow:var(--shadow)}.entry-logo span{font:64px Georgia}.entry h1{font-size:28px;margin:8px 0}.entry p{color:var(--muted);line-height:1.9;margin:0 0 10px}.entry-actions{display:grid;gap:12px}.entry .btn{min-height:58px;font-size:16px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{border:1px solid #f3ebe8;background:white;border-radius:18px;padding:15px;display:grid;grid-template-columns:50px 1fr 16px;align-items:center;text-align:right;gap:8px;box-shadow:var(--shadow)}.metric-icon{width:48px;height:48px;border-radius:50%;background:var(--pink-soft);display:grid;place-items:center;color:var(--pink)}.metric:nth-child(2) .metric-icon{background:var(--cream);color:#8a5f12}.metric:nth-child(3) .metric-icon{background:var(--purple);color:#6e55a0}.metric:nth-child(4) .metric-icon{background:#f1f1f1;color:#686868}.metric b{display:block;font-size:22px}.metric small{display:block;color:var(--muted);margin-top:3px}.metric .chev{width:16px;color:#bd6a7c}.appointment-list{display:grid;gap:10px}.appointment-row{display:grid;grid-template-columns:60px 1fr auto;gap:10px;align-items:center;background:white;border:1px solid #f4ecea;padding:10px;border-radius:16px}.appointment-row img{width:58px;height:58px;object-fit:cover;border-radius:13px}.appointment-row h4{margin:0 0 5px;font-size:15px}.appointment-row p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.appointment-row .time{background:var(--pink-soft);padding:8px;border-radius:10px;color:#944258;font-size:12px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:6px 10px;font-size:11px;background:#f4eeee;color:#665e5e}.badge.ok{background:var(--green);color:var(--green-ink)}.badge.warn{background:var(--warn);color:var(--warn-ink)}.badge.muted{background:#ececec;color:#777}.badge.soft{background:var(--pink-soft);color:#a94d63}.filter-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.filter-row::-webkit-scrollbar{display:none}.filter-chip{border:0;background:#f8eeee;padding:10px 14px;border-radius:999px;white-space:nowrap;color:#635959}.filter-chip.active{background:linear-gradient(135deg,var(--pink2),var(--pink));color:#fff}.search-box{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:16px;padding:11px 14px}.search-box input{border:0;outline:0;background:transparent;min-width:0;flex:1;color:var(--ink)}.customer-list{display:grid;gap:10px;margin-top:12px}.customer-card{background:white;border:1px solid var(--line);border-radius:18px;padding:12px;display:grid;grid-template-columns:54px 1fr auto;gap:10px;align-items:center;box-shadow:0 4px 14px rgba(90,60,65,.05)}.avatar{width:54px;height:54px;border-radius:50%;background:linear-gradient(145deg,#f6d2d9,#fff);display:grid;place-items:center;font-weight:800;color:#ad5367}.customer-card h3{margin:0 0 5px;font-size:15px}.customer-card p{margin:0;color:var(--muted);font-size:11px}.tag-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.customer-card .arrow{border:0;background:#fbefef;border-radius:50%;width:38px;height:38px;display:grid;place-items:center}.booking-card{background:white;border:1px solid var(--line);border-radius:20px;padding:12px;display:grid;grid-template-columns:92px 1fr;gap:12px;box-shadow:var(--shadow)}.booking-card img{width:92px;height:100%;min-height:122px;object-fit:cover;border-radius:15px}.booking-card h3{margin:4px 0 5px}.booking-card p{margin:4px 0;color:var(--muted);font-size:12px}.booking-card .actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.form{display:grid;gap:12px}.field{display:grid;gap:6px}.field label{font-size:13px;font-weight:700}.field input,.field textarea,.field select{width:100%;border:1px solid #eadfdd;background:white;border-radius:14px;padding:13px;outline:none}.field input:focus,.field textarea:focus,.field select:focus{border-color:#d9879a;box-shadow:0 0 0 3px #fbe7eb}.field textarea{min-height:100px;resize:vertical}.field .error{color:#b5384a;font-size:11px}.calendar-card{background:white;border:1px solid var(--line);border-radius:20px;padding:15px}.date-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.date-tab{border:1px solid var(--line);background:#fff8f8;border-radius:14px;padding:10px 5px;font-size:12px}.date-tab.active{background:var(--pink);color:white;border-color:var(--pink)}.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.slot{border:1px solid #eccfd6;background:#fff4f5;border-radius:13px;padding:13px 5px;color:#432d32}.slot.selected{background:var(--pink);color:#fff}.slot.disabled{background:#eee;color:#aaa;border-color:#e4e4e4}.summary{display:grid;gap:10px}.summary-row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}.summary-row:last-child{border:0}.summary-row span:first-child{color:var(--muted)}.payment-box{background:linear-gradient(145deg,#fff,#fdf0f1);border-radius:20px;padding:16px}.pay-amount{text-align:center;padding:14px;background:#fbe9ed;border-radius:15px;margin-bottom:12px}.pay-amount small{display:block;color:var(--muted)}.pay-amount b{display:block;font-size:25px;color:#bd5068;margin-top:4px}.copy-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.copy-row:last-child{border:0}.copy-row span{direction:ltr;text-align:right;font-weight:700}.upload-box{border:2px dashed #ead9dd;border-radius:17px;min-height:150px;display:grid;place-items:center;text-align:center;padding:18px;background:#fff}.upload-box .icon{width:32px;height:32px;color:#c86a80}.upload-preview{display:grid;grid-template-columns:100px 1fr auto;gap:10px;align-items:center}.upload-preview img{width:100px;height:100px;object-fit:cover;border-radius:13px}.timeline{position:relative;padding-right:24px}.timeline:before{content:"";position:absolute;right:8px;top:14px;bottom:14px;border-right:1px dashed #e5d6d8}.timeline-item{position:relative;background:white;border:1px solid var(--line);border-radius:18px;padding:12px;margin:10px 0;display:grid;grid-template-columns:75px 1fr auto;gap:10px;align-items:center}.timeline-item:before{content:"";position:absolute;right:-22px;top:26px;width:9px;height:9px;background:var(--pink);border-radius:50%;box-shadow:0 0 0 4px var(--bg)}.timeline-item img{width:72px;height:72px;object-fit:cover;border-radius:13px}.timeline-item h3{margin:0 0 5px;font-size:15px}.timeline-item p{margin:0;color:var(--muted);font-size:11px}.timeline-time{font-size:12px;text-align:left}.timeline-time b{display:block;font-size:14px}.receipt-preview{width:100%;border-radius:16px;background:#f2e6e4;min-height:220px;display:grid;place-items:center;overflow:hidden}.receipt-preview img{width:100%;height:260px;object-fit:cover}.receipt-fake{padding:30px;text-align:center}.receipt-fake .icon{width:42px;height:42px;color:#a55264}.receipt-fake h3{margin:10px 0 4px}.campaign-editor{display:grid;gap:12px}.preview-message{background:linear-gradient(145deg,#fff,#fcebed);border-radius:18px;padding:15px;line-height:1.9;white-space:pre-wrap;min-height:120px}.template-vars{display:flex;flex-wrap:wrap;gap:7px}.template-vars button{border:1px solid #ecd7dc;background:#fff7f8;border-radius:999px;padding:7px 10px;font-size:11px}.settings-list{display:grid;gap:12px}.settings-section{background:white;border:1px solid var(--line);border-radius:18px;padding:15px}.settings-section h3{margin:0 0 12px}.switch-row{display:flex;justify-content:space-between;align-items:center;padding:9px 0}.switch{width:46px;height:26px;border-radius:20px;background:#ddd;position:relative;border:0}.switch:after{content:"";position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:3px;transition:.2s}.switch.on{background:var(--pink)}.switch.on:after{left:23px}.state-demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.state-box{border-radius:14px;padding:14px;min-height:95px}.state-box h4{margin:0 0 6px}.state-box p{font-size:11px;margin:0;line-height:1.6}.state-box.success{background:#e8f8ec;color:#2c6f40}.state-box.error{background:#fff0f1;color:#9b3547}.state-box.loading{background:#eef3ff;color:#445a88}.state-box.empty{background:#f3f3f3;color:#666}.empty-state{text-align:center;padding:38px 18px;color:var(--muted)}.empty-state .icon{width:42px;height:42px}.empty-state h3{color:var(--ink)}.toast{position:fixed;z-index:100;left:50%;transform:translateX(-50%);bottom:92px;width:min(calc(100% - 32px),398px);background:#25342a;color:white;border-radius:14px;padding:12px 16px;text-align:center;box-shadow:0 10px 28px rgba(0,0,0,.2);animation:toastIn .2s ease}.toast.error{background:#8f3445}.toast.warn{background:#7e611b}@keyframes toastIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}.split-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sticky-action{position:sticky;bottom:80px;padding-top:12px;background:linear-gradient(transparent,var(--bg) 20%)}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}.profile-stats>div{background:#fff5f6;border-radius:14px;padding:12px 6px}.profile-stats b{display:block;font-size:18px}.profile-stats small{color:var(--muted)}.history-item{padding:12px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item strong{display:block}.history-item small{color:var(--muted)}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#f8eeee;border-radius:14px;padding:3px}.segmented button{border:0;background:transparent;border-radius:11px;padding:10px}.segmented button.active{background:var(--pink);color:#fff}.calendar-day-strip{display:flex;gap:8px;overflow-x:auto}.calendar-day-strip button{flex:0 0 72px;border:1px solid var(--line);background:white;border-radius:14px;padding:10px 5px}.calendar-day-strip button.active{background:var(--pink);color:#fff}.calendar-day-strip::-webkit-scrollbar{display:none}.slot-admin{display:grid;grid-template-columns:1fr auto;align-items:center;background:white;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:8px 0}.slot-admin small{color:var(--muted)}.slot-admin button{border:0;border-radius:10px;background:#f8e6e9;color:#a64b61;padding:8px 10px}.slot-admin.closed{opacity:.6}.slot-admin.closed button{background:#e8f8ec;color:#2f7543}.back-link{border:0;background:transparent;color:var(--pink);padding:5px 0}.subtle{color:var(--muted);font-size:12px}.spacer{height:10px}.hidden{display:none!important}@media(max-width:360px){.service-grid,.metric-grid{grid-template-columns:1fr}.slots{grid-template-columns:1fr 1fr}.topbar{grid-template-columns:44px 1fr 50px;padding-inline:12px}.page{padding-inline:12px}.service-card p{min-height:auto}}
