*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --g: #005a31;
  --g2: #007447;
  --glt: #e8f5ee;
  --gltt: #f0faf5;
  --red: #d0021b;
  --amb: #f59e0b;
  --blue: #0056b3;
  --blt: #e8f0fb;
  --ink: #1a1a2e;
  --ink2: #2d3748;
  --w: #fff;
  --f0: #f7f9fc;
  --f1: #edf0f4;
  --f2: #d8dde6;
  --f3: #5b6675;
  --f5: #4a5568;
  --r: 12px;
  --rs: 8px;
  --rf: 100px;
  --s1: 0 1px 4px rgba(0, 0, 0, .08);
  --s2: 0 4px 14px rgba(0, 0, 0, .1);
  --s3: 0 10px 32px rgba(0, 0, 0, .14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bnav-content-height: 58px;
  --bnav-inner-gap: 6px;
}

/* Premium notification bell styling (white) */
#notif-btn {
  color: var(--w);
}

.premium-bell-svg {
  display: inline-block;
  vertical-align: middle;
  color: var(--w);
}

.drw-hd h3 .premium-bell-svg {
  margin-left: 6px;
  vertical-align: middle;
  color: var(--w);
}

/* Ensure badge remains visible on dark topbar */
.tb-badge {
  background: var(--w);
  color: var(--ink);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Accessibility helpers */
.skip-link {
  position: fixed;
  left: -999px;
  top: 12px;
  background: var(--w);
  color: var(--g2);
  padding: 8px 12px;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: var(--s2);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Visible focus outlines for keyboard users */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus {
  outline: 3px solid var(--g2);
  outline-offset: 2px;
}

/* Dynamic viewport height — accounts for home indicator and browser chrome on iOS/Android. */
:root {
  --app-vh: 100dvh;
}

html {
  -webkit-text-size-adjust: 100%;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #004d2b
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--f0);
  color: var(--ink);
  overflow: hidden;
  width: 100%;
  height: var(--app-vh);
  min-height: var(--app-vh);
  overscroll-behavior: none;
  touch-action: pan-y
}

#app {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--f0);
  min-height: var(--app-vh);
  height: var(--app-vh);
  overflow: hidden
}

button {
  cursor: pointer;
  font-family: 'Nunito', sans-serif
}

input,
textarea {
  font-family: 'Nunito', sans-serif
}

.screen {
  display: none;
  min-height: var(--app-vh);
  height: var(--app-vh);
  flex-direction: column
}

.screen.active {
  display: flex
}

/* ═══ SPLASH ═══ */
#splash {
  background: linear-gradient(160deg, #004d2b, var(--g));
  justify-content: center;
  align-items: center
}

.sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fu .7s ease both
}

.sp-icon {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  animation: bounce 1s ease .3s both
}

.sp-name {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 4px
}

.sp-tag {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .3px;
  margin-bottom: 48px
}

.sp-bar {
  width: 130px;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  border-radius: 99px;
  overflow: hidden
}

.sp-fill {
  height: 100%;
  background: #fff;
  animation: ld 2.2s ease forwards
}

@keyframes bounce {
  0% {
    transform: scale(0)
  }

  60% {
    transform: scale(1.15)
  }

  100% {
    transform: scale(1)
  }
}

/* ═══ AUTH ═══ */
#auth {
  background: var(--w);
  justify-content: center;
  overflow-y: auto;
  padding: calc(max(env(safe-area-inset-top, 44px), 44px) + 20px) 22px calc(env(safe-area-inset-bottom, 20px) + 20px)
}

.auth-wrap {
  max-width: 420px;
  width: 100%;
  margin: auto
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px
}

.auth-logo-ic {
  width: 44px;
  height: 44px;
  background: var(--g);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px
}

.auth-logo-nm {
  font-size: 24px;
  font-weight: 900;
  color: var(--g)
}

.auth-tabs {
  display: flex;
  background: var(--f1);
  border-radius: var(--rs);
  padding: 3px;
  margin-bottom: 22px
}

.atab {
  border: none;
  background: transparent;
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  color: var(--f5);
  transition: .2s
}

.atab.on {
  background: var(--w);
  color: var(--g);
  box-shadow: var(--s1)
}

.fld {
  margin-bottom: 13px
}

.fld label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--f5);
  margin-bottom: 5px
}

.fld input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: .2s
}

.fld input:focus {
  border-color: var(--g)
}

.btn-g {
  width: 100%;
  padding: 14px;
  background: var(--g);
  color: #fff;
  border: none;
  border-radius: var(--rs);
  font-size: 15px;
  font-weight: 800;
  transition: .18s;
  margin-top: 6px
}

.btn-g:active {
  transform: scale(.98)
}

.aor {
  text-align: center;
  font-size: 12px;
  color: var(--f5);
  margin: 14px 0;
  position: relative
}

.aor::before,
.aor::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--f2)
}

.aor::before {
  left: 0
}

.aor::after {
  right: 0
}

.btn-out {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

/* ═══ INSTALL BANNER ═══ */
.install-banner {
  background: var(--ink);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  display: none;
  align-items: center;
  gap: 10px;
  position: relative
}

.install-banner.show {
  display: flex
}

.ib-icon {
  font-size: 22px
}

.ib-txt {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4
}

.ib-btn {
  background: var(--g);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  cursor: pointer
}

.ib-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px
}

/* ═══ TOPBAR ═══ */
.topbar {
  background: linear-gradient(135deg, #004d2b, var(--g));
  padding: calc(max(44px, env(safe-area-inset-top, 44px)) + 4px) 14px 12px;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 75, 40, .3)
}

.tb-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 74px
}

.loc-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  max-width: 92px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  padding: 5px 10px 5px 8px
}

.loc-pin {
  font-size: 12px
}

.loc-txt {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px
}

.loc-caret {
  font-size: 9px;
  color: rgba(255, 255, 255, .5);
  flex-shrink: 0
}

.tb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0
}

.tb-logo-ic {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px
}

.tb-logo-nm {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.3px
}

.tb-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 74px
}

.tb-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  flex-shrink: 0
}

