/* E-Lily Health Plans — mobile-first medical catalogue */
:root {
  --ehp-red: #df2b20;
  --ehp-red-dark: #b91f18;
  --ehp-pink: #fff1ef;
  --ehp-ink: #231b1a;
  --ehp-muted: #776b69;
  --ehp-line: #eee2df;
  --ehp-bg: #f8f5f4;
  --ehp-green: #14866d;
}

body.elily-health-page,
body.elily-health-page .shell,
body.elily-health-page .shell-main {
  background: var(--ehp-bg) !important;
}

body.elily-health-page .shell-main {
  padding-top: 0 !important;
}

.elily-health-page .vrob-page {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 14px calc(100px + env(safe-area-inset-bottom)) !important;
  color: var(--ehp-ink) !important;
  background: var(--ehp-bg) !important;
  font-family: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif !important;
}

.elily-health-page .vrob-page > .team-titlebar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 2px 12px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.elily-health-page .vrob-page > .team-titlebar h1 {
  margin: 0 !important;
  color: var(--ehp-ink) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
}

.elily-health-page .vrob-page > .team-titlebar button,
.elily-health-page .vrob-page > .team-titlebar a {
  border-color: #f0dedb !important;
  background: #fff !important;
  color: var(--ehp-red) !important;
  box-shadow: 0 5px 14px rgba(65, 34, 30, .06) !important;
}

.ehp-hero {
  position: relative;
  min-height: 190px;
  margin: 0 -14px;
  padding: calc(19px + env(safe-area-inset-top)) 20px 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 94% 8%, rgba(255,255,255,.19) 0 61px, transparent 62px),
    radial-gradient(circle at 10% 112%, rgba(255,255,255,.11) 0 88px, transparent 89px),
    linear-gradient(145deg, #ef382d 0%, var(--ehp-red) 48%, var(--ehp-red-dark) 100%);
  box-shadow: 0 15px 30px rgba(159, 29, 21, .18);
}

.ehp-hero::after {
  content: "";
  position: absolute;
  width: 164px;
  height: 164px;
  right: -59px;
  bottom: -74px;
  border: 18px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.ehp-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ehp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ehp-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(103, 11, 6, .18);
}

.ehp-brand-mark svg { width: 25px; height: 25px; }
.ehp-brand-copy strong { display: block; font-size: 15px; line-height: 1.15; letter-spacing: -.01em; }
.ehp-brand-copy span { display: block; margin-top: 3px; color: rgba(255,255,255,.74); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.ehp-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ehp-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 27px 0 8px;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ehp-hero p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.ehp-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -15px 4px 14px;
  padding: 12px 13px;
  position: relative;
  z-index: 3;
  border: 1px solid #f1e5e2;
  border-radius: 16px;
  background: #fff;
  color: #514744;
  box-shadow: 0 10px 25px rgba(66, 34, 29, .08);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.ehp-note-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--ehp-pink);
  color: var(--ehp-red);
}

