/* Beleza shared additions (2026-11): smaller icons, unified sign-in card, center profile, reviews. */

/* ---------- 4. Icon sizes (were oversized, especially on phones) ---------- */
.icon-btn svg{width:20px;height:20px}
.dark-panel>svg{width:30px;height:30px}
.step-n{width:42px;height:42px;border-radius:13px;font-size:20px}
.checks svg{width:18px;height:18px;flex:0 0 18px}
.fav svg{width:18px;height:18px}
.tabs svg{width:20px;height:20px}
.doc-card img,.doc-ph{width:80px;height:80px}
.doc-ph{font-size:30px}
@media (max-width:860px){
  .top-actions .icon-btn{width:38px;height:38px;flex:0 0 38px;border-radius:11px}
  .top-actions .icon-btn svg{width:18px;height:18px}
  .tabs svg{width:19px;height:19px}
  .tabs a{gap:1px;padding:7px 2px}
  .dark-panel>svg{width:26px;height:26px}
  .step-n{width:36px;height:36px;font-size:17px;border-radius:11px}
  .doc-card{flex-basis:180px;padding:12px}
  .doc-card img,.doc-ph{width:68px;height:68px}
  .doc-ph{font-size:26px}
  .badge{min-width:16px;height:16px;font-size:10px}
}
@media (max-width:380px){
  .top-actions .icon-btn{width:34px;height:34px;flex-basis:34px}
  .top-actions .icon-btn svg{width:17px;height:17px}
}