/* Ensure notification bell renders as white glyph where possible */
#notif-btn {
  color: #fff !important;
  font-family: 'Nunito', Arial, sans-serif;
}

.tb-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 99px;
  font-size: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 2px solid var(--g);
  padding: 0 3px
}

/* Search */
.tb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--rs);
  padding: 9px 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.tb-search input {
  flex: 1;
  border: none;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-weight: 600
}

.tb-search input::placeholder {
  color: var(--f3);
  font-weight: 500
}

/* ═══ APP BODY ═══ */
.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--bnav-content-height) + var(--bnav-inner-gap) + var(--safe-bottom));
  -webkit-overflow-scrolling: touch
}

/* ═══ BOTTOM NAV ═══ */
.bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 251, 255, .96));
  border-top: 1px solid rgba(255, 255, 255, .7);
  display: none;
  min-height: calc(var(--bnav-content-height) + var(--safe-bottom));
  padding: 4px 8px calc(var(--safe-bottom) + var(--bnav-inner-gap));
  z-index: 60;
  box-shadow: 0 -8px 26px rgba(0, 32, 22, .12);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25)
}

#app.active~.bnav {
  display: flex;
}

.bnav::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .8), rgba(255, 255, 255, .1));
  pointer-events: none
}

.bni {
  appearance: none;
  border: none;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 4px;
  transition: transform .22s cubic-bezier(.2, .75, .3, 1), filter .22s ease;
  position: relative;
  border-radius: 14px
}

.bni-ic {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(159, 177, 199, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .22s cubic-bezier(.2, .75, .3, 1), background .22s ease, box-shadow .22s ease
}

.bni-lb {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18px;
  color: #6e7e93;
  transition: color .2s ease, letter-spacing .2s ease
}

.bni.on .bni-lb {
  color: #0f2f56;
  letter-spacing: .24px
}

.bni.on .bni-ic {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(135deg, #00b37a 0%, #007f9e 54%, #0056b3 100%);
  box-shadow: 0 10px 20px rgba(0, 87, 125, .24), inset 0 1px 0 rgba(255, 255, 255, .35)
}

.bni.on::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 4px;
  bottom: 2px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(0, 179, 122, .14), rgba(0, 86, 179, .12));
  z-index: -1
}

.bni:active {
  transform: translateY(1px)
}

.bni-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 17px;
  height: 17px;
  background: var(--red);
  border-radius: 99px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  padding: 0 3px;
  box-shadow: 0 1px 4px rgba(208, 2, 27, .35)
}

.bni-dot.show {
  display: flex
}

@media (prefers-reduced-motion: reduce) {

  .bni,
  .bni-ic,
  .bni-lb {
    transition: none
  }
}

/* ═══ DRAWERS ═══ */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 200;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px)
}

.drawer-bg.open {
  display: flex
}

.drawer {
  background: var(--w);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-height: calc(var(--app-vh) - max(env(safe-area-inset-top, 44px), 44px) - 4px);
  display: flex;
  flex-direction: column;
  animation: su .28s ease
}

.drw-hnd {
  width: 38px;
  height: 3px;
  background: var(--f2);
  border-radius: 99px;
  margin: 12px auto 0
}

.drw-hd {
  padding: 12px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--f1)
}

.drw-hd h3 {
  font-size: 16px;
  font-weight: 800
}

.drw-close {
  background: var(--f1);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.drw-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1
}

.drw-srch {
  padding: 10px 16px;
  border-bottom: 1px solid var(--f1)
}

.drw-srch input {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  font-size: 14px;
  outline: none;
  transition: .2s;
  font-weight: 600
}

.drw-srch input:focus {
  border-color: var(--g)
}

/* City list */
.city-list {
  overflow-y: auto;
  flex: 1
}

.city-sec {
  padding: 7px 16px 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--f3);
  background: var(--f0)
}

.city-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--f0);
  transition: .12s
}

.city-row:hover {
  background: var(--gltt)
}

.city-row.on {
  background: var(--glt)
}

.city-ic {
  width: 34px;
  height: 34px;
  background: var(--f1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0
}

.city-row.on .city-ic {
  background: var(--glt)
}

.city-nm {
  flex: 1;
  font-size: 14px;
  font-weight: 700
}

.city-chk {
  color: var(--g);
  font-weight: 900;
  font-size: 16px;
  opacity: 0
}

.city-row.on .city-chk {
  opacity: 1
}

/* ═══ SECTIONS ═══ */
.sec {
  padding: 14px 14px 0
}

.sec-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.sec-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink)
}

.sec-lnk {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--g);
  font-weight: 800;
  cursor: pointer
}

/* Quick actions */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 12px 14px 0
}

.qa-card {
  background: var(--w);
  border: 1px solid var(--f1);
  border-radius: var(--r);
  padding: 12px;
  box-shadow: var(--s1);
  cursor: pointer
}

.qa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px
}

.qa-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--glt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px
}

.qa-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink)
}

.qa-sub {
  font-size: 10px;
  color: var(--f5);
  font-weight: 700;
  line-height: 1.4
}

.rx-trust {
  margin: 8px 14px 0;
  padding: 10px 12px;
  background: var(--gltt);
  border: 1px solid #cdebdc;
  border-radius: var(--rs);
  display: flex;
  align-items: center;
  gap: 8px
}

.rx-trust span {
  font-size: 11px;
  color: var(--g);
  font-weight: 800
}

/* Symptom care paths */
.symptom-row {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.symptom-row::-webkit-scrollbar {
  display: none
}

.symptom {
  min-width: 178px;
  background: var(--w);
  border: 1px solid var(--f1);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--s1);
  transition: .15s
}

.symptom.on {
  border-color: #b8dfcb;
  background: #f5fbf8;
  box-shadow: 0 3px 12px rgba(0, 90, 49, .12)
}

.symptom-ic {
  font-size: 18px;
  margin-bottom: 4px
}

.symptom-lb {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 4px
}

.symptom-sub {
  font-size: 10px;
  color: var(--f5);
  font-weight: 700;
  line-height: 1.35
}

