/* =========================================================
   media.css - organized responsive file
   Order: large screen fixes first, then tablet, then mobile,
   then smaller mobile overrides. Existing rules are preserved.
========================================================= */

.mobile-top-actions {
  display: none;
}



/* =========================================================
   981px - 1200px | Small laptop / large tablet
========================================================= */
/* =========================================================
      SMALL LAPTOP / LARGE TABLET FIX
      981px → 1200px
    ========================================================= */
    @media (min-width: 981px) and (max-width: 1200px) {

      html,
      body{
        overflow-x: hidden;
      }

      .referral-section{
        overflow: hidden;
        padding: 40px 0;
      }

      .referral-section .container{
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
      }

      .referr-p{
        align-items: center;
      }

      /* LEFT SIDE */
      .hero-r{
        overflow: hidden;
      }

      .left-wrap{
        position: relative;
        overflow: hidden;
      }

      .ref-hero-img{
        width: 125%;
        max-width: 640px;
        margin: -40px 0 0 -30px;
        display: block;
      }

      .ref-left-text{
        margin-top: -20px;
        max-width: 420px;
      }

      .ref-headline{
        font-size: 56px;
        line-height: 1.02;
        margin-bottom: 12px;
      }

      .ref-subline{
        font-size: 22px;
      }

      /* RIGHT CARD */
      .referral-card{
          width: 100%;
          max-width: 430px;
          margin-left: auto;
      }

      .referral-card .card-top {
        padding: 16px 22px;
        gap: 24px;
        align-items: center;
      }

      .referral-card .card-top-left {
        flex: 1;
        min-width: 0;
      }

      .referral-card .card-top-title {
        font-size: 28px;
        line-height: 34px;
        white-space: nowrap;
      }

      .referral-card .card-top-sub {
        font-size: 16px;
        line-height: 22px;
        white-space: nowrap;
      }

      .referral-card .track {
        margin-top: -16px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 16px;
        line-height: 20px;
        white-space: nowrap;
      }

      .card-top-title{
        font-size: 32px;
        line-height: 1.1;
      }

      .card-top-sub{
        font-size: 18px;
      }


    }



/* =========================================================
   <= 980px | General responsive
========================================================= */
/* ---------------------------------------------------------
   ≤ 980px (General responsive)
--------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-graphic {
    height: 200px;
  }

  .hero-circle {
    width: 200px;
    height: 200px;
    left: 28px;
  }

  .hero-person {
    height: 200px;
  }

  .taka {
    font-size: 40px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefit-title {
    font-size: 26px;
  }

  .benefit-media {
    min-height: auto;
  }

  .benefit-iframe-wrap iframe {
    height: 300px;
  }

  .benefit-blob-right {
    right: -260px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .footer-mid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-mid-right {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .how-divider {
    display: none;
  }

  .how-step {
    padding: 10px 5px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .pkgCols {
    grid-template-columns: 1fr;
  }

  .pkgCol:not(:last-child)::after {
    display: none;
  }

  .hero-wave.hero-wave--custom {
    background-position: center 85%;
    background-size: 900px auto;
  }

  .hero-graphic.hero-graphic--custom {
    height: 230px;
  }

  .hero-person.hero-person--custom {
    height: 260px;
    left: 0;
    top: 0;
  }

  .track-summary {
    grid-template-columns: 1fr;
  }

  .ts-divider {
    display: none;
  }

  .nc-frame {
    grid-template-columns: 1fr;
  }

  .nc-left {
    border-right: 0;
    border-bottom: 1px solid #eef2ff;
  }

  .pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-section {
    background-position: top center;
    background-size: cover;
  }

  .benefit-text {
    text-align: center;
  }

  .benefit-text p {
    margin-inline: auto;
  }

  .newsletter-input {
    padding: 10px 15px;
  }

  /* Referral section (mobile/tablet fixes) */
  .referral-section {
    height: auto !important;
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    padding: 2.25rem 0;
  }

  .left-wrap {
    height: auto;
    min-height: auto;
    margin-top: 0;
    position: relative;
  }

  .ref-hero-img {
    position: relative;
    transform: none;
    width: 100%;
    max-width: 520px;
    margin: -40px 0 0 -10px;
    display: block;
  }


  /* .ref-headline {
    margin-top: 40px;
    font-size: 32px;
  } */

  .ref-subline {
    font-size: 18px;
  }

  .ref-actions {
    justify-content: center;
  }

  /* optional legacy hero items */
  .hero-r {
    margin-bottom: 15px;
  }

  .hero-img {
    position: static;
    max-width: 260px;
    width: 100%;
    height: auto;
    z-index: 2;
    margin-bottom: 18px;
  }

  .left-text {
    position: static;
    left: 0;
    top: 250px;
    z-index: 3;
  }

  .nc-frame {
    grid-template-columns: 1fr;
  }

  .nc-left {
    border-right: 0;
    border-bottom: 1px solid #eef2ff;
  }
}



