/**
 * @tableofcontents
 *
 * BASE STYLES
 *   1. Hero Section
 *   2. Rewards Section
 *   3. Steps Section
 *   4. Calculator / Slider Section
 *   5. Top Earners Section
 *   6. Testimonials Section
 *   7. CTA Banner Section
 *
 * RESPONSIVE (at bottom, consolidated)
 *   R1. max-width: 1399px
 *   R2. max-width: 1199px
 *   R3. max-width: 1100px
 *   R4. max-width: 991px
 *   R5. max-width: 767px
 *   R6. max-width: 480px
 *
 * Typography — from template/assets/css/a-generic/text.css:
 *   .p1-medium   → tag  (20px / 500 / lh 1.5)
 *   h1           → heading (64px / 700 / lh 1.2)
 *   .p1-regular  → description (20px / 400 / lh 1.5)
 *   .p2-semibold → button text (16px / 600 / lh 1.5)
 */


/* =============================================
   1. HERO SECTION
   ============================================= */

.referral_dashboard .ref_dash_hero {
    background-image: url('https://www.cloudways.com/wp-content/uploads/2026/07/referral_hero_bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: 175px;
    overflow: hidden;
}

/* Container: flex column — text above, illustration below */
.referral_dashboard .ref_dash_hero > .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

/* Text block */
.referral_dashboard .ref_dash_hero_txt_wrap {
    width: 100%;
    max-width: 730px;
    padding-bottom: 48px;
}

/* Tag — gradient text */
.referral_dashboard .ref_dash_tag {
    display: inline-block;
    background: linear-gradient(172.33deg, #ade6ff 9.82%, #5464f5 107.85%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 20px;
}

/* Heading */
.referral_dashboard .ref_dash_ttl {
    color: #ffffff;
    line-height: var(--ds-line-height-110);
    margin: 0 0 24px;
}

/* Description */
.referral_dashboard .ref_dash_desc {
    color: var(--ds-gray-1);
    margin: 0 0 40px;
}

/* CTA row */
.referral_dashboard .ref_dash_cta_wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: var(--ds-spacing-16);
}

/* Primary CTA */
.referral_dashboard .ref_dash_btn_primary {
    background-color: var(--ds-light);
    color: var(--ds-gray-100);
    -webkit-text-fill-color: var(--ds-gray-100);
    padding: 12px 24px;
    border-radius: var(--ds-radius-4);
    border: 1.5px solid transparent;
    min-width: 201px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-decoration: none;
    -webkit-transition: background-color 0.2s ease;
         -o-transition: background-color 0.2s ease;
            transition: background-color 0.2s ease;
}

.referral_dashboard .ref_dash_btn_primary:hover,
.referral_dashboard .ref_dash_btn_primary:focus {
    background-color: #e8e8e8;
    color: var(--ds-gray-100);
    text-decoration: none;
}

/* Outline CTA */
.referral_dashboard .ref_dash_btn_outline {
    background-color: transparent;
    color: var(--ds-light);
    -webkit-text-fill-color: var(--ds-light);
    padding: 12px 24px;
    border-radius: var(--ds-radius-4);
    border: 1.5px solid var(--ds-light);
    min-width: 140px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    text-decoration: none;
    height: max-content;
    -webkit-transition: background-color 0.2s ease;
         -o-transition: background-color 0.2s ease;
            transition: background-color 0.2s ease;
}

.referral_dashboard .ref_dash_btn_outline:hover,
.referral_dashboard .ref_dash_btn_outline:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--ds-light);
    text-decoration: none;
}

/* Illustration */
.referral_dashboard .ref_dash_hero_illustration {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 845px;
    width: 100%;
}

.referral_dashboard .ref_dash_hero_illustration img {
    width: 75%;
    max-width: 920px;
    height: auto;
}

.referral_dashboard .ref_dash_hero_illustration .ref_dash_hero_img_default {
    width: 100%;
}

/* Conditional illustration swap via .referral_campaign on wrapper */
.referral_dashboard .ref_dash_hero_img_campaign { display: none; }
.referral_dashboard .ref_dash_hero_img_default  { display: block; }
.referral_dashboard.referral_campaign .ref_dash_hero_img_campaign { display: block; }
.referral_dashboard.referral_campaign .ref_dash_hero_img_default  { display: none; }