.symptom-risk {
  margin-top: 6px;
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 99px;
  padding: 2px 7px
}

.sym-guidance {
  margin: 9px 14px 0;
  background: #f7fbf8;
  border: 1px solid #d7ebdf;
  border-radius: var(--rs);
  padding: 9px 10px;
  font-size: 11px;
  color: #1f5a3f;
  font-weight: 700
}

/* ═══ PHARMACIES ═══ */
.pharm-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch
}

.pharm-scroll::-webkit-scrollbar {
  display: none
}

.pharm-card {
  background: var(--w);
  border-radius: var(--r);
  padding: 12px;
  min-width: 162px;
  box-shadow: var(--s1);
  flex-shrink: 0;
  border: 1px solid var(--f1);
  cursor: pointer;
  transition: .15s
}

.pharm-card:hover {
  box-shadow: var(--s2)
}

.pharm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px
}

.pharm-ic {
  width: 32px;
  height: 32px;
  background: var(--glt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px
}

.pharm-nm {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3
}

.pharm-dist {
  font-size: 10px;
  color: var(--f3)
}

.pharm-hrs {
  font-size: 10px;
  color: var(--f5);
  margin-top: 3px;
  font-weight: 600
}

.pharm-verify {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 800;
  color: #1f5a3f;
  background: #eef8f2;
  border: 1px solid #d7ebdf;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px
}

.pharm-st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px
}

.p-open {
  background: var(--glt);
  color: var(--g)
}

.p-closed {
  background: #ffeaea;
  color: var(--red)
}

.p-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%
}

/* ═══ CATEGORY PILLS ═══ */
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px
}

.cat-pills .extra-cat {
  display: none
}

.cat-pills.expanded .extra-cat {
  display: flex
}

.cat-pills::-webkit-scrollbar {
  display: none
}

.cpill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: var(--w);
  border: 1.5px solid var(--f2);
  border-radius: var(--rf);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  position: relative
}

.cpill-more {
  border-style: dashed;
  color: var(--f5)
}

@media (max-width: 380px) {
  .cpill {
    font-size: 11px;
    padding: 7px 10px;
  }
}

.cpill.on {
  background: var(--g);
  border-color: var(--g);
  color: #fff;
  transform: translateY(-1px)
}

.cpill-ic {
  font-size: 14px
}

.cpill-cnt {
  font-size: 10px;
  font-weight: 800;
  color: var(--f3)
}

.cpill.on .cpill-cnt {
  color: rgba(255, 255, 255, .82)
}

.care-collections {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch
}

.care-collections::-webkit-scrollbar {
  display: none
}

.ccard {
  min-width: 200px;
  border: 1px solid var(--f1);
  border-radius: var(--r);
  background: var(--w);
  box-shadow: var(--s1);
  padding: 11px;
  cursor: pointer
}

.ccard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px
}

.ccard-ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--glt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px
}

.ccard-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink)
}

.ccard-sub {
  font-size: 10px;
  color: var(--f5);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 7px
}

.ccard-cta {
  font-size: 10px;
  font-weight: 900;
  color: var(--g)
}

/* ── PROMO CAROUSEL ── */
.promo-carousel {
  margin: 12px 0 0;
  overflow: hidden;
  position: relative
}

.promo-track {
  display: flex;
  transition: transform .35s ease;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom
}

.promo-slide {
  min-width: 100%;
  padding: 0 14px
}

.promo-card {
  border-radius: var(--r);
  padding: 16px 18px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.promo-card::after {
  content: attr(data-em);
  position: absolute;
  right: -8px;
  bottom: -10px;
  font-size: 76px;
  opacity: .12
}

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 6px
}

.promo-h {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 3px
}

.promo-p {
  font-size: 11px;
  opacity: .7;
  margin-bottom: 10px;
  font-weight: 600
}

.promo-btn {
  display: inline-block;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 99px;
  cursor: pointer;
  width: fit-content;
  color: var(--promo-cta-color, #000);
  border: 1px solid var(--promo-cta-color, #000)
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px
}

.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f2);
  cursor: pointer;
  transition: .2s
}

.promo-dot.on {
  background: var(--g);
  width: 14px;
  border-radius: 99px
}

.symptom-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch
}

.symptom-filter-row::-webkit-scrollbar {
  display: none
}

.sym-chip {
  border: 1.5px solid var(--f2);
  background: var(--w);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer
}

.sym-chip.on {
  background: var(--g);
  border-color: var(--g);
  color: #fff
}

/* ═══ PRODUCT CARDS ═══ */
.prods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px
}

.pcard {
  background: var(--w);
  border-radius: var(--r);
  box-shadow: var(--s1);
  border: 1px solid var(--f1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .15s;
  position: relative
}

.pcard:active {
  transform: scale(.98)
}

.pcard-img {
  background: var(--f0);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 108px;
  overflow: hidden
}

.pcard-product-img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 8px
}

.pcard-emoji {
  font-size: 54px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .12))
}

.badge-row {
  position: absolute;
  top: 7px;
  left: 7px;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.badge-sale {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px;
  text-transform: uppercase
}

.badge-new {
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px
}

.badge-otc {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--glt);
  color: var(--g);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 99px
}

.pcard-fav {
  position: absolute;
  bottom: 6px;
  right: 7px;
  background: rgba(255, 255, 255, .85);
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--s1)
}

.pcard-info {
  padding: 8px 10px 10px;
  min-height: 122px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.pcard-brand {
  font-size: 10px;
  font-weight: 800;
  color: var(--f3);
  text-transform: uppercase;
  letter-spacing: .4px
}

.pcard-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px
}

.pcard-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 1px 0
}

.stars {
  font-size: 11px;
  letter-spacing: -.5px;
  color: var(--amb)
}

.star-count {
  font-size: 10px;
  color: var(--f3);
  font-weight: 700
}

.pcard-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 4px
}

.pcard-prices {
  display: flex;
  flex-direction: column
}

.pcard-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--g)
}

.pcard-old {
  font-size: 10px;
  color: var(--f3);
  text-decoration: line-through;
  font-weight: 600
}