/* =========================================================
   768px - 991.98px | Tablet / iPad
========================================================= */
/* ---------------------------------------------------------
   Tablet / iPad hero: 768px–991.98px
--------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  .card-body {
    padding: 20px 25px 20px;
  }

  .step {
    gap: 10px;
    margin-bottom: 15px;
  }

  .referral-section {
    min-height: calc(100vh - 70px);
    height: auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
  }

  .referral-section .container {
    max-width: 720px;
  }

  .hero-r {
    min-height: 420px;
  }

  .left-wrap {
    position: relative;
    height: 420px;
  }

  .ref-hero-img {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 390px;
    max-width: 120%;
    transform: none;
    margin: 0;
  }

  .ref-left-text {
    position: absolute;
    left: 0;
    top: 250px;
    max-width: 330px;
    margin: 0;
  }

  .referr-p {
    align-items: center;
  }

  .ref-headline {
    margin-top: 0;
    font-size: 30px;
    line-height: 1.05;
  }

  .ref-subline {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .ref-actions {
    justify-content: flex-start;
    margin-bottom: 32px;
  }

  .referral-card .step {
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
  }

  .referral-card .step-line {
    max-width: 18px;
  }

  .card-body {
    padding: 12px;
  }

  .step-dot{
    margin-top: 0;
  }

  .form{
    gap: 5px;
  }

  .ref-btn {
    height: 34px;
    font-size: 13px;
    padding: 0 12px;
  }

  .steps > .step-line {
    max-width: 25px;
  }

  .step{
    font-size: 15px;
  }

  #mainNav{
    gap: 10px;
    margin-left: 20px;
  }

  .site-logo img{
    height: 35px;
  }

  .nav-inner{
    gap: 0;
  }
  
  .track-summary{
    display: grid !important;
    grid-template-columns: minmax(260px, 1.2fr) 1px minmax(180px, .9fr) 1px minmax(180px, .9fr) !important;
    gap: 18px !important;
    align-items: center !important;
    padding: 18px 16px !important;
  }

  .track-summary .ts-user{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .track-summary .ts-user-text{
    min-width: 0 !important;
  }

  .track-summary .ts-name{
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .track-summary .ts-id{
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .track-summary .ts-divider{
    display: block !important;
    width: 1px !important;
    height: 44px !important;
    background: #dbe7f3 !important;
  }

  .track-summary .ts-metric{
    min-width: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .track-summary .ts-label{
    display: block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .track-summary .ts-value{
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .track-summary .taka,
  .track-summary .taka-bn{
    font-size: 1em !important;
    line-height: 1 !important;
  }

    .card-top-title{
      font-size: 25px;
      line-height: 1.3;
    }

  .how-steps {
    margin: 0 100px;
  }

  .cta-card{
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
  
  .benefit-section {
    padding: 30px 0;
  }

  .nav-links{
    display: flex !important;
  }

  .menu-toggle{
    display: none !important;
  }

  .how-step {
    padding: 2px 5px;
  }

  .content-col{
    padding: 0;
  }

  .how-steps{
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
  }

  .how-step{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 10px 5px;
  }

  .how-divider{
    display: none;
  }

  .how-step-desc{
    max-width: 100%;
  }
  
  .referral-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
  }

  .referral-card .card-top-left {
    flex: 1;
    min-width: 0;
  }

  .referral-card .track {
    flex: 0 0 auto;
    margin-top: -12px;
    font-size: 16px;
    line-height: 18px;
    white-space: nowrap;
  }

  .referral-card .card-top-sub {
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
  }

  .form-separator{
    margin: 6px 0;
  }

  .how-section{
    padding: 50px 0;
  }

  .how-subtitle{
    margin: 0 0 30px;
  }

  .how-icon__img{
    margin-top: 6px;
  }

  .how-icon__img{
    width: 43px;
    height: 45px;
    display: block;
  }

  .benefit{
    padding: 25px 0;
  }

  .referral-card {
    width: 100%;
    max-width: 540px;
    margin: 20px auto 0;
  }

}



/* =========================================================
   <= 767.98px | Mobile main
========================================================= */
@media (max-width: 767.98px) {

  .nav-inner {
    padding: 0;
  }
}

