/* מרחב תנועה, the studio's member app. Brand: petrol, teal, mint, blush, peach; Noto Sans Hebrew. */
@font-face { font-family: 'Noto Sans Hebrew'; font-weight: 300 700; font-display: swap; src: url('noto-sans-hebrew.woff') format('woff'); }
:root {
    --petrol: #1F4E5F; --petrol-d: #163A47; --teal: #008C8C; --teal-t: #00706F; --mint: #7DD3C7; --mint-l: #DDF2EE; --mint-xl: #EEF6F5;
    --blush: #F7E7DD; --coral: #FF9F7A; --coral-t: #9C3F1E; --coral-l: #FFF1EA;
    --ink: #17323C; --muted: #5B6B70; --line: #EDE5DD; --line-2: #F1EBE5; --bg: #FBF8F4; --card: #FFFFFF; --sand: #F4EFEA;
    --r: 20px; --shadow: 0 0 0 1px var(--line), 0 14px 26px -24px rgba(31, 78, 95, .6);
    --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans Hebrew', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal-t); }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.k { font-size: .83rem; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* The app is a phone column; on a wide screen it sits in the middle of the page. */
.app { position: relative; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; }
@media (min-width: 560px) { body { background: #E9E4DE; } .app { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(23, 50, 60, .5); } }
.screen { position: relative; padding: calc(16px + var(--safe-t)) 16px calc(96px + var(--safe-b)); }
.glow { position: absolute; inset: 0 0 auto 0; height: 300px; background: linear-gradient(180deg, var(--blush), var(--bg)); pointer-events: none; }
.ring-deco { position: absolute; width: 300px; inset-inline-end: -120px; top: -110px; opacity: .2; pointer-events: none; }

/* Header */
.top { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--petrol); text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--petrol); color: #FFF; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.avatar i { position: absolute; top: 0; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--blush); }
.hello { position: relative; margin: 14px 4px 0; font-size: 1.7rem; font-weight: 300; letter-spacing: -.02em; line-height: 1.2; }
.hello b { font-weight: 600; }
.h2 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; margin: 20px 0 10px; }
.sec-h a, .linkbtn { background: none; border: 0; padding: 10px 0; color: var(--teal-t); font-size: .88rem; font-weight: 500; text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 23px; border: 0; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--petrol); color: #FFF; box-shadow: 0 14px 22px -16px rgba(31, 78, 95, 1); }
.btn-white { background: #FFF; color: var(--petrol); }
.btn-line { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 1px #C8D6D8; font-weight: 500; }
.btn-ghost-l { background: transparent; color: #FFF; box-shadow: inset 0 0 0 1px rgba(191, 237, 230, .6); font-weight: 500; }
.btn-coral { background: var(--coral); color: var(--petrol-d); }
.btn-block { width: 100%; min-height: 54px; border-radius: 27px; font-size: 1rem; }
.btn[disabled] { opacity: .45; cursor: default; box-shadow: none; }

/* Next class */
.next { position: relative; overflow: hidden; margin-top: 14px; padding: 18px; border-radius: 28px; background: var(--petrol); color: #FFF; box-shadow: 0 26px 40px -26px rgba(31, 78, 95, 1); }
.next .deco { position: absolute; width: 230px; inset-inline-start: -70px; bottom: -80px; opacity: .2; pointer-events: none; }
.next > * { position: relative; }
.next-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: 20px; }
.pill-mint { background: rgba(125, 211, 199, .18); color: #BFEDE6; }
.next-time { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.next-time strong { font-size: 2.9rem; font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.next-time span { display: flex; flex-direction: column; }
.next-name { font-size: 1.08rem; font-weight: 600; }
.next-sub { font-size: .8rem; color: #B7D3D6; }
.next-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-d { display: flex; align-items: center; gap: 7px; font-size: .83rem; padding: 5px 12px; border-radius: 20px; background: rgba(255, 255, 255, .08); }
.chip-d i { width: 24px; height: 24px; margin: -2px; margin-inline-end: 0; border-radius: 50%; background: var(--coral); color: var(--petrol); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: .7rem; }
.next-acts { display: flex; gap: 8px; margin-top: 16px; }
.next-acts .btn { flex: 1; }
.next-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: #B7D3D6; }
.next-empty { display: flex; flex-direction: column; gap: 10px; }

/* Membership strip */
.quota { position: relative; width: 100%; border: 0; font: inherit; text-align: start; cursor: pointer; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.quota > span { display: flex; flex-direction: column; flex: 1; }
.quota strong { font-weight: 600; font-size: .95rem; }

/* Day strip and classes */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 60px; border-radius: 18px; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: .74rem; color: var(--ink); }
.day b { font-size: 1.08rem; font-weight: 500; }
.day i { position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.day[aria-pressed="true"] { background: var(--petrol); color: #FFF; box-shadow: 0 12px 20px -12px rgba(31, 78, 95, .9); }
.day[aria-pressed="true"] i { background: var(--mint); }
.cls { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; margin-top: 8px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.cls-t { display: flex; flex-direction: column; }
.cls-t b { font-size: 1.02rem; font-weight: 600; }
.cls-m { display: flex; flex-direction: column; min-width: 0; }
.cls-m > span:first-child { font-weight: 500; }
.cls.is-mine { box-shadow: 0 0 0 2px var(--petrol), 0 14px 26px -22px rgba(31, 78, 95, .8); }
.cls.is-past { opacity: .5; }
.seats { display: flex; gap: 3px; margin-top: 6px; }
.seats i { width: 12px; height: 5px; border-radius: 3px; background: var(--petrol); }
.seats i.o { background: #E4EEEE; }
.seats.many i { width: 7px; }
.warn { color: var(--coral-t); }
.tag { font-size: .74rem; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.tag-mint { background: var(--mint-xl); color: var(--teal-t); }
.tag-coral { background: var(--coral-l); color: var(--coral-t); }
.tag-sand { background: var(--sand); color: var(--muted); }
.empty { margin-top: 10px; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-align: center; color: var(--muted); }

/* Membership */
.mcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 196px; margin-top: 14px; padding: 18px 20px; border-radius: 26px; color: #FFF; background: linear-gradient(135deg, #0A9A97 0%, var(--petrol) 70%); box-shadow: 0 26px 40px -24px rgba(31, 78, 95, 1); }
.mcard .deco { position: absolute; width: 250px; inset-inline-start: -60px; top: -40px; opacity: .3; pointer-events: none; }
.mcard > * { position: relative; }
.mcard-top { display: flex; justify-content: space-between; align-items: start; }
.mcard-top small { font-size: .72rem; letter-spacing: .12em; color: #CDEDEA; display: block; }
.mcard-top strong { font-size: 1.45rem; font-weight: 600; }
.mcard-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: end; }
.mcard-bottom span { display: flex; flex-direction: column; }
.mcard-bottom .k { color: #CDEDEA; }
.mcard.is-frozen { background: linear-gradient(135deg, #7C9AA1 0%, #4E6870 70%); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.two .btn { background: #FFF; color: var(--petrol); box-shadow: 0 0 0 1px #DCE6E6; }
.box { margin-top: 14px; padding: 14px 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row > span { display: flex; flex-direction: column; }
.sep { border-top: 1px solid var(--line-2); padding-top: 12px; }
.ok-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; padding: 4px 10px; border-radius: 20px; background: var(--mint-xl); color: var(--teal-t); }
.row > .ok-dot { flex-direction: row; }
.ok-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.cc { width: 44px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #2B3A46, #17323C); position: relative; flex: none; }
.cc::after { content: ''; position: absolute; top: 9px; inset-inline-start: 6px; width: 10px; height: 8px; border-radius: 2px; background: #E2C79A; }
.doc { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; width: 100%; padding: 11px 0; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: start; min-height: 48px; }
.doc .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--mint-xl); display: flex; align-items: center; justify-content: center; color: var(--teal-t); }
.lock { display: flex; align-items: center; gap: 6px; }

/* Profile */
.plist { margin-top: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.pitem { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: start; color: inherit; text-decoration: none; }
.pitem:first-child { border-top: 0; }
.pitem .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--mint-xl); color: var(--teal-t); display: flex; align-items: center; justify-content: center; }
.pitem > span:nth-child(2) { display: flex; flex-direction: column; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: #CFD9DA; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFF; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: inset-inline-start .15s; }
[aria-checked="true"] .switch { background: var(--teal); }
[aria-checked="true"] .switch::after { inset-inline-start: 23px; }
.demo-note { margin: 18px 6px 0; font-size: .78rem; color: var(--muted); line-height: 1.6; text-align: center; }

/* Tab bar */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(10px + var(--safe-b)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 -1px 0 var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border: 0; background: none; font-size: .7rem; color: var(--muted); }
.tabs button span { display: flex; align-items: center; justify-content: center; width: 54px; height: 30px; border-radius: 15px; transition: background .15s; }
.tabs button[aria-current="page"] { color: var(--petrol); font-weight: 600; }
.tabs button[aria-current="page"] span { background: var(--mint-l); }
.ic svg, .tabs svg, .btn svg { flex: none; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(23, 50, 60, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D8CFC7; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.sheet-h h2 { margin: 0; font-size: 1.3rem; font-weight: 600; color: var(--petrol); }
.x { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.from { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--sand); }
.from .av { width: 34px; height: 34px; border-radius: 50%; background: #FFF; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: .78rem; }
.divider { display: flex; align-items: center; gap: 10px; }
.divider i { flex: 1; height: 1px; background: #E6DED6; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--petrol); }
.opt:has(input:checked) { box-shadow: 0 0 0 2px var(--petrol), 0 14px 26px -18px rgba(31, 78, 95, .7); }
.opt.is-off { opacity: .55; cursor: default; }
.opt > span { display: flex; flex-direction: column; }
.opt strong { font-weight: 600; }
.info { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--mint-xl); font-size: .86rem; line-height: 1.55; }
.info.is-warn { background: var(--coral-l); }
.sheet-foot { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; text-align: center; }

/* Banner (in-app notification) and toast */
.banner { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: calc(100% - 20px); max-width: 460px; z-index: 50; padding: 12px 14px; border-radius: 24px; background: rgba(250, 248, 244, .97); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; animation: drop .3s cubic-bezier(.2, .8, .2, 1); }
.banner-h { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.banner-h img { width: 38px; height: 38px; border-radius: 10px; }
.banner-h span { display: flex; flex-direction: column; }
.banner .two { margin: 0; }
.banner .two .btn { min-height: 40px; border-radius: 14px; font-size: .88rem; }
.banner .two .btn:first-child { background: var(--petrol); color: #FFF; box-shadow: none; }
.toast { position: fixed; bottom: calc(90px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 448px; z-index: 60; padding: 13px 16px; border-radius: 16px; background: var(--ink); color: #FFF; font-size: .9rem; line-height: 1.5; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); animation: fade .2s ease; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Install page (before the app is on the home screen) */
.inst { position: relative; min-height: 100vh; min-height: 100dvh; padding: calc(40px + var(--safe-t)) 20px calc(30px + var(--safe-b)); display: flex; flex-direction: column; overflow: hidden; }
.inst .ring-deco { width: 360px; inset-inline-start: -150px; inset-inline-end: auto; top: 40px; opacity: .14; }
.inst-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.inst-hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 34px -18px rgba(31, 78, 95, .9); }
.inst-hero.is-android img.icon { border-radius: 50%; }
.inst-hero h1 { margin: 6px 0 0; font-size: 1.75rem; font-weight: 700; color: var(--petrol); letter-spacing: -.02em; }
.inst-hero p { margin: 0; max-width: 340px; color: #3E5157; line-height: 1.6; }
.steps { position: relative; margin-top: 22px; padding: 16px 18px 6px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.step { display: grid; grid-template-columns: 30px 1fr 34px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--petrol); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; }
.step .g { width: 34px; height: 34px; border-radius: 10px; background: #F4F4F6; display: flex; align-items: center; justify-content: center; color: #0A6CFF; }
.step .g img { width: 34px; height: 34px; border-radius: 9px; }
.inst-qr { position: relative; margin: 20px auto 0; padding: 14px; border-radius: 24px; background: #FFF; box-shadow: var(--shadow); text-align: center; }
.inst-qr img { display: block; width: 200px; height: 200px; }
.inst-foot { position: relative; margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hint-bubble { position: relative; display: inline-block; margin-bottom: 4px; padding: 9px 14px; border-radius: 14px; background: var(--petrol); color: #FFF; font-size: .84rem; font-weight: 500; }
.hint-bubble::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; width: 12px; height: 12px; background: var(--petrol); transform: rotate(45deg); }