.add-btn {
  background: var(--g);
  border: none;
  border-radius: var(--rs);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: .15s;
  flex-shrink: 0
}

.add-btn:active {
  background: var(--g2)
}

.qty-ctrl {
  display: flex;
  align-items: center;
  border: 2px solid var(--g);
  border-radius: var(--rs);
  overflow: hidden;
  flex-shrink: 0
}

.qty-btn {
  width: 26px;
  height: 28px;
  background: var(--glt);
  border: none;
  color: var(--g);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--g)
}

/* Recently viewed */
.rv-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch
}

.rv-scroll::-webkit-scrollbar {
  display: none
}

.rv-card {
  background: var(--w);
  border-radius: var(--r);
  padding: 10px;
  min-width: 110px;
  box-shadow: var(--s1);
  flex-shrink: 0;
  border: 1px solid var(--f1);
  text-align: center;
  cursor: pointer
}

.rv-emoji {
  font-size: 30px;
  margin-bottom: 6px
}

.rv-product-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px
}

.rv-name {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px
}

.rv-price {
  font-size: 12px;
  font-weight: 900;
  color: var(--g)
}

/* Product detail modal */
.pd-hero {
  background: var(--f0);
  padding: 24px;
  text-align: center;
  border-radius: var(--r);
  margin-bottom: 14px;
  position: relative
}

.pd-emoji {
  font-size: 72px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .1))
}

.pd-brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--f3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px
}

.pd-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 6px
}

.pd-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px
}

.pd-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--g);
  margin-bottom: 4px
}

.pd-old {
  font-size: 13px;
  color: var(--f3);
  text-decoration: line-through;
  font-weight: 600
}

.pd-section {
  margin-bottom: 14px
}

.pd-sec-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--f3);
  margin-bottom: 6px
}

.pd-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--f5);
  line-height: 1.7
}

.pd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.pd-tag {
  background: var(--f1);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--f5)
}

/* STATUS WIDGET */
.status-widget {
  margin: 12px 14px 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s1)
}

.hiw {
  background: linear-gradient(135deg, var(--g), var(--g2));
  padding: 14px 16px;
  color: #fff
}

.hiw-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 10px;
  font-weight: 800
}

.hiw-steps {
  display: flex;
  position: relative
}

.hiw-steps::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  height: 1px;
  background: rgba(255, 255, 255, .2)
}

.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 1
}

.hiw-num {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .3)
}

.hiw-step.done .hiw-num {
  background: #fff;
  color: var(--g);
  border-color: #fff
}

.hiw-txt {
  font-size: 9px;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  line-height: 1.4;
  font-weight: 700
}

.tracker {
  background: var(--ink);
  padding: 14px 16px;
  color: #fff
}

.tr-lbl {
  font-size: 9px;
  color: var(--amb);
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 900;
  margin-bottom: 3px
}

.tr-status {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px
}

.tr-bar {
  display: flex;
  gap: 3px
}

.tr-seg {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .15);
  transition: .4s
}

.tr-seg.done {
  background: var(--g2)
}

.tr-seg.act {
  background: var(--amb);
  animation: blink 1s infinite
}

.tr-eta {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  margin-top: 8px;
  font-weight: 700
}

.tr-map {
  display: flex;
  gap: 10px;
  margin-top: 10px
}

.tr-map-stops {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1
}

.tr-stop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700
}

.tr-stop-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  flex-shrink: 0
}

.tr-stop-dot.done {
  background: var(--g2)
}

.tr-stop-dot.act {
  background: var(--amb)
}

.tr-stop-lbl {
  color: rgba(255, 255, 255, .5)
}

.tr-stop-lbl.act {
  color: #fff
}

/* SEARCH */
#search-res {
  display: none;
  padding: 12px 14px 0;
  flex-direction: column;
  gap: 10px
}

#search-res.show {
  display: flex
}

.search-zero {
  display: none;
  padding: 10px 14px 0;
  flex-direction: column;
  gap: 12px
}

.search-zero.show {
  display: flex
}

.sz-sec {
  background: var(--w);
  border-radius: var(--r);
  border: 1px solid var(--f1);
  padding: 10px 12px;
  box-shadow: var(--s1)
}

.sz-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--f3);
  font-weight: 900;
  margin-bottom: 8px
}

.sz-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px
}

.sz-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  background: var(--f0);
  padding: 6px 10px;
  border-radius: 99px;
  cursor: pointer;
  border: 1px solid var(--f1)
}

/* ═══ CONSULT TAB ═══ */
#consult-tab {
  display: none;
  padding: 14px;
  flex-direction: column;
  gap: 13px
}

#consult-tab.on {
  display: flex
}

/* ═══ CART TAB ═══ */
#cart-tab {
  display: none;
  padding: 14px;
  flex-direction: column;
  gap: 12px
}

#cart-tab.on {
  display: flex
}

.consult-hero {
  background: linear-gradient(135deg, #0d1f3c, var(--ink2));
  border-radius: var(--r);
  padding: 18px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.consult-hero::after {
  content: '🩺';
  position: absolute;
  right: -6px;
  bottom: -8px;
  font-size: 68px;
  opacity: .1
}

.ch-tag {
  font-size: 10px;
  color: var(--amb);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 5px
}

.ch-h {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px
}

.ch-p {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 6px;
  line-height: 1.5;
  font-weight: 600
}

.ch-avail {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 13px;
  font-weight: 700
}

.ch-urgent {
  border: 1px solid rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .12);
  color: #fff0c7;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px
}

.ch-avail span {
  color: #22c55e
}

.ch-btns {
  display: flex;
  gap: 8px
}

.btn-grn {
  padding: 9px 16px;
  background: var(--g);
  border: none;
  border-radius: var(--rf);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  cursor: pointer
}

.btn-gho {
  padding: 9px 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--rf);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  cursor: pointer
}

.chat-box {
  background: var(--w);
  border-radius: var(--r);
  box-shadow: var(--s1);
  overflow: hidden;
  border: 1px solid var(--f1)
}

