    /* overlay */
    .ref_popup_overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      display: none;
      justify-content: center;
      align-items: center;
      backdrop-filter: blur(1px);
    }

    /* main card – softer, more airy */
    .ref_popup {
      width: 1000px;
      max-width: 94vw;
      background: #ffffff;
      border-radius: 40px;
      padding: 28px 30px 28px;
      position: relative;
      box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.25);
      transition: all 0.2s;
    }


    /* close button – cleaner */
    .ref_countdown_btn,
    .ref_close_therapist_suggestions_btn {
      position: absolute;
      top: 18px;
      right: 22px;
      width: auto;
      height: auto;
      border-radius: 0;        /* No rounding */
      border: 0;               /* No border */
      background: transparent; /* Fully transparent */
      font-size: 24px;
      font-weight: 300;
      cursor: pointer;
      color: #333;
      transition: 0.2s;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      box-shadow: none;
      line-height: 1;
    }
    .ref_close_therapist_suggestions_btn:hover {
      color: #538688;
    }
    .ref_countdown_btn{
        font-size: 25px;
        font-weight:700;
        color:#538688;
    }
    
    .ref_close_therapist_suggestions_btn{
        font-size:34px;
        color:#333;
    }

     .ref_countdown_btn{
      border-radius: 0%;
      border: 0 solid #d0d0d0;
      background: #fff;
     }
    /* ----- HEADING (more elegant) ----- */
    .ref_heading {
      text-align: center;
      margin-top: 10px;
      margin-bottom: 0;
    }
    .ref_heading h1 {
      font-size: 30px;
      font-weight: 700;
      letter-spacing: -0.3px;
      color: #1e1e1e;
      margin-bottom: 20px;
    }
    .ref_heading h1 span {
      color: #538688;
      font-style: italic;
      font-weight: 700;
    }
    .ref_heading h2 {
      font-size: 26px;
      font-weight: 500;
      color: #1e1e1e;
      margin-top: -5px;
    }
    .ref_heading h2 span {
      color: #538688;
      font-weight: 600;
      background: rgba(29, 92, 54, 0.08);
      padding: 0 6px;
      border-radius: 40px;
    }

    /* banner – cleaner grid */
    .ref_banner {
      margin-top: 12px;
      display: flex;
      border: 1px solid #e6e9e7;
      border-radius: 24px;
      overflow: hidden;
      background: #fafcfa;
    }
    .ref_banner > div {
      padding: 0px 20px;
    }
    .ref_banner_left {
      flex: 2;
    }
    .ref_banner_left h3 {
    color: #D4AF37;
    font-weight: 700;
    font-size: 30px;
    margin-top: 10px;
    margin-left: -5px;
    z-index: 100;
    }
    .ref_banner_left p {
      font-size: 16px;
      color: #3e4d44;
      line-height: 1.3;
      font-weight: 400;
    }
    .ref_banner_center {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      border-left: 1px solid #e0e6e2;
      border-right: 1px solid #e0e6e2;
    }
    .ref_banner_center small {
      font-size: 14px;
      font-weight: 400;
      color: #1e3b2b;
      letter-spacing: 0.5px;
    }
    .ref_banner_center h2 {
      color: #538688;
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.5px;
      margin-top: -4px;
    }
    .ref_banner_right {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fafcfa;
      padding: 0 8px;
    }
    .ref_banner_right img {
      width: 100%;
      max-width: 140px;
      display: block;
      filter: drop-shadow(0 4px 6px rgba(0,0,0,0.04));
    }

    /* stats – soft */
.ref_stats {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;   /* Left align */
    align-items: center;
    border: 1px solid #e6e9e7;
    border-radius: 40px;
    padding: 8px 20px;             /* Left padding */
    background: #538688;
}

