/* Xoshly navy (navy and tangerine), from the "Xoshly navy" page of the design canvas (XNMain). */
body.app { background: #FBF8EE; }

.xs {
  height: 100%;
  background: #FBF8EE;
  color: #10283A;
  font-family: 'Readex Pro', 'Noto Kufi Arabic', system-ui, sans-serif;
  font-weight: 400;
}
.xs[lang="ar"], .xs[lang="ku"] { font-family: 'Noto Kufi Arabic', 'Readex Pro', system-ui, sans-serif; }
.xs button { font-family: inherit; color: inherit; }

/* ---- design system classes (XNMain) */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.01em; line-height: 1.08; }
[lang="ku"] .serif, [lang="ar"] .serif { font-family: 'Noto Naskh Arabic', serif; font-weight: 700; letter-spacing: 0; line-height: 1.32; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.top { flex: none; display: flex; align-items: center; gap: 6px; height: 58px; padding: 6px 10px 0; box-sizing: border-box; }
.top h1 { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; display: flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; text-decoration: none; padding: 0; }
.ib.w { background: #FFFFFF; box-shadow: 0 6px 14px -8px rgba(16, 40, 58, .35); }
.dot { position: absolute; top: 5px; inset-inline-end: 4px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #003049; color: #FFFFFF; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
.body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 16px 22px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.body > * { flex-shrink: 0; }
.body::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.card { background: #FFFFFF; border-radius: 16px; box-shadow: 0 8px 22px -14px rgba(16, 40, 58, .28); }
.chips { flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chip { flex: none; height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: #F1ECD6; color: #2A3F4E !important; font: inherit; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.on { background: #003049; color: #FFFFFF !important; }
.btn { flex: none; height: 54px; border: 0; border-radius: 999px; background: #003049; color: #FFFFFF !important; font: inherit; font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; cursor: pointer; box-shadow: 0 12px 22px -12px rgba(0, 48, 73, .7); padding: 0 24px; }
.btn.l { background: #F1ECD6; color: #10283A !important; box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pill { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: #FCBF49; color: #10283A !important; font: inherit; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.pill.g { background: #003049; color: #FFFFFF !important; }
.sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec h2 { margin: 0; font-size: 16px; font-weight: 500; }
.muted { color: #4F5F6B; }
.sm { font-size: 12px; }
.xsm { font-size: 11px; }
.row { display: flex; align-items: center; gap: 12px; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 999px; background: #FCBF49; color: #10283A; display: flex; align-items: center; justify-content: center; }
.mono { flex: none; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; color: #003049; }
[lang="ku"] .mono, [lang="ar"] .mono { font-family: 'Noto Naskh Arabic', serif; font-weight: 700; align-items: center; }
.tw { animation: xaTw 3.2s ease-in-out infinite; }
.pop { animation: xaPop .6s cubic-bezier(.2, .8, .2, 1) both; }
.rise > * { animation: xaUp .5s cubic-bezier(.2, .8, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .05s; }
.rise > *:nth-child(3) { animation-delay: .10s; }
.rise > *:nth-child(4) { animation-delay: .15s; }
.rise > *:nth-child(5) { animation-delay: .20s; }
.rise > *:nth-child(6) { animation-delay: .25s; }
.rise > *:nth-child(7) { animation-delay: .30s; }

@keyframes xaUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes xaPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes xaTw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.8); } }
@keyframes rjBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes rjFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes rjNod { 0%, 100% { rotate: 0deg; } 50% { rotate: 4deg; } }
@keyframes rjBlink { 0%, 92%, 100% { scale: 1 1; } 95% { scale: 1 .1; } }
@keyframes rjTwinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.xs a, .xs button { transition: transform .18s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.xs a:active, .xs button:active { transform: scale(.97); }
.xs button:focus-visible, .xs a:focus-visible { outline: 3px solid #F77F00; outline-offset: 2px; }

/* ---- screens */
.view { position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.footer { position: absolute; inset-inline: 0; bottom: 0; padding: 14px 16px max(20px, env(safe-area-inset-bottom)); background: linear-gradient(rgba(251, 248, 238, 0), #FBF8EE 30%); }
.footer .btn { width: 100%; box-sizing: border-box; }

/* salon profile */
.hero { position: relative; flex: none; }
.hero-bar { position: absolute; inset-inline: 14px; top: 14px; display: flex; align-items: center; gap: 8px; }
.demo-pill { height: 30px; padding: 0 12px; border-radius: 999px; background: #FCBF49; color: #10283A; font-size: 12px; font-weight: 600; line-height: 30px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 6px 14px -8px rgba(16, 40, 58, .35); }
.langs button { height: 34px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #4F5F6B; font-size: 13px; font-weight: 600; cursor: pointer; }
.langs button[aria-pressed="true"] { background: #003049; color: #FFFFFF; }
.logo { flex: none; border-radius: 16px; background-color: #FFFFFF; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px #EFE6DB; }
.acts { display: flex; }
.act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; }
.act .ico { width: 48px; height: 48px; background: #F2ECD3; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: -6px; }
.gallery span { aspect-ratio: 1; border-radius: 12px; background-repeat: no-repeat; background-color: #EFE6DB; }

/* services */
.svc { display: flex; gap: 12px; padding: 8px; }
.svc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 6px 4px; }
.svc-text b { font-size: 14.5px; font-weight: 500; }
.cart-btn { justify-content: space-between !important; padding: 0 10px 0 22px !important; }
[dir="rtl"] .cart-btn { padding: 0 22px 0 10px !important; }
.cart-go { width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }

/* stepper */
.steps { flex: none; display: flex; align-items: flex-start; padding: 2px 4px 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.step i { position: absolute; top: 13px; inset-inline-end: 50%; width: 100%; height: 2px; background: #D8D0B4; }
.step i.on { background: #003049; }
.step b { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 999px; background: #FFFFFF; color: #4F5F6B; box-shadow: inset 0 0 0 1.5px #D8D0B4; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.step.done b { background: #003049; color: #FFFFFF; }
.step.cur b { background: #003049; color: #FFFFFF; box-shadow: 0 0 0 4px #EAE2B7; }
.step span { font-size: 11px; color: #4F5F6B; }
.step.cur span { color: #10283A; font-weight: 600; }

/* specialist */
.match { flex: none; position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 20px; background: #FCBF49; }
.pick-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.pick-card.on { box-shadow: 0 0 0 2px #003049; }
.pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pick-text b { font-size: 14.5px; font-weight: 500; }

/* date and time */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.cal-head b { font-size: 15px; font-weight: 500; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; text-align: center; }
.cal > span { font-size: 10px; padding-bottom: 6px; }
.day { position: relative; height: 38px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #10283A !important; }
.day[disabled] { color: #CFC7BE !important; cursor: default; }
.day.full { color: #C9C1B8 !important; text-decoration: line-through; }
.day.on { background: #003049; color: #FFFFFF !important; font-weight: 600; text-decoration: none; }
.day.today::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 999px; background: #003049; }
.day.on.today::after { background: #FFFFFF; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { height: 42px; border: 0; border-radius: 12px; font: inherit; font-size: 13px; background: #FFFFFF; color: #10283A !important; cursor: pointer; box-shadow: inset 0 0 0 1px #E9E2C9; }
.slot[disabled] { background: transparent; color: #C9C1B8 !important; text-decoration: line-through; cursor: default; }
.slot.on { background: #003049; color: #FFFFFF !important; font-weight: 500; box-shadow: none; }
.empty { padding: 18px; text-align: center; font-size: 13px; }
.paybar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px max(20px, env(safe-area-inset-bottom)); background: #FFFFFF; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 24px -18px rgba(16, 40, 58, .35); }

/* booked */
.booked-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-top: 4px; position: relative; }
.booked-check { width: 92px; height: 92px; border-radius: 999px; background: #003049; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #EAE2B7, 0 18px 30px -14px rgba(0, 48, 73, .8); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #FBF8EE; }
.facts b { font-size: 13px; font-weight: 500; }
.demo-note { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #003049; color: #FBF8EE; }
.demo-note p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #DCE6EE; }
.demo-note .btn { background: #FCBF49; color: #10283A !important; box-shadow: none; height: 50px; font-size: 15px; }
.demo-note .btn svg { width: 20px; height: 20px; }
.link-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 8px; border: 0; border-radius: 16px; background: #FFFFFF; color: #10283A !important; font: inherit; font-size: 14.5px; font-weight: 500; text-align: start; cursor: pointer; box-shadow: 0 8px 22px -14px rgba(16, 40, 58, .28); }
.link-row .tile { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #F2ECD3; }

@media (prefers-reduced-motion: reduce) {
  .xs *, .xs *::before, .xs *::after { animation: none !important; transition: none !important; }
}