.chat-hd {
  padding: 11px 13px;
  border-bottom: 1px solid var(--f1);
  display: flex;
  align-items: center;
  gap: 9px
}

.chat-av {
  width: 36px;
  height: 36px;
  background: var(--glt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: relative;
  flex-shrink: 0
}

.chat-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff
}

.chat-inf h4 {
  font-size: 13px;
  font-weight: 900
}

.chat-inf p {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

.chat-disclaimer {
  padding: 9px 12px;
  border-top: 1px solid var(--f1);
  border-bottom: 1px solid var(--f1);
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.chat-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35
}

.chat-consent input {
  margin-top: 2px
}

.chat-legal {
  font-size: 10px;
  color: var(--f3);
  font-weight: 700;
  line-height: 1.4
}

.chat-msgs {
  padding: 12px;
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px
}

.msg {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600
}

.msg.in {
  background: var(--f0);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--f1)
}

.msg.out {
  background: var(--g);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px
}

.msg.pending {
  background: #ecf7ff;
  border: 1px solid #d1e7ff
}

.msg.system {
  background: #fff8eb;
  border: 1px solid #f8ddb0;
  max-width: 100%;
  align-self: stretch
}

.msg-body {
  white-space: pre-wrap
}

.msg-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .35px;
  background: rgba(0, 90, 49, .14);
  color: #0d4f2f;
  text-transform: uppercase
}

.msg-t {
  font-size: 10px;
  opacity: .45;
  margin-top: 3px;
  text-align: right;
  font-weight: 600
}

.chat-inp {
  padding: 9px 12px;
  border-top: 1px solid var(--f1);
  display: flex;
  gap: 7px;
  align-items: center
}

.chat-inp input {
  flex: 1;
  border: 1.5px solid var(--f1);
  border-radius: var(--rf);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: .2s;
  font-weight: 600
}

.chat-inp input:focus {
  border-color: var(--g)
}

.chat-send {
  width: 34px;
  height: 34px;
  background: var(--g);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.chat-send:disabled {
  opacity: .55;
  cursor: not-allowed
}

.chat-review-note {
  display: none;
  font-size: 11px;
  font-weight: 800;
  color: #8a4b00;
  background: #fff6e7;
  border: 1px solid #f2d39a;
  border-radius: 10px;
  padding: 9px 10px
}

.chat-review-note.show {
  display: block
}

.vbook {
  background: var(--w);
  border-radius: var(--r);
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--s1);
  cursor: pointer;
  border: 1px solid var(--f1);
  transition: .15s
}

.vbook:hover {
  box-shadow: var(--s2)
}

.vbook-ic {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #3b9eff, #7c5fff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0
}

.vbook-txt h4 {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 2px
}

.vbook-txt p {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

.vbook-arr {
  margin-left: auto;
  font-size: 18px;
  color: var(--f2)
}

.prem-gate {
  background: linear-gradient(135deg, #0d1f3c, #1e3a5f);
  border-radius: var(--r);
  padding: 15px;
  border: 1px solid rgba(124, 95, 255, .25)
}

.pg-row {
  display: flex;
  align-items: center;
  gap: 11px
}

.pg-ic {
  font-size: 26px
}

.pg-txt h4 {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px
}

.pg-txt p {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.4;
  font-weight: 600
}

.pg-btn {
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: var(--rs);
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  margin-top: 10px;
  cursor: pointer
}

/* Health Tools consolidated card */
.ht-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px 7px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--f3)
}

.ht-hd--sep {
  border-top: 1px solid var(--f1);
  padding-top: 13px;
  margin-top: 4px
}

/* Gate sitting inside a scard — strip own card chrome */
.prem-gate--inline {
  background: var(--f0);
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--f1)
}

.prem-gate--inline .pg-txt h4 {
  color: var(--ink)
}

.prem-gate--inline .pg-txt p {
  color: var(--f3)
}

/* Drug checker inside health tools card — no own card chrome */
.ht-drug {
  padding: 4px 14px 14px
}

.ht-drug p {
  font-size: 12px;
  color: var(--f3);
  margin-bottom: 10px;
  font-weight: 600
}

/* Rx list inside health tools card */
.ht-rx {
  padding: 4px 14px 8px;
  gap: 8px
}

.ht-rx .rx-item {
  border-radius: var(--rs);
  box-shadow: none
}

/* ═══ PROFILE TAB ═══ */
#profile-tab {
  display: none;
  padding: 14px;
  flex-direction: column;
  gap: 12px
}

#profile-tab.on {
  display: flex
}

.p-hero {
  background: linear-gradient(135deg, #004d2b, var(--g));
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
  position: relative;
  overflow: hidden
}

.p-hero-top {
  display: flex;
  gap: 13px;
  align-items: center
}

.p-hero::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, .06);
  border-radius: 50%
}

.p-av {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .4);
  cursor: pointer
}

.p-info h3 {
  font-size: 16px;
  font-weight: 900
}

.p-info p {
  font-size: 11px;
  opacity: .6;
  margin-top: 2px;
  font-weight: 600
}

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .2);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .9);
  font-weight: 800
}

.p-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  z-index: 1
}

/* Profile completion CTA */
.p-compl {
  margin-top: 12px;
  background: rgba(0, 0, 0, .18);
  border-radius: var(--rs);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .1)
}

.p-compl-bar {
  height: 3px;
  background: rgba(255, 255, 255, .15);
  border-radius: 99px;
  margin-bottom: 8px;
  overflow: hidden
}

.p-compl-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amb), #f59e0b);
  border-radius: 99px;
  transition: width .5s ease
}

.p-compl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.p-compl-lbl {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, .85)
}

.p-compl-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
  margin-top: 2px;
  font-weight: 600
}

.p-compl-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0
}

/* Mini health card in hero (shown when complete) */
/* Full health card inside hero */
.p-hcard {
  margin-top: 14px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: 14px 15px 12px;
  position: relative;
  overflow: hidden
}

.p-hcard::after {
  content: '🏥';
  position: absolute;
  right: -6px;
  bottom: -8px;
  font-size: 64px;
  opacity: .06;
  pointer-events: none
}