.ref_stats span {
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    margin-left: 10px;
}

    /* ----- MODIFIED CARD CSS – refined, modern, softer ----- */
    .ref_cards_wrapper {
      margin-top: 14px;
      display: flex;
      gap: 18px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      padding: 4px 4px 8px 4px;
      /* HIDE SCROLLBAR */
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE and Edge */
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .ref_cards_wrapper::-webkit-scrollbar {
      display: none;
    }

    /* CARD – softer shadows, smoother corners, refined spacing */
    .ref_card {
      flex: 0 0 auto;
      width: 75%;
      min-width: 380px;
      background: #ffffff;
      border-radius: 28px;
      padding: 20px;
      display: flex;
      align-items: flex-start;
      gap: 24px;
      box-shadow: 0 8px 28px -6px rgba(0, 20, 10, 0.08), 0 2px 6px rgba(0,0,0,0.02);
      border: 5px solid #f0f3f1;
      transition: box-shadow 0.25s ease, transform 0.2s ease;
      scroll-snap-align: start;
    }

    .ref_card:hover {
      box-shadow: 0 20px 40px -12px rgba(29, 92, 54, 0.15), 0 4px 12px rgba(0,0,0,0.02);
      transform: translateY(-2px);
      border-color: #d6e2dc;
    }

    /* Profile image – softer radius, subtle shadow */
    .ref_profile {
      width: 210px;          /* image width এর সমান */
      flex: 0 0 210px;
      flex-shrink: 0;
      position: relative;
    }

    .ref_profile img {
    width: 210px;
    object-fit: cover;
    border-radius: 22px;
    background: #eef2ef;
    box-shadow: 0 8px 18px -6px rgba(0, 20, 10, 0.10);
    display: block;
    transition: 0.2s;
    height: 300px;
    }

    /* Gender badge – cleaner glassmorphism, rounded */
    .ref_gender {
      position: absolute;
      bottom: -9px;
      left: 4px;
      background: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      color: #1e2c24;
      padding: 4px 12px 4px 12px;
      border-radius: 60px;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.2px;
      line-height: 1.2;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
      border: 1px solid rgba(255,255,255,0.5);
      text-transform: uppercase;
    }

    /* Info – better spacing */
    .ref_info{
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 10px;
        margin-top: 14px;
    }

    .ref_top{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    .ref_name {
    font-size: 32px;
    font-weight: 700;
    color: #18231d;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    margin-bottom: 8px;
    }

    .ref_name i {
      color: green;
      font-size: 18px;
    }
    .ref_top > div:first-child{
    flex: 1;
    }

    .ref_rating {
    font-size: 20px;
    color: #2d4035;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    }

    .ref_rating i {
      color: #f5b342;
    }

    .ref_experience {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #557064;
    font-size: 18px;
    font-weight: 400;
    background: #f3f8f5;
    padding: 6px 16px;
    border-radius: 60px;
    border: 1px solid #e2ebe6;
    width: fit-content;
    }

    .ref_experience i {
      color: #538688;
      font-size: 16px;
    }

    /* Time chip – more minimal, glassy */
    .ref_time {
      background: #ffb400;
      color: #fff;
      padding: 6px 16px;
      border-radius: 60px;
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 6px 14px rgba(29, 92, 54, 0.18);
      letter-spacing: 0.2px;
      border: 1px solid rgba(255,255,255,0.1);
      margin-top: 14px;
    }

    /* Buttons – softer, more refined */
    .ref_buttons {
    margin-top: 20px;
    gap: 14px;
    }

    .ref_buttons button {
       padding: 9px 29px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #006dff;
    color: #fff;
    border: 1px solid #e0e9e3;
    }

    .ref_buttons button i {
      font-size: 15px;
    }

    .ref_book {
      background: #538688;
      color: #fff;
      box-shadow: 0 4px 10px rgba(29,92,54,0.25);
    }
    .ref_book:hover {
      transform: scale(1.01);
    }

    .ref_about {
      background: #f6fbf8;
      border: 1px solid #d4e3db !important;
      color: #1d3a2c;
    }

    .ref_about:hover {
      transform: scale(1.01);
    }

    /* nearby */
    .ref_nearby {
      margin-top: 12px;
      border: 1px solid #e6e9e7;
      border-radius: 60px;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 17px;
      font-weight: 500;
      color: #fff;
      background: #006dff;
      cursor: default;
      transition: 0.2s;
    }
    .ref_nearby div:first-child i {
      margin-right: 10px;
      color: #fff;
    }
    .ref_nearby div:last-child {
      font-size: 22px;
      color: #fff;
    }

    .ref_verified_tick{
        color: #4CAF50;
        font-weight: bold;
    }
    
    .ref_therapist_paragraphs {
    width: 100%;
    padding: 18px 20px;
    background-color:white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.ref_therapist_paragraphs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #A67C00, #D4AF37);
}
.ref_therapist_paragraphs::after {
    content: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #A67C00, #D4AF37);
}
.ref_luxury_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.ref_luxury_line_heading img {
    width: 40px;
    margin-top: 0px;
    margin-left: 8px;
    margin-right: -70px;
}
.ref_luxury_message {
    text-align: center;
    margin-bottom: 18px;
}
.ref_luxury_line {
    font-family: "Sevillana", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: #333;
    margin: 6px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
}

.ref_luxury_line_heading {
    display:flex;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #333;
    margin: 6px 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    position: relative;
}
.ref_gold_text {
    color: #D4AF37;
    font-weight: 700;
    font-size: 20px;
    margin-top: 10px;
    margin-left: 40px;
    z-index: 100;
}

.ref_exclusive_line {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-top: 16px;
    letter-spacing: 1px;
    font-weight: 700;
}
.ref_jiifit_brand {
    color: #60898b;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}
.ref_jiifit_brand::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60898b, #D4AF37);
}
.ref_luxury_button {
    background: linear-gradient(135deg, #D4AF37 0%, #A67C00 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-decoration: none;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.ref_luxury_button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.ref_luxury_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.ref_luxury_button:hover::before {
    left: 100%;
}
@keyframes ref_sparkle {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.8; transform: scale(1); }
}

.ref_friends_only_note {
    margin-top: 15px;
    font-size: 19px;
    color: #999;
    font-style: italic;
}

/* Advanced Location Popup */
#ref_location_popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(8px);
}

.ref_location_box {
    width: 380px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 32px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.3);
    animation: ref_popup_pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ref_popup_pop {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ref_location_icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #538688, #D4AF37);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 42px;
    box-shadow: 0 10px 30px rgba(83, 134, 136, 0.3);
}

.ref_location_box h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 12px;
}

.ref_location_subtitle {
    font-size: 16px;
    color: #444;
    line-height: 1.4;
    margin-bottom: 24px;
}

.ref_benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.ref_benefit_item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2d4035;
}

