/* Wasla theme */
:root { --bg: #0d0a17; --bg-2: #141024; --acc: #8b5cf6; --acc-2: #ff7a59; --muted: #a39cb8; }
.ar { font-family: var(--arabic); font-weight: 700; color: var(--acc-2); font-size: .95rem; }

/* Phone mock */
.stagehero { position: relative; display: grid; justify-items: center; }
.phone { width: min(340px, 100%); border-radius: 38px; padding: 10px; background: linear-gradient(160deg, #2a2340, #120e1f); box-shadow: 0 60px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 28px 28px 0 0; background: #1d1830; }
.phone__top b { display: block; font-size: .95rem; }
.phone__top span { font-size: .74rem; color: #6ee7a8; }
.phone__ava { display: grid !important; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f5c38b, #c98a4b); color: #3a2410 !important; font-weight: 800; font-size: .9rem !important; }
.chat { display: flex; flex-direction: column; gap: 8px; height: 400px; padding: 14px 12px; overflow: hidden; background: #0f0c1b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E"); scroll-behavior: smooth; }
.phone .chat { justify-content: flex-end; }
.chat > * { flex-shrink: 0; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: .88rem; line-height: 1.45; animation: msgIn .4s var(--spring) both; }
.msg--in { align-self: flex-start; background: #241e38; border-bottom-left-radius: 5px; }
.msg--out { align-self: flex-end; background: linear-gradient(135deg, #7c4ff0, #a26bf7); color: #fff; border-bottom-right-radius: 5px; }
.msg[dir="rtl"] { font-family: var(--arabic); font-size: .86rem; }
.msg small { display: block; margin-top: 3px; font-size: .66rem; opacity: .65; text-align: end; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-right-radius: 5px; background: #2b2442; animation: msgIn .3s var(--ease) both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #c4b5fd; animation: dot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.prods { align-self: flex-end; display: flex; gap: 6px; max-width: 92%; overflow: hidden; animation: msgIn .45s var(--spring) both; }
.prod { flex: 0 0 120px; border-radius: 14px; overflow: hidden; background: #241e38; font-size: .74rem; }
.prod i { display: block; height: 70px; background: var(--g); }
.prod b, .prod span { display: block; padding: 0 8px; }
.prod b { margin-top: 6px; }
.prod span { margin-bottom: 8px; color: #c4b5fd; }
.phone__input { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 14px; border-radius: 22px; background: #1d1830; color: var(--muted); font-size: .85rem; }
.phone__input i { width: 30px; height: 30px; border-radius: 50%; background: var(--acc); }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip2 { position: absolute; display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; background: rgba(28, 22, 46, .9); border: 1px solid var(--stroke); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); font-size: .76rem; color: var(--muted); opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.chip2 b { color: var(--fg); font-size: .82rem; }
.chip2 em { font-style: normal; color: #6ee7a8; font-weight: 800; font-size: 1.1rem; }
.chip2.is-on { opacity: 1; transform: none; }
#c1 { top: 12%; left: -2%; }
#c2 { top: 46%; right: -3%; }
#c3 { bottom: 12%; left: 0; }

/* Try it */
.try { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.try__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seg2 { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(0,0,0,.2); }
.seg2 button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s; }
.seg2 button[lang="ar"] { font-family: var(--arabic); }
.seg2 button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.reset { border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.chat--big { height: 380px; border-radius: 16px; overflow-y: auto; justify-content: flex-start; }
.chat--big .msg { max-width: 78%; font-size: .95rem; }
.qs { display: flex; flex-wrap: wrap; gap: 8px; }
.qs button { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); color: var(--fg); cursor: pointer; font-weight: 600; font-size: .9rem; transition: background-color .25s, border-color .25s, transform .2s; }
.qs button:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.qs button:active { transform: scale(.97); }
.qs button:disabled { opacity: .4; cursor: default; }
.qs[dir="rtl"] button { font-family: var(--arabic); }

/* Results */
.race { display: grid; gap: 12px; margin: 18px 0 14px; }
.race__row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.race__row b { font-variant-numeric: tabular-nums; }
.race__track { height: 14px; border-radius: 14px; background: rgba(255,255,255,.06); overflow: hidden; }
.race__bar { display: block; height: 100%; width: calc(var(--w) * 1%); min-width: 14px; border-radius: 14px; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .3s; }
.race__bar--slow { background: rgba(255,255,255,.22); transition: transform 3.2s linear .3s; }
.is-in .race__bar { transform: none; }
.big { margin: 8px 0; }
.big b { font-size: clamp(3rem, 10vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.donut { position: relative; width: 150px; margin: 14px auto 0; }
.donut svg { display: block; width: 100%; transform: rotate(-90deg); }
.donut__t { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 12; }
.donut__f { fill: none; stroke: var(--acc); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .2s; }
.is-in .donut__f { stroke-dasharray: var(--v) 100; }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--fg); }
.hours { display: flex; align-items: end; gap: 3px; height: 110px; margin: 18px 0 12px; }
.hours i { flex: 1; height: calc(var(--h) * 1%); border-radius: 4px 4px 2px 2px; background: rgba(255,255,255,.14); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease) calc(var(--i) * 25ms); }
.hours i.is-night { background: linear-gradient(var(--acc-2), var(--acc)); }
.is-in .hours i { transform: none; }

/* Industries */
.ind { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.ind__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ind__tabs::-webkit-scrollbar { display: none; }
.ind__tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.ind__tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.ind__panel { display: grid; gap: 12px; }
.ind__panel .chat { height: auto; background: none; padding: 0; overflow: visible; }
.ind__panel ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ind__panel li { padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: #d9ccff; font-size: .82rem; font-weight: 600; }

@media (max-width: 699px) {
  #c1 { left: 0; top: 4%; } #c2 { right: 0; } #c3 { left: 4%; bottom: 6%; }
}
@media (min-width: 1000px) {
  .chat--big { height: 420px; }
}