.phc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.phc-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: rgba(255, 255, 255, .45);
  font-weight: 800
}

.phc-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .25);
  flex-shrink: 0;
  animation: phc-pulse 2.2s ease-in-out infinite
}

@keyframes phc-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(74, 222, 128, .25)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, .1)
  }
}

.phc-verified {
  font-size: 9px;
  font-weight: 900;
  color: #4ade80;
  background: rgba(74, 222, 128, .12);
  border: 1px solid rgba(74, 222, 128, .25);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .3px
}

.phc-name {
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.1
}

.phc-vitals {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px
}

.phc-vital {
  display: flex;
  align-items: center;
  gap: 4px
}

.phc-vital-ic {
  font-size: 12px;
  opacity: .65
}

.phc-vital-val {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, .85)
}

.phc-sep {
  color: rgba(255, 255, 255, .25);
  font-size: 14px
}

.phc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px
}

.phc-chip {
  background: rgba(208, 2, 27, .28);
  border: 1px solid rgba(208, 2, 27, .4);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px
}

.phc-actions {
  display: flex;
  gap: 8px
}

.phc-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--rs);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-align: center
}

.phc-present {
  background: rgba(255, 255, 255, .95);
  color: #004d2b
}

.phc-share {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2) !important;
  color: #fff
}

/* Optional field label */
.fld-opt {
  font-size: 10px;
  font-weight: 600;
  color: var(--f3);
  display: inline
}

/* Privacy note in profile modal */
.priv-note {
  font-size: 10px;
  color: var(--f3);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  padding: 4px 0 2px;
  opacity: .75
}

/* Loyalty card */
.loyalty-card {
  background: linear-gradient(135deg, var(--ink), #1e3a5f);
  border-radius: var(--r);
  padding: 16px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.loyalty-card::after {
  content: '⭐';
  position: absolute;
  right: -8px;
  bottom: -10px;
  font-size: 72px;
  opacity: .08
}

.lc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px
}

.lc-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: rgba(255, 255, 255, .4)
}

.lc-tier {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: var(--amb)
}

.lc-pts-big {
  font-size: 36px;
  font-weight: 900;
  color: var(--amb);
  margin-bottom: 3px
}

.lc-pts-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  font-weight: 700;
  margin-bottom: 12px
}

.lc-bar-wrap {
  background: rgba(255, 255, 255, .1);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 5px
}

.lc-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--amb), #f59e0b);
  border-radius: 99px;
  width: 65%;
  transition: .5s
}

.lc-bar-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  font-weight: 700
}

.lc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.lc-btn {
  flex: 1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--rs);
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  text-align: center
}

/* Referral */
.ref-card {
  background: var(--w);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--s1);
  border: 1px solid var(--f1)
}

.ref-card h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px
}

.ref-card p {
  font-size: 12px;
  color: var(--f5);
  margin-bottom: 12px;
  line-height: 1.5;
  font-weight: 600
}

.ref-code-box {
  background: var(--glt);
  border: 1.5px dashed var(--g);
  border-radius: var(--rs);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px
}

.ref-code {
  font-size: 18px;
  font-weight: 900;
  color: var(--g);
  flex: 1;
  letter-spacing: 2px
}

.ref-copy {
  background: var(--g);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: var(--rs);
  cursor: pointer
}

.ref-share-btns {
  display: flex;
  gap: 8px
}

.ref-sh {
  flex: 1;
  padding: 9px;
  border-radius: var(--rs);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px
}

.ref-wa {
  background: #25d366;
  color: #fff
}

.ref-copy2 {
  background: var(--f1);
  color: var(--ink)
}

/* Med ID */
.med-id {
  background: linear-gradient(135deg, var(--ink), #2d3748);
  border-radius: var(--r);
  padding: 17px;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden
}

.mid-glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(0, 200, 80, .06);
  border-radius: 50%
}

.mid-tag {
  font-size: 9px;
  color: rgba(255, 255, 255, .35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800
}

.mid-tag::before {
  content: '';
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, .2)
}

.mid-name {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 3px
}

.mid-dob {
  font-size: 11px;
  opacity: .4;
  font-weight: 700
}

.mid-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap
}

.mid-chip {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  color: rgba(255, 255, 255, .7);
  font-weight: 800
}

.mid-chip.al {
  background: rgba(208, 2, 27, .18);
  border-color: rgba(208, 2, 27, .35);
  color: #ff8fa3
}

/* Section card */
.scard {
  background: var(--w);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s1);
  border: 1px solid var(--f1)
}

.scard-hd {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--f3);
  background: var(--f0);
  border-bottom: 1px solid var(--f1)
}

.mrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--f0);
  cursor: pointer;
  transition: .12s
}

.mrow:last-child {
  border-bottom: none
}

.mrow:hover {
  background: var(--f0)
}

.co-trust {
  background: #f7fbf8;
  border: 1px solid #d7ebdf;
  border-radius: var(--rs);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 9px
}

.co-trust-item {
  font-size: 11px;
  font-weight: 700;
  color: #1f5a3f;
  line-height: 1.35
}

.mrow-ic {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0
}

.mrow-txt {
  flex: 1
}

.mrow-lbl {
  font-size: 13px;
  font-weight: 800
}

.mrow-sub {
  font-size: 11px;
  color: var(--f3);
  margin-top: 1px;
  font-weight: 600
}

.mrow-r {
  font-size: 16px;
  color: var(--f2)
}

.toggle {
  width: 40px;
  height: 22px;
  background: var(--f2);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: .3s;
  border: none;
  flex-shrink: 0
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2)
}

.toggle.on {
  background: var(--g)
}

.toggle.on::after {
  left: 20px
}

/* Reminders */
.rem-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--f0)
}

.rem-row:last-child {
  border-bottom: none
}

.rem-ic {
  width: 36px;
  height: 36px;
  background: var(--f0);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0
}

.rem-inf {
  flex: 1
}

.rem-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 1px
}

