@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
  --font-body:
    "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-heading:
    "SF Pro Display", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --kbz-blue-1: #1a73e8;
  --kbz-blue-2: #0f5fc5;
  --kbz-green-1: #16a26f;
  --kbz-green-2: #0d7f56;
}

/* Body */
body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.5;
  letter-spacing: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p,
li,
small {
  line-height: 1.6;
}

/* Premium UI baseline */
.card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.btn,
button {
  border-radius: 12px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.btn:active,
button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}

/* Scroll Bar */
::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  height: 6px;
  border: 4px solid transparent;
  background-clip: padding-box;
  -webkit-border-radius: 7px;
  border-radius: 7px;
  background-color: rgba(0, 0, 0, 0.15);
  -webkit-box-shadow:
    inset -1px -1px 0 rgba(0, 0, 0, 0.05),
    inset 1px 1px 0 rgba(0, 0, 0, 0.05);
  box-shadow:
    inset -1px -1px 0 rgba(0, 0, 0, 0.05),
    inset 1px 1px 0 rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar {
  width: 4px;
  background-color: #ffffff;
}

::-webkit-scrollbar-thumb {
  height: 50px;
  background: hsla(0, 0%, 53.3%, 0.4);
}

.landing-slider.slick-initialized,
.top-doctors.slick-initialized,
.available-doctor.slick-initialized,
.recent-doctors.slick-initialized {
  visibility: visible;
  opacity: 1;
}

.landing-slider,
.top-doctors,
.available-doctor,
.recent-doctors {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
}

.cw-30 {
  width: 30px;
}

.osahan-page-footer .display-1 {
  font-size: 43px;
}

a {
  text-decoration: none;
}

.skip {
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

/* Get Started */
.bg-shadow {
  box-shadow: 0 10px 33px -1px lightblue;
}

/* End Get Started */

/* Choose Wallet */
.arrow-left {
  width: 33px;
  height: 33px;
}

/* End Choose Wallet */

/* Homepage */
.w-ui {
  width: 35px;
  height: 35px;
}

.seller-item {
  width: 56px;
  height: 56px;
}

.slick-dots {
  position: unset;
  left: 0 !important;
  right: 0 !important;
  text-align: center;
}

.osahan-page-footer .fs-1 {
  font-size: 23px !important;
  min-width: 38px;
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.osahan-page-footer .bg-dark.rounded-pill {
  min-width: 38px;
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.sun-glass {
  width: 19px;
}

/* End Homepage */

/* Trending */
.trending-size {
  font-size: 8px !important;
}

.top-collection {
  background-image: url("..//img/intro-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  width: 48px;
  height: 48px;
}

.top-collection-item {
  width: 22px;
  height: 22px;
}

.top-collection-2 {
  background-image: url("..//img/intro-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  width: 48px;
  height: 48px;
}

.detail-before {
  background-image: url("..//img/intro-1.png");
  background-size: cover;
  background-repeat: no-repeat;
}

.w-close-btn {
  width: 48px;
  height: 48px;
}

/* End Trending */

/* Detail Page */
.light-color {
  background-color: #fafafb;
}

.detail-arrow {
  width: 33px;
  height: 33px;
  background-color: #e6e8ec;
}

.detail-primary {
  background-color: #e6e8ec;
}

.perperzon {
  width: 28px;
  height: 28px;
}

.best-seller-view .img-fluid {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
}

.best-seller-view-badge {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 19px;
  height: 19px;
  font-size: 11px;
}

/* End Detail Page */

/* Notification */
.balence-item {
  width: 48px;
  height: 48px;
  background-color: #e6e8ec;
}

.notifiction-item {
  width: 48px;
  height: 48px;
}

.space {
  width: 50px;
  height: 50px;
}

.vh-result {
  height: 637px;
}

/* End Notification */

/* Install eSIM */
.quick-install-native {
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 100%);
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  padding: 14px;
}

.quick-install-label {
  color: #1f2a44;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.quick-install-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.quick-install-btn {
  align-items: center;
  background: linear-gradient(135deg,
      var(--kbz-blue-1) 0%,
      var(--kbz-blue-2) 100%);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  width: 100%;
}

.quick-install-btn:hover,
.quick-install-btn:focus {
  color: #fff;
  filter: brightness(1.04);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.34);
}

.quick-install-btn:active {
  transform: translateY(1px);
}

.quick-install-btn.android {
  background: linear-gradient(135deg,
      var(--kbz-blue-1) 0%,
      var(--kbz-blue-2) 100%);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
}

.quick-install-btn.android:hover,
.quick-install-btn.android:focus {
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.34);
}

/* @media (min-width: 420px) {
  .quick-install-grid {
    grid-template-columns: 1fr 1fr;
  }
} */

/* End Install eSIM */

/* Profile Page */
.profile-top {
  height: 200px;
}

.profile-content-item {
  width: 134px;
  border: 12px solid white;
}

.profile-content {
  margin-top: -91px;
}

.card-item-size {
  font-size: 13px;
}

.edit-profile {
  width: 88px;
}

/* End Profile Page */

/* Bootstrap Custom */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 22px;
  font-weight: 600;
}

.btn-primary,
.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-outline-primary {
  background: rgb(0 86 179 / 12%);
  border-color: rgb(0 86 179 / 20%);
  color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-secondary {
  border-color: #dee2e6;
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  background: #dee2e6;
  color: #000;
  border-color: #d8d8d8;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: var(--primary-color);
}

.nav-pills .tab-pill.active,
.nav-pills .show>.tab-pill {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  color: #ffffff;
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.28);
}

.nav-link,
.nav-link:hover {
  color: var(--primary-color);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-color);
}