@media (max-width: 767.98px){

    .benefit-section{
      padding: 24px 0;
      background-size: cover;
      background-position: center top;
    }

  .benefit-section .row{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* text comes first */
  .benefit-text{
    order: 1;
    text-align: left;
    margin: 0;
  }

  .benefit-text h2{
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
  }

  .benefit-text p{
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  /* video comes after text */
  .video-card,
  .benefit-video-card{
    order: 2;
    margin: 0;
    max-width: 100%;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.10) !important;
  }

  .video-card img,
  .benefit-video-card img,
  .benefit-thumb{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    display: block !important;
  }

  .play-btn,
  .play-btn-animated{
    width: 52px !important;
    height: 52px !important;
  }

  /* if bootstrap columns are used */
  .benefit-section .col-lg-6:first-child,
  .benefit-section .col-md-6:first-child{
    order: 2 !important;
  }

  .benefit-section .col-lg-6:last-child,
  .benefit-section .col-md-6:last-child{
    order: 1 !important;
  }

    .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
    gap: 14px !important;
  }

  .footer-legal {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  .footer-legal a {
    color: #c7d6e6 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 20px !important;
    display: block !important;
  }

  .footer-copy {
    order: 2 !important;
    width: 100% !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    color: #c7d6e6 !important;
  }

  .track-wrap {
    margin-top: -10px;
  }

  .track-summary {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .track-summary .ts-divider {
    display: none !important;
  }

  .track-summary .ts-metric {
    padding-top: 15px;  }

  .track-summary > .ts-metric:last-of-type {
    border-top: 2px solid #e5e7eb !important;
    padding-top: 12px !important;
    margin-top: 12px !important;
  }

    .track-history {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .track-history .table-responsive {
    overflow: visible !important;
  }

  .th-table,
  .th-table thead,
  .th-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .th-table thead {
    display: none !important;
  }

  .th-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .th-table tbody tr {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "name status"
      "mobile mobile"
      "date reward"
      "thanks thanks";
    gap: 6px 12px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 14px !important;
  }

  .th-table tbody td {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 1 = Date */
  .th-table tbody td:nth-child(1) {
    grid-area: date !important;
    font-size: 13px !important;
    color: #111827 !important;
  }

  .th-table tbody td:nth-child(1)::before {
    content: "Date";
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #9ca3af;
    margin-bottom: 4px;
  }

  /* 2 = Name */
  .th-table tbody td:nth-child(2) {
    grid-area: name !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.3 !important;
  }

  /* 3 = Mobile */
  .th-table tbody td:nth-child(3) {
    grid-area: mobile !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    padding-bottom: 10px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* 4 = Status */
  .th-table tbody td:nth-child(4) {
    grid-area: status !important;
    width: auto !important;
    justify-self: end !important;
    align-self: start !important;
  }

  /* 5 = Reward Month normal rows */
  .th-table tbody td:nth-child(5) {
    grid-area: reward !important;
    text-align: right !important;
    font-size: 13px !important;
    color: #111827 !important;
  }

  .th-table tbody td:nth-child(5)::before {
    content: "Reward Month";
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #9ca3af;
    margin-bottom: 4px;
    text-align: right;
  }

  .status-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 78px !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }


  /* success row only */
  .th-table tbody tr[data-status="Success"]{
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "name status"
      "mobile mobile"
      "date reward"
      "thanks thanks" !important;
  }

  /* remove default reward label from td for success row */
  .th-table tbody tr[data-status="Success"] td:nth-child(5)::before{
    content: none !important;
    display: none !important;
  }

  /* reward cell container */
  .th-table tbody tr[data-status="Success"] .reward-cell{
    grid-area: reward !important;
    display: block !important;
    width: 100% !important;
    text-align: right !important;
  }

  /* only the value in reward cell */
  .th-table tbody tr[data-status="Success"] .reward-cell > span{
    display: block !important;
    text-align: right !important;
    font-size: 12px !important;
    color: #111827 !important;
  }

  /* add reward label only here */
  .th-table tbody tr[data-status="Success"] .reward-cell > span::before{
    content: "Reward Month" !important;
    display: block !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #9ca3af !important;
    margin-bottom: 4px !important;
    text-align: right !important;
  }

  /* thanks link on its own full row */
  .th-table tbody tr[data-status="Success"] .mail-btn{
    grid-area: thanks !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding: 10px 0 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
  }

  .th-table tbody tr[data-status="Success"] .mail-btn__icon{
    width: 14px !important;
    height: 14px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  .pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 100 / 120 / 150 full width */
  .pkg-grid .pkg.pkg-single-mobile {
    grid-column: 1 / -1 !important;
    display: block !important;
    width: 100% !important;
  }

  #gridRegular .pkg[data-speed="125"],
  #gridRegular .pkg[data-speed="150"],
  #gridRegular .pkg[data-speed="200"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
  }

  #gridRegular .pkg[data-speed="125"]:hover,
  #gridRegular .pkg[data-speed="125"].active,
  #gridRegular .pkg[data-speed="150"]:hover,
  #gridRegular .pkg[data-speed="150"].active,
  #gridRegular .pkg[data-speed="200"]:hover,
  #gridRegular .pkg[data-speed="200"].active {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* keep arrow visible */
  .pkg-grid .pkg .pkg-arrow {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

    /* hide header Next button */
  .header-bar .btn-next{
    display: none;
  }

  /* show bottom Next button */
  .mobile-next-wrap{
    display: block;
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 12px 0;
    background: #fff;
    z-index: 50;
  }

  .mobile-next-wrap .btn-next{
    width: 100%;
    height: 44px;
    border-radius: 12px;
  }

    /* Stepper in one row */
  .stepper-col{
    border-right: 0 !important;
    padding-right: 12px !important;
  }

  .stepper{
    display: flex;
    align-items: flex-start;
    justify-content: space-between !important;
    gap: 10px !important;
    /* padding: 0 !important; */
    width: 100% !important;    
    border-bottom: 1px solid #e5e7eb;
  }

  .step{
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }

  .step .dot{
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    margin-top: 1px !important;
    flex: 0 0 20px !important;
  }

  .step small{
    font-size: 9px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
  }

  .step b{
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
    word-break: break-word;
  }

    .nc-page-connection .stepper-v2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
  }

  .nc-page-connection .stepper-v2__item {
    flex: 1 1 0 !important;
    display: grid !important;
    grid-template-columns: 24px 1fr !important;
    column-gap: 8px !important;
    margin-bottom: 0 !important;
  }

  .nc-page-connection .stepper-v2__item:first-child::after {
    display: none !important;
  }

  .nc-page-connection .stepper-v2__dot {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }

  .nc-page-connection .stepper-v2__content small {
    font-size: 9px !important;
  }

  .nc-page-connection .stepper-v2__content b {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  
  .th-table tbody tr[data-status="Success"]{
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "name status"
      "mobile mobile"
      "date reward"
      "thanks thanks" !important;
  }

  .th-table tbody tr[data-status="Success"] .reward-cell{
    grid-area: reward !important;
    display: block !important;
    width: 100% !important;
    text-align: right !important;
  }

  .th-table tbody tr[data-status="Success"] .thanks-cell{
    grid-area: thanks !important;
    width: 100% !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e5e7eb !important;
  }

  .th-table tbody tr[data-status="Success"] .mail-btn{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .th-table tbody tr[data-status="Success"] .mail-btn__icon{
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 14px !important;
    display: block !important;
  }

  .th-table tbody tr[data-status="Success"] .mail-btn__text{
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2563eb !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  .mail-btn__text{
    display: inline;
  }

  
  .ref-left-text {
    position: relative;
    left: 0;
    top: 0;
    max-width: 100%;
    margin-top: -150px !important;
  }
  
  .track {
    margin-left: -55px;
  }

  .btn-next{
    width: 100%;
  }

  .top-title{
    font-size: 20px;
    line-height: 110%;
  }
  
  .mobile-confirm-btn {
      display: block;
      margin-top: 16px;
    }

    #nextBtnMobile {
      width: 100%;
    }

      .sel-tags .brand-p.bongo.home-plan {
    height: 22px;
    max-width: 120px;
    overflow: hidden;
  }

  .sel-tags .brand-p.bongo.home-plan > img#partnerLogo {
    width: 110px;
    max-width: 110px;
    height: auto;   
    display: block;
    object-fit: contain;
  }

}

/* ---------------------------------------------------------
   ≤ 768px (Force mobile nav + page layout)
--------------------------------------------------------- */
@media (max-width: 767.98px) {
  .site-logo img {
    height: 36px;
  }

  /* Hamburger visible */
  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
    padding: 8px 10px;
  }

  .nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    position: relative;
    padding: 16px 16px;
  }

  .mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

.mobile-lang-top {
  position: relative;
  padding-right: 14px;
}

.mobile-lang-top::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 25px;
  background: #dbe1e7;
}

  .nav-right {
    display: none;
  }

  /* Menu panel */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid #eee;
    z-index: 9999;
    padding: 8px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin: 0;
  }

  .nav-links .nav-dd {
    width: 100%;
  }

  .nav-links .dd-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 12px 16px;
  }

  .nav-links .dd-menu {
    position: static;
    display: none;
    width: 100%;
    background: #fafafa;
    border: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 6px 0;
  }

  .nav-links .dd-menu.show {
    display: block !important;
  }

  .nav-links .dd-menu a {
    padding: 10px 28px;
    display: block;
    width: 100%;
    text-align: left;
  }

  .mobile-lang {
    display: block;
  }

  /* NC layout on mobile */
  .nc-shell {
    margin: 18px auto;
  }

  .nc-frame {
    border-radius: 18px;
  }

  .nc-right {
    padding: 20px 18px;
  }

  .nc-left {
    padding: 18px 16px;
  }

  .nc-top {
    align-items: flex-start;
  }

  .nc-top-left {
    flex-wrap: wrap;
  }

  .nc-titleRow {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .nc-h1 {
    white-space: normal;
    line-height: 1.15;
  }

  /* CTA sizing */

  .cta-desktop{
    display:none;
  }

  .cta-mobile{
    display:block;
  }

  .cta-card {
    padding: 50px 18px;
  }

  .cta-title {
    font-size: 26px;
  }

  .cta-subtitle {
    font-size: 13px;
  }

  .cta-card{
    position:relative;
    overflow:hidden;
    text-align:center;
    padding:40px 18px;
    color:#fff;
    background:linear-gradient(135deg,#3e57c6,#7c8be0);
    border-radius:0;
  }

  /* top left circle */

  .cta-card::before{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    background:rgba(255,255,255,0.07);
    border-radius:50%;
    top:-120px;
    left:-120px;
  }

  /* center curved shape */

  .cta-card span{
    position:absolute;
    top:-60px;
    left:45%;
    width:120px;
    height:220px;
    background:rgba(255,255,255,0.08);
    border-radius:100px;
    transform:rotate(15deg);
  }

  /* bottom right circle */

  .cta-card::after{
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    background:rgba(255,255,255,0.18);
    border-radius:50%;
    bottom:-120px;
    right:-120px;
  }

  .cta-card h2{
    font-size:24px;
    margin-bottom:14px;
    font-weight:700;
    position:relative;
    z-index:2;
  }

  .cta-card p{
    font-size:14px;
    line-height:1.6;
    margin-bottom:24px;
    position:relative;
    z-index:2;
  }

  .cta-btn{
    display:inline-block;
    background:#ffffff;
    color:#000;
    padding:10px 24px;
    border-radius:12px;
    font-size:16px;
    font-weight:600;
    text-decoration:none;
    position:relative;
    z-index:2;
  }
  /* overall page padding smaller */
  .page-p {
    padding: 0 12px !important;
  }

  /* board/card container spacing */
  .board {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  /* MAIN FIX: 2 columns -> 1 column */
  .grid-p {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 12px !important;
  }

  .rightCol {
    display: grid !important;
    gap: 12px !important;
  }

  .card {
    width: 100% !important;
  }

  .hero__small,
  .hero__name {
    margin: 0 12px !important;
  }

  .hero__name {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  /* Requested Package mobile */
  .pkgHero__num {
    font-size: 42px !important;
  }

  .pkgCols {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .pkgCol {
    padding: 0 !important;
  }

  .pkgCol:not(:last-child)::after {
    display: none !important;
  }

  .kv__v--inline {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  .nc-rowhead {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .nc-partners {
    flex-wrap: wrap !important;
  }

    .footer-mid-left{
    display: block !important;
    width: 100% !important;
  }

  .footer-mid-left .footer-small-title{
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .footer-mid-left .newsletter-form{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .footer-mid-left .newsletter-input{
    /* flex: 0 0 62% !important;
    max-width: 62% !important; */
    width: 62% !important;
    min-width: 0 !important;
    display: block !important;
    /* height: 30px !important; */
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .footer-mid-left .newsletter-btn{
    flex: 0 0 auto !important;
    width: auto !important;
    /* min-width: 135px !important; */
    /* height: 30px !important; */
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600;
    white-space: nowrap !important;
  }
  .vp-close {
    left: auto;
    right: 16px;
    top: 8px;
    position: absolute;
    z-index: 10001;
  }

  .brand-p {
    padding: 0 !important;
  }

  .site-footer {
    padding: 40px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-desc {
    font-size: 15px;
    max-width: 100%;
    margin: 20px 0 16px;
  }

  .footer-social {
    margin-top: 24px;
  }

  .faq-section {
    padding: 40px 0;
  }

  .step {
    /* font-size: 14px; */
  }

  .shell-card {
    margin: 0;
  }

  .track-link {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .track-link::before {
    display: none !important;
  }

    .sel-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .sel-tags .brand-p.bongo.home-plan {
    width: 145px;
    min-width: 145px;
    height: 38px;
    padding: 0 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
  }

  .sel-tags .brand-p.bongo.home-plan img#partnerLogo {
    width: 130px;
    max-width: none;
    height: auto;
    display: block;
    object-fit: contain;
  }


}

/* mobile + tablet */
@media (max-width: 767.98px){

  .desktop-lang{
    display: none;
  }

  .site-logo{
    display: flex;
    align-items: center;
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .site-logo img{
    height: 32px;
    width: auto;
    display: block;
  }

  .mobile-top-actions{
    display: flex;
    align-items: center;
    gap: 12px !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 10 !important;
  }

  .mobile-lang-top,
  .mobile-lang-top .lang,
  .mobile-lang-top .dd-btn{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: -1px !important;
    margin: 0 !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
  }

  .mobile-lang-top{
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .mobile-lang-top .lang,
  .mobile-lang-top .dd-btn{
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .mobile-lang-top .dd-arrow{
    font-size: 10px !important;
    color: #111827 !important;
  }

  .mobile-lang-top .dd-menu{
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 110px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    box-shadow: #505962;
    padding: 6px 0 !important;
    display: none !important;
    z-index: 10060 !important;
  }

  .mobile-lang-top .dd-menu.show{
    display: block !important;
  }

  .mobile-lang-top .dd-menu a{
    display: block !important;
    padding: 10px 14px !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 13px !important;
  }

  .menu-toggle{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .menu-toggle span{
    display: block !important;
    width: 18px !important;
    height: 1.8px !important;
    background: #111827 !important;
    border-radius: 2px !important;
  }

  /* full screen menu */
  #mainNav{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 16px 18px !important;
    margin: 0 !important;
    transform: translateX(100%) !important;
    transition: transform .28s ease !important;
    z-index: 10050 !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    gap: 6px !important
  }

  #mainNav.show{
    transform: translateX(0) !important;
  }

  /* hide top bar items when menu is open */
  header.nav.nav-open .site-logo,
  header.nav.nav-open .mobile-top-actions{
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .menu-close{
    display: block !important;
    align-self: flex-end !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }

  #mainNav .nav-link,
  #mainNav .dd-btn{
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-align: left !important;
  }

  #mainNav .nav-link.active{
    color: #0071FF !important;
    background: transparent !important;
  }

  #mainNav .nav-link.active::after{
    display: none !important;
  }

  .mobile-acc{
    width: 100% !important;
  }

  .mobile-acc .dd-menu{
    display: none !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 2px 0 4px 14px !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  .mobile-acc.open .dd-menu{
    display: block !important;
  }

  .mobile-acc .dd-menu a{
    display: block !important;
    padding: 8px 0 !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .mobile-acc .dd-arrow{
    font-size: 14px !important;
    color: #6b7280 !important;
    transition: transform .2s ease !important;
  }

  .mobile-acc.open .dd-arrow{
    transform: rotate(180deg) !important;
  }

  .mobile-acc .dd-arrow{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.mobile-acc .dd-arrow img{
  width: 16px;
  height: 16px;
  display: block;
  transition: transform .2s ease;
}

/* rotate when open */
.mobile-acc.open .dd-arrow img{
  transform: rotate(180deg);
}

/* make EN arrow smaller */
.mobile-lang-top .dd-arrow{
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
}

.mobile-lang-top .dd-arrow img{
  width: 16px;   /* adjust if needed */
  height: 16px;
  display: block;
  filter: brightness(0); /* black */
}

  #mainNav.show .menu-close{
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
  }

    .how-steps{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .how-step{
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .how-divider{
    display: none !important;
  }

  .how-step-desc{
    max-width: 100% !important;
  }

  .track-board{
  margin: 0 15px;
  }

  .ref-headline{
    margin-top: 0;
  }


  
}

/* iPad Mini / small tablet fix: 700px - 767px */
@media (min-width: 700px) and (max-width: 767.98px) {

  .referral-section {
    padding-top: 40px;
  }

  .ref-left-text {
    margin-top: -170px !important;
  }

  .ref-actions {
    justify-content: flex-start;
    margin-bottom: 36px;
  }

  .referral-card {
    width: 100% !important;
    max-width: 540px;
    margin: 0 0 50px 0 !important;
  }

  .referral-card .card-top {
    padding: 24px;
  }
}



/* =========================================================
   <= 600px
========================================================= */
/* ---------------------------------------------------------
   ≤ 600px (Benefit video + NC layout)
--------------------------------------------------------- */
@media (max-width: 600px) {

  .nc-chip{
    font-size: 14px;
  }

  .pkg-arrow{
    height: 28px;
    width: 28px;
    font-size: 14px;
  }

  .benefit-video-section {
    padding: 70px 0 60px;
  }

  .benefit-media {
    min-height: auto;
  }

  /* blobs cause overflow/odd crop on small screens */
  .benefit-blob-left {
    left: -120px;
    top: -160px;
    transform: scale(0.75);
    opacity: 0.55;
  }

  .benefit-blob-right {
    right: -260px;
    top: -140px;
    transform: scale(0.75);
    opacity: 0.45;
  }

  .benefit-play {
    width: 52px;
    height: 52px;
  }

  .benefit-iframe-wrap iframe {
    height: 280px;
  }

  .cta-title {
    font-size: 22px;
  }

  .cta-card {
    padding: 34px 14px;
  }

  .nc-frame {
    grid-template-columns: 1fr;
  }

  .nc-left {
    border-right: 0;
    border-bottom: 1px solid #eef2ff;
  }

  .nc-stepbox {
    margin-bottom: 10px;
  }

  .nc-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nc-btn-next,
  .nc-btn-confirm {
    width: 100%;
  }

  .nc-titleRow {
    width: 100%;
  }

  .nc-link {
    margin-left: 0;
  }

  .nc-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .nc-h1 {
    font-size: 20px;
  }

  .nc-chooseTitle {
    margin-top: 2px;
  }

  /* Drawer close button stays reachable on small screens */
  .vp-close {
    left: 12px;
    top: 12px;
    position: fixed;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  }

  .vp-drawer {
    border-radius: 18px 0 0 18px;
  }
  
  .benefit-desktop{
    display: none !important;
  }

  .benefit-mobile{
    display: block !important;
    padding: 8px 0 20px;
  }

  .benefit-text-mobile{
    text-align: left;
    margin-bottom: 24px;
  }

  .benefit-text-mobile h2{
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
    color: #111827;
    margin-top: -140px;
  }

  .benefit-text-mobile p{
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #637381;
  }

  .benefit-video-mobile .video-card{
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
  }

  .benefit-video-mobile .video-card img{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
  }

  .benefit-video-mobile .play-btn-animated{
    width: 52px !important;
    height: 52px !important;
  }

  .benefit-video-mobile .play-core{
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
  }

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #f3f6ff !important;
  }

  .container,
  .nc-shell-container,
  .nc-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background-image: none !important;
  }

    /* restore spacing for referral page only */
  .referral-section .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .how-section .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .benefit-section .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .faq-section .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nc-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .nc-left,
  .nc-right {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .nc-topbar {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .shell-card {
    border-radius: 0 !important;
  }

  .content-col {
    padding: 0 10px !important;
  }

  .pkg .pkg-view {
    display: none !important;
  }

  .pkg .pkg-view.show-mobile-view {
    display: inline-flex !important;
    opacity: 1 !important;
    max-width: 100px !important;
    overflow: visible !important;
    transform: translateX(0) !important;
    white-space: nowrap !important;
  }
  

}



/* =========================================================
   <= 576px
========================================================= */
/* Mobile fix: make package cards full-width */
@media (max-width: 576px) {
  .pkg-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pkg{
    width: calc(50% - 6px) !important;
  }

  .pkg:hover,
  .pkg.active{
    width: calc(50% - 6px) !important;
  }

  .pkg-view{
    display: none;
  }

  .pkg-view.show-mobile-view{
    display: inline-flex;
    opacity: 1;
    max-width: 100px;
    transform: translateX(0);
    padding-left: 6px;
    white-space: nowrap;
  }

  #wifiSignal{
    margin-top: -40px;
  }

  .pkg .pkg-view {
    display: none !important;
    opacity: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
  }

  #gridRegular .pkg[data-speed="100"] .pkg-view,
  #gridRegular .pkg[data-speed="120"] .pkg-view {
    display: inline-flex !important;
    opacity: 1 !important;
    max-width: 120px !important;
    overflow: visible !important;
    transform: translateX(0) !important;
    white-space: nowrap;
  }

    .nc-top{
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .nc-top-left{
    flex: 1;
    min-width: 0;              /* prevents overflow */
  }

  .nc-titleRow{
    width: auto !important;
    min-width: 0;
  }

  .nc-btn-next,
  .nc-btn-confirm{
    width: auto !important;    /* remove full width button */
    flex: 0 0 auto;
    padding: 10px 16px;        /* keep desktop style */
    border-radius: 14px;
  }

  /* optional: keep the title from becoming too big on small screens */
  .nc-h1{
    font-size: 18px;
    line-height: 1.2;
  }

  .vp-cardPrice{
      width: 65px;
      font-size: 18px;
      margin-top: 6px;
    }

    .plan-modal-header {
    position: relative;
    padding-left: 58px;
  }

  .plan-modal-close {
    width: 38px;
    height: 38px;
    left: 12px;
    top: 10px;
  }

  .plan-modal-title {
    font-size: 28px;
    line-height: 1.1;
  }

  .vp-title{
    margin: 0 0 15px 40px;
  }

  #gridRegular .pkg .pkg-view {
    display: none;
    opacity: 0;
    max-width: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
  }

  #gridRegular .pkg .pkg-view.show-mobile-view {
    display: inline-flex;
    opacity: 1;
    max-width: 120px;
    width: auto;
    overflow: visible;
    visibility: visible;
    transform: translateX(0);
    white-space: nowrap;
  }

  #gridRegular .pkg[data-speed="100"] .pkg-view,
  #gridRegular .pkg[data-speed="100"] .pkg-view.show-mobile-view {
    display: none;
    opacity: 0;
    max-width: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
  }

  .nc-brand-regular {
    height: 38px;
    padding: 4px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nc-brand-regular-img {
    width: auto;
    height: 20px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
  }

}



/* =========================================================
   <= 560px
========================================================= */
/* ---------------------------------------------------------
   ≤ 560px (Footer layout fixes)
--------------------------------------------------------- */
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .newsletter-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer-mid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-mid-left,
  .footer-mid-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .newsletter-input,
  .newsletter-btn {
    width: 100% !important;
    max-width: 420px;
    padding: 10px 16px;
  }

  .footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer-small-title {
    font-size: 18px;
  }

  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-title{
    font-size: 30px;
    margin: 15px 0 5px;
  }

}



/* =========================================================
   <= 480px
========================================================= */
/* ---------------------------------------------------------
   ≤ 480px (Mobile gap fix: Benefit + CTA)
--------------------------------------------------------- */
@media (max-width: 480px) {

  .pkg-price{
    font-size: 15px;
  }
  
  .benefit-section {
    padding: 24px 14px !important;
  }

  .cta-card {
    padding: 50px 16px !important;
  }

  .cta-card h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }

  .cta-card p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin-bottom: 32px !important;
  }

  .benefit-iframe-wrap iframe {
    height: 220px !important;
  }

  .pkg-num {
    /* padding-left: 20px; */
  }

  .pkg-view {
    /* padding-left: 55px; */
  }

  .pkg .view-plans {
    margin-right: 4px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-q {
    padding: 14px 14px;
  }

  .faq-a {
    padding: 0 14px;
  }

  .stepper-v2__item{
    grid-template-columns: 24px 1fr;
    column-gap: 10px;
    margin-bottom: 16px;
  }

  .stepper-v2__item:first-child::after{
    left: 11px;
    top: 27px;
    height: calc(100% - 5px);
  }

  .stepper-v2__dot{
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .stepper-v2__content b{
    font-size: 16px;
    line-height: 1.2;
  }

    /* Selected package top row wraps cleanly */
  .sel-card {
    padding: 12px 12px 10px;
  }

  .sel-main {
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 44px; /* keep space for close button */
  }

  .sel-speedNum {
    font-size: 30px;
  }

  .sel-cols {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 14px;
  }

  .sel-colValue {
    white-space: normal;
  }

  /* Tags / partner row */
  .sel-tags {
    gap: 8px 8px;
  }

  /* Keep the Bongo logo + badge from overlapping the next pill */
  .sel-tags .brand.bongo,
  .sel-tags .brand-p.bongo {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-right: 14px; /* reserve room for badge */
    line-height: 0;
  }

  .sel-tags .brand.bongo > img,
  .sel-tags .brand-p.bongo > img {
    height: 18px;
    width: auto;
    display: block;
  }

  .sel-tags .brand.bongo .badge-spark,
  .sel-tags .brand-p.bongo .badge-spark {
    top: -6px;
    right: 0;
  }

  .sel-tags .brand.bongo .badge-spark img,
  .sel-tags .brand-p.bongo .badge-spark img {
    width: 12px !important;
    height: 12px !important;
    display: block;
  }

  /* Close button a bit tighter */
  .sel-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }

  .ref-btn{
    font-size: 16px;
    font-weight: 600;
    padding:0 20px;
  }

  .site-footer {
    padding: 32px 16px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    overflow-x: hidden;
  }

  .footer-desc {
    font-size: 14px;
    line-height: 26px;
  }

  .footer-title {
    font-size: 16px;
    font-weight: 500;
  }

  .footer-links a {
    font-size: 14px;
    font-weight: 400;
  }

  .faq-section {
    padding: 50px 0;
  }

  .faq-q {
    font-size: 16px;
  }

  .faq-a p {
    font-size: 14px;
    line-height: 1.5;
  }

  .benefit {
    padding: 170px 0 40px;
  }
  
  .card-top-title {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .card-top-sub {
    font-size: 16px;
    font-weight: 400;
  }

  .card-body {
    padding: 16px;
  }

  .form-separator{
    /* margin: 8px 0; */
    display: none;
  }

  .btn-p{
    margin-top: 10px;
  }
  .referral-card .steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .referral-card .step {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 14px;
    line-height: 14px;
    white-space: nowrap;
    padding-bottom: 10px
  }

  .referral-card .step-dot,
  .referral-card .steps .step-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: 0 0 18px;
    margin-top: -2px;
  }

  .referral-card .step-line {
    width: 16px;
    height: 3px;
    flex: 0 0 16px;
    margin-top: 7px;
    top: auto;
  }

  .referral-card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .referral-card .card-top-left {
    flex: 1;
    min-width: 0;
  }

  .referral-card .track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    margin-top: -12px;
  }

  .referral-card .card-top-sub {
    font-size: 16px;
    line-height: 16px;
    white-space: nowrap;
  }

  .how-title{
    font-size: 24px;
    line-height: 26px;
  }

  .how-subtitle{
    font-size: 16px;
    line-height: 20px;
  }

  .how-section {
    padding: 40px 0;
  }

   .step {
    font-size: 14px;
  }

   .referral-card {
    margin: 0 0 32px 0;
   }

   .ref-hero-img {
    position: relative;
    transform: none;
    display: block;
    margin:-75px 0 10px 15px;
   }

   .how-subtitle{
    margin: 0 0 32px;
   }

   .otp-icon-img {
    width: 60px;
    height: 60px;
  }

  #otpOverlay .modal-title {
    padding: 24px 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
  }

  #otpOverlay .modal-sub {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
  }

  #otpOverlay .otp-modal {
    padding: 24px 0;
  }

  #otpOverlay{
    padding: 0 8px;
  }

  #otpOverlay .otp{
    gap: 8px;
  }

  #otpOverlay .otp-box{
    /* width: 52px;
    height: 47px; */
  }

  .otp-timer{
    margin: 10px 16px;
  }

  #otpOverlay .otp-modal {
    padding: 24px 14px;   /* control spacing here */
  }

  #otpOverlay #verifyBtn {
    width: 100%;
  }

  .referral_modal{
    padding: 40px 16px 24px;
  }

  .overlay{
    padding: 0 8px;
  }

  .track-title-r{
    font-size: 24px;
    line-height: 28px;
    margin: 25px 16px 20px;
  }

  #trackOtpOverlay .track-otp-row{
    gap: 8px;
  }

  /* #trackOtpOverlay .track-otp-box{
    min-width: 51px;
    height: 47px;
  } */

  .track-summary{
    padding: 16px;
  }

  .ts-name{
    font-size: 20px;
    line-height: 130%;
  }

  .ts-metric .ts-label{
    text-align: left;
    font-size: 16px;
    font-weight: 500;
  }

  .ts-metric .ts-value{
    text-align: left;
    font-size: 24px;
  }

  .shell-card {
    padding: 16px;
  }

  .tyr-title {
  font-size: 24px;
  }

 .tyr-body {
  padding: 20px 12px;
  }

  .modal{
    padding: 10px;
  }

  .otp-title {
    padding-top: 24px;
    font-size: 24px;
  }

  .otp-sub{
    font-size: 16px;
    line-height: 22px;
  }

  .otp-card{
    padding: 24px 16px;
  }

  #otpModal .otp{
    gap: 8px !important;
  }

  #otpModal .otp-in{
    /* width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 47px !important; */

  }

  .tag-green{
    padding: 5px 7px;
  }

  .tag-orange{
    padding: 5px 7px;
  }

   .tag-blue{
    padding: 5px 7px;
  }

    .ref-subline {
    margin-bottom: 7px;
  }

  .card-top{
    padding: 12px;
  }

  .label {
      margin-top: -2px;
  }

  .form{
    gap: 5px;
  }

  .input{
    height: 35px;
  }
 
  .ref-headline {
     margin-top: 30px;
     font-size: 28px;
  }

  .pkg-old{
    font-size: 12px;
  }

  .pkg-price{
    padding-left: 0;
    font-size: 13px;
  }

  .ref-hero-img.ref-hero-img-mobile {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: -75px -10px;
  }

  .how-icon__img{
    width: 33px;
    height: 35px;
    display: block;
    margin-top: 6px;
  }

}