.rem-sub {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

.rem-time {
  font-size: 11px;
  font-weight: 900;
  color: var(--g);
  white-space: nowrap;
  margin-right: 4px
}

.rem-x {
  background: none;
  border: none;
  font-size: 15px;
  color: var(--f2);
  cursor: pointer;
  padding: 2px
}

/* RX */
.rx-cab {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.rx-item {
  background: var(--w);
  border-radius: var(--r);
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-shadow: var(--s1);
  border: 1px solid var(--f1)
}

.rx-ic {
  width: 38px;
  height: 38px;
  background: var(--f0);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0
}

.rx-info {
  flex: 1
}

.rx-name {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 2px
}

.rx-meta {
  font-size: 11px;
  color: var(--f3);
  margin-bottom: 6px;
  font-weight: 600
}

.rx-refill {
  background: transparent;
  border: 1.5px solid var(--g);
  border-radius: var(--rs);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 900;
  color: var(--g);
  cursor: pointer;
  transition: .15s
}

.rx-refill:hover {
  background: var(--g);
  color: #fff
}

.rx-stat {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 99px;
  flex-shrink: 0
}

.rx-active {
  background: var(--glt);
  color: var(--g)
}

.rx-due {
  background: #fff8e0;
  color: #a06000
}

/* Drug tool */
.drug-tool {
  background: var(--w);
  border-radius: var(--r);
  padding: 14px;
  box-shadow: var(--s1);
  border: 1px solid var(--f1)
}

.drug-tool h4 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px
}

.drug-tool p {
  font-size: 12px;
  color: var(--f3);
  margin-bottom: 10px;
  font-weight: 600
}

.drug-ins {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 9px
}

.drug-ins input {
  padding: 10px 12px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  font-size: 13px;
  outline: none;
  transition: .2s;
  font-weight: 600
}

.drug-ins input:focus {
  border-color: var(--g)
}

.drug-res {
  padding: 11px 13px;
  border-radius: var(--rs);
  font-size: 13px;
  line-height: 1.5;
  display: none;
  margin-top: 9px;
  font-weight: 700
}

.drug-res.ok {
  background: var(--glt);
  color: #064e35;
  display: block
}

.drug-res.warn {
  background: #fff8e0;
  color: #854d0e;
  display: block
}

/* Orders */
.ord-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--f0);
  cursor: pointer;
  transition: .12s
}

.ord-row:last-child {
  border-bottom: none
}

.ord-row:hover {
  background: var(--f0)
}

.ord-ic {
  width: 34px;
  height: 34px;
  background: var(--f0);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0
}

.ord-info {
  flex: 1
}

.ord-id {
  font-size: 13px;
  font-weight: 800
}

.ord-date {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

.ord-right {
  text-align: right
}

.ord-amt {
  font-size: 13px;
  font-weight: 900
}

.ord-dl {
  font-size: 11px;
  color: var(--blue);
  font-weight: 800
}

.logout-btn {
  background: transparent;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 13px;
  width: 100%;
  border-radius: var(--rs);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer
}

/* ═══ MODALS ═══ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  z-index: 200;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px)
}

.modal-bg.open {
  display: flex
}

.modal {
  background: var(--w);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-height: calc(var(--app-vh) - max(env(safe-area-inset-top, 44px), 44px) - 4px);
  overflow-y: auto;
  padding: 18px;
  animation: su .28s ease
}

.mhandle {
  width: 38px;
  height: 3px;
  background: var(--f2);
  border-radius: 99px;
  margin: 0 auto 14px
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px
}

.modal-hd .mtitle {
  margin-bottom: 0
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--f1);
  border: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: .15s
}

.modal-close:active {
  background: var(--f2)
}

.modal-close--float {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2
}

.modal-close--light {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2)
}

.form-modal {
  max-width: 380px
}

.form-modal-title {
  font-size: 15px;
  font-weight: 900
}

.form-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.form-modal-input {
  padding: 10px 12px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 700;
  background: #fff
}

.form-modal-textarea {
  resize: none;
  font-weight: 600
}

.form-modal-select {
  appearance: none
}

.mtitle {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 14px
}

/* Checkout */
.co-sec {
  margin-bottom: 14px
}

.co-lbl {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--f3);
  margin-bottom: 7px
}

.addr-box {
  background: var(--f0);
  border-radius: var(--rs);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 700
}

.addr-edit-btn {
  background: none;
  border: none;
  color: var(--g);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  cursor: pointer;
  padding: 0;
  display: block
}

.pay-opts {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  cursor: pointer;
  transition: .2s
}

.pay-opt.on {
  border-color: var(--g);
  background: var(--gltt)
}

.pay-ic {
  font-size: 18px
}

.pay-lbl {
  font-size: 13px;
  font-weight: 800;
  flex: 1
}

.pay-chk {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--f2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: .2s;
  flex-shrink: 0
}

.pay-opt.on .pay-chk {
  background: var(--g);
  border-color: var(--g);
  color: #fff
}

.del-opts {
  display: flex;
  gap: 7px
}

.del-opt {
  flex: 1;
  padding: 10px;
  border: 1.5px solid var(--f2);
  border-radius: var(--rs);
  text-align: center;
  cursor: pointer;
  transition: .2s
}

.del-opt.on {
  border-color: var(--g);
  background: var(--gltt)
}

.del-ic {
  font-size: 19px;
  margin-bottom: 3px
}

.del-lbl {
  font-size: 11px;
  font-weight: 900
}

.del-price {
  font-size: 10px;
  color: var(--f3);
  margin-top: 1px;
  font-weight: 700
}

.co-confirm-detail {
  padding: 12px;
  background: var(--f0);
  border-radius: var(--rs);
  margin-bottom: 10px;
  border: 1px solid var(--f1)
}

.co-confirm-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--f5)
}

.co-confirm-row:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  padding-top: 8px;
  border-top: 1px solid var(--f2);
  margin-top: 4px
}

.btn-gfull {
  width: 100%;
  padding: 14px;
  background: var(--g);
  color: #fff;
  border: none;
  border-radius: var(--rs);
  font-size: 15px;
  font-weight: 900;
  margin-top: 6px;
  cursor: pointer
}