.ehp-filters {
  display: flex;
  gap: 8px;
  margin: 0 -2px 2px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ehp-filters::-webkit-scrollbar { display: none; }

.ehp-filter {
  min-height: 34px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid var(--ehp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ehp-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, color .16s ease, background .16s ease;
}

.ehp-filter:active { transform: scale(.97); }
.ehp-filter.is-active { border-color: var(--ehp-red); background: var(--ehp-red); color: #fff; box-shadow: 0 7px 15px rgba(223,43,32,.2); }

.elily-health-page .vrob-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.elily-health-page .vrob-card.ehp-card {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 9px !important;
  overflow: hidden !important;
  border: 1px solid var(--ehp-line) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(70, 39, 34, .065) !important;
  grid-column: auto !important;
}

.elily-health-page .vrob-card.ehp-card::before,
.elily-health-page .vrob-card.ehp-card::after,
.elily-health-page .ehp-card .vrob-tag::before,
.elily-health-page .ehp-card .vrob-tag::after,
.elily-health-page .ehp-card .vrob-stat b::before,
.elily-health-page .ehp-card .vrob-stat b::after,
.elily-health-page .ehp-card .vrob-stat strong::before,
.elily-health-page .ehp-card .vrob-stat strong::after,
.elily-health-page .ehp-card .vrob-btn::before,
.elily-health-page .ehp-card .vrob-btn::after {
  display: none !important;
  content: none !important;
}

.elily-health-page .vrob-card.ehp-card[hidden] { display: none !important; }

.elily-health-page .ehp-card .vrob-img {
  width: 100% !important;
  height: 104px !important;
  min-height: 104px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 0 11px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 80% 15%, rgba(223,43,32,.10) 0 32px, transparent 33px),
    linear-gradient(140deg, #fff7f6 0%, #fff 100%) !important;
}

.elily-health-page .ehp-card .vrob-img img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  transform: none !important;
}

.elily-health-page .ehp-card .vrob-head {
  display: block !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 2px !important;
}

.elily-health-page .ehp-card .vrob-name {
  display: -webkit-box !important;
  margin: 0 0 5px !important;
  overflow: hidden !important;
  color: var(--ehp-ink) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.elily-health-page .ehp-card .vrob-tag {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 4px 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ehp-pink) !important;
  color: var(--ehp-red) !important;
  font-size: 8px !important;
  font-weight: 850 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}

.elily-health-page .ehp-card .vrob-stats {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 7px !important;
  margin: 11px 0 9px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.elily-health-page .ehp-card .vrob-stat {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 7px !important;
  border: 1px solid #f1e8e6 !important;
  border-radius: 12px !important;
  background: #fbf9f8 !important;
  text-align: left !important;
}

.elily-health-page .ehp-card .vrob-stat:nth-child(3) {
  grid-column: 1 / -1 !important;
  background: #fff4f2 !important;
  border-color: #ffd9d3 !important;
}

body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(1),
body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(2) {
  border-color: #f1e8e6 !important;
  background: #fbf9f8 !important;
}

body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(1) b,
body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(2) b,
body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(1) strong,
body.elily-health-page .vrob-page .ehp-card .vrob-stat:nth-child(2) strong {
  color: var(--ehp-ink) !important;
}

.elily-health-page .ehp-card .vrob-stat span,
.elily-health-page .ehp-card .vrob-stat small,
.elily-health-page .ehp-card .vrob-stat label {
  display: block !important;
  margin: 0 0 3px !important;
  color: #948784 !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

.elily-health-page .ehp-card .vrob-stat strong,
.elily-health-page .ehp-card .vrob-stat b {
  display: block !important;
  overflow: hidden !important;
  color: var(--ehp-ink) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.elily-health-page .ehp-card .vrob-stat b small,
.elily-health-page .ehp-card .vrob-stat strong small {
  display: inline !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: .72em !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.elily-health-page .ehp-card .vrob-stat:nth-child(3) strong,
.elily-health-page .ehp-card .vrob-stat:nth-child(3) b { color: var(--ehp-red) !important; }

.elily-health-page .ehp-card .vrob-btn {
  width: 100% !important;
  min-height: 39px !important;
  margin: auto 0 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #eb382d, var(--ehp-red-dark)) !important;
  color: #fff !important;
  box-shadow: 0 7px 15px rgba(185,31,24,.18) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
}

.elily-health-page .ehp-card .vrob-btn:disabled { opacity: .56 !important; box-shadow: none !important; }

.ehp-card[data-ehp-tier="plus"] .vrob-img { background: linear-gradient(140deg, #fff3f0 0%, #fff 100%) !important; }
.ehp-card[data-ehp-tier="premium"] .vrob-img { background: linear-gradient(140deg, #fff0ed 0%, #fffaf9 100%) !important; }

@media (min-width: 620px) {
  .ehp-hero { border-radius: 0 0 26px 26px; }
}

@media (max-width: 350px) {
  .elily-health-page .vrob-list { grid-template-columns: 1fr !important; }
  .elily-health-page .ehp-card .vrob-img { height: 128px !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .elily-health-page .ehp-card { animation: ehp-rise .28s ease both; }
  .elily-health-page .ehp-card:nth-child(2n) { animation-delay: .035s; }
  @keyframes ehp-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