:focus {
  box-shadow: none !important;
}

/* End Bootstrap Custom */

.form-check-input {
  transform: scale(1.6);
  cursor: pointer;
}

/* Coverage Accordion Custom */
.coverage-accordion-button {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a73e8;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  min-height: auto;
}

.coverage-accordion-button:not(.collapsed) {
  background-color: transparent !important;
}

.coverage-accordion-button::after {
  margin-left: auto;
}

/* Circle Button */
.small-circle-btn {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  font-size: 20px !important;
  /* Reduced to fit better */
  line-height: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

/*homepage css*/

:root {
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --primary-rgb: 26, 115, 232;
  --bs-primary: #1a73e8;
  --bs-primary-rgb: 26, 115, 232;
  --bs-link-color: #1a73e8;
  --bs-link-hover-color: #1557b0;
  --secondary-color: #34a853;
  --success-color: var(--secondary-color);
  --text-dark: #212529;
  --text-light: #6c757d;
  --text-muted: #9e9e9e;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --border-radius-lg: 20px;
}

@supports (color: color-mix(in srgb, black, white)) {
  :root {
    --secondary-color: color-mix(in srgb,
        var(--primary-color) 22%,
        #34a853 78%);
  }
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  letter-spacing: 0;
  background-color: var(--bg-light);
  overflow-x: hidden;
  padding-bottom: 96px;
  /* Space for bottom nav */
}

/* Top Navigation Bar - Mobile Optimized */
.top-nav {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icons {
  display: flex;
  gap: 16px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  position: relative;
}

.nav-icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section - Mobile First */
.hero-mobile {
  background: linear-gradient(180deg, #0056b3 0%, #1a73e8 100%) !important;
  padding: 24px 0 32px;
  color: white;
}

.hero-title {
  font-size: clamp(1.15rem, 4.8vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.84rem, 3.2vw, 1.05rem);
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.45;
  white-space: normal;
}

/* Search Bar - Mobile Optimized */
.search-container {
  position: relative;
  margin: 0 16px;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Quick Actions */
.quick-actions {
  padding: 16px;
  background: var(--bg-white);
  margin: -16px 16px 16px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.quick-action-btn {
  flex: 1;
  padding: 12px;
  background: var(--bg-light);
  border: none;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
}

.quick-action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 12px;
}

.section-title {
  font-size: clamp(1rem, 3.8vw, 1.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.section-link {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Destinations Carousel */
.destinations-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 16px 18px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-left: 0;
  overscroll-behavior-x: contain;
  mask-image: linear-gradient(to right,
      transparent 0,
      black 10px,
      black calc(100% - 10px),
      transparent 100%);
}

.destinations-scroll::-webkit-scrollbar {
  display: none;
}

.destination-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 68px;
  white-space: normal;
  font-weight: 600;
  font-size: clamp(0.72rem, 2.6vw, 0.86rem);
  color: #334155;
  border: none;
  box-shadow: none;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.destination-chip.active {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.destination-chip:focus-visible {
  outline: none;
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.destination-chip:active {
  transform: scale(0.98);
}

.destination-chip .flag {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.destination-chip .destination-name {
  line-height: 1.2;
  text-align: center;
}

.destination-chip.active .flag {
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.24);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  transform: translateY(-1px);
}

.destination-chip.active .destination-name {
  color: var(--primary-dark);
}

@media (max-width: 575.98px) {
  .destinations-scroll {
    gap: 8px;
    padding: 8px 12px 16px;
    scroll-padding-left: 12px;
  }

  .destination-chip {
    min-width: 60px;
    font-size: 0.7rem;
  }

  .destination-chip .flag {
    width: 46px;
    height: 46px;
    font-size: 1.18rem;
  }
}

/* Promo Banner */
.promo-banner {
  margin: 0 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-sm);
  padding: 16px 14px;
  color: white;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: visible;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.one-time {
  position: relative;
  padding-bottom: clamp(18px, 4.8vw, 30px);
}

.one-time .slick-dots {
  position: absolute !important;
  bottom: 0px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: clamp(2px, 0.7vw, 4px) clamp(6px, 1.8vw, 10px);
}

.one-time .slick-dots li {
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;
  margin: 0 clamp(3px, 1vw, 5px);
  padding: 0;
}

@media (max-width: 575.98px) {
  .one-time {
    padding-bottom: 24px;
  }

  .one-time .slick-dots {
    bottom: 0px;
    padding: 2px 6px;
  }

  .one-time .slick-dots li {
    margin: 0 3px;
  }
}

.one-time+.section-header {
  padding-top: 10px;
}

.one-time .slick-dots li button {
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;
  line-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.one-time .slick-dots li button:before {
  content: "";
  width: 8px;
  height: 8px;
  position: static;
  top: auto;
  left: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: rgba(25, 25, 25, 0.4);
  opacity: 1 !important;
  transform: scale(0.82);
  transform-origin: center;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
  display: block;
}

.one-time .slick-dots li.slick-active button:before {
  background-color: var(--primary-color);
  opacity: 1 !important;
  transform: scale(1);
  box-shadow: 0 1px 6px rgba(var(--primary-rgb), 0.35);
}

.promo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.promo-content {
  position: relative;
  z-index: 1;
}

.promo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.promo-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
}

.promo-subtitle {
  font-size: 0.78rem;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 575.98px) {
  .promo-banner {
    min-height: 120px;
    padding: 14px 12px;
  }

  .promo-title {
    font-size: 0.92rem;
    margin-bottom: 7px;
  }

  .promo-subtitle {
    font-size: 0.74rem;
    line-height: 1.45;
  }
}

/* Offer Cards - Mobile Optimized */
.offers-container {
  padding: 0 16px 16px;
}

.offer-card-mobile {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.offer-card-mobile:active {
  transform: scale(0.98);
  border-color: var(--primary-color);
}

.offer-header-mobile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.offer-title-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.offer-icon-mobile {
  width: 35px;
  height: 35px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.offer-title-mobile {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.offer-badge-mobile {
  background: #fff3cd;
  color: #856404;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.offer-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.offer-stat {
  flex: 1;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.offer-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.offer-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.offer-footer-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.offer-price-mobile {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--success-color);
}

.offer-btn-mobile {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 7px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.offer-location {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

/* How It Works - Mobile */
.how-it-works-mobile {
  background: var(--bg-white);
  padding: 24px 16px;
  margin: 16px 0;
}

.step-mobile {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.step-mobile:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--primary-light);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-title-mobile {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.step-description-mobile {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Testimonials Carousel */
.testimonials-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 16px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-card-mobile {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.testimonial-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.author-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-mobile {
  display: flex;
  gap: 2px;
  color: #ffc107;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Customer Reviews Page */
.reviews-page {
  padding: 10px 16px 118px;
}

.reviews-summary-card {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
  padding: 16px;
  margin-bottom: 14px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.reviews-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reviews-score {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.reviews-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reviews-list .testimonial-card-mobile {
  flex: 1 1 auto;
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
}

.review-compose-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-top: 10px;
}

.review-compose-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.review-input {
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #fff;
}

.review-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.review-textarea {
  min-height: 96px;
  resize: vertical;
}

.rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
}

.rating-star-btn {
  border: none;
  background: transparent;
  color: #c9d3df;
  font-size: 1.25rem;
  padding: 2px;
  line-height: 1;
}

.rating-star-btn.active {
  color: #ffc107;
}

.review-submit-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}

.review-submit-btn:active {
  transform: translateY(0);
}

/* Review FAB */
.review-fab {
  position: fixed;
  bottom: 116px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.review-fab:active {
  transform: scale(0.93);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.28);
}

/* Review bottom sheet backdrop */
.review-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.review-sheet-backdrop.open {
  display: block;
  opacity: 1;
}

/* Review bottom sheet */
.review-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 36px;
  z-index: 1051;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.review-sheet.open {
  transform: translateY(0);
}

.review-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d8e0ea;
  margin: 0 auto 16px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  padding: 0px;
  z-index: 1000;
  pointer-events: none;
  max-height: 82px;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: #dee2e6;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  pointer-events: auto;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  text-decoration: none;
  color: #77828f;
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  background: none;
  border-radius: 14px;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease;
}

.bottom-nav-item i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #5f6b78;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.bottom-nav-item span {
  line-height: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
  color: #1f2a37;
}

.bottom-nav-item.active {
  color: #0f172a;
  background: rgba(var(--primary-rgb), 0.08);
}

.bottom-nav-item.active i {
  color: #ffffff;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.35);
  transform: translateY(-1px);
}

/* Pages that have both a bottom nav and a persistent action bar */
.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 998;
}

.buy-bar.buy-bar-floating {
  bottom: calc(96px + env(safe-area-inset-bottom));
  padding-left: 14px;
  padding-right: 14px;
}

.buy-bar.buy-bar-floating .btn {
  width: clamp(220px, calc(100vw - 28px), 420px);
  min-height: 46px;
}

/* Inline buy bar variant for non-floating pages */
.buy-bar-inline {
  padding-left: 14px;
  padding-right: 14px;
}

.buy-bar-inline-btn {
  width: clamp(220px, calc(100vw - 28px), 420px);
  min-height: 46px;
}

body.has-buy-bar {
  padding-bottom: 170px;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border: none;
  z-index: 999;
  transition: all 0.3s ease;
}

.fab:active {
  transform: scale(0.95);
}

/* Tab Pills - Mobile */
.tab-pills-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 16px 14px;
  margin: 0;
  list-style: none;
  scroll-snap-type: x proximity;
  scroll-padding-left: 16px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-pills-mobile::-webkit-scrollbar {
  display: none;
}

.tab-pills-mobile .nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.tab-pill {
  appearance: none;
  padding: 8px 14px;
  min-height: 40px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.76rem, 2.7vw, 0.9rem);
  color: #334155;
  white-space: nowrap;
  line-height: 1;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.tab-pill.active {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  color: #ffffff;
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.28);
}

.tab-pill:hover,
.tab-pill:focus-visible {
  color: #0f172a;
  border-color: rgba(var(--primary-rgb), 0.28);
}

.tab-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.tab-pill:active {
  transform: scale(0.98);
}

@media (max-width: 575.98px) {
  .tab-pills-mobile {
    gap: 6px;
    padding: 2px 12px 12px;
    scroll-padding-left: 12px;
  }

  .tab-pill {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.74rem;
  }
}

/* Loading Indicator */
.loading-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 20px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Pull to Refresh Indicator */
.ptr-indicator {
  text-align: center;
  padding: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg,
      var(--primary-color),
      var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Safe Area for iOS */
@supports (padding: max(0px)) {
  body {
    padding-bottom: max(96px, env(safe-area-inset-bottom), 16px);
  }

  body.has-buy-bar {
    padding-bottom: max(170px, calc(170px + env(safe-area-inset-bottom)), 16px);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Desktop Preview */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-light);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
  }
}

.tag-input .tag {
  background: #fff;
  color: #000;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 12px;
  margin-right: 4px;
}

.search-container {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.select2-container--default .select2-selection--multiple {
  border: none;
  min-height: 38px;
}

.select2-selection__choice {
  background-color: #e9f0ff !important;
  border: none !important;
  color: #000;
}

.select2-selection__choice__remove {
  margin-right: 5px;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 0px !important;
  outline: 0;
}

.select2-container--default .select2-selection--multiple {
  border: solid black 0px !important;
}

/* Keep Select2 country list readable inside hero/search container */
.search-container .select2-container--default .select2-dropdown {
  background: #ffffff;
  border: 1px solid #dee2e6;
}

.search-container .select2-results__option {
  background: #ffffff;
  color: #212529;
}

.search-container .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--primary-color);
  color: #ffffff;
}

.search-container .select2-search--dropdown .select2-search__field {
  background: #ffffff;
  color: #212529;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998 !important;
}

.filter-modal {
  background: #fff;
  max-height: 70vh;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 90%;
  z-index: 9998 !important;
}

.header {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.header h3 {
  margin: 0;
}

.filter-modal .header {
  text-align: left;
}

.filter-modal .header h3 {
  margin: 0;
  padding-left: 26px;
  padding-right: 104px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.close {
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 18px;
  cursor: pointer;
}

.filter-modal .header .clear {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 6px;
  padding: 4px 15px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-modal .header .clear:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.filter-modal .header .clear:active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.content {
  padding: 16px;
  overflow-y: auto;
}

.section {
  margin-bottom: 20px;
}

.filter-modal .section h4 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #212529;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.options button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
}

.options button.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.footer {
  padding: 12px;
  border-top: 1px solid #eee;
}

.apply-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
}

/* Keep filter/search action buttons visually consistent. */
.btn.btn-primary.btn-sm,
.btn.btn-outline-secondary {
  border-radius: 6px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 16px;
}

.product-header h5 {
  font-weight: 600;
}

.badge-coverage {
  background: #f1f5ff;
  color: #3b5bdb;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
}

.price {
  color: #2ecc71;
  font-weight: 700;
  font-size: 20px;
}

.attention-box {
  background: #fff7e6;
  border: 1px solid #ffe1a6;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.details-tabs div {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.details-tabs i:not(.feature-status-badge) {
  font-size: 18px;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.sticky-buy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.buy-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
}

.hero-title {
  font-size: clamp(1.15rem, 4.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(0.84rem, 3.2vw, 1.05rem);
  opacity: 0.9;
  margin-bottom: 20px;
  line-height: 1.45;
  white-space: normal;
}

.search-box {
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  display: flex;
  align-items: center;
}

.search-box input {
  border: none;
  flex: 1;
  padding: 10px 14px;
  border-radius: 50px;
  outline: none;
}

.search-box button {
  background: var(--primary-color);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
}

.segmented-control {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f1f1;
}

.segmented-control button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: 500;
}

.segmented-control .active {
  background: var(--primary-color);
  color: #fff;
}

.esim-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.usage-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
}

.usage-metrics {
  flex: 1 1 auto;
  min-width: 0;
}

.usage-ring {
  --ring-size: clamp(104px, 30vw, 128px);
  --ring-thickness: 12px;
  --ring-track: #e7edf4;
  --ring-fill: #2fbf71;
  --ring-radius-ratio: 0.433333;
  --dot-size: 12px;
  --outer-ring-thickness: 2px;
  position: relative;
  width: var(--ring-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  background: #ffffff;
  isolation: isolate;
  transform: translateZ(0);
}

.usage-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(47, 191, 113, 0.18) 0deg 300deg,
      rgba(47, 191, 113, 0.9) 330deg 360deg);
  -webkit-mask: radial-gradient(farthest-side,
      transparent calc(100% - var(--outer-ring-thickness)),
      #000 calc(100% - var(--outer-ring-thickness)));
  mask: radial-gradient(farthest-side,
      transparent calc(100% - var(--outer-ring-thickness)),
      #000 calc(100% - var(--outer-ring-thickness)));
  animation: usage-ring-spin 3600ms linear infinite;
  will-change: transform;
  transform-origin: 50% 50%;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.usage-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.usage-track-circle,
.usage-progress-circle {
  fill: none;
  stroke-width: var(--ring-thickness);
  stroke-linecap: round;
}

.usage-track-circle {
  stroke: var(--ring-track);
}

.usage-progress-circle {
  stroke: var(--ring-fill);
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 120ms linear;
}

.usage-dot-wrapper {
  position: absolute;
  inset: 0;
  transform: rotate(var(--progress-angle, 0deg));
  transition: transform 120ms linear;
  will-change: transform;
}

.usage-end-dot {
  position: absolute;
  left: 50%;
  top: calc(50% - (var(--ring-size) * var(--ring-radius-ratio)));
  width: max(var(--dot-size), calc(var(--ring-thickness) + 1px));
  height: max(var(--dot-size), calc(var(--ring-thickness) + 1px));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #27b967;
  box-shadow: 0 2px 8px rgba(39, 185, 103, 0.35);
  will-change: transform;
}

.usage-end-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(39, 185, 103, 0.45);
  animation: usage-end-dot-pulse 1400ms ease-out infinite;
  will-change: transform, opacity;
}

.usage-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.usage-percent {
  font-size: clamp(1rem, 3.8vw, 1.25rem);
  font-weight: 800;
  color: #1f9e58;
  letter-spacing: 0.01em;
  animation: none;
}

@keyframes usage-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes usage-end-dot-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.65;
  }

  70% {
    transform: scale(1.6);
    opacity: 0;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Native responsive card spacing system */
:root {
  --card-radius-native: 18px;
  --card-pad-native: 16px;
  --card-gap-native: 14px;
}

.card,
.card-ui,
.offer-card-mobile,
.esim-card,
.product-card {
  border-radius: var(--card-radius-native);
  margin-bottom: var(--card-gap-native);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.card-body,
.card-ui .card-body,
.offer-card-mobile,
.esim-card,
.product-card {
  padding: var(--card-pad-native);
}

@media (max-width: 575.98px) {
  :root {
    --card-radius-native: 15px;
    --card-pad-native: 12px;
    --card-gap-native: 10px;
  }
}

@media (min-width: 768px) {
  :root {
    --card-radius-native: 20px;
    --card-pad-native: 18px;
    --card-gap-native: 16px;
  }
}

.usage-metrics h4 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  color: #0f172a;
}

.usage-metrics small {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.75rem, 2.5vw, 0.88rem);
  color: #6b7280;
}

.days-left {
  display: block;
  color: #4caf50;
  font-weight: 600;
  margin-top: 5px;
  font-size: clamp(0.92rem, 3.3vw, 1.1rem);
  letter-spacing: 0.015em;
}

.usage-divider {
  margin: 10px 0 12px;
}

@media (max-width: 575.98px) {
  .usage-overview {
    gap: 12px;
    margin: 14px 0 10px;
  }

  .usage-ring {
    --ring-size: 94px;
    --ring-thickness: 10px;
    --dot-size: 10px;
  }

  .days-left {
    margin-top: 4px;
  }
}

.search-container {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.select2-container--default .select2-selection--multiple {
  border: none;
  min-height: 38px;
}

.select2-selection__choice {
  background-color: #e9f0ff !important;
  border: none !important;
  color: #000;
}

.select2-selection__choice__remove {
  margin-right: 5px;
}

.select2-container {
  width: 100% !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border: solid black 0px !important;
  outline: 0;
}

.select2-container--default .select2-selection--multiple {
  border: solid black 0px !important;
}

/* Tabs */
.segmented-control {
  display: flex;
  background: #e9edf3;
  border-radius: 14px;
  padding: 4px;
}

.segmented-control button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 14px;
  border-radius: 12px;
  color: #333;
}

.segmented-control .active {
  background: var(--primary-color);
  color: #fff;
  font-weight: 500;
}

.purchase-history-page .breadcrumb {
  margin-bottom: 1rem;
}

.purchase-history-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.purchase-history-filter-row {
  display: grid;
  gap: 10px;
}

.purchase-history-filter-row-dates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-history-filter-row-search {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.purchase-history-filter-field {
  min-width: 0;
}

.purchase-history-filter-reference {
  min-width: 0;
}

.purchase-history-filter-date {
  min-width: 0;
}

.purchase-history-filter-field .form-label {
  line-height: 1.1;
  margin-bottom: 4px !important;
}

.purchase-history-search-action {
  display: flex;
  align-items: end;
}

.purchase-history-search-btn {
  min-width: 108px;
  padding-inline: 18px;
  white-space: nowrap;
}

.purchase-history-icon {
  align-items: center;
  background: #eef5ff;
  border-radius: 12px;
  color: var(--primary-color);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.status-complete,
.status-pending,
.status-failed,
.status-cancelled {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
}

.status-complete {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.status-pending {
  background: rgba(255, 193, 7, 0.18);
  color: #8a6d00;
}

.status-failed {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

.status-cancelled {
  background: rgba(108, 117, 125, 0.14);
  color: #495057;
}

@media (max-width: 575.98px) {
  .purchase-history-search-btn {
    min-width: 96px;
    width: auto;
  }
}

#esimTabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #eef1f5;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#esimTabs button {
  flex: 1 1 0;
  border: none;
  background: transparent;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#esimTabs button.active {
  background: linear-gradient(180deg, #2d8cff 0%, #1a73e8 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
}

#esimTabs button:not(.active):hover,
#esimTabs button:not(.active):focus-visible {
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
}

#esimTabs button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.16);
}

.esim-tab-content {
  display: block;
}

@media (max-width: 575.98px) {
  #esimTabs {
    gap: 4px;
    padding: 5px;
    border-radius: 15px;
  }

  #esimTabs button {
    padding: 11px 8px;
    font-size: 0.84rem;
  }
}

/* Minor enhancements only */
.rounded-xxl {
  border-radius: 18px;
}

.shadow-soft {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.qr-box {
  border: 2px dashed #e9ecef;
}

.os-pill {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
}

/* Small UI extensions */
.card-ui {
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.radio-ui {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #adb5bd;
  position: relative;
}

.package-option.active {
  border-color: var(--primary-color);
}

.package-option.active .radio-ui {
  border-color: var(--primary-color);
}

.package-option.active .radio-ui::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.badge-5g {
  background: #eef2ff;
  color: #4338ca;
}

/* Container to give it that pill shape background */
.toggle-container,
.segmented-control {
  position: relative;
  z-index: 1 !important;
}

.segmented-control .btn-check:checked+.btn-toggle,
.segmented-control .btn-toggle {
  z-index: 1 !important;
}

.segmented-control {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  /* Subtle border */
  border-radius: 50px;
  /* Fully rounded capsule */
  padding: 4px;
  /* Creates the inset spacing around the buttons */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Default state for both text labels */
.segmented-control .btn-toggle {
  border: none;
  border-radius: 50px !important;
  /* Forces individual buttons to stay rounded */
  padding: 10px 30px;
  font-weight: 500;
  color: #333333;
  background-color: transparent;
  transition: all 0.3s ease;
}

/* Hover state just for visual polish */
.segmented-control .btn-toggle:hover {
  color: #000000;
}

/* The MAGIC: Active/Checked state using Bootstrap's pseudo-selectors */
.segmented-control .btn-check:checked+.btn-toggle {
  background-color: #1a73e8;
  /* The vibrant blue from your image */
  color: #ffffff;
  /* White text for the active item */
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.success-icon i,
.error-icon i {
  font-size: 1.45rem;
  line-height: 1;
}

.error-icon svg {
  width: clamp(2.75rem, 13vw, 3.5rem);
  height: clamp(2.75rem, 13vw, 3.5rem);
}

.success-icon svg {
  width: clamp(2.75rem, 13vw, 3.5rem);
  height: clamp(2.75rem, 13vw, 3.5rem);
}

.feature-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.feature-status-badge {
  position: absolute;
  right: -2px;
  bottom: -1px;
  font-size: 0.62rem;
  line-height: 1;
  background: #fff;
  border-radius: 50%;
}

.feature-muted {
  color: var(--bs-secondary-color) !important;
  opacity: 0.55;
}

.feature-label {
  font-size: 11px;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: 0.01em;
}

.total-amount-row {
  font-size: 1.06rem;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Keep circles perfectly round across devices/webviews */
.btn.rounded-circle,
button.rounded-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  line-height: 1;
  flex-shrink: 0;
}

.nav-icon-btn,
.search-btn,
.step-number,
.author-avatar,
.feature-icon-wrap {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}