/* Cart */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px
}

.cart-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--f0);
  border-radius: var(--rs)
}

.cart-img {
  font-size: 28px;
  width: 44px;
  height: 44px;
  background: var(--w);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.cart-info {
  flex: 1
}

.cart-name {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 1px;
  line-height: 1.3
}

.cart-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--g)
}

.cqty {
  display: flex;
  align-items: center;
  gap: 6px
}

.cqb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid var(--f2);
  background: var(--w);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  font-weight: 900
}

.cqv {
  font-size: 13px;
  font-weight: 900;
  min-width: 16px;
  text-align: center
}

.sum-box {
  background: var(--f0);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--f1)
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--f5);
  margin-bottom: 7px;
  font-weight: 700
}

.sum-row:last-child {
  margin-bottom: 0
}

.sum-row.tot {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  padding-top: 8px;
  border-top: 1px solid var(--f2);
  margin-top: 2px
}

/* Upload */
.upload-zone {
  border: 2px dashed var(--f2);
  border-radius: var(--r);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: .2s
}

.upload-zone:hover {
  border-color: var(--g);
  background: var(--gltt)
}

.upload-zone input {
  display: none
}

.uz-ic {
  font-size: 36px;
  margin-bottom: 8px
}

.upload-zone h3 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px
}

.upload-zone p {
  font-size: 12px;
  color: var(--f3);
  font-weight: 600
}

.uploaded {
  background: var(--glt);
  border: 1.5px solid var(--g);
  border-radius: var(--rs);
  padding: 11px;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px
}

.uploaded.show {
  display: flex
}

.up-info {
  flex: 1
}

.up-info h4 {
  font-size: 13px;
  font-weight: 800
}

.up-info p {
  font-size: 11px;
  color: var(--f5);
  font-weight: 600
}

.rxsteps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px
}

.rxstep {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: var(--f0);
  border-radius: var(--rs)
}

.rxstep-n {
  width: 24px;
  height: 24px;
  background: var(--g);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0
}

.rxstep-t h4 {
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 1px
}

.rxstep-t p {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

/* Premium modal */
.prem-modal {
  background: linear-gradient(160deg, #0b1f3a, #1e3a5f)
}

.prem-modal .mtitle {
  color: #fff
}

.prem-plans {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px
}

.plan {
  border: 1.5px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  padding: 13px;
  position: relative
}

.plan.featured {
  border-color: var(--amb)
}

.plan-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--amb);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase
}

.plan-nm {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px
}

.plan-price {
  font-size: 22px;
  font-weight: 900;
  color: #22c55e
}

.plan-price span {
  font-size: 11px;
  font-weight: 500;
  opacity: .5
}

.plan-feats {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.plan-feat {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700
}

.plan-feat::before {
  content: '✓';
  color: #22c55e;
  font-weight: 900
}

/* Edit profile modal */
.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

/* Notif drawer */
.notif-cat-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--f1);
  background: var(--w);
  color: var(--ink);
  cursor: pointer;
  transition: all .15s
}

.notif-cat-btn.on {
  background: var(--g);
  color: #fff;
  border-color: var(--g)
}

.notif-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px;
  background: var(--f0);
  border-radius: var(--rs);
  border: 1px solid var(--f1)
}

.ni-ic {
  font-size: 22px;
  flex-shrink: 0
}

.ni-txt {
  flex: 1
}

.ni-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px
}

.ni-sub {
  font-size: 11px;
  color: var(--f3);
  font-weight: 600
}

/* Success */
.suc-scr {
  position: fixed;
  inset: 0;
  background: var(--w);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(max(env(safe-area-inset-top, 44px), 44px) + 16px) 36px calc(env(safe-area-inset-bottom, 20px) + 16px);
  text-align: center
}

.suc-scr.show {
  display: flex
}

.suc-ic {
  font-size: 72px;
  animation: bounce .6s ease both
}

.suc-scr h2 {
  font-size: 26px;
  font-weight: 900
}

.suc-scr p {
  font-size: 14px;
  color: var(--f3);
  max-width: 280px;
  line-height: 1.6;
  font-weight: 700
}

.suc-detail {
  background: var(--f0);
  border-radius: var(--r);
  padding: 14px 18px;
  width: 100%;
  font-size: 13px;
  color: var(--f5);
  line-height: 2;
  font-weight: 700;
  text-align: left;
  border: 1px solid var(--f1)
}

.suc-pts {
  background: linear-gradient(135deg, var(--ink), #1e3a5f);
  border-radius: var(--rs);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px
}

.suc-pts-txt {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 800
}

.suc-pts-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--amb)
}

/* Offline banner */
.offline-banner {
  background: var(--red);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  display: none
}

.offline-banner.show {
  display: block
}

/* Toast */
.toast {
  position: fixed;
  top: calc(max(12px, env(safe-area-inset-top, 12px)) + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--rf);
  font-size: 13px;
  font-weight: 800;
  z-index: 600;
  transition: .3s;
  white-space: nowrap;
  box-shadow: var(--s3)
}

.toast.show {
  transform: translateX(-50%) translateY(0)
}

/* Keyframes */
@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes ld {
  to {
    width: 100%
  }
}

@keyframes su {
  from {
    transform: translateY(100%)
  }

  to {
    transform: none
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .45
  }
}

@media(min-width:760px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px;
    background: linear-gradient(180deg, #e9eef5 0%, #f6f8fb 100%)
  }

  #app {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(24, 39, 75, .16), 0 8px 20px rgba(24, 39, 75, .08);
    border: 1px solid #d9e0ea;
    min-height: calc(100dvh - 36px)
  }

  .bnav {
    max-width: 430px;
    left: 50%;
    right: auto;
    transform: translateX(-50%)
  }

  .modal-bg,
  .drawer-bg,
  .suc-scr {
    max-width: 430px;
    left: 50%;
    right: auto;
    transform: translateX(-50%)
  }

  .toast {
    left: 50%
  }
}

@media(max-width:340px) {
  .prods-grid {
    grid-template-columns: 1fr
  }
}