/* ==========================================================================
   CareMetrix — Mobile App preview (phone-frame mockup, header shortcut)
   ========================================================================== */

.mobapp {
  --mob-grad: linear-gradient(145deg, #241247 0%, #5B2A86 48%, #D04FC0 100%);
  --mob-pink-bg: #FBE5F3;
  --mob-pink-bg2: #F7D9ED;
  --mob-ink: #2A1B4D;
  --mob-sub: #8A7FA6;
}

.mobapp-shell { padding: 26px 28px 32px; }

.mobapp-intro { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; max-width: 640px; }
.mobapp-intro__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--violet-bg); color: var(--brand-purple);
  display: grid; place-items: center; flex: none;
}
.mobapp-intro__icon svg { width: 22px; height: 22px; }
.mobapp-intro h1 { font-size: 19px; font-weight: 800; margin: 0; }
.mobapp-intro p { font-size: 13px; color: var(--text-2); margin: 4px 0 0; line-height: 1.5; }

.mobapp-stage { display: flex; align-items: flex-start; justify-content: center; gap: 48px; flex-wrap: wrap; }

/* ---- phone frame ---- */
.mobapp-phone {
  width: 320px; height: 660px; border-radius: 46px; background: #15111F; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(36,28,60,.4), 0 0 0 2px #2A2338;
  position: relative; flex: none;
}
.mobapp-phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 24px; background: #15111F; border-radius: 0 0 16px 16px; z-index: 20;
}
.mobapp-phone__screen {
  width: 100%; height: 100%; border-radius: 34px; background: #fff;
  overflow: hidden; position: relative;
}

/* ---- side panel ---- */
.mobapp-sidepanel { width: 260px; padding-top: 24px; }
.mobapp-sidepanel h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 0 0 14px; }
.mobapp-jumplist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.mobapp-jumplist button { height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 700; text-align: left; padding: 0 12px; transition: all .14s var(--ease); }
.mobapp-jumplist button:hover { border-color: var(--brand-purple); color: var(--brand-purple); background: var(--violet-bg); }
.mobapp-sidepanel__note { font-size: 12px; color: var(--text-3); line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--border); }

/* ===================================================================== *
 * Screen chrome shared by every mobile screen
 * ===================================================================== */

.mscreen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; font-family: inherit; }
.mscreen::-webkit-scrollbar { display: none; }

.mstatus { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 0; font-size: 14px; font-weight: 700; flex: none; position: relative; z-index: 10; }
.mstatus--dark { color: #fff; }
.mstatus--light { color: var(--mob-ink); }
.mstatus__icons { display: flex; align-items: center; gap: 5px; }

.mback {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: rgba(255,255,255,.18); color: #fff; border: none;
}
.mscreen--onlight .mback { background: var(--surface-3); color: var(--mob-ink); }
.mback svg { width: 17px; height: 17px; }

/* ===================================================================== *
 * Splash + onboarding (light pink backgrounds)
 * ===================================================================== */

.mscreen--pink { background: var(--mob-pink-bg); align-items: stretch; justify-content: flex-start; }
.mscreen--pink .mblob { position: absolute; border-radius: 50%; background: var(--mob-pink-bg2); opacity: .7; filter: blur(2px); z-index: 0; }

.msplash { position: relative; }
.msplash .mblob1 { width: 260px; height: 260px; top: -60px; left: -70px; }
.msplash .mblob2 { width: 220px; height: 220px; bottom: -60px; right: -60px; }
.msplash__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 1; }
.msplash__mark { width: 54px; height: 54px; margin: 0 auto 10px; display: block; }
.msplash__title { font-size: 26px; font-weight: 800; }