/* ---------- 5. Sign-in card (one form; same fonts as the rest of the site) ---------- */
.account-page .pa-card{max-width:520px;margin:0 auto 20px;display:flex;flex-direction:column;gap:12px;font-family:Tajawal,system-ui,sans-serif}
.pa-card .pa-title{font-family:'El Messiri',serif;color:var(--bur);font-size:26px;margin:0}
.pa-card h3{font-family:'El Messiri',serif;color:var(--bur);font-size:19px}
.pa-card .pa-form{display:flex;flex-direction:column;gap:12px}
.pa-card .lbl{font-family:Tajawal,system-ui,sans-serif;font-weight:700;font-size:15px}
.pa-card .input{font-family:Tajawal,system-ui,sans-serif;font-size:16px}
.pa-card .btn{font-family:Tajawal,system-ui,sans-serif}
.pa-card .btn-block{width:100%}
.pa-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.pa-link{background:none;border:0;padding:8px 0;min-height:40px;color:var(--bur);font:700 15px Tajawal,system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pa-link[disabled]{opacity:.5;cursor:not-allowed}
.pa-hint{margin:0;font-size:14px}
.pa-who{margin:0;font-weight:700}
.pa-who span{color:#1E6B3A}
.pa-actions{display:flex;flex-wrap:wrap;gap:8px}
.pa-delete{border-top:1px solid var(--line);padding-top:10px}
.pa-delete summary{cursor:pointer;color:var(--mute);font-weight:700;font-size:14px;min-height:40px;display:flex;align-items:center}
.pa-delete[open] summary{color:var(--bur)}
.pa-delete .pa-form{margin-top:8px}

/* ---------- Center links / center profile page ---------- */
.center-link{color:inherit;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.center-link:hover{color:var(--bur)}
.cp-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:12px 0}
.cp-logo{width:96px;height:96px;border-radius:24px;object-fit:cover;border:3px solid var(--gold);flex:0 0 auto;background:#fff}
.cp-logo-ph{display:grid;place-items:center;background:var(--bur);color:var(--gold);font:800 40px 'El Messiri',serif}
.cp-head-text{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 220px}
.cp-head-text h1{color:var(--bur);font-size:clamp(26px,5vw,38px)}
.cp-stars{color:#C28A00;letter-spacing:1px}
.cp-rate{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cp-nav{position:sticky;top:0;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:8px 0;background:var(--bg);scrollbar-width:none}
.cp-nav::-webkit-scrollbar{display:none}
.cp-nav button{flex:0 0 auto;min-height:40px;padding:6px 16px;border-radius:999px;border:2px solid var(--line);background:#fff;color:var(--bur-d,#330C1C);font:700 15px Tajawal,system-ui,sans-serif;cursor:pointer}
.cp-sec{scroll-margin-top:70px;margin-top:22px}
.cp-sec>h2{color:var(--bur);font-size:clamp(22px,4vw,30px);margin-bottom:12px}
.cp-rev-panel{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
.cp-score{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:110px}
.cp-score b{font-size:40px;color:var(--bur);line-height:1}
.cp-dist{flex:1 1 220px;display:flex;flex-direction:column;gap:4px}
.cp-dist-row{display:grid;grid-template-columns:44px 1fr 32px;gap:8px;align-items:center;font-size:14px}
.cp-bar{height:8px;border-radius:999px;background:var(--soft,#EFE3D0);overflow:hidden}
.cp-bar i{display:block;height:100%;background:#B8862B;border-radius:999px}
.cp-reviews{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.cp-review{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 16px}
.cp-review-top{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cp-review-text{margin:8px 0 0;white-space:pre-line}
.cp-review-meta{margin:4px 0 0;font-size:14px}
.cp-reply{margin-top:10px;padding:10px 12px;border-radius:12px;background:#FBF6EC;border-inline-start:3px solid var(--gold)}
.cp-reply p{margin:4px 0 0;white-space:pre-line}
.cp-gallery{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.cp-gimg{padding:0;border:0;border-radius:16px;overflow:hidden;aspect-ratio:1/1;cursor:zoom-in;background:var(--soft,#EFE3D0)}
.cp-gimg img{width:100%;height:100%;object-fit:cover;display:block}
.lightbox{position:fixed;inset:0;z-index:2147483200;background:rgba(20,4,11,.88);display:flex;align-items:center;justify-content:center;padding:16px}
.lightbox img{max-width:100%;max-height:90vh;border-radius:12px}
.lightbox button{position:absolute;top:14px;left:14px;width:42px;height:42px;border-radius:50%;border:0;background:#fff;color:var(--bur);font-size:18px;cursor:pointer}
@media (max-width:600px){
  .cp-logo{width:72px;height:72px;border-radius:18px}
  .cp-logo-ph{font-size:30px}
  .cp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- Reviews from "My bookings" ---------- */
.review-done{display:inline-flex;align-items:center;min-height:40px;color:#C28A00;font-weight:700}
.review-form{flex:1 1 100%;display:flex;flex-direction:column;gap:10px;margin-top:12px;padding:14px;border-radius:16px;background:#FBF6EC;border:1px solid var(--line)}
.review-form h3{color:var(--bur);font-size:20px}
.star-input{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
html[dir=ltr] .star-input{flex-direction:row-reverse;justify-content:flex-end}
.star-input input{position:absolute;opacity:0;width:1px;height:1px}
.star-input label{font-size:30px;line-height:1;color:#D9CBB4;cursor:pointer;padding:2px}
.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:#C28A00}
.star-input input:focus-visible+label{outline:2px solid var(--bur);border-radius:4px}

/* Header fit after adding the notifications bell (desktop widths where the full nav is visible). */
@media (min-width:1121px) and (max-width:1440px){
  .top-actions{gap:6px}
  .top-actions .icon-btn{width:40px;height:40px}
  .nav a{padding:10px 10px}
  .top-actions>.btn{padding-inline:16px}
}

/* ===== أيقونات الخدمات في الواجهة: صغيرة، متناسقة، بترتيب الإدارة ===== */
.home-service-sections .svc-tiles{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:22px 14px;margin:8px auto 6px;max-width:800px}
.home-service-sections .svc-tile{--w:118px;width:var(--w);display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;text-decoration:none;color:var(--bur-d,#330C1C);background:none;border:0;padding:0;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.home-service-sections .svc-ico{position:relative;display:block;width:88px;height:88px;border-radius:26px;overflow:hidden;background:linear-gradient(145deg,#F7EFE2,#EAD9C2);padding:3px;box-shadow:0 6px 16px #330c1c1f,inset 0 0 0 1px #e3d3bb;transition:transform .2s,box-shadow .2s}
.home-service-sections .svc-ico picture,.home-service-sections .svc-ico img{display:block;width:100%;height:100%;object-fit:cover;border-radius:23px}
.home-service-sections .svc-ico::after{content:"";position:absolute;inset:3px;border-radius:23px;background:linear-gradient(180deg,transparent 55%,#330c1c26);pointer-events:none}
.home-service-sections .svc-tile:hover .svc-ico,.home-service-sections .svc-tile:focus-visible .svc-ico{transform:translateY(-3px);box-shadow:0 10px 22px #330c1c2e,inset 0 0 0 2px #C9A96E}
.home-service-sections .svc-name{font-size:14.5px;font-weight:800;line-height:1.3}
.home-service-sections .svc-sub{font-size:11.5px;font-weight:600;color:var(--mute,#7a6a66);margin-top:-4px}
@media (max-width:600px){
  .home-service-sections .svc-tiles{gap:16px 6px}
  .home-service-sections .svc-tile{--w:calc((100% - 18px)/4)}
  .home-service-sections .svc-ico{width:64px;height:64px;border-radius:20px;padding:2px}
  .home-service-sections .svc-ico picture,.home-service-sections .svc-ico img,.home-service-sections .svc-ico::after{border-radius:18px}
  .home-service-sections .svc-ico::after{inset:2px}
  .home-service-sections .svc-name{font-size:12px}
  .home-service-sections .svc-sub{font-size:10px}
}
@media (max-width:340px){.home-service-sections .svc-tile{--w:calc((100% - 12px)/3)}}

/* ===== الصفحة الرئيسية: شريط الأيقونات عنابي، قريب من الصورة، وبعرض الجوال كاملًا ===== */
section.block.home-service-sections{background:var(--bur,#4A1229);padding:14px 0 22px;margin:0}
.home-service-sections .sec-head{margin-bottom:6px}
.home-service-sections .sec-head h2{color:#F7EFE2;font-size:clamp(20px,3.4vw,28px)}
.home-service-sections .svc-tile{color:#F7EFE2}
.home-service-sections .svc-sub{color:#E3D3BB}
.home-service-sections .svc-ico{box-shadow:0 6px 16px #0006,inset 0 0 0 1px #C9A96E88}
@media (max-width:600px){
  section.block.home-service-sections{padding:10px 0 18px}
  .home-service-sections .wrap{padding-inline:10px}
  .home-service-sections .sec-head{margin-bottom:2px}
  .home-service-sections .svc-tiles{gap:14px 8px;margin:6px 0 0;max-width:none;width:100%}
  .home-service-sections .svc-tile{--w:calc((100% - 24px)/4)}
  .home-service-sections .svc-ico{width:100%;height:auto;aspect-ratio:1/1;border-radius:22px}
  .home-service-sections .svc-ico picture,.home-service-sections .svc-ico img,.home-service-sections .svc-ico::after{border-radius:19px}
  .home-service-sections .svc-name{font-size:12.5px}
}
@media (max-width:600px){
  section.block.home-service-sections{padding:6px 0 16px}
  .home-service-sections .sec-head{margin:0 0 -4px}
  .home-service-sections .sec-head h2{font-size:18px}
}

/* ===== حسابي: قائمة صفوف بنفس شكل صفحة حسابي في جمالك ===== */
.account-menu{display:flex;flex-direction:column;gap:10px;max-width:680px;margin:0 auto}
.account-menu .acc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:10px 14px;background:#FFFAF2;border:1px solid #E7DCC8;border-radius:12px;color:#42301A;font:inherit;font-size:16px;text-align:start;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.account-menu .acc-row:hover,.account-menu .acc-row:focus-visible{border-color:var(--bur,#4A1229)}
.account-menu .acc-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-weight:600}
.account-menu .acc-ico{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#F1E4CC;color:var(--bur,#4A1229);font-size:16px;flex:none}
.account-menu .acc-extra{color:#7a6a66;font-size:13px;font-weight:600}
.account-menu .acc-arrow{color:#9a8a76;font-size:20px;line-height:1}
.account-menu .acc-profile{margin:-2px 0 2px}
.account-menu .acc-admin{margin-top:8px;text-align:center;justify-content:center;min-height:50px}

/* الصفحة الرئيسية: شريط البحث في أعلى الصفحة */
#view:has(> .beleza-hero-visual){display:flex;flex-direction:column}
#view:has(> .beleza-hero-visual) > .hero{order:-1}

/* شريط بحث مضغوط في أعلى الرئيسية (مثل جمالك) */
#view:has(> .beleza-hero-visual) > .hero{padding:10px 0 6px;min-height:0}
#view:has(> .beleza-hero-visual) > .hero .pill,
#view:has(> .beleza-hero-visual) > .hero h1,
#view:has(> .beleza-hero-visual) > .hero .hero-text > p,
#view:has(> .beleza-hero-visual) > .hero .hero-art{display:none}
#view:has(> .beleza-hero-visual) > .hero .wrap{display:block}
#view:has(> .beleza-hero-visual) > .hero .hero-search{margin:0}

/* واجهة مماثلة لجمالك: أيقونات الخدمات دائرية بإطار ذهبي، ٣ في الصف على الجوال */
.home-service-sections .svc-ico{border-radius:50%;border:2px solid #C9A96E;padding:3px}
.home-service-sections .svc-ico picture,.home-service-sections .svc-ico img,.home-service-sections .svc-ico::after{border-radius:50%}
@media (max-width:640px){
  .home-service-sections .svc-tiles{gap:18px 8px}
  .home-service-sections .svc-tile{--w:calc((100% - 16px)/3)}
  .home-service-sections .svc-ico{width:84px;height:84px;border-radius:50%}
  .home-service-sections .svc-ico picture,.home-service-sections .svc-ico img,.home-service-sections .svc-ico::after{border-radius:50%}
}
#view:has(> .beleza-hero-visual) > .hero .hero-search input{border-radius:16px}
#view:has(> .beleza-hero-visual) > .hero .hero-search .btn{border-radius:16px}

/* شريط البحث بنفس شكل جمالك: قائمة المدن كزر صغير فوق، وحقل بحث عريض بأيقونة */
#view:has(> .beleza-hero-visual) > .hero .hero-search{display:flex;flex-direction:column;gap:10px;background:none;box-shadow:none;border:0;padding:0}
#view:has(> .beleza-hero-visual) > .hero .hero-search select{order:0;align-self:flex-start;width:auto;min-width:0;max-width:60%;height:40px;padding:0 14px;border-radius:999px;border:1.5px solid #C9A96E;background:#F7EFE2;color:#330C1C;font-weight:700;font-size:.9rem}
#view:has(> .beleza-hero-visual) > .hero .hero-search input{order:1;width:100%;height:52px;border-radius:16px;border:1.5px solid #E3D3BB;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23622' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat right 14px center;padding-inline:44px 14px}
#view:has(> .beleza-hero-visual) > .hero .hero-search .btn{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0;border:0}
#view:has(> .beleza-hero-visual) > .hero .hero-search{position:relative}
#view:has(> .beleza-hero-visual) > .hero .hero-search select{flex:0 0 auto!important;height:40px!important;min-height:0!important;line-height:1;width:auto!important;padding-block:0!important}
#view:has(> .beleza-hero-visual) > .hero .hero-search input{flex:0 0 auto!important;height:52px!important}

/* المدينة داخل القائمة */
.menu-city{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid rgba(201,169,110,.25);color:#F7EFE2;font-weight:700}
.menu-city select{flex:1;max-width:60%;height:42px;border-radius:12px;border:1.5px solid #C9A96E;background:#F7EFE2;color:#330C1C;font-weight:700;padding:0 12px}
#view:has(> .beleza-hero-visual) > .hero .hero-search select#hc{display:none!important}
#view:has(> .beleza-hero-visual) > .hero{padding:6px 0 4px}

/* شريط البحث: في بداية الصفحة، بيج بحواف ذهبية رقيقة */
#view:has(> .beleza-hero-visual) > .hero{padding:8px 0 6px!important;margin:0!important}
#view:has(> .beleza-hero-visual) > .hero .wrap{padding-block:0!important}
#view:has(> .beleza-hero-visual) > .hero .hero-text{margin:0!important;padding:0!important}
#view:has(> .beleza-hero-visual) > .hero .hero-search input{background-color:#F7EFE2!important;border:1px solid #C9A96E!important;color:#330C1C}
#view:has(> .beleza-hero-visual) > .hero .hero-search input::placeholder{color:#7a5a48}

/* ثبات الصفحة عند السحب للتحديث: بلا ارتداد أصلي ولا اهتزاز في الأيقونات */
html,body{overscroll-behavior-y:none}
.home-service-sections .svc-ico{transition:none}
@media (hover:none){
  .home-service-sections .svc-tile:hover .svc-ico{transform:translateZ(0);box-shadow:0 6px 16px #330c1c26}
}