/* =========================================================
   <= 420px
========================================================= */
/* ---------------------------------------------------------
   ≤ 420px (Very small phones)
--------------------------------------------------------- */
@media (max-width: 420px) {

  /* Allow full-width usage */
  .container {
    width: 100% !important;
  }

  /* Ensure frame fills screen */
  .nc-frame {
    border-radius: 16px;
  }

  .nc-topbar {
    padding: 0 12px;
  }

  .nc-shell {
    padding: 0 12px;
  }

  .nc-right {
    padding: 18px 14px;
  }

  .pkg {
    min-height: 64px;
    height: auto;
  }

  .pkg-num {
    font-size: 26px;
  }

  .pkg-arrow {
    justify-self: end;
    margin-right: 5px;
  }

  /* Drawer becomes full-width on very small phones */
  .vp-drawer {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .vp-close {
    left: 10px;
  }

  .otp-inputs {
    gap: 6px;
    justify-content: center;
  }

  .otp-in {
    width: 38px;
    height: 46px;
    min-width: 38px;
  }

  .hero.hero--custom {
    position: relative;
    overflow: hidden;
    padding: 0;
  }

  /* Reduce empty space */
  .hero-graphic {
    height: 250px !important;
    margin-bottom: 10px !important;
  }

  /* Keep circle big but not too tall */
  .hero-circle {
    width: 260px !important;
    height: 260px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Make person fill the area and sit lower */
  .hero-person {
    height: 260px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) !important;
  }

  /* Pull text upward */
  .hero-title,
  .hero__name {
    margin-top: 0 !important;
  }

  .pkg{
    padding: 10px 10px;
  }

  .pkg-unit{
    margin-bottom: 5px;
  }

  #trackOtpOverlay .track-otp-box {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 47px;
  }

  #trackOtpOverlay .track-otp-row {
    gap: 6px;
  }  

  #otpOverlay .otp-box {
    width: 51px;
    min-width: 51px;
    max-width: 51px;
    height: 47px;
  }

  #otpModal .otp-in {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    height: 47px;
  }

    .loc-modal {
    padding: 18px 16px 14px;
    border-radius: 14px
  }

  .loc-h3,
  .map-h3 {
    font-size: 18px
  }

  .map-modal {
    padding: 16px 14px 14px;
    border-radius: 16px
  }

  .loc-overlay {
    padding: 12px;
  }

  .loc-modal {
    width: calc(100vw - 24px);
  }

  .vp-item,
  .vp-card {
    transition: border-color .25s ease, box-shadow .25s ease;
  }

  .vp-item:hover,
  .vp-card:hover,
  .vp-item.active,
  .vp-card.active {
    transform: none;
  }

    .map-overlay {
    padding: 12px;
  }

  .map-modal {
    width: calc(100vw - 24px);
  }

  #otpModal .otp-box, #otpModal .otp-in {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 47px;
  }
}