.monb { padding: 0 26px; position: relative; }
.monb__skip { position: absolute; top: 18px; left: 24px; font-size: 13px; font-weight: 700; color: #B8A8C9; z-index: 5; }
.monb__illo {
  width: 230px; height: 230px; margin: 76px auto 0; border-radius: 48% 52% 55% 45% / 55% 48% 52% 45%;
  background: linear-gradient(160deg, #F4CDEA, #F8DEF0); position: relative; z-index: 1;
  display: grid; place-items: center;
}
.monb__illo svg { width: 108px; height: 108px; color: #A64CC4; }
.monb__badges { position: relative; width: 100%; height: 0; z-index: 2; }
.monb__badge {
  background: #fff; border-radius: 12px; box-shadow: 0 8px 18px rgba(120,60,130,.14);
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 10px; font-weight: 700; color: var(--mob-ink);
}
.monb__badge span.dot { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.monb__badge .bar { width: 44px; height: 5px; border-radius: 3px; background: #EEE1F3; }
.monb__title { font-size: 20px; font-weight: 800; color: var(--mob-ink); text-align: center; margin: 26px 0 0; }
.monb__sub { font-size: 12.5px; color: var(--mob-sub); text-align: center; line-height: 1.5; margin: 8px auto 0; max-width: 270px; }

.monb__footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px calc(18px + env(safe-area-inset-bottom, 0px)); position: relative;
}
.monb__footer::before {
  content: ''; position: absolute; left: 50%; top: -1px; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: #fff; border-radius: 2px;
}
.monb__footer { background: #fff; border-radius: 22px 22px 0 0; }
.monb__skipbtn { font-size: 13px; font-weight: 700; color: var(--text-3); }
.monb__dots { display: flex; gap: 6px; }
.monb__dots span { width: 6px; height: 6px; border-radius: 50%; background: #E3D3EC; }
.monb__dots span.is-active { width: 18px; background: var(--brand-purple); border-radius: 4px; }
.monb__next { font-size: 13.5px; font-weight: 800; color: var(--brand-purple); }

/* ===================================================================== *
 * Sign in / Forgot password / Security code (wave header)
 * ===================================================================== */

.mscreen--wave { background: #fff; }
.mwave { position: relative; background: var(--mob-grad); flex: none; padding-bottom: 30px; }
.mwave__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 34px; display: block; }
.mwave__blob { position: absolute; top: 40px; left: -20%; width: 140%; height: 70px; background: rgba(255,255,255,.14); border-radius: 50%; transform: rotate(-4deg); }
.mwave__head { padding: 22px 26px 0; position: relative; z-index: 2; }
.mwave__title { display: flex; align-items: center; gap: 12px; }
.mwave__title h1 { font-size: 18px; font-weight: 800; color: #fff; margin: 0; }
.mwave__title p { font-size: 11.5px; color: rgba(255,255,255,.8); margin: 2px 0 0; }

.mbody { padding: 26px 26px 30px; flex: 1; }
.mfield { margin-bottom: 16px; }
.mfield__label { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--mob-sub); margin-bottom: 7px; }
.minput-wrap { position: relative; }
.minput {
  width: 100%; height: 48px; border-radius: 999px; border: none; background: var(--surface-3);
  padding: 0 18px; font-size: 13.5px; color: var(--mob-ink); font-family: inherit;
}
.minput::placeholder { color: #AFA6C2; }
.minput--pw { padding-right: 44px; }
.meye { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.meye svg { width: 18px; height: 18px; }

.mrow-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mremember { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--mob-ink); }
.mcheck { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #D7CBE2; display: inline-flex; align-items: center; justify-content: center; }
.mcheck.is-checked { background: var(--brand-gradient); border-color: transparent; }
.mcheck svg { width: 11px; height: 11px; color: #fff; }
.mlink { font-size: 12px; font-weight: 700; color: var(--brand-purple); }

.mbtn-primary {
  width: 100%; height: 50px; border-radius: 999px; background: var(--mob-grad); color: #fff;
  font-size: 14.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mbtn-primary svg { width: 16px; height: 16px; }

.mradiogroup { display: flex; gap: 22px; margin-bottom: 20px; }
.mradio { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--mob-sub); }
.mradio.is-active { color: var(--brand-purple); }
.mradiodot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #D7CBE2; display: grid; place-items: center; flex: none; }
.mradio.is-active .mradiodot { border-color: var(--brand-purple); }
.mradiodot__fill { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-purple); display: none; }
.mradio.is-active .mradiodot__fill { display: block; }

.motp-row { display: flex; gap: 8px; margin-bottom: 24px; }
.motp-box { width: 42px; height: 50px; border-radius: 12px; background: var(--surface-3); text-align: center; font-size: 17px; font-weight: 800; color: var(--mob-ink); border: 1.5px solid transparent; font-family: inherit; }
.motp-box:focus { outline: none; border-color: var(--brand-purple); background: #fff; }

.msupport { text-align: center; font-size: 12px; color: var(--text-3); margin-top: auto; padding: 0 26px 26px; }
.msupport a { color: var(--brand-purple); font-weight: 700; }

/* ===================================================================== *
 * Home / Roster / People / More (gradient header + white body)
 * ===================================================================== */

.mscreen--home { background: var(--surface-2); }
.mhead {
  background: var(--mob-grad); padding: 16px 22px 54px; flex: none; position: relative;
  border-radius: 0 0 26px 26px;
}
.mhead__top { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.mhead__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.mhead__bell { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; color: #fff; position: relative; }
.mhead__bell svg { width: 17px; height: 17px; }
.mhead__bell .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #FF6B6B; border: 1.5px solid #4A2A6E; }
.mhead__greet { font-size: 12px; color: rgba(255,255,255,.85); margin: 18px 0 0; }
.mhead__row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 2px; }
.mhead__shiftline { font-size: 16px; font-weight: 800; color: #fff; }
.mhead__date { font-size: 11px; color: rgba(255,255,255,.75); text-align: right; }

.mshiftcard {
  background: #fff; border-radius: 20px; padding: 18px; margin: -42px 18px 0; position: relative; z-index: 3;
  box-shadow: 0 14px 30px -12px rgba(60,20,70,.25);
}
.mshiftcard__head { display: flex; align-items: center; justify-content: space-between; }
.mshiftcard__label { font-size: 11.5px; font-weight: 800; color: var(--brand-purple); }
.mshiftcard__active { font-size: 10.5px; font-weight: 800; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 3px 11px; }
.mshiftcard__title { font-size: 15.5px; font-weight: 800; color: var(--mob-ink); margin-top: 8px; }
.mshiftcard__time { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.mshiftcard__time svg { width: 14px; height: 14px; }
.mshiftcard__btn {
  width: 100%; height: 44px; border-radius: 999px; margin-top: 14px; background: var(--mob-grad); color: #fff;
  font-size: 13.5px; font-weight: 800;
}
.mshiftcard__dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.mshiftcard__dots span { width: 6px; height: 6px; border-radius: 50%; background: #E9DEF2; }
.mshiftcard__dots span.is-active { background: var(--brand-purple); }

.mbody--home { padding: 18px 18px 90px; flex: 1; }
.msection-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.msection-head:first-child { margin-top: 0; }
.msection-head h3 { font-size: 13.5px; font-weight: 800; color: var(--mob-ink); margin: 0; }
.msection-head a { font-size: 11.5px; font-weight: 700; color: var(--brand-purple); }

.mquick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mquick__item { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mquick__icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; }
.mquick__icon svg { width: 20px; height: 20px; }
.mquick__item span { font-size: 10px; font-weight: 700; color: var(--text-2); }

.mrequest-card { background: linear-gradient(135deg, #7A3FC9, #9B4FD1); border-radius: 18px; padding: 16px; color: #fff; }
.mrequest-card__date { font-size: 10.5px; opacity: .85; }
.mrequest-card__day { font-size: 16px; font-weight: 800; margin-top: 2px; }
.mrequest-card__meta { font-size: 12px; opacity: .9; margin-top: 4px; }
.mrequest-card__time { font-size: 12px; opacity: .85; margin-top: 2px; }
.mrequest-card__actions { display: flex; gap: 10px; margin-top: 14px; }
.mrequest-card__actions button { flex: 1; height: 38px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.mbtn-decline { background: rgba(255,255,255,.18); color: #fff; }
.mbtn-accept { background: #fff; color: var(--brand-purple); }

.mdoc-row { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.mdoc-row__icon { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.mdoc-row__icon svg { width: 17px; height: 17px; }
.mdoc-row__title { font-size: 12.5px; font-weight: 800; color: var(--mob-ink); }
.mdoc-row__sub { font-size: 10.5px; font-weight: 700; margin-top: 1px; }
.mdoc-row__chev { margin-left: auto; color: var(--text-3); width: 16px !important; height: 16px !important; flex: none; }
.mdoc-row--danger { background: #FDE6E8; }
.mdoc-row--danger .mdoc-row__icon { background: #FCCFD3; color: #D8303F; }
.mdoc-row--danger .mdoc-row__sub { color: #D8303F; }
.mdoc-row--warn { background: #FCEEDB; }
.mdoc-row--warn .mdoc-row__icon { background: #FBDFAF; color: #B9790C; }
.mdoc-row--warn .mdoc-row__sub { color: #B9790C; }
.mdoc-row--warn2 { background: #FCF3E3; }
.mdoc-row--warn2 .mdoc-row__icon { background: #FBE6BE; color: #B9790C; }
.mdoc-row--warn2 .mdoc-row__sub { color: #B9790C; }

.mannounce { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.mannounce__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--violet-bg); color: var(--brand-purple); display: grid; place-items: center; flex: none; }
.mannounce__icon svg { width: 17px; height: 17px; }
.mannounce__title { font-size: 12.5px; font-weight: 800; color: var(--mob-ink); }
.mannounce__sub { font-size: 11px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }

/* ---- generic list screens (Roster / People / More) ---- */
.mlist-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; }
.mlist-row__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--violet-bg); color: var(--brand-purple); }
.mlist-row__icon svg { width: 18px; height: 18px; }
.mlist-row__title { font-size: 12.5px; font-weight: 800; color: var(--mob-ink); }
.mlist-row__sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mlist-row__chev { margin-left: auto; color: var(--text-3); width: 16px !important; height: 16px !important; flex: none; }

/* ---- bottom tab bar + floating punch button ---- */
.mtabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--border);
}
.mtabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-3); font-size: 9.5px; font-weight: 700; padding: 4px 0; }
.mtabbar button svg { width: 19px; height: 19px; }
.mtabbar button.is-active { color: var(--brand-purple); }
.mtabbar__fab {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--mob-grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 22px -6px rgba(120,40,160,.55); z-index: 9;
}
.mtabbar__fab svg { width: 23px; height: 23px; }

@media (max-width: 760px) {
  .mobapp-stage { flex-direction: column; align-items: center; }
  .mobapp-sidepanel { width: 100%; max-width: 320px; padding-top: 0; }
}
