@keyframes v2spin { to { transform: rotate(360deg); } }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: #f8f9fa; color: #161616; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

:root {
  --primary: #044068;
  --sec:     #4fdb78;
  --black:   #161616;
  --grey:    #84878b;
  --bg:      #f8f9fa;
  --border:  #f2f3f5;
}

/* ---- Reusable ---- */
.btn-primary-mednza {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 24px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; border: none;
}
.btn-primary-mednza:hover { opacity: .9; }

.btn-outline-mednza {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 24px; border-radius: 8px;
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary); font-family: inherit;
  font-size: 16px; font-weight: 500; cursor: pointer;
}
.btn-outline-mednza:hover { background: rgba(4,64,104,.05); }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); display: inline-block; flex-shrink: 0;
}

/* ===== NAVBAR ===== */
.v2-navbar {
  background: #fff; height: 92px;
  display: flex; align-items: center; padding: 23px 80px;
}
.v2-navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto;
}
.v2-navbar__links { display: flex; gap: 32px; align-items: center; }
.v2-navbar__link  { font-size: 16px; color: var(--grey); white-space: nowrap; }
.v2-navbar__link:hover { color: var(--primary); }
.v2-navbar__link--active { color: var(--black); font-weight: 500; }
.v2-navbar__lang {
  display: flex; gap: 4px; align-items: center;
  font-size: 16px; color: var(--grey); cursor: pointer;
}
.v2-navbar__auth { display: flex; gap: 16px; }
.v2-navbar__toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; flex-shrink: 0; padding: 0;
}
.v2-navbar__toggle-icon-close { display: none; }
.v2-navbar__toggle--open .v2-navbar__toggle-icon-open  { display: none; }
.v2-navbar__toggle--open .v2-navbar__toggle-icon-close { display: block; }
.btn-signin   { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-register { background: var(--sec); color: #fff; border: 1px solid var(--sec); border-radius: 8px; padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-signin:hover, .btn-register:hover { opacity: .9; }

/* ===== PROFILE DROPDOWN ===== */
.v2-profile-dropdown { position: relative; }
.v2-profile-dropdown__toggle { display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; }
.v2-profile-dropdown__toggle svg { flex-shrink: 0; transition: transform .2s; }
.v2-profile-dropdown--open .v2-profile-dropdown__toggle svg { transform: rotate(180deg); }
.v2-profile-dropdown__panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 999; overflow: hidden; }
.v2-profile-dropdown--open .v2-profile-dropdown__panel { display: block; }
.v2-profile-dropdown__header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.v2-profile-dropdown__name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.v2-profile-dropdown__email { font-size: 12px; color: var(--grey); word-break: break-all; }
.v2-profile-dropdown__edit { flex-shrink: 0; color: var(--grey); text-decoration: none; }
.v2-profile-dropdown__edit:hover { color: var(--primary); }
.v2-profile-dropdown__menu { padding: 8px 0; }
.v2-profile-dropdown__item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; color: #444; text-decoration: none; transition: background .15s; }
.v2-profile-dropdown__item:hover { background: #f8f9fa; color: var(--primary); }
.v2-profile-dropdown__item svg { flex-shrink: 0; color: var(--grey); }
.v2-profile-dropdown__divider { height: 1px; background: var(--border); margin: 4px 0; }
.v2-profile-dropdown__signout { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; color: #e53935; text-decoration: none; transition: background .15s; width: 100%; background: none; border: none; cursor: pointer; font-family: inherit; }
.v2-profile-dropdown__signout:hover { background: rgba(229,57,53,.06); }

/* ===== FASTING REQUIRED MODAL ===== */
.v2-fasting-modal .modal-dialog { max-width: 480px; }
.v2-fasting-modal .modal-content { border-radius: 16px; border: none; padding: 32px 28px; text-align: center; }
.v2-fasting-title { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.v2-fasting-sub { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 24px; }
.v2-fasting-rows { background: #f8f9fa; border-radius: 12px; overflow: hidden; margin-bottom: 24px; text-align: left; }
.v2-fasting-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.v2-fasting-row:last-child { border-bottom: none; }
.v2-fasting-row__icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-fasting-row__icon--blue  { background: #e0edff; }
.v2-fasting-row__icon--green { background: #d1fae5; }
.v2-fasting-row__icon--red   { background: #fee2e2; }
.v2-fasting-row__label { font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.v2-fasting-row__value { font-size: 13px; color: var(--grey); }
.v2-fasting-agree { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; margin-bottom: 12px; }
.v2-fasting-agree:hover { opacity: .9; }
.v2-fasting-cancel { font-size: 14px; color: var(--grey); cursor: pointer; background: none; border: none; font-family: inherit; }
.v2-fasting-cancel:hover { color: var(--black); }

/* ===== HERO ===== */
.v2-hero {
  position: relative; height: 520px;
  display: flex; flex-direction: column; gap: 40px;
  align-items: center; justify-content: center;
}
.v2-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-hero__text { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.v2-hero__title    { font-size: 48px; font-weight: 700; color: #fff; white-space: nowrap; }
.v2-hero__subtitle { font-size: 24px; font-weight: 500; color: #fff; }

/* Search box */
.v2-search-box { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.v2-search-backdrop {
  position: absolute; inset: 0; width: 1080px;
  background: #fff; opacity: .9; border-radius: 16px;
  filter: blur(1px); pointer-events: none;
}
.v2-search-inner { position: relative; display: flex; flex-direction: column; gap: 29px; width: 1032px; }

.v2-search-tabs { display: flex; align-items: center; width: 100%; }
.v2-tab {
  flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 16px 0; background: none; border: none; border-bottom: 1px solid #e7e8ea;
  outline: none; font-family: inherit; font-size: 16px; color: var(--grey);
  cursor: pointer; white-space: nowrap;
}
.v2-tab:hover { color: var(--black); }
.v2-tab--active { border-bottom: 2px solid var(--sec); color: var(--black); }
.v2-tab img { width: 24px; height: 24px; object-fit: contain; display: block; flex-shrink: 0; }

.v2-search-row { display: flex; gap: 16px; align-items: center; width: 100%; }
.v2-select-wrap {
  position: relative; flex: 1; height: 80px;
  background: #fff; border-radius: 8px; overflow: hidden;
}
.v2-select-wrap__icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; pointer-events: none; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.v2-select-wrap select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding-left: 48px; padding-right: 40px;
  font-family: inherit; font-size: 16px; color: var(--grey);
  background: transparent; border: none; outline: none;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.v2-select-wrap__arrow {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  pointer-events: none; display: flex; align-items: center;
}
.btn-search {
  height: 80px; width: 160px; border-radius: 8px;
  background: var(--primary); color: #fff; border: none;
  font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; flex-shrink: 0;
}
.btn-search:hover { opacity: .9; }

/* ===== PRESCRIPTION BANNER ===== */
.v2-prescription {
  background: var(--primary);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 40px 80px;
}
.v2-prescription__title { font-size: 24px; font-weight: 600; color: #fff; white-space: nowrap; margin-bottom: 12px; }
.v2-prescription__sub   { font-size: 16px; color: var(--bg); }
.btn-prescription {
  background: #fff; color: var(--black); border: none; border-radius: 8px;
  padding: 12px 16px; font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; align-self: center;
}
.btn-prescription:hover { opacity: .9; }

/* ===== MAIN ===== */
.v2-main { display: flex; flex-direction: column; gap: 40px; align-items: center; padding: 48px 16px; }
.v2-container { width: 100%; max-width: 1280px; }

/* section header */
.v2-section-header { text-align: center; margin-bottom: 4px; }
.v2-section-header h2 { font-size: 28px; font-weight: 600; color: var(--black); }

/* ===== SERVICE CARDS ===== */
.v2-services { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.v2-services-row { display: flex; gap: 20px; width: 100%; flex-wrap: wrap; }
.v2-service-card {
  flex: 1; min-width: calc(33.333% - 14px); background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.v2-service-card__icon { display: flex; align-items: center; justify-content: center; padding: 15px; border-radius: 43.75px; }
.v2-service-card__icon img { width: 30px; height: 30px; object-fit: contain; display: block; }
.v2-service-card__name { font-size: 20px; font-weight: 500; color: var(--black); white-space: nowrap; }
.v2-service-card__desc { font-size: 16px; color: var(--grey); text-align: center; line-height: 24px; }
a.v2-service-card { text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
a.v2-service-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(4,64,104,0.12); text-decoration: none; }

/* ===== VIDEO ===== */
.v2-video-card {
  position: relative; width: 100%; height: 360px;
  border-radius: 16px; overflow: hidden; cursor: pointer; border: 1px solid var(--border);
}
.v2-video-card__thumb   { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2-video-card__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.v2-video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.v2-video-card__play:hover { transform: translate(-50%,-50%) scale(1.08); }
.play-triangle {
  width: 0; height: 0;
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  border-left: 20px solid var(--primary); margin-left: 4px;
}

/* ===== PACKAGES ===== */
.v2-packages {
  background: rgba(4,64,104,.1); padding: 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.v2-packages__header { display: flex; gap: 24px; align-items: flex-start; }
.v2-packages__title  { font-size: 32px; font-weight: 700; color: var(--black); }
.v2-packages__sub    { font-size: 18px; color: #828488; margin-top: 8px; }
.v2-packages__nav    { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.v2-nav-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.v2-nav-arrow:hover { background: rgba(255,255,255,.4); }

.v2-packages-grid {
  display: flex; gap: 12px; align-items: stretch;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.v2-packages-grid::-webkit-scrollbar { display: none; }
.v2-pkg-card {
  flex: 0 0 calc(25% - 9px); min-width: 240px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  align-self: stretch;
}
.v2-pkg-card__img { width: 100%; aspect-ratio: 289/189; object-fit: cover; object-position: top left; border-radius: 6px; display: block; }
.v2-pkg-card__row { display: flex; align-items: center; justify-content: space-between; }
.v2-pkg-card__name  { font-size: 18px; font-weight: 600; color: var(--black); padding-inline-end: 4px; }
.v2-pkg-card__price { font-size: 16px; font-weight: 700; color: var(--sec); white-space: nowrap; }
.v2-pkg-card__desc  {
  font-size: 14px; color: #828488;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(14px * 1.5 * 2);
}
.v2-pkg-card__tests { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; color: var(--black); margin-top: auto; }

/* ===== OFFERS ===== */
.v2-offers {
  background: rgba(4,64,104,.1); padding: 24px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.v2-offers-grid {
  display: flex; gap: 12px; align-items: stretch;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.v2-offers-grid::-webkit-scrollbar { display: none; }
.v2-offer-card {
  flex: 0 0 calc(25% - 9px); min-width: 240px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 15px 12px;
  display: flex; flex-direction: column; gap: 12px;
}
.v2-offer-card__name { font-size: 18px; font-weight: 600; color: var(--black); line-height: 33px; }
.v2-offer-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 12px; border-radius: 99px; background: var(--sec);
  font-size: 16px; font-weight: 500; color: #fff; align-self: flex-start;
}
.v2-offer-price { font-size: 16px; }
.v2-offer-price__new  { font-weight: 600; color: var(--primary); }
.v2-offer-price__old  { color: #62748e; }
.v2-offer-price__orig { font-weight: 600; color: #d40004; }

/* ===== PROVIDERS ===== */
.v2-providers-grid { display: flex; gap: 20px; }
.v2-provider-card {
  flex: 1; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.v2-provider-card__logo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.v2-provider-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-provider-card__name { font-size: 20px; font-weight: 500; color: var(--black); white-space: nowrap; }

/* ===== BANNER SLIDER ===== */
.v2-banner-slider {
  position: relative; overflow: hidden; width: 100%;
  max-height: 260px; background: #f0f3f7;
}
.v2-banner-track {
  display: flex; transition: transform 0.45s ease;
}
.v2-banner-slide {
  flex: 0 0 100%; display: block; text-decoration: none;
}
.v2-banner-slide img {
  width: 100%; height: 260px; object-fit: cover; display: block;
}
.v2-banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.35); border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: background 0.2s;
}
.v2-banner-arrow:hover { background: rgba(0,0,0,0.55); }
.v2-banner-arrow--prev { left: 12px; }
.v2-banner-arrow--next { right: 12px; }
.v2-banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.v2-banner-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: background 0.2s;
}
.v2-banner-dot--active { background: #fff; }
@media (max-width: 640px) {
  .v2-banner-slider, .v2-banner-slide img { max-height: 160px; height: 160px; }
}

/* ===== PAYMENT METHOD ICONS ===== */
.v2-pm-icons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.v2-pm-icon { width: 28px; height: 18px; object-fit: contain; border-radius: 3px; border: 1px solid var(--border); padding: 1px 2px; background: #fff; }

/* ===== FEATURED SECTIONS ===== */
.v2-featured-section { display: flex; flex-direction: column; gap: 20px; }
.v2-featured-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.v2-featured-scroll::-webkit-scrollbar { display: none; }

/* Featured Provider card */
.v2-fp-card {
  flex: 0 0 140px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px;
  text-decoration: none; scroll-snap-align: start;
  transition: box-shadow 0.15s;
}
.v2-fp-card:hover { box-shadow: 0 4px 16px rgba(4,64,104,0.1); }
.v2-fp-card__logo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.v2-fp-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-fp-card__logo--placeholder {
  background: rgba(4,64,104,0.08); display: flex; align-items: center; justify-content: center;
}
.v2-fp-card__logo--placeholder span { font-size: 22px; font-weight: 700; color: var(--primary); }
.v2-fp-card__name {
  font-size: 13px; font-weight: 500; color: var(--black);
  text-align: center; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Featured Service card */
.v2-fs-card {
  flex: 0 0 160px; display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px;
  text-decoration: none; scroll-snap-align: start;
  transition: box-shadow 0.15s;
}
.v2-fs-card:hover { box-shadow: 0 4px 16px rgba(4,64,104,0.1); }
.v2-fs-card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(4,64,104,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.v2-fs-card__name {
  font-size: 13px; font-weight: 500; color: var(--black); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.v2-fs-card__price { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: auto; }

/* ===== DOWNLOAD ===== */
.v2-download {
  border-radius: 24px; overflow: hidden; padding: 36px 48px;
  display: flex; gap: 24px; align-items: center; height: 359px;
  background: linear-gradient(257.8deg, #044068 50.32%, #022e4c 94.89%);
}
.v2-download__text { display: flex; flex-direction: column; gap: 24px; width: 522px; }
.v2-download__heading p:first-child { font-size: 28px; font-weight: 500; color: #fff; line-height: normal; }
.v2-download__heading p:last-child  { font-size: 36px; font-weight: 700; color: #fff; line-height: normal; }
.v2-download__sub p { font-size: 18px; color: var(--bg); line-height: normal; }
.v2-store-buttons { display: flex; gap: 8px; }
.v2-store-btn {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 8px; height: 48px; min-width: 148px; padding: 0 14px;
  text-decoration: none; transition: opacity .2s;
}
.v2-store-btn:hover { opacity: .9; }
.v2-store-btn__icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.v2-store-btn__label { font-size: 9px; font-weight: 400; color: #333; text-transform: uppercase; line-height: 1.3; display: block; letter-spacing: 0.3px; }
.v2-store-btn__name  { font-size: 16px; font-weight: 600; color: #000; line-height: 1.2; display: block; }
.v2-store-btn__name--ios { font-size: 16px; letter-spacing: -0.3px; }
.v2-phone-mockup {
  border: 5.581px solid #fff; border-radius: 11px;
  height: 287px; width: 140px; overflow: hidden; position: relative; flex-shrink: 0;
}
.v2-phone-mockup img { position: absolute; left: 0; top: 0; width: 100%; height: 195.49%; object-fit: cover; }

/* ===== SEARCH SERVICES PAGE ===== */

/* Breadcrumb */
/* ===== SEARCH SERVICES PAGE ===== */
.ss-wrap { display: flex; flex-direction: column; }

/* Breadcrumb */
.ss-breadcrumb { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ss-breadcrumb .v2-container { margin: 0 auto; padding: 0 80px; display: flex; align-items: center; gap: 6px; }
.ss-breadcrumb a { font-size: 13px; color: var(--grey); text-decoration: none; }
.ss-breadcrumb a:hover { color: var(--primary); }
.ss-breadcrumb__sep { font-size: 13px; color: var(--grey); }
.ss-breadcrumb__active { font-size: 13px; color: var(--primary); font-weight: 500; }

/* Prescription banner */
.ss-prescription { background: #f0f7ff; border: 1px solid #c3daf8; border-radius: 8px; margin: 20px auto; max-width: calc(1280px - 160px); width: calc(100% - 160px); }
.ss-prescription__inner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.ss-prescription__icon { background: var(--primary); width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ss-prescription__text { flex: 1; }
.ss-prescription__title { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.ss-prescription__sub   { font-size: 13px; color: #444; line-height: 1.5; }
.ss-prescription__btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none; display: inline-flex; }
.ss-prescription__btn:hover { opacity: .9; }

/* 3-column body */
.ss-body { padding: 20px 0 48px; }
.ss-body__inner { display: flex; gap: 24px; align-items: flex-start; margin: 0 auto; padding: 0 80px; max-width: 1280px; }

/* LEFT sidebar — Filter & Sort */
.ss-filters { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.ss-filters__title { font-size: 16px; font-weight: 700; color: var(--black); }

.ss-filter-search { background: #fff; border: 1px solid var(--border); border-radius: 8px; height: 44px; display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.ss-filter-search__input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--black); background: transparent; }
.ss-filter-search__input::placeholder { color: var(--grey); }
.ss-filter-search__icon { flex-shrink: 0; }

.ss-filter-group { display: flex; flex-direction: column; gap: 8px; }
.ss-filter-group__label { font-size: 13px; font-weight: 600; color: var(--black); }

.ss-filter-select { background: #fff; border: 1px solid var(--border); border-radius: 8px; height: 44px; display: flex; align-items: center; padding: 0 12px; }
.ss-filter-select select { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--black); background: transparent; appearance: none; cursor: pointer; }
.ss-filter-select svg { flex-shrink: 0; pointer-events: none; }

.ss-filter-radios { display: flex; flex-direction: column; gap: 10px; }
.ss-filter-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--grey); }
.ss-filter-radio a { color: inherit; font-size: 13px; text-decoration: none; }
.ss-filter-radio:hover a, .ss-filter-radio--active a { color: var(--black); }
.ss-filter-radio__dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 2px solid #ccc; background: #fff; }
.ss-filter-radio--active .ss-filter-radio__dot { border-color: var(--primary); background: var(--primary); }

.ss-filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ss-filter-apply { background: var(--primary); color: #fff; border: none; border-radius: 8px; height: 44px; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ss-filter-apply:hover { opacity: .9; }
.ss-filter-clear { background: transparent; border: none; font-family: inherit; font-size: 13px; color: var(--grey); cursor: pointer; text-align: center; }
.ss-filter-clear:hover { color: var(--primary); }

/* ClinicSearch — enhanced filter sidebar */
.cs-filters { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; align-self: flex-start; }
.cs-filters__header { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--primary); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.cs-filter-field { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; height: 46px; padding: 0 14px; transition: border-color .2s, box-shadow .2s; }
.cs-filter-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4,64,104,.08); background: #fff; }
.cs-filter-field__icon { flex-shrink: 0; color: var(--grey); transition: color .2s; }
.cs-filter-field:focus-within .cs-filter-field__icon { color: var(--primary); }
.cs-filter-field__input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--black); background: transparent; }
.cs-filter-field__input::placeholder { color: var(--grey); }
.cs-filter-group { margin-top: 16px; }
.cs-filter-group__label { display: block; font-size: 12px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.cs-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 500; color: var(--grey); cursor: pointer; transition: border-color .15s, color .15s, background .15s; user-select: none; }
.cs-pill input[type="radio"] { display: none; }
.cs-pill--active { border-color: var(--primary); color: var(--primary); background: rgba(4,64,104,.06); }
.cs-filter-select { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--black); background: transparent; width: 100%; padding: 4px 0; cursor: pointer; }
.cs-filter-range { display: flex; align-items: center; gap: 8px; }
.cs-filter-range__input { flex: 1; border: 1.5px solid var(--border); border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px; color: var(--black); outline: none; width: 0; min-width: 0; }
.cs-filter-range__input:focus { border-color: var(--primary); }
.cs-filter-range__sep { color: var(--grey); font-size: 14px; flex-shrink: 0; }
.cs-filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.cs-filter-apply { background: var(--primary); color: #fff; border: none; border-radius: 10px; height: 44px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.cs-filter-apply:hover { opacity: .88; }
.cs-filter-clear { background: transparent; border: 1.5px solid var(--border); border-radius: 10px; height: 38px; font-family: inherit; font-size: 13px; color: var(--grey); cursor: pointer; transition: border-color .15s, color .15s; }
.cs-filter-clear:hover { border-color: var(--primary); color: var(--primary); }

/* CENTER results */
.ss-results { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ss-results__header { display: flex; flex-direction: column; gap: 2px; }
.ss-results__title { font-size: 16px; font-weight: 700; color: var(--black); }
.ss-results__sub   { font-size: 13px; color: var(--grey); }

.ss-no-data { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 0; }
.ss-no-data p { font-size: 14px; color: var(--grey); }

.ss-service-list { display: flex; flex-direction: column; gap: 12px; }
.ss-service-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ss-service-card__info { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ss-service-card__name { font-size: 14px; font-weight: 600; color: var(--black); }
.ss-service-card__note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--primary); }
.ss-service-card__price { font-size: 13px; color: var(--grey); }
.ss-service-card__price strong { color: var(--primary); font-size: 13px; font-weight: 600; }
.ss-service-card__old-price { color: #d40004; text-decoration: line-through; font-weight: 500; }

.ss-service-card__add { background: rgba(79,219,120,.12); border: none; border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ss-service-card__add:hover { background: rgba(79,219,120,.28); }
.ss-service-card__remove { background: rgba(212,0,4,.08); border: none; border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ss-service-card__remove:hover { background: rgba(212,0,4,.18); }

/* RIGHT cart */
.ss-cart { width: 240px; flex-shrink: 0; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.ss-cart__header { display: flex; align-items: center; justify-content: space-between; }
.ss-cart__title { font-size: 15px; font-weight: 700; color: var(--black); }
.ss-cart__divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.ss-cart__empty { font-size: 13px; color: var(--grey); text-align: center; padding: 12px 0; }

.ss-cart__item { display: flex; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.ss-cart__item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ss-cart__item-name { font-size: 13px; font-weight: 600; color: var(--black); }
.ss-cart__item-price { font-size: 12px; color: var(--grey); }
.ss-cart__item-price strong { color: var(--primary); font-weight: 600; }
.ss-cart__item-old { color: #d40004; text-decoration: line-through; }
.ss-cart__remove-btn { background: none; border: none; font-family: inherit; font-size: 12px; font-weight: 600; color: #d40004; cursor: pointer; flex-shrink: 0; padding: 0; }
.ss-cart__remove-btn:hover { opacity: .8; }

.ss-cart__actions { display: flex; flex-direction: column; gap: 8px; }
.ss-cart__proceed { background: var(--primary); color: #fff; border: none; border-radius: 8px; height: 44px; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ss-cart__proceed:hover { opacity: .9; }
.ss-cart__clear { background: transparent; border: none; font-family: inherit; font-size: 13px; color: var(--grey); cursor: pointer; text-align: center; }
.ss-cart__clear:hover { color: var(--primary); }

/* ===== FOOTER ===== */
.v2-footer {
  background: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 24px 80px; white-space: nowrap;
}
.v2-footer__copy  { font-size: 16px; color: var(--black); line-height: 26px; }
.v2-footer__links { display: flex; gap: 32px; }
.v2-footer__link  { font-size: 16px; color: var(--grey); }
.v2-footer__link:hover { color: var(--primary); }

/* ===== PACKAGES PAGE ===== */
.v2-pkg-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.v2-pkg-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 16px; height: 44px; min-width: 260px; }
.v2-pkg-search input { border: none; outline: none; font-family: inherit; font-size: 15px; flex: 1; background: transparent; }
.v2-packages-grid--full { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ===== PACKAGE DETAILS PAGE ===== */
.v2-pkgd-hero { display: flex; gap: 32px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 32px; border: 1px solid var(--border); }
.v2-pkgd-hero__text { flex: 1; }
.v2-pkgd-hero__title { font-size: 28px; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.v2-pkgd-hero__sub { font-size: 15px; color: var(--grey); line-height: 1.7; }
.v2-pkgd-hero__img { width: 320px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.v2-pkgd-hero__img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.v2-pkgd-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v2-pkgd-service { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--black); }
.v2-pkgd-providers { display: flex; flex-direction: column; gap: 12px; }
.v2-pkgd-provider { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: box-shadow .2s; }
.v2-pkgd-provider:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.v2-pkgd-provider__logo { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
.v2-pkgd-provider__logo img { width: 100%; height: 100%; object-fit: contain; }
.v2-pkgd-provider__info { flex: 1; }
.v2-pkgd-provider__name { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v2-pkgd-provider__price { font-size: 14px; }
.v2-pkgd-provider__new { font-weight: 600; color: var(--primary); margin-right: 8px; }
.v2-pkgd-provider__old { color: var(--grey); font-size: 13px; }
.v2-pkgd-provider__stars { display: flex; gap: 2px; flex-shrink: 0; }

/* ===== CONTENT PAGES (About, Contact, Terms, Privacy, Refund) ===== */
.v2-content-page  { background: #f8f9fa; min-height: calc(100vh - 92px - 74px); padding: 40px 16px; }
.v2-content-inner { max-width: 1280px; margin: 0 auto; }

.v2-breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--grey); margin-bottom: 20px; }
.v2-breadcrumb a { color: var(--grey); }
.v2-breadcrumb a:hover { color: var(--primary); }
.v2-breadcrumb__current { color: var(--primary); font-weight: 500; }

.v2-page-title { font-size: 28px; font-weight: 700; color: var(--black); margin-bottom: 20px; }

.v2-white-card { background: #fff; border-radius: 16px; padding: 32px; border: 1px solid var(--border); }

.v2-section-label { font-size: 18px; font-weight: 600; color: var(--black); margin: 28px 0 16px; }

/* About Us */
.v2-about-body { font-size: 15px; color: var(--grey); line-height: 1.8; }
.v2-core-values { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.v2-core-value { display: flex; gap: 14px; align-items: flex-start; background: #f8f9fa; border-radius: 12px; padding: 16px; }
.v2-core-value__icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(4,64,104,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-core-value__title { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v2-core-value__desc { font-size: 13px; color: var(--grey); line-height: 1.6; }
.v2-partners-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 12px; }
.v2-partner-logo { height: 48px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: all .2s; }
.v2-partner-logo:hover { opacity: 1; filter: none; }

/* Contact Us */
.v2-contact-hero { text-align: center; padding: 32px 0 24px; }
.v2-contact-hero h1 { font-size: 32px; font-weight: 700; color: var(--black); }
.v2-contact-hero p { font-size: 15px; color: var(--grey); margin-top: 8px; }
.v2-contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.v2-contact-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.v2-contact-card__icon { width: 48px; height: 48px; border-radius: 50%; background: #f0f4f8; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.v2-contact-card__label { font-size: 13px; color: var(--grey); }
.v2-contact-card__value { font-size: 15px; font-weight: 600; color: var(--black); }
.v2-business-hours { background: linear-gradient(135deg, var(--primary) 0%, #022e4c 100%); border-radius: 12px; padding: 28px 32px; color: #fff; }
.v2-bh__title { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.v2-bh__subtitle { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 0; }
.v2-bh__rows { display: flex; flex-direction: column; gap: 10px; }
.v2-bh__row { display: flex; justify-content: space-between; font-size: 14px; gap: 40px; }
.v2-bh__day { color: rgba(255,255,255,.8); }
.v2-bh__time { font-weight: 500; }

/* Policy pages (Terms, Privacy, Refund) */
.v2-policy-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.v2-policy-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.v2-policy-section h3 { font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.v2-policy-section p { font-size: 15px; color: var(--grey); line-height: 1.8; }

/* ===== AUTH PAGES (Login / Register) ===== */
.v2-auth-page {
  min-height: calc(100vh - 92px - 74px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; background: #f8f9fa;
}
.v2-auth-card {
  background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 40px; width: 100%; max-width: 440px; margin: auto;
}
.v2-auth-header { margin-bottom: 24px; }
.v2-auth-title  { font-size: 26px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.v2-auth-subtitle { font-size: 15px; font-weight: 500; color: var(--grey); }
.v2-auth-switch { margin-top: 16px; text-align: center; font-size: 14px; color: var(--grey); }

/* Form elements */
.v2-form-group  { margin-bottom: 16px; }
.v2-form-label  { display: block; font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 8px; }
.v2-form-input  {
  width: 100%; height: 48px; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 0 16px; font-family: inherit; font-size: 15px; color: var(--black);
  outline: none; transition: border-color .2s;
}
.v2-form-input:focus { border-color: var(--primary); }
.v2-field-error { display: block; font-size: 12px; color: #e53935; margin-top: 4px; }

/* Phone input */
.v2-phone-input  { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.v2-phone-prefix { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f5f5f5; border-right: 1px solid #e0e0e0; height: 48px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.v2-phone-field  { border: none !important; border-radius: 0 !important; flex: 1; }
.v2-phone-field:focus { box-shadow: none; }

/* Checkbox */
.v2-form-check  { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 14px; color: var(--grey); }
.v2-form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); }

/* Account type radio */
.v2-account-type { display: flex; gap: 12px; }
.v2-account-type__option {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s;
}
.v2-account-type__option input { display: none; }
.v2-account-type__option--active { border-color: var(--primary); background: rgba(4,64,104,.05); color: var(--primary); }

/* Buttons */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 8px; font-family: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: opacity .2s; border: none; }
.v2-btn--primary  { background: var(--primary); color: #fff; }
.v2-btn--outline  { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.v2-btn--full     { width: 100%; margin-bottom: 16px; }
.v2-btn:hover     { opacity: .88; }
.v2-btn:disabled  { opacity: .5; cursor: not-allowed; }
.v2-link { color: var(--primary); font-weight: 500; }
.v2-link:hover { text-decoration: underline; }

/* Modals */
.modal { display: none; }
.modal.show { display: block; }
.v2-modal .modal-content { border-radius: 16px; border: none; }
.v2-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #f0f0f0; }
.v2-modal__header h5 { font-size: 18px; font-weight: 600; color: var(--black); margin: 0; }
.v2-modal__close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--grey); line-height: 1; }
.v2-modal__body  { padding: 24px; }
.v2-modal__desc  { font-size: 14px; color: var(--grey); margin-bottom: 20px; }
.v2-modal__actions { display: flex; gap: 12px; margin-top: 20px; }

/* ===== SELECT PROVIDER PAGE ===== */
.v2-sp-wrap { padding-top: 16px; padding-bottom: 48px; }
.v2-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey); margin-bottom: 24px; }
.v2-breadcrumb a { color: var(--grey); text-decoration: none; }
.v2-breadcrumb a:hover { color: var(--primary); }
.v2-breadcrumb span:last-child { color: var(--black); font-weight: 500; }
.v2-sp-layout { display: grid; grid-template-columns: 220px 1fr 260px; gap: 24px; align-items: start; }
/* Sidebar shared */
.v2-sp-filter-card, .v2-sp-cart-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
/* Filter sidebar */
.v2-sp-filter-title { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.v2-sp-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; height: 40px; margin-bottom: 20px; }
.v2-sp-search input { border: none; outline: none; font-family: inherit; font-size: 14px; flex: 1; background: transparent; }
.v2-sp-filter-section { margin-bottom: 20px; }
.v2-sp-filter-label { font-size: 13px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.v2-sp-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--black); padding: 8px 0; cursor: pointer; }
.v2-sp-radio input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.v2-sp-radio--active { color: var(--primary); font-weight: 600; }
.v2-sp-apply { width: 100%; justify-content: center; font-size: 14px; height: 40px; margin-bottom: 12px; }
.v2-sp-clear { display: block; text-align: center; font-size: 14px; color: var(--grey); text-decoration: none; }
.v2-sp-clear:hover { color: var(--primary); }
/* Center results */
.v2-sp-results-header { margin-bottom: 20px; }
.v2-sp-results-title { font-size: 18px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v2-sp-results-sub { font-size: 14px; color: var(--grey); }
.v2-sp-provider-list { display: flex; flex-direction: column; gap: 12px; }
.v2-sp-provider-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; transition: box-shadow .2s; }
.v2-sp-provider-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.v2-sp-provider-logo { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f8f9fa; }
.v2-sp-provider-logo img { width: 100%; height: 100%; object-fit: contain; }
.v2-sp-provider-info { flex: 1; }
.v2-sp-provider-name { font-size: 15px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.v2-sp-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.v2-sp-rating-val { font-size: 13px; color: var(--grey); margin-left: 4px; }
.v2-sp-price { font-size: 13px; color: var(--grey); }
.v2-sp-price-new { color: var(--primary); font-size: 14px; }
.v2-sp-price-old { color: #e53935; text-decoration: line-through; font-size: 13px; }
.v2-sp-choose-btn { flex-shrink: 0; font-size: 13px; height: 38px; padding: 0 16px; }
.v2-no-results { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 0; color: var(--grey); font-size: 15px; }
/* Cart sidebar */
.v2-sp-cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.v2-sp-cart-header h3 { font-size: 16px; font-weight: 700; color: var(--black); }
.v2-sp-cart-empty { font-size: 14px; color: var(--grey); text-align: center; padding: 20px 0; }
.v2-sp-cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.v2-sp-cart-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.v2-sp-cart-item-name { font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.v2-sp-cart-item-price { font-size: 13px; color: var(--primary); font-weight: 600; }
.v2-sp-remove { font-size: 12px; color: #e53935; text-decoration: none; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.v2-sp-remove:hover { text-decoration: underline; }
.v2-sp-cart-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--black); padding: 12px 0; border-top: 1px solid var(--border); margin-bottom: 16px; }
.v2-sp-proceed { display: flex; justify-content: center; align-items: center; width: 100%; height: 44px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 12px; transition: opacity .2s; }
.v2-sp-proceed:hover { opacity: .88; color: #fff; }
.v2-sp-add-more { display: block; text-align: center; font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500; }
.v2-sp-add-more:hover { text-decoration: underline; }

/* ===== MY PROFILE PAGE ===== */
.v2-profile-wrap { padding-top: 32px; padding-bottom: 48px; }
.v2-profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
/* Left card */
.v2-profile-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 20px; text-align: center; margin-bottom: 16px; }
.v2-profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.v2-profile-name { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.v2-profile-phone { font-size: 13px; color: var(--grey); margin-bottom: 2px; }
.v2-profile-email { font-size: 13px; color: var(--grey); margin-bottom: 16px; word-break: break-all; }
.v2-profile-balance-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.v2-profile-balance-item { display: flex; align-items: center; gap: 8px; background: #f8f9fa; border-radius: 10px; padding: 10px 12px; flex: 1; min-width: 100px; }
.v2-profile-balance-label { font-size: 11px; color: var(--grey); margin-bottom: 2px; }
.v2-profile-balance-val { font-size: 14px; font-weight: 700; color: var(--black); }
/* Nav */
.v2-profile-nav { display: flex; flex-direction: column; gap: 4px; }
.v2-profile-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--black); background: none; border: none; cursor: pointer; text-align: left; text-decoration: none; transition: background .15s; width: 100%; }
.v2-profile-nav-item:hover { background: #f8f9fa; color: var(--primary); }
.v2-profile-nav-item--active { background: rgba(4,64,104,.08); color: var(--primary); }
.v2-profile-nav-item--danger { color: #e53935; }
.v2-profile-nav-item--danger:hover { background: rgba(229,57,53,.06); color: #e53935; }
.v2-profile-badge { background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 7px; margin-left: auto; }
/* Right content */
.v2-profile-section { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.v2-profile-section-title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 24px; }
.v2-profile-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
/* Order sub-tabs */
.v2-profile-order-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.v2-order-tab { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--grey); background: #f8f9fa; border: none; cursor: pointer; transition: all .15s; }
.v2-order-tab:hover { color: var(--primary); background: rgba(4,64,104,.06); }
.v2-order-tab--active { background: var(--primary); color: #fff; }
/* Order cards */
.v2-orders-list { display: flex; flex-direction: column; gap: 12px; }
.v2-orders-empty { text-align: center; color: var(--grey); padding: 32px 0; font-size: 14px; }
.v2-order-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.v2-order-card__header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8f9fa; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.v2-order-card__ref { font-size: 14px; font-weight: 700; color: var(--black); }
.v2-order-card__date { font-size: 12px; color: var(--grey); margin-top: 2px; }
.v2-order-card__payment { font-size: 13px; color: var(--grey); }
.v2-order-status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: #e8f5e9; color: #388e3c; }
.v2-order-status--new,.v2-order-status--unpaid { background: #fff3e0; color: #e65100; }
.v2-order-status--incomplete { background: #fce4ec; color: #c62828; }
.v2-order-card__body { display: flex; gap: 20px; padding: 16px 20px; align-items: flex-start; }
.v2-order-card__logo { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.v2-order-card__details { flex: 1; font-size: 13px; color: var(--black); display: flex; flex-direction: column; gap: 4px; }
.v2-order-card__lbl { font-weight: 600; color: var(--grey); }

/* ===== UPLOAD PRESCRIPTION PAGE ===== */
.v2-rx-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 24px 0 48px; }
.v2-rx-title { font-size: 30px; font-weight: 700; color: var(--black); margin-bottom: 12px; line-height: 1.3; }
.v2-rx-sub { font-size: 14px; color: var(--grey); margin-bottom: 32px; line-height: 1.6; }
.v2-rx-benefits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.v2-rx-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.v2-rx-check { width: 24px; height: 24px; border-radius: 50%; background: rgba(79,219,120,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.v2-rx-benefit-title { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.v2-rx-benefit-sub { font-size: 13px; color: var(--grey); line-height: 1.5; }
.v2-rx-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.v2-rx-dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: border-color .2s, background .2s; background: #fafbfc; }
.v2-rx-dropzone:hover, .v2-rx-dropzone--drag { border-color: var(--primary); background: rgba(4,64,104,.04); }
.v2-rx-dropzone--has-file { border-color: var(--sec); background: rgba(79,219,120,.06); }
.v2-rx-drop-title { font-size: 15px; font-weight: 600; color: var(--black); margin: 0; }
.v2-rx-drop-sub { font-size: 13px; color: var(--grey); margin: 0; }
.v2-rx-formats { font-size: 12px; color: var(--grey); margin: 10px 0 0; }
.v2-rx-filename { font-size: 13px; color: var(--primary); font-weight: 600; margin: 8px 0 0; word-break: break-all; }

/* ===== POINTS HISTORY PAGE ===== */
.v2-points-hero { background: linear-gradient(135deg, var(--primary) 60%, #0a6aad 100%); border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: space-between; margin: 24px 0 32px; gap: 24px; }
.v2-points-hero__main { display: flex; flex-direction: column; gap: 8px; }
.v2-points-hero__label { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; }
.v2-points-hero__value { font-size: 40px; font-weight: 700; color: #fff; margin: 0; }
.v2-points-hero__value span { font-size: 20px; font-weight: 400; margin-left: 4px; }
.v2-points-hero__btn { background: #fff; color: var(--primary); border: none; border-radius: 8px; padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; align-self: flex-start; transition: opacity .2s; margin-top: 8px; }
.v2-points-hero__btn:hover { opacity: .85; }
.v2-points-hero__next { display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 12px; padding: 20px 28px; text-align: center; }
.v2-points-hero__next-label { font-size: 13px; color: rgba(255,255,255,.8); margin: 0; }

/* ===== WALLET HISTORY PAGE ===== */
.v2-wallet-hero { display: flex; gap: 24px; margin: 24px 0 32px; }
.v2-wallet-hero__balance { flex: 1; background: var(--primary); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; }
.v2-wallet-hero__label { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.v2-wallet-hero__value { font-size: 40px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.v2-wallet-hero__value span { font-size: 20px; font-weight: 400; margin-left: 4px; }
.v2-wallet-hero__btn { background: #fff; color: var(--primary); border: none; border-radius: 8px; padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; align-self: flex-start; transition: opacity .2s; }
.v2-wallet-hero__btn:hover { opacity: .85; }
.v2-wallet-hero__help { width: 280px; flex-shrink: 0; background: #f8f9fa; border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.v2-wallet-hero__help-icon { width: 48px; height: 48px; background: rgba(4,64,104,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.v2-wallet-hero__help-title { font-size: 16px; font-weight: 700; color: var(--black); }
.v2-wallet-hero__help-sub { font-size: 13px; color: var(--grey); line-height: 1.6; }
.v2-wallet-hero__help-btn { background: var(--primary); color: #fff; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .2s; }
.v2-wallet-hero__help-btn:hover { background: #033356; color: #fff; }
.v2-activity-title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 16px; }
.v2-activity-list { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.v2-activity-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.v2-activity-item:last-child { border-bottom: none; }
.v2-activity-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-activity-icon--credit { background: rgba(79,219,120,.12); color: #1a9e44; }
.v2-activity-icon--debit { background: rgba(229,57,53,.1); color: #e53935; }
.v2-activity-info { flex: 1; }
.v2-activity-name { font-size: 14px; font-weight: 600; color: var(--black); }
.v2-activity-date { font-size: 12px; color: var(--grey); margin-top: 2px; }
.v2-activity-amount { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.v2-activity-amount--credit { color: #1a9e44; }
.v2-activity-amount--debit { color: #e53935; }

/* ===== FOOTER SOCIAL ===== */
.v2-footer__social { display: flex; gap: 16px; align-items: center; }
.v2-footer__social-icon { color: var(--grey); display: inline-flex; align-items: center; justify-content: center; transition: color .2s; }
.v2-footer__social-icon:hover { color: var(--primary); }
a.btn-prescription { display: inline-block; text-decoration: none; }

/* =============================================================
   RESPONSIVE — Tablet (max 1024px) + Mobile (max 640px)
   ============================================================= */

/* ── TABLET ─────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Navbar */
  .v2-navbar__inner { padding: 0 24px; }
  .v2-navbar__links { gap: 16px; }
  .v2-navbar__link  { font-size: 14px; }
  .v2-navbar__auth  { gap: 8px; }
  .v2-navbar__badge { padding: 4px 8px; font-size: 12px; }

  /* Hero */
  .v2-hero { min-height: 420px; padding: 48px 24px 32px; }
  .v2-hero__title    { font-size: 36px; white-space: normal; text-align: center; }
  .v2-hero__subtitle { font-size: 18px; }
  .v2-search-inner   { width: 100%; }

  /* Prescription banner */
  .v2-prescription { padding: 24px; gap: 16px; }

  /* Services */
  .v2-services-row { gap: 12px; }

  /* Packages */
  .v2-pkg-card { flex: 0 0 calc(33.333% - 8px); min-width: 200px; }

  /* Offers */
  .v2-offer-card { flex: 0 0 calc(33.333% - 8px); min-width: 200px; }

  /* Providers */
  .v2-providers-grid { flex-wrap: wrap; gap: 12px; }
  .v2-provider-card  { flex: 0 0 calc(33.333% - 8px); }

  /* Download */
  .v2-download { gap: 24px; padding: 32px 24px; }
  .v2-download__text { width: 100%; }
  .v2-phone-mockup   { width: 220px; }

  /* Footer */
  .v2-footer { padding: 20px 24px; flex-wrap: wrap; gap: 12px; }
  .v2-footer__links { gap: 16px; flex-wrap: wrap; }

  /* Auth */
  .v2-auth-card { padding: 32px 24px; max-width: 480px; }

  /* Profile */
  .v2-profile-layout { grid-template-columns: 240px 1fr; }

  /* Select Provider */
  .v2-sp-layout { grid-template-columns: 200px 1fr 220px; gap: 16px; }

  /* Wallet hero */
  .v2-wallet-hero__help { width: 220px; }

  /* Packages page grid */
  .v2-packages-grid--full { grid-template-columns: repeat(2, 1fr); }
}


/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Navbar — collapse links/lang/auth into a hamburger-triggered dropdown */
  .v2-navbar { position: relative; }
  .v2-navbar__inner { padding: 0 16px; }
  .v2-navbar__toggle { display: flex; }
  .v2-navbar__links {
    flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height .2s ease, opacity .15s ease;
    padding: 0 16px; z-index: 1000;
  }
  .v2-navbar__links--open {
    max-height: calc(100vh - 56px); opacity: 1; visibility: visible;
    overflow-y: auto; padding: 12px 16px 20px;
  }
  .v2-navbar__link { padding: 10px 4px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .v2-navbar__lang {
    justify-content: space-between; padding: 10px 4px;
    border-bottom: 1px solid var(--border);
  }
  .v2-navbar__auth {
    flex-direction: column; align-items: stretch; gap: 8px; padding-top: 12px;
  }
  .v2-navbar__auth .btn-signin, .v2-navbar__auth .btn-register {
    width: 100%; text-align: center; padding: 12px; font-size: 14px;
  }
  /* Logged-in icon row stays horizontal and wraps rather than stacking full-width */
  .v2-navbar__auth:has(.v2-profile-dropdown) {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  }
  .v2-navbar__badge span { display: inline; }
  .v2-profile-dropdown { width: 100%; }
  .v2-profile-dropdown__toggle { width: 100%; justify-content: center; }
  .v2-profile-dropdown__panel { position: static; width: 100%; box-shadow: none; border: none; margin-top: 8px; }

  /* Hero */
  .v2-hero { min-height: 340px; padding: 40px 16px 24px; }
  .v2-hero__title    { font-size: 24px; }
  .v2-hero__subtitle { font-size: 15px; }

  /* Search box */
  .v2-search-inner   { width: 100%; }
  .v2-search-box { padding: 16px; }
  .v2-search-backdrop { display: none; }
  .v2-search-box { background: rgba(255,255,255,0.15); border-radius: 12px; backdrop-filter: blur(4px); }
  .v2-search-inner { padding: 0; gap: 0; }
  .v2-search-tabs    { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .v2-search-tabs::-webkit-scrollbar { display: none; }
  .v2-tab { flex-shrink: 0; padding: 10px 14px; font-size: 13px; color: rgba(255,255,255,.85) !important; border-bottom-color: rgba(255,255,255,.3); }
  .v2-tab--active { color: #fff !important; border-bottom: 2px solid var(--sec); }
  .v2-tab img { filter: brightness(0) invert(1) opacity(0.85); }
  .v2-tab.v2-tab--active img { filter: brightness(0) invert(1); }
  .v2-search-row { flex-direction: column; gap: 10px; }
  .v2-select-wrap, .btn-search { width: 100%; }
  .v2-select-wrap { flex: none; height: 56px; }
  .btn-search { justify-content: center; }

  /* Prescription banner */
  .v2-prescription { flex-direction: column; text-align: center; padding: 20px 16px; }
  .btn-prescription, a.btn-prescription { width: 100%; text-align: center; }
  .v2-prescription__title { font-size: 18px; white-space: normal; }

  /* Main padding */
  .v2-main { padding: 32px 16px; gap: 28px; }

  /* Services */
  .v2-services { gap: 12px; }
  .v2-services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .v2-service-card__icon { width: 48px; height: 48px; }
  .v2-service-card__desc { display: none; }

  /* Packages */
  .v2-packages { padding: 20px 16px; border-radius: 16px; }
  .v2-packages__header { flex-wrap: wrap; gap: 12px; }
  .v2-packages__title  { font-size: 22px; }
  .v2-packages__sub    { font-size: 14px; }
  .v2-pkg-card { flex: 0 0 calc(55vw); min-width: 160px; }
  .v2-pkg-card__desc { display: none; }
  .v2-pkg-card__name { font-size: 14px; }
  .v2-pkg-card__price { font-size: 13px; }
  .v2-pkg-card__tests { font-size: 12px; }

  /* Offers */
  .v2-offers { padding: 20px 16px; border-radius: 16px; }
  .v2-offer-card { flex: 0 0 calc(55vw); min-width: 160px; }
  .v2-offer-card__name { font-size: 14px; line-height: 22px; }
  .v2-offer-price { font-size: 13px; }

  /* Providers */
  .v2-providers-grid { gap: 10px; }
  .v2-provider-card  { flex: 0 0 calc(50% - 5px); }

  /* Download */
  .v2-download { flex-direction: column; padding: 24px 16px; gap: 24px; }
  .v2-download__text { width: 100%; }
  .v2-download__heading p:first-child { font-size: 20px; }
  .v2-download__heading p:last-child  { font-size: 26px; }
  .v2-phone-mockup { width: 100%; max-width: 280px; align-self: center; }
  .v2-store-buttons { flex-direction: column; gap: 10px; }
  .v2-store-btn { width: 100%; justify-content: center; }

  /* Footer */
  .v2-footer { flex-direction: column; align-items: flex-start; padding: 20px 16px; gap: 16px; }
  .v2-footer__links { gap: 12px; }
  .v2-footer__link  { font-size: 14px; }
  .v2-footer__social { flex-wrap: wrap; }

  /* Auth pages */
  .v2-auth-page { padding: 24px 16px; }
  .v2-auth-card { padding: 24px 16px; width: 100%; }

  /* Profile */
  .v2-profile-layout  { grid-template-columns: 1fr; }
  .v2-profile-sidebar { position: static; }
  .v2-profile-form-row { grid-template-columns: 1fr; }
  .v2-profile-order-tabs { flex-wrap: wrap; gap: 6px; }
  .v2-order-tab { flex: 1 1 calc(50% - 6px); text-align: center; }

  /* Notifications */
  .v2-notif-item { padding: 12px 14px; gap: 12px; }

  /* Points hero */
  .v2-points-hero { flex-direction: column; padding: 24px 20px; align-items: flex-start; }
  .v2-points-hero__value { font-size: 32px; }
  .v2-points-hero__next { align-items: flex-start; }

  /* Wallet hero */
  .v2-wallet-hero { flex-direction: column; }
  .v2-wallet-hero__balance { padding: 24px 20px; }
  .v2-wallet-hero__value   { font-size: 32px; }
  .v2-wallet-hero__help    { width: 100%; }

  /* Upload Prescription */
  .v2-rx-wrap  { flex-direction: column; padding-top: 24px; padding-bottom: 40px; gap: 32px; }
  .v2-rx-title { font-size: 24px; }
  .v2-rx-card  { padding: 20px 16px; }

  /* Select Provider */
  .v2-sp-layout { display: block; }
  .v2-sp-filter-card { display: none !important; }
  .v2-sp-cart-card   { display: none !important; }

  /* Search Services */
  .ss-prescription { flex-direction: column; padding: 0; width: 100%; max-width: 100%; }
  .ss-prescription__inner { flex-direction: column; align-items: flex-start; }
  .ss-prescription__btn { width: 100%; justify-content: center; }
  .ss-body__inner { flex-direction: column; padding: 0 16px; }
  .ss-filters { width: 100%; }
  .cs-filters { width: 100%; box-sizing: border-box; }
  .ss-cart { display: none; }

  /* About Us */
  .v2-core-values { grid-template-columns: 1fr; }

  /* Contact Us */
  .v2-contact-cards { grid-template-columns: 1fr; }
  .v2-contact-card__value { word-break: break-all; }

  /* Package details */
  .v2-pkgd-hero { flex-direction: column; }
  .v2-pkgd-hero__img { width: 100%; }
  .v2-pkgd-services  { grid-template-columns: 1fr; }

  /* Packages page */
  .v2-packages-grid--full { grid-template-columns: 1fr; }
  .v2-pkg-page-header { flex-direction: column; align-items: flex-start; }

  /* Content pages */
  .v2-content-inner { padding: 24px 16px; }
  .v2-page-title    { font-size: 24px; }

  /* Activity list */
  .v2-activity-item { padding: 12px 14px; gap: 12px; }

  /* Generic section titles */
  .v2-section-header h2 { font-size: 22px; }
}

/* =============================================================
   RESPONSIVE FIXES — override fixed pixel widths
   ============================================================= */

@media (max-width: 1024px) {
  /* Search */
  .v2-search-backdrop { width: 100%; }
  .v2-search-inner    { width: 100%; }
  .v2-search-box      { padding: 16px; align-items: center; }

  /* Hero title */
  .v2-hero__title { white-space: normal; font-size: 32px; }

  /* Prescription */
  .v2-prescription__title { white-space: normal; }

  /* Download */
  .v2-download { flex-wrap: wrap; }
  .v2-download__text { width: 100%; max-width: 100%; }

  /* Select Provider sidebars fixed widths */
  .v2-sp-layout { grid-template-columns: 180px 1fr 200px; }
}

@media (max-width: 640px) {
  /* Search backdrop + inner */
  .v2-search-backdrop { width: 100%; position: relative; border-radius: 12px; }
  .v2-search-inner    { width: 100%; }
  .v2-search-box      { padding: 12px 16px; }

  /* Hero */
  .v2-hero { padding: 32px 16px 16px; }
  .v2-hero__title    { font-size: 22px; white-space: normal; }
  .v2-hero__subtitle { font-size: 14px; }

  /* Category tabs — scroll horizontally */
  .v2-search-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Prescription banner */
  .v2-prescription { margin: 0; border-radius: 0; }
  .v2-prescription__title { font-size: 16px; white-space: normal; }
  .v2-prescription__sub   { font-size: 13px; }

  /* Services grid — already 2-col, just fix gap */
  .v2-services-row { gap: 8px; }
  .v2-service-card { padding: 12px 8px; }
  .v2-service-card__name { font-size: 13px; }
  .v2-service-card__desc { font-size: 11px; }

  /* Video card */
  .v2-video-card { height: 200px; }

  /* Packages section */
  .v2-packages { padding: 16px; margin: 0 -8px; }
  .v2-packages__title { font-size: 20px; }
  .v2-packages__sub   { font-size: 13px; margin-top: 4px; }
  .v2-pkg-card { flex: 0 0 75vw; }

  /* Offers */
  .v2-offers { padding: 16px; margin: 0 -8px; }
  .v2-offer-card { flex: 0 0 75vw; padding: 16px; }

  /* Popular providers — 2 per row */
  .v2-provider-card { flex: 0 0 calc(50% - 10px); }
  .v2-provider-card__logo { width: 60px; height: 60px; }
  .v2-provider-card__name { font-size: 12px; }

  /* Download */
  .v2-download { flex-direction: column; padding: 20px 16px; border-radius: 16px; }
  .v2-download__text  { width: 100%; }
  .v2-download__heading p:first-child { font-size: 18px; }
  .v2-download__heading p:last-child  { font-size: 22px; }
  .v2-download__sub p { font-size: 14px; }
  .v2-phone-mockup    { display: none; }
  .v2-store-buttons   { flex-direction: column; align-items: stretch; }
  .v2-store-btn       { width: 100%; max-width: 280px; }

  /* Footer */
  .v2-footer { flex-direction: column; gap: 16px; padding: 20px 16px; }
  .v2-footer__links { flex-wrap: wrap; gap: 10px; }
  .v2-footer__link  { font-size: 13px; }

  /* Navbar — ensure logo fits */
  .v2-navbar { height: 56px; }
  .v2-navbar__inner { height: 56px; }

  /* Main section gap */
  .v2-main { padding: 24px 16px; gap: 24px; }

  /* Section headers */
  .v2-section-header h2 { font-size: 20px; }
}

/* ── Search box mobile fix ─────────────────────────────── */
@media (max-width: 1024px) {
  .v2-search-box      { width: 100%; box-sizing: border-box; }
  .v2-search-backdrop { width: 100%; }
  .v2-search-inner    { width: 100%; }
  .v2-search-tabs     { max-width: 100%; overflow-x: auto; }
  .btn-search         { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .v2-search-box    { padding: 12px; }
  .v2-search-tabs   { padding-bottom: 4px; }
  .v2-tab           { padding: 8px 12px; font-size: 13px; flex-shrink: 0; }
  .v2-tab span      { white-space: nowrap; }
  .v2-search-row    { flex-direction: column; }
  .v2-select-wrap   { width: 100%; }
  .btn-search       { width: 100%; justify-content: center; }
}

/* ===== SELECT BRANCH / PATIENT INFO MODALS ===== */
.sb-modal { background: #fff; border-radius: 16px; border: none; width: 100%; max-width: 560px; }
.sb-modal-header { padding: 24px 32px 0; border-bottom: none; }
.sb-modal-body { padding: 12px 32px 0; }
.sb-actions { padding: 20px 32px 28px; border-top: none; }
.sb-title { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 6px; }
.sb-subtitle { font-size: 14px; color: var(--grey); }
.sb-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.sb-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sb-tab { padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--grey); cursor: pointer; font-family: inherit; transition: all .15s; }
.sb-tab--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sb-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.sb-branch-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s; }
.sb-branch-card:hover { border-color: var(--primary); }
.sb-branch-card--selected { border-color: var(--sec); background: rgba(79,219,120,.06); }
.sb-branch-info { flex: 1; }
.sb-branch-name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.sb-branch-addr { font-size: 12px; color: var(--grey); display: flex; align-items: center; gap: 4px; }
.sb-branch-days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sb-branch-stars { display: flex; gap: 2px; flex-shrink: 0; }
.sb-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.sb-cancel { color: var(--grey); font-size: 14px; text-decoration: none; flex-shrink: 0; }
.sb-cancel:hover { color: var(--black); }
.sb-confirm { flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.sb-confirm:hover { background: #033356; }
.sb-field { margin-bottom: 16px; }
.sb-label { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.sb-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--black); outline: none; box-sizing: border-box; }
.sb-input:focus { border-color: var(--primary); }

/* ===== CART PAGE ===== */
.cart-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.cart-items-count { font-size: 14px; color: var(--grey); margin-top: 4px; }
.cart-clear-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; color: #e53935; cursor: pointer; font-family: inherit; transition: background .15s; }
.cart-clear-btn:hover { background: rgba(229,57,53,.06); }
.cart-empty { text-align: center; padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--grey); }
.cart-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cart-group { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cart-group__header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #f8f9fa; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cart-group__provider { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.cart-group__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.cart-group__logo-placeholder { width: 48px; height: 48px; background: var(--border); border-radius: 8px; flex-shrink: 0; }
.cart-group__name { font-size: 15px; font-weight: 700; color: var(--black); }
.cart-group__branch { font-size: 12px; color: var(--grey); }
.cart-group__patient { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--black); flex-shrink: 0; }
.cart-group__price-badge { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; padding: 6px 16px; border-radius: 20px; white-space: nowrap; margin-left: auto; }
.cart-group__tests { padding: 12px 20px; display: flex; flex-direction: column; gap: 8px; }
.cart-group__test-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--black); padding: 6px 0; border-bottom: 1px solid var(--border); }
.cart-group__test-row:last-child { border-bottom: none; }
.cart-group__test-price { color: var(--sec); font-weight: 600; }
.cart-group__actions { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); }
.cart-action-link { background: none; border: none; font-size: 13px; color: var(--primary); cursor: pointer; font-family: inherit; text-decoration: none; padding: 0; }
.cart-action-link:hover { text-decoration: underline; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 2px solid var(--border); flex-wrap: wrap; gap: 16px; }
.cart-footer__total { font-size: 18px; font-weight: 700; color: var(--black); display: flex; gap: 16px; align-items: center; }
.cart-footer__total strong { color: var(--sec); font-size: 22px; }
.cart-payall-btn { padding: 14px 48px; font-size: 15px; }
.cart-group__info { flex: 1; min-width: 0; }
.cart-group__addr { font-size: 12px; color: var(--grey); margin-top: 2px; }
.cart-group__timing { font-size: 12px; color: var(--grey); }
.cart-remove-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--grey); cursor: pointer; padding: 0; transition: color .15s, border-color .15s, background .15s; flex-shrink: 0; }
.cart-remove-btn:hover { color: #e53935; border-color: #e53935; background: #fff5f5; }
.btn-pay-group { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-pay-group:hover { opacity: .88; }
.cart-edit-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--primary); border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--primary); cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, color .15s; }
.cart-edit-btn:hover { background: var(--primary); color: #fff; }
.cart-edit-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-pick-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.sp-pick-card:hover { border-color: var(--primary); background: #f0f7ff; }
.sp-pick-card--selected { border-color: var(--primary); background: #e8f3ff; }
.sp-pick-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.sp-pick-info { display: flex; flex-direction: column; gap: 2px; }
.sp-pick-price { font-size: 12px; color: var(--sec); font-weight: 600; }
.cs-svc-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.cs-svc-row:last-child { border-bottom: none; }
.cs-svc-name { flex: 1; }
.cs-svc-price { font-size: 13px; color: var(--sec); font-weight: 600; white-space: nowrap; }
.btn-primary-v2 { display: inline-block; background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none; transition: opacity .15s; }
.btn-primary-v2:hover { opacity: .88; color: #fff; text-decoration: none; }
.cart-payment-panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-top: 24px; }
.cart-payment-section { margin-bottom: 28px; }
.cart-payment-section:last-child { margin-bottom: 0; }
.cart-payment-section__title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.cart-wallet-balance { font-size: 20px; font-weight: 700; color: var(--sec); margin: 0; }
.cart-promo-row { display: flex; gap: 12px; align-items: center; }
.cart-promo-row .sb-input { flex: 1; }
.cart-totals { display: flex; flex-direction: column; gap: 8px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--black); padding: 6px 0; }
.cart-total-row--final { font-size: 16px; font-weight: 700; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ===== CONFIRM PAYMENT RESULT PAGE ===== */
.cp-result-card { max-width: 480px; margin: 48px auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 48px 36px; text-align: center; }
.cp-result-icon { margin-bottom: 20px; }
.cp-result-icon--success, .cp-result-icon--fail { display: inline-block; }
.cp-result-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.cp-result-title--success { color: #1a9e44; }
.cp-result-title--fail { color: #e53935; }
.cp-result-msg { font-size: 14px; color: var(--grey); margin-bottom: 28px; }
.cp-result-actions { margin-top: 28px; }

/* ===== CHECKOUT PAGE ===== */
.cp-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; margin-top: 32px; }
.cp-payment { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.cp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.cp-tab { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: #fff; color: var(--grey); cursor: pointer; font-family: inherit; transition: all .15s; }
.cp-tab--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cp-field { margin-bottom: 16px; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-label { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.cp-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--black); outline: none; box-sizing: border-box; }
.cp-input:focus { border-color: var(--primary); }
.cp-confirm-btn { width: 100%; padding: 14px; font-size: 15px; margin-top: 8px; }
.cp-fawry-note { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 20px; background: #f8f9fa; border-radius: 10px; padding: 16px; }
.cp-summary { position: sticky; top: 80px; }
.cp-summary-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.cp-summary-title { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 20px; }
.cp-summary-provider { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cp-summary-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.cp-summary-sp-name { font-size: 14px; font-weight: 700; color: var(--black); }
.cp-summary-branch { font-size: 12px; color: var(--grey); }
.cp-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--black); padding: 6px 0; }
.cp-summary-price { color: var(--sec); font-weight: 600; }
.cp-summary-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.cp-summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; font-size: 15px; color: var(--black); }
.cp-summary-total strong { color: var(--sec); font-size: 20px; font-weight: 700; }

/* ===== MY RESULTS PAGE ===== */
.mr-list { display: flex; flex-direction: column; gap: 12px; }
.mr-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mr-card__provider { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.mr-card__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.mr-card__logo-placeholder { width: 48px; height: 48px; background: var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mr-card__provider-name { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.mr-card__branch { font-size: 12px; color: var(--grey); margin-bottom: 2px; }
.mr-card__order-ref { font-size: 12px; color: var(--primary); display: block; }
.mr-card__type-badge { background: rgba(79,219,120,.12); color: #1a9e44; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; align-self: flex-start; }
.mr-card__col { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--black); flex-shrink: 0; }
.mr-card__btn { background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 8px; text-decoration: none; white-space: nowrap; flex-shrink: 0; margin-left: auto; transition: background .2s; }
.mr-card__btn:hover { background: #033356; color: #fff; }

/* ===== ORDER DETAILS PAGE ===== */
.od-layout { display: flex; flex-direction: column; gap: 20px; }
.od-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.od-provider-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.od-provider-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; margin-bottom: 8px; }
.od-provider-name { font-size: 18px; font-weight: 700; color: var(--black); }
.od-provider-branch { font-size: 13px; color: var(--grey); }
.od-order-ref { font-size: 13px; color: var(--primary); font-weight: 600; }
.od-scan-btn { display: inline-flex; align-items: center; gap: 8px; background: #f0f4ff; color: var(--primary); border: 1px solid #c7d6f0; border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 8px; align-self: flex-start; transition: background .2s; }
.od-scan-btn:hover { background: #dce9ff; }
.od-patient-card { background: #f8f9fa; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.od-section-label { font-size: 13px; font-weight: 600; color: var(--grey); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.od-patient-name { font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.od-patient-phone { font-size: 14px; color: var(--grey); }
.od-results-carousel { display: flex; gap: 12px; flex-wrap: wrap; }
.od-result-thumb { width: 120px; height: 90px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.od-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-status-badge { display: flex; align-items: center; gap: 12px; background: rgba(79,219,120,.08); border: 1px solid rgba(79,219,120,.3); border-radius: 10px; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--black); }
.od-services { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.od-service-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--black); }
.od-service-row:last-child { border-bottom: none; }
.od-service-price { color: var(--sec); font-weight: 600; }
.od-total-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--black); border-top: 2px solid var(--border); margin-top: 8px; }
.od-total-price { color: var(--sec); font-size: 18px; }
.od-actions { display: flex; align-items: center; gap: 16px; }
.od-cancel-btn { background: none; border: none; color: var(--grey); font-size: 14px; cursor: pointer; font-family: inherit; padding: 0; }
.od-cancel-btn:hover { color: #e53935; }
.od-download-btn { background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 32px; border-radius: 10px; text-decoration: none; flex: 1; text-align: center; transition: background .2s; }
.od-download-btn:hover { background: #033356; color: #fff; }

/* ===== ADD REVIEW PAGE ===== */
.ar-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; max-width: 640px; margin: 0 auto; }
.ar-modal-header { border-bottom: none; padding-bottom: 0; }
.ar-provider { text-align: center; padding-bottom: 8px; }
.ar-provider__logo { width: 80px; height: 80px; object-fit: contain; border-radius: 14px; margin: 0 auto 12px; display: block; }
.ar-provider__name { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.ar-provider__branch { font-size: 13px; color: var(--grey); }
.ar-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.ar-question { font-size: 16px; font-weight: 600; color: var(--black); text-align: center; margin-bottom: 16px; }
.ar-stars { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.ar-star { font-size: 36px; color: #d1d5db; cursor: pointer; transition: color .15s; line-height: 1; user-select: none; }
.ar-star.active { color: #f5a623; }
.ar-star:hover { color: #f5a623; }
.ar-rating-label { text-align: center; font-size: 14px; color: var(--grey); min-height: 20px; margin-bottom: 24px; }
.ar-field { margin-bottom: 24px; }
.ar-label { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.ar-textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 120px; color: var(--black); outline: none; box-sizing: border-box; }
.ar-textarea:focus { border-color: var(--primary); }
.ar-actions { display: flex; align-items: center; gap: 16px; }
.ar-cancel-btn { color: var(--grey); font-size: 14px; text-decoration: none; flex-shrink: 0; }
.ar-cancel-btn:hover { color: var(--black); }
.ar-submit-btn { flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.ar-submit-btn:hover { background: #033356; }

/* ===== ClinicSearch ===== */
.cs-doctor-list { display: flex; flex-direction: column; gap: 16px; }
.cs-doctor-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.cs-doctor-card__avatar { flex-shrink: 0; }
.cs-doctor-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: block; }
.cs-doctor-avatar--placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg); }
.cs-doctor-card__left { flex: 1; }
.cs-doctor-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
.cs-doctor-name { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.cs-doctor-trophies { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; }
.cs-trophy-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; }
.cs-doctor-specs { font-size: 13px; color: var(--primary); margin-bottom: 6px; }
.cs-doctor-provider { font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.cs-doctor-service { font-size: 13px; color: var(--grey); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.cs-doctor-days { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-day-badge { background: #f0f7ff; color: var(--primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.cs-doctor-price { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.cs-doctor-price strong { color: var(--primary); }
.cs-book-btn { white-space: nowrap; font-size: 14px; padding: 10px 20px; }
/* Booking modal */
.cs-booking-label { font-size: 13px; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: .04em; }
.cs-booking-doc { background: var(--bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; }
.sb-confirm:disabled { opacity: .4; cursor: not-allowed; }
/* Provider selection modal */
.cs-provider-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.cs-provider-card:hover { border-color: var(--primary); }
.cs-provider-card--selected { border-color: var(--primary); background: #f0f6ff; }
.cs-provider-card__info { flex: 1; }
.cs-provider-card__name { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.cs-provider-card__service { font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.cs-provider-card__days { display: flex; flex-wrap: wrap; gap: 5px; }
.cs-provider-card__price { font-size: 15px; font-weight: 700; color: var(--primary); white-space: nowrap; }
/* Doctor card provider rows */
.cs-doctor-provider-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--grey); margin-top: 4px; }
.cs-day-badge--sm { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--bg); color: var(--primary); font-weight: 600; border: 1px solid var(--border); }
.cs-provider-logo-sm { width: 20px; height: 20px; min-width: 20px; max-width: 20px; max-height: 20px; object-fit: contain; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.cs-booking-doc__name { font-size: 16px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.cs-booking-doc__specs { font-size: 13px; color: var(--primary); margin-bottom: 3px; }
.cs-booking-doc__provider { font-size: 13px; color: var(--grey); }
.cs-day-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cs-day-btn { padding: 10px 18px; border: 2px solid var(--border); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; color: var(--black); cursor: pointer; transition: all .15s; font-family: inherit; }
.cs-day-btn:hover { border-color: var(--primary); color: var(--primary); }
.cs-day-btn--active { border-color: var(--primary); background: var(--primary); color: #fff; }
.cs-date-scroll { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.cs-date-scroll::-webkit-scrollbar { height: 4px; }
.cs-date-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.cs-date-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 12px 10px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s; flex-shrink: 0; user-select: none; }
.cs-date-card:hover { border-color: var(--primary); }
.cs-date-card--active { border-color: var(--primary); background: var(--primary); }
.cs-date-card__day { font-size: 12px; font-weight: 700; color: var(--black); }
.cs-date-card__date { font-size: 11px; font-weight: 500; color: var(--grey); margin-top: 5px; }
.cs-date-card--active .cs-date-card__day { color: #fff; }
.cs-date-card--active .cs-date-card__date { color: rgba(255,255,255,.85); }
.cs-time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cs-time-btn { padding: 9px 6px; border: 2px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--black); cursor: pointer; transition: all .15s; font-family: inherit; text-align: center; }
.cs-time-btn:hover { border-color: var(--primary); color: var(--primary); }
.cs-time-btn--active { border-color: var(--primary); background: var(--primary); color: #fff; }
@media (max-width: 640px) {
  .cs-doctor-card { flex-direction: column; }
  .cs-doctor-card__right { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .cs-time-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Doctor Listing Page (Doctors/Index) ===== */
.dr-list { display: flex; flex-direction: column; gap: 16px; }
.dr-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; align-items: flex-start; }
.dr-card__photo { position: relative; flex-shrink: 0; }
.dr-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.dr-avatar--placeholder { width: 72px; height: 72px; border-radius: 50%; background: #f0f2f4; display: flex; align-items: center; justify-content: center; }
.dr-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.dr-badge--exclusive { background: linear-gradient(135deg,#044068,#0a6ba0); color: #fff; }
.dr-card__info { flex: 1; min-width: 0; }
.dr-name { font-weight: 700; font-size: 15px; color: var(--black); text-decoration: none; display: block; }
.dr-name:hover { color: var(--primary); text-decoration: underline; }
.dr-specs { font-size: 13px; color: var(--grey); margin: 3px 0 6px; }
.dr-rating-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dr-rating-num { font-weight: 700; font-size: 13px; color: #f5a623; }
.dr-reviews { font-size: 12px; color: var(--grey); }
.dr-next-slot { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #1a7a3a; margin-top: 6px; }
.dr-practices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dr-practice-chip { display: inline-flex; align-items: center; gap: 5px; background: #f0f5ff; border-radius: 20px; padding: 3px 10px; font-size: 12px; color: var(--primary); }
.dr-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.dr-price-block { display: flex; flex-direction: column; align-items: flex-end; }
.dr-price-original { font-size: 12px; color: var(--grey); text-decoration: line-through; }
.dr-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.dr-book-btn { white-space: nowrap; font-size: 13px; padding: 8px 16px; }
.dr-load-more { display: flex; justify-content: center; padding: 20px 0; }
@media (max-width: 640px) {
  .dr-card { flex-wrap: wrap; }
  .dr-card__right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ===== Doctor Profile Page (DoctorProfile/Index) ===== */
.dp-header { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; }
.dp-header__photo-wrap { flex-shrink: 0; }
.dp-header__photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); }
.dp-header__photo--placeholder { width: 100px; height: 100px; border-radius: 50%; background: #f0f2f4; display: flex; align-items: center; justify-content: center; }
.dp-header__name { font-size: 22px; font-weight: 700; color: var(--black); margin: 0; }
.dp-header__specs { font-size: 14px; color: var(--grey); margin: 4px 0; }
.dp-trophies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dp-trophy-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff8e1; border: 1px solid #f5a623; color: #9a6500; border-radius: 20px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.dp-loyalty { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9a6500; margin-top: 8px; }
.dp-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.dp-tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--grey); cursor: pointer; transition: color .2s, border-color .2s; }
.dp-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.dp-branch-panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.dp-fee-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-fee { font-size: 18px; font-weight: 700; color: var(--primary); }
.dp-address { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.dp-schedule__title, .dp-section-title { font-weight: 700; color: var(--black); margin: 0 0 10px; font-size: 14px; }
.dp-schedule__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.dp-schedule__slot { background: #f8f9fa; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; }
.dp-schedule__slot--clickable { cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.dp-schedule__slot--clickable:hover { background: #e8f4fd; box-shadow: 0 2px 8px rgba(4,64,104,0.10); }
.dp-schedule__slot--active { background: var(--primary) !important; box-shadow: 0 2px 8px rgba(4,64,104,0.20); }
.dp-schedule__slot--active .dp-schedule__day,
.dp-schedule__slot--active .dp-schedule__time,
.dp-schedule__slot--active svg { color: #fff !important; stroke: #fff !important; }
.dp-schedule__day { font-weight: 600; font-size: 13px; color: var(--primary); }
.dp-schedule__time { font-size: 12px; color: var(--grey); }
/* Doctor Book Modal */
.dpb-day-row { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.dpb-day-name { display: block; font-weight: 700; font-size: 15px; color: var(--primary); }
.dpb-day-time { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.dp-photos__strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.dp-photo-thumb { width: 100px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.dp-book-row { display: flex; justify-content: flex-end; margin-top: 16px; }
.dp-book-btn { min-width: 160px; text-align: center; }
.dp-accordion { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.dp-accordion__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--black); cursor: pointer; }
.dp-accordion__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 16px; }
.dp-accordion--open .dp-accordion__body { max-height: 600px; padding: 0 16px 14px; }
.dp-accordion--open .dp-accordion__toggle svg { transform: rotate(180deg); }
@media (max-width: 640px) {
  .dp-header { flex-direction: column; align-items: center; text-align: center; }
  .dp-trophies { justify-content: center; }
}

/* ===== Hospital Profile Page (Hospital/Index) ===== */
.hosp-cover-carousel { border-radius: 0 0 12px 12px; overflow: hidden; max-height: 300px; }
.hosp-cover-img { max-height: 300px; object-fit: cover; }
.hosp-reviews-summary { display: flex; gap: 32px; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hosp-reviews-overall { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.hosp-overall-num { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1; }
.hosp-reviews-breakdown { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hosp-breakdown-row { display: flex; align-items: center; gap: 8px; }
.hosp-breakdown-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.hosp-breakdown-fill { height: 100%; background: #f5a623; border-radius: 4px; transition: width .4s; }
.hosp-review-card { border-bottom: 1px solid var(--border); padding: 14px 0; }
.hosp-review-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.hosp-reviewer { font-weight: 600; font-size: 14px; color: var(--black); }
.hosp-review-date { font-size: 12px; color: var(--grey); }
.hosp-review-comment { font-size: 13px; color: #444; margin: 6px 0 0; line-height: 1.6; }
.dp-clinic-rating { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--primary); font-size: 14px; }
@media (max-width: 640px) {
  .hosp-reviews-summary { flex-direction: column; gap: 16px; }
}

/* ===== Incomplete Orders Panel ===== */
.v2-incomplete-panel { position: fixed; top: 0; right: -400px; width: 360px; height: 100vh; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.13); z-index: 1500; display: flex; flex-direction: column; transition: right 0.3s ease; }
[dir="rtl"] .v2-incomplete-panel { right: auto; left: -400px; box-shadow: 4px 0 24px rgba(0,0,0,0.13); transition: left 0.3s ease; }
.v2-incomplete-panel--open { right: 0; }
[dir="rtl"] .v2-incomplete-panel--open { left: 0; right: auto; }
.v2-incomplete-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.28); z-index: 1499; display: none; }
.v2-incomplete-overlay--visible { display: block; }
.v2-incomplete-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--primary); font-size: 15px; }
.v2-incomplete-panel__close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--grey); line-height: 1; padding: 4px 8px; }
.v2-incomplete-panel__body { flex: 1; overflow-y: auto; padding: 16px; }
.v2-incomplete-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #f9fafb; }
.v2-incomplete-card__provider { font-weight: 600; color: var(--primary); margin-bottom: 3px; font-size: 14px; }
.v2-incomplete-card__branch { color: var(--grey); font-size: 12px; margin-bottom: 8px; }
.v2-incomplete-card__services { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.v2-incomplete-chip { background: #e8f4fd; color: #0066cc; border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.v2-incomplete-card__price { font-weight: 600; color: var(--sec); margin-bottom: 8px; font-size: 13px; }
.v2-incomplete-card__btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 14px; cursor: pointer; width: 100%; font-weight: 500; }
.v2-incomplete-card__btn:hover { opacity: 0.88; }
.v2-incomplete-empty { text-align: center; color: var(--grey); padding: 40px 0; font-size: 14px; }

/* ===== Complete Order Dialog ===== */
.v2-complete-dialog { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1600; display: none; align-items: center; justify-content: center; }
.v2-complete-dialog--open { display: flex; }
.v2-complete-dialog__box { background: #fff; border-radius: 14px; padding: 28px; width: 420px; max-width: 95vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
.v2-complete-dialog__title { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.v2-complete-dialog__services-title { font-weight: 600; color: var(--primary); font-size: 13px; margin-bottom: 6px; }
.v2-complete-dialog__label { display: block; font-size: 13px; font-weight: 500; color: var(--black); margin-bottom: 4px; margin-top: 14px; }
.v2-complete-dialog select, .v2-complete-dialog input[type="date"] { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: #fff; }
.v2-complete-dialog select:focus, .v2-complete-dialog input[type="date"]:focus { border-color: var(--primary); }
.v2-complete-dialog__actions { display: flex; gap: 10px; margin-top: 20px; }
.v2-complete-dialog__btn-confirm { flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 12px; font-size: 15px; cursor: pointer; font-weight: 600; }
.v2-complete-dialog__btn-confirm:hover { opacity: 0.88; }
.v2-complete-dialog__btn-cancel { flex: 1; background: none; color: var(--grey); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-size: 15px; cursor: pointer; }
@media (max-width: 640px) {
  .v2-incomplete-panel { width: 100vw; right: -100vw; }
  [dir="rtl"] .v2-incomplete-panel { left: -100vw; }
}