/* =========================================================
   >= 1600px | Large desktop
========================================================= */
@media (min-width: 1600px) {

  .referral-section {
    min-height: auto;
    height: auto;
    padding: 70px 0 80px;
    display: block;
  }

  .left-wrap {
    height: 520px;
    position: relative;
  }

  .ref-hero-img {
    width: 650px;
    left: -20px;
    top: -190px;
    transform: none;
  }

  .ref-left-text {
    left: 80px;
    top: 295px;
    max-width: 520px;
  }

  .ref-headline {
    font-size: 56px;
    line-height: 1.08;
    margin: 0 0 8px;
  }

  .ref-subline {
    font-size: 20px;
  }

  .referral-card {
    max-width: 660px;
    margin-left: auto;
    margin-top: 20px;
  }

  .referr-p {
    align-items: center;
  }
}



/* =========================================================
   <= 360px
========================================================= */
@media (max-width: 360px) {
  #trackOtpOverlay .track-otp-box {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 47px;
  }

  #trackOtpOverlay .track-otp-row {
    gap: 6px;
  }

  #otpOverlay .otp-box {
    width: 43px;
    min-width: 43px;
    max-width: 43px;
    height: 45px;
  }

    #otpModal .otp-in {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 47px;
  }

  #otpModal .otp-box, #otpModal .otp-in {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 47px;
  }
}