/* =============================================
   2. REWARDS SECTION
   ============================================= */

.referral_dashboard .ref_dash_rewards {
    padding: 80px 0 100px;
    background: #ffffff;
}

.referral_dashboard .ref_dash_rewards_hdr {
    max-width: 695px;
    margin: 0 auto 64px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 14px;
}

.referral_dashboard .ref_dash_rewards_ttl {
    margin: 0;
}

.referral_dashboard .ref_dash_rewards_sub {
    color: var(--ds-gray-80);
    max-width: 503px;
    margin: 0;
}

.referral_dashboard .ref_dash_rewards_row {
    margin-left: -12px;
    margin-right: -12px;
}

.referral_dashboard .ref_dash_rewards_row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.referral_dashboard .ref_dash_reward_card {
    background: #ffffff;
    border-radius: var(--ds-radius-8);
    -webkit-box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.05);
            box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.05);
    padding: 40px;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-height: 299px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.referral_dashboard .ref_dash_reward_card_icon {
    width: 48px;
    height: 48px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    margin-bottom: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.referral_dashboard .ref_dash_reward_card_icon svg {
    width: 48px;
    height: 48px;
    display: block;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.referral_dashboard .ref_dash_reward_card_ttl {
    margin: 0 0 17px;
}

.referral_dashboard .ref_dash_reward_card_desc {
    color: var(--ds-gray-80);
    margin: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}


/* =============================================
   3. STEPS SECTION
   ============================================= */

.referral_dashboard .ref_dash_steps {
    padding: 80px 0 100px;
}

.referral_dashboard .ref_dash_steps_hdr {
    max-width: 600px;
    margin: 0 auto 64px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 16px;
}

.referral_dashboard .ref_dash_steps_ttl {
    margin: 0;
}

.referral_dashboard .ref_dash_steps_sub {
    color: var(--ds-gray-80);
    max-width: 503px;
    margin: 0;
}

.referral_dashboard .ref_dash_steps_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
        -ms-flex-align: flex-start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.referral_dashboard .ref_dash_step_item {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-width: 0;
}

.referral_dashboard .ref_dash_steps_arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-top: 120px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 72px;
}

.referral_dashboard .ref_dash_step_img_wrap {
    background: -webkit-linear-gradient(300.9deg, rgba(130, 150, 255, 0.16) -5.92%, rgba(185, 183, 252, 0.16) 86%);
    background:         linear-gradient(149.1deg, rgba(185, 183, 252, 0.16) 14%, rgba(130, 150, 255, 0.16) 106%);
    border-radius: 19px;
    height: 296px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.referral_dashboard .ref_dash_step_img_wrap img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

.referral_dashboard .ref_dash_step_content {
    padding: 0 16px;
}

.referral_dashboard .ref_dash_step_ttl {
    margin: 0 0 12px;
}

.referral_dashboard .ref_dash_step_desc {
    color: var(--ds-gray-80);
    margin: 0;
}


/* =============================================
   4. CALCULATOR / SLIDER SECTION
   ============================================= */

.referral_dashboard .ref_dash_calc {
    padding: 80px 0 100px;
    background: var(--ds-gray-1);
}

.referral_dashboard .ref_dash_calc_hdr {
    max-width: 600px;
    margin: 0 auto 64px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 14px;
}

.referral_dashboard .ref_dash_calc_ttl {
    margin: 0;
}

.referral_dashboard .ref_dash_calc_sub {
    color: var(--ds-gray-80);
    max-width: 503px;
    margin: 0;
}

.referral_dashboard .ref_dash_calc_card {
    background: #ffffff;
    border: 1px solid var(--ds-gray-10);
    border-radius: var(--ds-radius-8);
    -webkit-box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.05);
            box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.referral_dashboard .ref_dash_calc_card_top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 30px;
}

.referral_dashboard .ref_dash_calc_card_ttl {
    margin: 0;
}

.referral_dashboard .ref_dash_calc_card_count {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
    gap: 6px;
    margin: 0;
}

.referral_dashboard .ref_dash_calc_count_num {
    color: var(--ds-blue-100);
}

.referral_dashboard .ref_dash_calc_count_lbl {
    color: var(--ds-gray-60);
}

/* Slider wrapper */
.referral_dashboard .ref_dash_calc_slider_wrap {
    position: relative;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 32px;
}

/* Custom visual track */
.referral_dashboard .ref_dash_slider_track {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 100px;
    background: #E4E5F7;
    z-index: 0;
    overflow: visible;
}

/* Gradient fill bar */
.referral_dashboard .ref_dash_slider_fill {
    height: 100%;
    border-radius: 100px;
    background: -webkit-linear-gradient(left, rgba(47, 57, 191, 0.25) 0%, #2F39BF 100%);
    background:         linear-gradient(to right, rgba(47, 57, 191, 0.25) 0%, #2F39BF 100%);
    width: 0%;
    pointer-events: none;
}

/* Step dots */
.referral_dashboard .ref_dash_slider_dots {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
    pointer-events: none;
    z-index: 1;
}

.referral_dashboard .ref_dash_slider_dots li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    background-color: rgba(209, 213, 242, 0.85);
    -webkit-transition: background-color 0.15s ease;
         -o-transition: background-color 0.15s ease;
            transition: background-color 0.15s ease;
}

.referral_dashboard .ref_dash_slider_dots li.active {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Native range input */
.referral_dashboard .ref_dash_range {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    display: block;
    width: 100%;
    height: 40px;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.referral_dashboard .ref_dash_range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 100px;
    background: transparent;
}

.referral_dashboard .ref_dash_range::-moz-range-track {
    height: 8px;
    border-radius: 100px;
    background: transparent;
    border: none;
    outline: none;
}

.referral_dashboard .ref_dash_range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #091E42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M5.5 1L1 6L5.5 11' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 1L15 6L10.5 11' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    -webkit-box-shadow: 0 2px 12px rgba(9, 30, 66, 0.3);
            box-shadow: 0 2px 12px rgba(9, 30, 66, 0.3);
    border: none;
    margin-top: -16px;
}

.referral_dashboard .ref_dash_range::-moz-range-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #091E42;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M5.5 1L1 6L5.5 11' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 1L15 6L10.5 11' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    -moz-box-shadow: 0 2px 12px rgba(9, 30, 66, 0.3);
         box-shadow: 0 2px 12px rgba(9, 30, 66, 0.3);
}

/* Stat boxes */
.referral_dashboard .ref_dash_calc_stats_row {
    margin-left: -12px;
    margin-right: -12px;
}

.referral_dashboard .ref_dash_calc_stats_row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.referral_dashboard .ref_dash_calc_stat_box {
    border-radius: 10px;
    height: 89px;
    padding: 0 32px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.referral_dashboard .ref_dash_calc_stat_white {
    background: #ffffff;
    border: 1px solid var(--ds-gray-10);
}

.referral_dashboard .ref_dash_calc_stat_blue {
    background: var(--ds-blue-5);
    border: 1px solid var(--ds-blue-25);
}

.referral_dashboard .ref_dash_calc_stat_label {
    color: var(--ds-gray-80);
    margin: 0;
}

.referral_dashboard .ref_dash_calc_stat_val {
    color: var(--ds-blue-100);
    font-size: var(--ds-font-size-32);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-120);
    letter-spacing: var(--ds-letter-spacing-3);
    font-family: var(--ds-font-poppins);
    white-space: nowrap;
}


/* =============================================
   5. TOP EARNERS SECTION
   ============================================= */

.referral_dashboard .ref_dash_earners {
    background-color: #0f0639;
    background-image: url("https://www.cloudways.com/wp-content/uploads/2026/07/referrals_topEarn.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 80px 0;
    overflow: hidden;
}

.referral_dashboard .ref_dash_earners_inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 48px;
}

.referral_dashboard .ref_dash_earners_img_col {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 49%;
            flex: 0 0 49%;
    max-width: 610px;
}

.referral_dashboard .ref_dash_earners_img {
    display: block;
    width: 100%;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
}

.referral_dashboard .ref_dash_earners_content {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41%;
            flex: 0 0 41%;
    max-width: 538px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 36px;
}

.referral_dashboard .ref_dash_earners_hdr {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
}

.referral_dashboard .ref_dash_earners_title_group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 8px;
}