.ref_benefit_item i {
    color: #538688;
    font-size: 18px;
    width: 24px;
}

.ref_location_footer p {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.4;
}

.ref_manual_btn {
    background: transparent;
    border: 1.5px solid #d4d4d4;
    color: #555;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ref_manual_btn:hover {
    background: #f8f8f8;
    border-color: #538688;
    color: #1e1e1e;
}

/* Luxury Button Enhancement */
.ref_luxury_button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Overlay */
#ref_locality_popup{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Popup Box */
.ref_location_box{
    width: 420px;
    max-width: 92%;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    animation: ref_popup_scale .25s ease;
}

/* Heading */
.ref_location_box h2{
    font-size: 26px;
    color: #222;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Select */
#ref_locality_select{
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #d9d9d9;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: .25s;
    background: #fff;
    cursor: pointer;
}

#ref_locality_select:focus{
    border-color: #538688;
    box-shadow: 0 0 0 4px rgba(83,134,136,.15);
}

/* Button */
#ref_continue_btn{
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #538688;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

#ref_continue_btn:hover{
    background: #416d6f;
    transform: translateY(-2px);
}

/* Animation */
@keyframes ref_popup_scale{
    from{
        opacity:0;
        transform:scale(.9);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

/* Mobile */
@media (max-width:480px){

    .ref_location_box{
        width:92%;
        padding:22px;
        border-radius:18px;
    }

    .ref_location_box h2{
        font-size:22px;
    }

    #ref_locality_select,
    #ref_continue_btn{
        font-size:15px;
    }
}

.ref_time i {
    margin-right: 2px;
}

.ref_name{
    font-size:32px;
    font-weight:700;
    color:#18231d;
    letter-spacing:-0.2px;
    display:flex;
    align-items:center;
    gap:6px;
    line-height:1.2;
    margin-bottom:8px;
}

.ref_name i{
    color:#4CAF50;
    font-size:18px;
}

.ref_rating{
    font-size:20px;
    color:#2d4035;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:8px;
}

.ref_rating i{
    color:#f5b342;
}

.ref_experience{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#557064;
    font-size:18px;
    font-weight:400;
    background:#f3f8f5;
    padding:6px 16px;
    border-radius:60px;
    border:1px solid #e2ebe6;
    width:fit-content;
    margin-bottom:10px;
}

.ref_experience i{
    color:#538688;
    font-size:16px;
}

@media (max-width: 1024px) {
    
}
@media (max-width: 768px) {
    .ref_card {
    width: 90%;
    }
}

@media (max-width: 480px) {
      .ref_popup {
        width: 1000px;
        max-width: 94vw;
        background: #ffffff;
        border-radius: 40px;
        padding: 28px 9px 28px;
        padding-left: 8px;
        position: relative;
        box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.25);
        transition: all 0.2s;
     }
      .ref_heading h1 {
        font-size: 17px;
      }
      .ref_gold_text {
        color: #D4AF37;
        font-weight: 700;
        font-size: 13px;
        margin-top: 10px;
        margin-left: 13px;
        z-index: 100;
      }
      .ref_jiifit_brand
         {
            font-size: 12px;
        }
      .ref_luxury_line {
        font-size: 0.9rem;
      }
    .ref_exclusive_line {
        font-family: 'Playfair Display', serif;
        font-size: 0.7rem;
        color: #333;
        letter-spacing: 1px;
        font-weight: 700;
    }
    .ref_stats {
        margin-top: 12px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border: 1px solid #e6e9e7;
        border-radius: 40px;
        padding: 6px 20px;
        background: #538688;
    }
    .ref_stats span {
        font-size: 10px;
        font-style: italic;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        margin-left: 10px;
    }
    .ref_profile img {
        width: 100px;
        height: 160px;
    }
    .ref_nearby {
        margin-top: 0px;
        padding: 0px 17px;
        font-size: 10px;
    }
    .ref_luxury_line_heading img {
            width: 20px;
    }
    .ref_card {
        padding: 5px;
        height: 189px;
        width: 81%;
        min-width: 316px;
        gap: 17px;
    }
    .ref_cards_wrapper {
        margin-top: 5px;
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 4px 4px 8px 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ref_name {
        font-size: 15px;
        font-weight: 700;
        color: #18231d;
        letter-spacing: -0.2px;
        display: flex;
        align-items: center;
        gap: 4px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .ref_name i {
        font-size: 10px;
    }
    .ref_rating {
        font-size: 8px;
        color: #2d4035;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 8px;
    }
    .ref_experience {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #557064;
        font-size: 9px;
        font-weight: 400;
        background: #f3f8f5;
        padding: 2px 10px;
        border-radius: 60px;
        border: 1px solid #e2ebe6;
        width: fit-content;
    }
    
    .ref_time {
        background: #ffb400;
        color: #fff;
        padding: 6px 16px;
        border-radius: 60px;
        font-size: 8px;
        font-weight: 600;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 6px 14px rgba(29, 92, 54, 0.18);
        letter-spacing: 0.2px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }
    .ref_buttons {
       margin-top: 3px;
    }
    
    .ref_buttons button {
        padding: 4px 19px;
        border-radius: 60px;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #006dff;
        color: #fff;
        border: 1px solid #e0e9e3;
    }
    .ref_friends_only_note {
        margin-top: 8px;
        font-size: 10px;
        color: #999;
        font-style: italic;
    }
    .ref_profile {
        width: 93px !important;
        flex: 0 0 93px !important;  /* grow: 0, shrink: 0, basis: 93px */
        flex-shrink: 0;
        position: relative;
     }
    .ref_buttons button i {
       font-size: 8px;
    }
    .ref_info {
        padding-left: 0px;
    }
    
        .ref_countdown_btn, .ref_close_therapist_suggestions_btn
 {
    top: 11px;
    right: 22px;
    width: 25px;
    font-size: 14px;
 }
    
}
@media (max-width: 375px) {
    .ref_popup {
        width: 1000px;
        max-width: 94vw;
        background: #ffffff;
        border-radius: 40px;
        padding: 28px 9px 28px;
        padding-left: 8px;
        position: relative;
        box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.25);
        transition: all 0.2s;
     }
      .ref_heading h1 {
        font-size: 15px;
      }
      .ref_gold_text {
        color: #D4AF37;
        font-weight: 700;
        font-size: 9px;
        margin-top: 10px;
        margin-left: 24px;
        z-index: 100;
      }
      .ref_jiifit_brand
         {
            font-size: 12px;
        }
      .ref_luxury_line {
        font-size: 0.6rem;
      }
    .ref_exclusive_line {
        font-family: 'Playfair Display', serif;
        font-size: 0.7rem;
        color: #333;
        letter-spacing: 1px;
        font-weight: 700;
    }
    .ref_stats {
        margin-top: 12px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border: 1px solid #e6e9e7;
        border-radius: 40px;
        padding: 6px 20px;
        background: #538688;
    }
    .ref_stats span {
        font-size: 9px;
        font-style: italic;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        margin-left: 10px;
    }
    .ref_profile img {
        width: 100px;
        height: 160px;
    }
    .ref_nearby {
        margin-top: 0px;
        padding: 0px 17px;
        font-size: 9px;
    }
    .ref_luxury_line_heading img {
            width: 20px;
    }
    .ref_card {
        padding: 5px;
        height: 189px;
        width: 75%;
        min-width: 283px;
        gap: 17px;
    }
    .ref_cards_wrapper {
        margin-top: 5px;
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 4px 4px 8px 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ref_name {
        font-size: 13px;
        font-weight: 700;
        color: #18231d;
        letter-spacing: -0.2px;
        display: flex;
        align-items: center;
        gap: 4px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .ref_name i {
        font-size: 10px;
    }
    .ref_rating {
        font-size: 8px;
        color: #2d4035;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 8px;
    }
    .ref_experience {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #557064;
        font-size: 6px;
        font-weight: 400;
        background: #f3f8f5;
        padding: 2px 10px;
        border-radius: 60px;
        border: 1px solid #e2ebe6;
        width: fit-content;
    }
    
    .ref_time {
        background: #ffb400;
        color: #fff;
        padding: 6px 16px;
        border-radius: 60px;
        font-size: 5px;
        font-weight: 600;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 6px 14px rgba(29, 92, 54, 0.18);
        letter-spacing: 0.2px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }
    .ref_buttons {
       margin-top: 3px;
    }
    
    .ref_buttons button {
        padding: 4px 19px;
        border-radius: 60px;
        font-size: 6px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #006dff;
        color: #fff;
        border: 1px solid #e0e9e3;
    }
    .ref_friends_only_note {
        margin-top: 5px;
        font-size: 8px;
        color: #999;
        font-style: italic;
    }
    .ref_profile {
        width: 93px !important;
        flex: 0 0 93px !important;  /* grow: 0, shrink: 0, basis: 93px */
        flex-shrink: 0;
        position: relative;
     }
    .ref_buttons button i {
       font-size: 6px;
    }
    .ref_info {
        padding-left: 0px;
    }
        .ref_countdown_btn, .ref_close_therapist_suggestions_btn
 {
    top: 11px;
    right: 22px;
    width: 25px;
    font-size: 14px;
 }
}

@media (max-width: 320px) {
    
    .ref_countdown_btn, .ref_close_therapist_suggestions_btn
     {
        top: 11px;
        right: 22px;
        width: 25px;
        font-size: 14px;
     }
    .ref_popup {
        width: 1000px;
        max-width: 94vw;
        background: #ffffff;
        border-radius: 40px;
        padding: 28px 9px 28px;
        padding-left: 8px;
        position: relative;
        box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.25);
        transition: all 0.2s;
     }
      .ref_heading h1 {
        font-size: 11px;
      }
      .ref_gold_text {
        color: #D4AF37;
        font-weight: 700;
        font-size: 9px;
        margin-top: 10px;
        margin-left: 24px;
        z-index: 100;
      }.ref_jiifit_brand
         {
            font-size: 12px;
        }
      .ref_luxury_line {
        font-size: 0.6rem;
      }
    .ref_exclusive_line {
        font-family: 'Playfair Display', serif;
        font-size: 0.7rem;
        color: #333;
        letter-spacing: 1px;
        font-weight: 700;
    }
    .ref_stats {
        margin-top: 12px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border: 1px solid #e6e9e7;
        border-radius: 40px;
        padding: 6px 20px;
        background: #538688;
    }
    .ref_stats span {
        font-size: 9px;
        font-style: italic;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        margin-left: 10px;
    }
    .ref_profile img {
        width: 100px;
        height: 160px;
    }
    .ref_nearby {
        margin-top: 0px;
        padding: 0px 17px;
        font-size: 9px;
    }
    .ref_luxury_line_heading img {
            width: 20px;
    }
    .ref_card {
        padding: 5px;
        height: 189px;
        width: 75%;
        min-width: 283px;
        gap: 17px;
    }
    .ref_cards_wrapper {
        margin-top: 5px;
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        padding: 4px 4px 8px 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ref_name {
        font-size: 13px;
        font-weight: 700;
        color: #18231d;
        letter-spacing: -0.2px;
        display: flex;
        align-items: center;
        gap: 4px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .ref_name i {
        font-size: 10px;
    }
    .ref_rating {
        font-size: 8px;
        color: #2d4035;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: 8px;
    }
    .ref_experience {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #557064;
        font-size: 6px;
        font-weight: 400;
        background: #f3f8f5;
        padding: 2px 10px;
        border-radius: 60px;
        border: 1px solid #e2ebe6;
        width: fit-content;
    }
    
    .ref_time {
        background: #ffb400;
        color: #fff;
        padding: 6px 16px;
        border-radius: 60px;
        font-size: 5px;
        font-weight: 600;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 6px 14px rgba(29, 92, 54, 0.18);
        letter-spacing: 0.2px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }
    .ref_buttons {
       margin-top: 3px;
    }
    
    .ref_buttons button {
        padding: 4px 19px;
        border-radius: 60px;
        font-size: 6px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #006dff;
        color: #fff;
        border: 1px solid #e0e9e3;
    }
    .ref_friends_only_note {
        margin-top: 5px;
        font-size: 8px;
        color: #999;
        font-style: italic;
    }
    .ref_profile {
        width: 93px !important;
        flex: 0 0 93px !important;  /* grow: 0, shrink: 0, basis: 93px */
        flex-shrink: 0;
        position: relative;
     }
    .ref_buttons button i {
       font-size: 6px;
    }
    .ref_info {
        padding-left: 0px;
    }
    
}