.referral_dashboard .ref_dash_earners_tag {
    display: inline-block;
    background-image: -webkit-linear-gradient(60.83deg, #ffffff 37.592%, #C583E0 47%, #FFBC7D 74.043%, #ffffff 115.51%);
    background-image:         linear-gradient(29.17deg, #ffffff 37.592%, #C583E0 47%, #FFBC7D 74.043%, #ffffff 115.51%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0;
}

.referral_dashboard .ref_dash_earners_ttl {
    color: #ffffff;
    margin: 0;
}

.referral_dashboard .ref_dash_earners_desc {
    color: var(--ds-gray-1);
    margin: 0;
}

.referral_dashboard .ref_dash_earners_ranks {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 24px;
    min-height: 220px;
}

.referral_dashboard .ref_dash_earners_rank {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    cursor: pointer;
}

.referral_dashboard .ref_dash_earners_rank_bar {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: 4px;
    border-radius: 2px;
    background: rgba(213, 215, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.referral_dashboard .ref_dash_earners_rank_bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(top, #705AFE 0%, #CA7CFB 100%);
    background:         linear-gradient(180deg, #705AFE 0%, #CA7CFB 100%);
    -webkit-transform-origin: top;
        -ms-transform-origin: top;
            transform-origin: top;
    -webkit-transform: scaleY(0);
        -ms-transform: scaleY(0);
            transform: scaleY(0);
}

.referral_dashboard .ref_dash_earners_rank.active .ref_dash_earners_rank_bar::after {
    -webkit-animation: ref_rank_fill 4s linear forwards;
            animation: ref_rank_fill 4s linear forwards;
}

@-webkit-keyframes ref_rank_fill {
    from { -webkit-transform: scaleY(0); transform: scaleY(0); }
    to   { -webkit-transform: scaleY(1); transform: scaleY(1); }
}

@keyframes ref_rank_fill {
    from { -webkit-transform: scaleY(0); transform: scaleY(0); }
    to   { -webkit-transform: scaleY(1); transform: scaleY(1); }
}

.referral_dashboard .ref_dash_earners_rank_body {
    display: grid;
    grid-template-rows: auto 0fr;
    gap: 0px;
    overflow: hidden;
    -webkit-transition: grid-template-rows 0.4s ease, gap 0.4s ease;
         -o-transition: grid-template-rows 0.4s ease, gap 0.4s ease;
            transition: grid-template-rows 0.4s ease, gap 0.4s ease;
}

.referral_dashboard .ref_dash_earners_rank.active .ref_dash_earners_rank_body {
    grid-template-rows: auto 1fr;
    gap: 16px;
}

.referral_dashboard .ref_dash_earners_rank_ttl {
    color: #ffffff;
    margin: 0;
    opacity: 0.55;
    -webkit-transition: opacity 0.35s ease;
         -o-transition: opacity 0.35s ease;
            transition: opacity 0.35s ease;
}

.referral_dashboard .ref_dash_earners_rank.active .ref_dash_earners_rank_ttl {
    opacity: 1;
}

.referral_dashboard .ref_dash_earners_rank_desc {
    color: var(--ds-gray-1);
    margin: 0;
    overflow: hidden; /* required for grid 0fr collapse */
    opacity: 0;
    -webkit-transition: opacity 0.35s ease;
         -o-transition: opacity 0.35s ease;
            transition: opacity 0.35s ease;
}

.referral_dashboard .ref_dash_earners_rank.active .ref_dash_earners_rank_desc {
    opacity: 1;
}

.referral_dashboard .ref_dash_earners_cta_wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 8px;
}

.referral_dashboard .ref_dash_earners_btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: var(--ds-gray-1);
    color: var(--ds-gray-100);
    border: none;
    border-radius: var(--ds-radius-4);
    padding: 12px 16px;
    width: 259px;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background 0.2s ease, color 0.2s ease;
         -o-transition: background 0.2s ease, color 0.2s ease;
            transition: background 0.2s ease, color 0.2s ease;
}

.referral_dashboard .ref_dash_earners_btn:hover,
.referral_dashboard .ref_dash_earners_btn:focus {
    background: #ffffff;
    color: var(--ds-gray-100);
    text-decoration: none;
}

.referral_dashboard .ref_dash_earners_disclaimer {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}


/* =============================================
   6. TESTIMONIALS SECTION
   ============================================= */

.referral_dashboard .ref_dash_testimonials {
    padding: 80px 0;
    background: #fff;
}

.referral_dashboard .ref_dash_testimonials_hdr {
    margin-bottom: 48px;
}

.referral_dashboard .ref_dash_testimonials_ttl {
    color: #091e42;
}

.referral_dashboard .ref_dash_testimonials_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    margin-bottom: 24px;
}

.referral_dashboard .ref_dash_testimonials_row:last-child {
    margin-bottom: 0;
}

/* Row 1 — 3 equal cards */
.referral_dashboard .ref_dash_testimonials_row_top .ref_dash_testimonial_card {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-width: 0;
}

/* Row 2 — 2 cards, centered */
.referral_dashboard .ref_dash_testimonials_row_bot {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.referral_dashboard .ref_dash_testimonials_row_bot .ref_dash_testimonial_card {
    width: calc((100% - 48px) / 3);
    -ms-flex-negative: 0;
        flex-shrink: 0;
    min-width: 0;
}

.referral_dashboard .ref_dash_testimonial_card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background: #fcfcfc;
    border: 0.5px solid #dfe1e6;
    border-radius: 10px;
    padding: 28px 34px 36px 30px;
    gap: 29px;
}

.referral_dashboard .ref_dash_testimonial_quote {
    color: #253858;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin-bottom: 0;
}

.referral_dashboard .ref_dash_testimonial_author {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 12px;
    margin-top: auto;
}

.referral_dashboard .ref_dash_testimonial_avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.referral_dashboard .ref_dash_testimonial_name {
    color: #253858;
    margin-bottom: 2px;
}

.referral_dashboard .ref_dash_testimonial_role {
    color: #5e6c84;
    margin-bottom: 0;
}


/* =============================================
   7. CTA BANNER SECTION
   ============================================= */

.referral_dashboard .ref_dash_cta_banner {
    background-image: url('https://www.cloudways.com/wp-content/uploads/2026/07/reffer_earnmore.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 86px 0;
}

.referral_dashboard .ref_dash_cta_banner_inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    gap: 28px;
}

.referral_dashboard .ref_dash_cta_banner_ttl {
    color: #ffffff;
    margin-bottom: 0;
}

.referral_dashboard .ref_dash_cta_banner_sub {
    color: #f4f5f7;
    max-width: 816px;
    margin-bottom: 0;
}

.referral_dashboard .ref_dash_cta_banner_btns {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 14px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.referral_dashboard .ref_dash_cta_btn_primary {
    background: #fcfcfc;
    color: #253858;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    height: 48px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    white-space: nowrap;
    -webkit-transition: background 0.2s, color 0.2s;
         -o-transition: background 0.2s, color 0.2s;
            transition: background 0.2s, color 0.2s;
}

.referral_dashboard .ref_dash_cta_btn_primary:hover {
    background: #e8e8e8;
    color: #253858;
    margin-bottom: 0;
}

.referral_dashboard .ref_dash_cta_btn_outline {
    background: transparent;
    color: #fcfcfc;
    border: 1px solid #fcfcfc;
    border-radius: 4px;
    padding: 12px 24px;
    height: 48px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    white-space: nowrap;
    -webkit-transition: background 0.2s, color 0.2s;
         -o-transition: background 0.2s, color 0.2s;
            transition: background 0.2s, color 0.2s;
}

.referral_dashboard .ref_dash_cta_btn_outline:hover {
    background: rgba(252, 252, 252, 0.1);
    color: #fcfcfc;
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* R1 — max-width: 1399px */
@media (max-width: 1399px) {
    .referral_dashboard .ref_dash_hero_illustration img {
        width: 78%;
    }
}

/* R2 — max-width: 1199px */
@media (max-width: 1199px) {
    .referral_dashboard .ref_dash_hero_illustration img {
        width: 82%;
    }
}

/* R3 — max-width: 1100px */
@media (max-width: 1100px) {
    .referral_dashboard .ref_dash_earners_img_col,
    .referral_dashboard .ref_dash_earners_content {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 48%;
                flex: 0 0 48%;
    }
}

/* R4 — max-width: 991px */
@media (max-width: 991px) {

    /* Hero */
    .referral_dashboard .ref_dash_hero {
        padding-top: 130px;
        padding-bottom: 60px;
    }
    .referral_dashboard .ref_dash_hero_txt_wrap {
        max-width: 100%;
        padding-bottom: 0;
    }

    /* Rewards */
    .referral_dashboard .ref_dash_rewards {
        padding: 60px 0 80px;
    }
    .referral_dashboard .ref_dash_rewards_hdr {
        margin-bottom: 48px;
    }

    /* Steps */
    .referral_dashboard .ref_dash_steps {
        padding: 60px 0 80px;
    }
    .referral_dashboard .ref_dash_steps_hdr {
        margin-bottom: 48px;
    }
    .referral_dashboard .ref_dash_steps_arrow {
        display: none;
    }
    .referral_dashboard .ref_dash_steps_row {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        gap: 32px;
    }
    .referral_dashboard .ref_dash_step_item {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc(50% - 16px);
                flex: 0 0 calc(50% - 16px);
    }
    .referral_dashboard .ref_dash_step_img_wrap {
        height: 220px;
    }

    /* Calculator */
    .referral_dashboard .ref_dash_calc {
        padding: 60px 0 80px;
    }
    .referral_dashboard .ref_dash_calc_hdr {
        margin-bottom: 48px;
    }

    /* Top Earners */
    .referral_dashboard .ref_dash_earners {
        padding: 60px 0;
    }
    .referral_dashboard .ref_dash_earners_inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 48px;
    }
    .referral_dashboard .ref_dash_earners_img_col {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 auto;
                flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
    }
    .referral_dashboard .ref_dash_earners_content {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 auto;
                flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    /* Testimonials */
    .referral_dashboard .ref_dash_testimonials {
        padding: 60px 0;
    }
    .referral_dashboard .ref_dash_testimonials_hdr {
        margin-bottom: 36px;
    }
    .referral_dashboard .ref_dash_testimonials_row_top {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    .referral_dashboard .ref_dash_testimonials_row_top .ref_dash_testimonial_card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 auto;
                flex: 0 0 auto;
        width: calc(50% - 12px);
    }
    .referral_dashboard .ref_dash_testimonials_row_bot .ref_dash_testimonial_card {
        width: calc(50% - 12px);
    }

    /* CTA Banner */
    .referral_dashboard .ref_dash_cta_banner {
        padding: 70px 0;
    }
    .referral_dashboard .ref_dash_cta_banner_sub {
        max-width: 600px;
    }
}

/* R5 — max-width: 767px */
@media (max-width: 767px) {

    /* Hero */
    .referral_dashboard .ref_dash_hero {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    .referral_dashboard .ref_dash_tag {
        margin-bottom: 14px;
    }
    .referral_dashboard .ref_dash_ttl {
        margin-bottom: 16px;
    }
    .referral_dashboard .ref_dash_desc {
        margin-bottom: 28px;
    }
    .referral_dashboard .ref_dash_cta_wrap {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .referral_dashboard .ref_dash_btn_primary,
    .referral_dashboard .ref_dash_btn_outline {
        min-width: 280px;
    }

    /* Rewards */
    .referral_dashboard .ref_dash_rewards {
        padding: 50px 0 60px;
    }
    .referral_dashboard .ref_dash_rewards_hdr {
        max-width: 100%;
        margin-bottom: 32px;
    }
    .referral_dashboard .ref_dash_rewards_row > [class*="col-"] {
        margin-bottom: 20px;
    }
    .referral_dashboard .ref_dash_rewards_row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .referral_dashboard .ref_dash_reward_card {
        min-height: auto;
    }

    /* Steps */
    .referral_dashboard .ref_dash_steps {
        padding: 50px 0 60px;
    }
    .referral_dashboard .ref_dash_steps_row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 40px;
    }
    .referral_dashboard .ref_dash_step_item {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 100%;
                flex: 0 0 100%;
        width: 100%;
    }
    .referral_dashboard .ref_dash_step_img_wrap {
        height: 200px;
    }
    .referral_dashboard .ref_dash_step_content {
        padding: 0;
    }

    /* Calculator */
    .referral_dashboard .ref_dash_calc {
        padding: 50px 0 60px;
    }
    .referral_dashboard .ref_dash_calc_hdr {
        max-width: 100%;
        margin-bottom: 32px;
    }
    .referral_dashboard .ref_dash_calc_card {
        padding: 28px 20px;
    }
    .referral_dashboard .ref_dash_calc_card_top {
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }
    .referral_dashboard .ref_dash_calc_count_num,
    .referral_dashboard .ref_dash_calc_count_lbl {
        font-size: var(--ds-font-size-16);
    }
    .referral_dashboard .ref_dash_calc_stats_row > [class*="col-"] {
        margin-bottom: 12px;
    }
    .referral_dashboard .ref_dash_calc_stats_row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .referral_dashboard .ref_dash_calc_stat_box {
        padding: 0 20px;
        height: 72px;
    }
    .referral_dashboard .ref_dash_calc_stat_val {
        font-size: var(--ds-font-size-24);
    }

    /* Top Earners */
    .referral_dashboard .ref_dash_earners {
        padding: 50px 0;
    }
    .referral_dashboard .ref_dash_earners_content {
        gap: 28px;
    }
    .referral_dashboard .ref_dash_earners_btn {
        width: 100%;
    }

    /* Testimonials */
    .referral_dashboard .ref_dash_testimonials {
        padding: 50px 0;
    }
    .referral_dashboard .ref_dash_testimonials_hdr {
        margin-bottom: 28px;
    }
    .referral_dashboard .ref_dash_testimonials_row_top,
    .referral_dashboard .ref_dash_testimonials_row_bot {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .referral_dashboard .ref_dash_testimonials_row_top .ref_dash_testimonial_card,
    .referral_dashboard .ref_dash_testimonials_row_bot .ref_dash_testimonial_card {
        width: 100%;
    }

    /* CTA Banner */
    .referral_dashboard .ref_dash_cta_banner {
        padding: 56px 0;
    }
    .referral_dashboard .ref_dash_cta_banner_inner {
        gap: 20px;
    }
    .referral_dashboard .ref_dash_cta_banner_sub {
        max-width: 100%;
    }
}

/* R6 — max-width: 480px */
@media (max-width: 480px) {

    /* Hero */
    .referral_dashboard .ref_dash_hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .referral_dashboard .ref_dash_cta_wrap {
        padding: 0 8px;
    }
    .referral_dashboard .ref_dash_btn_primary,
    .referral_dashboard .ref_dash_btn_outline {
        min-width: 100%;
        width: 100%;
    }

    /* Rewards */
    .referral_dashboard .ref_dash_rewards {
        padding: 40px 0 50px;
    }
    .referral_dashboard .ref_dash_reward_card {
        padding: 28px;
    }
    .referral_dashboard .ref_dash_reward_card_icon {
        margin-bottom: 28px;
    }

    /* Steps */
    .referral_dashboard .ref_dash_steps {
        padding: 40px 0 50px;
    }
    .referral_dashboard .ref_dash_step_img_wrap {
        height: 180px;
    }

    /* Calculator */
    .referral_dashboard .ref_dash_calc {
        padding: 40px 0 50px;
    }
    .referral_dashboard .ref_dash_calc_card {
        padding: 24px 16px;
    }

    /* Top Earners */
    .referral_dashboard .ref_dash_earners {
        padding: 40px 0;
    }
    .referral_dashboard .ref_dash_earners_content {
        gap: 24px;
    }

    /* Testimonials */
    .referral_dashboard .ref_dash_testimonials {
        padding: 40px 0;
    }
    .referral_dashboard .ref_dash_testimonial_card {
        padding: 24px 20px;
    }

    /* CTA Banner */
    .referral_dashboard .ref_dash_cta_banner {
        padding: 44px 0;
    }
    .referral_dashboard .ref_dash_cta_btn_primary,
    .referral_dashboard .ref_dash_cta_btn_outline {
        width: 100%;
    }
}
