:root {
    --bg: #f5f8fa;
    --base: #343a40;
    --primary: #3b91fe;
    --secondary: #d70602;
    --gray: #6c757d;
    --gray-light: #b3b3b3;
    --border: #e2e4e8;
}

.logo-tagline{
    border-left: thin solid var(--border);
    padding-left: 15px;
    min-height: 40px;
    line-height: 40px;
    color: var(--gray);
    font-weight: bold;
    font-style: italic;
}

.profile-header-bg {
    background-color: var(--primary);
    background-image: url('../images/profile-bg.png');
    background-size: cover;
    height: 200px;
    position: relative;
}

.btn-quick-start-guide{
    position: absolute;
    top:0px;
    right: 10px;
    padding: 7px 20px 7px 50px;
    background: var(--primary);
}

.btn-quick-start-guide:before{
    border-color: var(--primary);
}

/* opt-in shine effect: safe to reuse anywhere by adding rc-shine */
.rc-shine {
  position: relative;      /* anchor ::before */
  overflow: hidden;        /* clip the shine inside the button */
}

/* the moving highlight */
.rc-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  pointer-events: none;    /* keeps clicks working normally */
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: rcShine 2s ease-in-out infinite;
}

/* the animation */
@keyframes rcShine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rc-shine::before { animation: none; }
}

/* ONLY the Get Rewarded button when you add rc-shine */
a.btn.btn-secondary.rc-shine{
  background: linear-gradient(135deg, #eab308, #d97706);
text-shadow: 0 1px 1px rgba(0,0,0,0.25);
  border-color: transparent;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.45);
}

.btn-quick-start-guide:hover {
    background: #127afe;
}

.super-8 .super-8__btn {
    height: 40px;
    padding-left: 48px;
}

.circular-progress {
    top: 3px;
    width: 36px;
    height: 34px;
    left: 3px;
}

.super-8 .super-8__btn .super-8__btn-text{
    line-height: normal
}

.super-8 .super-8__btn .super-8__btn-text strong{
    font-size: 14px;
}

.super-8 .super-8__btn .super-8__btn-icon {
    top: 7px;
    left: 8px;
}

.circular-progress:before {
    border-width: 2px;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 35px;
    display: flex;
    align-items: center;
}

.profile-container {
    position: relative;
    z-index: 1;
}

.profile-description{
    width: 650px;
    max-width: 100%;
    margin: 0 auto;
}
        
.profile-detail {
    text-align: center;
    margin-bottom: 20px;
}

.profile-username {
    font-size: 24px;
    font-weight: bold;
    color: var(--base);
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-url{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid white;
    margin-top: -140px;
    background: #fff;
    position: relative;
}

.profile-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img--actions{
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-img:hover .profile-img--actions {
    display: block;
    line-height: 1.75;
}

        
.xp-badge1 {
    color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    border-radius: 40px;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.xp-badge {
    background: linear-gradient(135deg, #d14949, #8b1c1c);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(229, 62, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.xp-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}
        
.follow-row {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    gap:15px;
}
        
.follow-btns .btn{
    border-radius: 40px;
    font-weight: 600;
    padding-left: 15px;
    padding-right: 15px;
}

.follow-stats > a{
    color: var(--base);
}

.btn-rounded{
    border-radius: 40px;
}
        
.more-about {
    color: #0088ff;
    cursor: pointer;
    position: relative;
    display: inline-block;
    margin-top: 4px;
}
        
.more-about::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

.coupon-details {
    display: flex;
    margin-top: 26px;
    gap: 24px;
}

.coupon-card {
    background: #fff;
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    position: relative;
    text-align: left;
    border: 1px solid #DCDCDC;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.06);
}

.coupon-card h3{
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase; 
    color: var(--base);
}

.coupon-card-inner {
    display: grid;
    gap: 20px;
    align-items: center;
    text-align: left;
    grid-template-columns: 44px 1fr;
    padding: 0 10px;
}

.coupon-card .icon {
    height: 44px;
    width: 44px;
    background: linear-gradient(0deg, #F4F7F9, #F4F7F9);
    border-radius: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.coupon-card .help-icon {
    position: absolute;
    top: 4px;
    right: 8px;
}

.coupon-card .info h4 {
    margin: 0px;
    color: #343A40;
    font-size: 24px;
    font-weight: bold;
}
.coupon-card .info h4 span {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
}
.confirm-reward {
    color: #666666;
    font-size: 11px;
    display: block;
}
.tracked {
    color: #6C757D;
    font-size: 14px;
    font-weight: 500;
}
.coupon-card .info .btn {
    padding: 0px;
    display: block;
    width: fit-content;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    border: thin solid #ddd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    top: 0;
    z-index: 1;
}

.search-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: thin solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    color: var(--gray);
    border: none;
    outline: none;
}

.search-icon:hover {
    transform: scale(1.05);
}

.search-input {
    width: 0;
    height: 40px;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.search-input::placeholder {
    color: #999;
}

.search-wrapper.expanded {
    width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
}

.search-wrapper.expanded .search-icon {
    border-radius: 50% 0 0 50%;
}

.search-wrapper.expanded .search-input {
    width: 100px;
    opacity: 1;
}
        
.referral-cards{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.referral-card-item{
    width: calc((100% - 80px) / 5);
} 

.referral-cards.grid-view {
    gap: 16px;
}

.referral-cards.grid-view .referral-card-item {
    width: calc((100% - 96px) / 7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.referral-cards.grid-view .referral-card--title {
    font-weight: bold;
    font-weight: 600;
    font-size: 14px;
    color: var(--base);
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.referral-cards.grid-view .referral-card {
    width: 100%;
    border: none;
    padding: 0;
    background: none;
}

.referral-cards.grid-view .referral-card .card-logo {
    background-color: white;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.referral-cards.grid-view .referral-card .card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.referral-cards.grid-view .referral-card .card-title {
    margin-top: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: var(--base);
    width: 100%;
}

.referral-cards:not(.grid-view) .referral-card--title, 
.referral-cards.grid-view .referral-card > *:not(.card-logo):not(.referral-card--title) {
    display: none !important;
}

.referral-card {
    border-radius: 8px;
    border: 1px solid #eaeaea;
    background-color: white;
    padding: 0 0 15px;
}
        
.card-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}
        
.card-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
        
.badge-corner-left {
    position: absolute;
    top: -5px;
    left: -5px;
}

.badge-corner-left .trophy-icon {
    background: #d9f3fc;
    color: #3b91fe;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;  
    justify-content: center;
    border-radius: 50%;
}

.badge-corner-right {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 14px;
    display: flex;
    align-items: center;  
    justify-content: center;
    width: 24px;
    height: 24px;
    border: thin solid var(--border);
    border-radius: 50%;
    background-color: #fff;
    line-height: 18px;
}

.card {
    border-radius: 10px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.04), 0px 4px 8px rgba(0, 0, 0, 0.06);
    border: none;
    overflow: hidden;
}
.card .card-header {
    padding: 15px 20px;
    border: none;
    gap: 5px;
    text-align: left;
    text-transform: capitalize;
    font-size: 20px;
    color: #333333;
    font-weight: bold;
}

.card .card-body{
    padding: 15px 20px;
}
        
.card-tabs {
    border-top: 1px solid var(--border);
}

.card-tabs .nav-tabs {
    border: none;
    width: 100%;
}

.card-tabs .nav-tabs .nav-item {
    flex: 1;
    text-align: center;
    margin-bottom: 0;
}

.card-tabs .nav-tabs .nav-link {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    color: #666;
    background-color: #f8f9fa;
    border: none;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.card-tabs .nav-tabs .nav-link.active {
    background-color: white;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

.card-tabs .tab-content {
    min-height: 70px;
}

.referral-box h4 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}
        
.card-footer {
    padding: 0 10px;
    border: none;
    background: none;
}
        
.card-title {
    font-weight: bold;
    margin-bottom: 5px;
}
        
.card-offer {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}
        
.card-quote {
    font-style: italic;
    color: #666;
    font-size: 13px;
    border-left: 3px solid #eaeaea;
    padding-left: 10px;
    margin-bottom: 10px;
}
        
.card-rating {
    color: #ff9800;
    margin-bottom: 10px;
}
        
.go-btn {
    border-radius: 40px;
    width: auto;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff !important;
    border: 1px solid var(--primary);
}

.go-btn:hover {
    background-color: #127afe;
    border-color: #127afe;
}
        
.filters-hd{
    font-size: 2.5rem;
    font-weight: 700;
    padding: 5px 0;
    margin-top: -60px;
    margin-bottom: 20px;
}
.filter-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}
        
.custom-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 30px 8px 12px;
    background-color: white;
    cursor: pointer;
}
        
/* More about section styling */
.additional-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 5px 0 20px;
}
        
.more-about.active::after {
    content: "▲";
}

.additional-info__row {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-bottom:10px;
} 

.additional-info i{
    font-size: 20px;
}

.gradient-trophy-icon{
    background: none;
}

.referral-box,
.review-box{
    padding: 10px;
    min-height: 97px;
}

.review-box__title{
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.review-box__container{
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
}

.review-box__text {
    font-style: italic;
    white-space: nowrap;
    width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flags-area{
    margin-right:0;
    border: thin solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
}

.loader-container {
    padding: 40px;
    text-align: center;
}
        
.fa-spinner {
    margin-right: 5px;
}
        
.loader-text {
    font-style: italic;
}


.follow-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    min-width: 80px;
    transition: all 0.2s ease;
}
.follow-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-1px);
}
.following-btn {
    background-color: #6c757d;
    border-color: #6c757d;
}
.following-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
    color: white;
}
        
.scrolling-modal .modal-dialog {
    max-width: 450px;
}

.scrolling-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
        
    .scrolling-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px 15px;
    background-color: #fff;
    border-radius: 15px 15px 0 0;
}
        
    .scrolling-modal .modal-title {
    font-weight: 700;
    font-size: 18px;
    color: #212529;
    margin: 0;
}
        
    .scrolling-modal .modal-body {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}
        
    .scrolling-modal .close {
    font-size: 24px;
    opacity: 0.6;
    color: #6c757d;
    font-weight: 300;
    text-shadow: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}
        
    .scrolling-modal .close:hover {
    opacity: 1;
    color: #495057;
}
        
.user-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}
        
.user-item:hover {
    background-color: #f8f9fa;
}
        
.user-item:last-child {
    border-bottom: none;
}
        
.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
        
.avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    border: 2px solid #e9ecef;
}
        
.user-name {
    font-weight: 600;
    color: var(--base);
    margin-bottom: 0;
    font-size: 14px;
}
        
.trigger-btn {
    margin: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}
        
.modal-body::-webkit-scrollbar {
    width: 6px;
}
        
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
        
.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
        
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.invited-by-user {
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}

.invited-by-user .single-user-img {
    width: 3.2rem;
    height: 3.2rem;
    min-width: 3.2rem;
    margin: 0;
}

.referrals-listing {
    margin: 0px 0px 20px;
    list-style: none;
    padding: 0px;
    display: flex;
    flex-direction: column;
}
.referrals-listing .referrals-listing-item {
    padding: 10px 20px;
    border-bottom: none;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}
.referrals-listing .referrals-listing-item:hover {
    background: var(--bg);
}
.referrals-listing .referrals-listing-item .referral-listing-img {
    background: #fff;
    width: 58px;
    height: 58px;
    margin-right: 16px;
    position: relative;
    text-decoration: none;
    border-radius: 100%;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    min-width: 58px;
}
.referrals-listing .referrals-listing-item .referral-listing-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.referrals-listing .referrals-listing-item .referral-listing-info h4 {
    margin-bottom: 3px;
    font-weight: 700;
}
.referrals-listing .referrals-listing-item .referral-listing-info h4 a {
    color: var(--base);
}
.clicks-text {
    color: #6C757D;
}
.edit_icons ul {
    gap: 12px;
}
.search-pagination {
    border-top: 1px solid rgb(0 0 0 / 10%);
    display: flex;
    align-items: center;
    padding: 10px 18px;
}
.ref-search {
    border-top: none;
    padding: 0px;
    height: 30px;
}
.ref-thumbsup {
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #3b91fe;
    color: #fff;
    border-radius: 100%;
}
.coupon-card .info h3 span {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
}
#recommendedSlider, #sponsoredSlider{
    padding: 0 10px;
}
.recommended-slider-item, .sponsored-slider-item {
    padding: 0 10px;
}
.invite-a-friend .card-body {
    padding: 0px 16px 24px;
}

/* TikTok & Threads social icons */
.social-icons li a.tiktok,
.social-icons li a.threads {
  background: #000;
  color: #fff;
  border-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* TikTok icon – SVG */
.social-icons li a.tiktok svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Threads icon – @ text (clean + legible) */
.social-icons li a.threads {
  font-size: 14px;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
}

.social-icons li a.threads .threads-at {
  position: relative;
  top: -0.5px; /* optical centring */
}

@media (max-width: 1299px) {
    .referral-card-item {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 991px) {
    .filters-hd{
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    nav#nav .navbar-brand img{
        max-width: 130px;
    }
    .referral-card-item {
        width: calc((100% - 20px) / 2);
    }

    .referral-cards.grid-view {
        gap: 10px;
    }

    .referral-cards.grid-view .referral-card-item{
        width: calc((100% - 30px) / 4);
    }

    .search-wrapper.expanded {
        width: 180px;
    }
            
    .search-wrapper.expanded .search-input {
        width: 100px;
    }

    .btn-whatsapp{
        background: #25D366;
        border-color: #25D366;
        color: #fff;
        font-weight: 600;
    }
    
    .btn-whatsapp:hover{
    background: #1ebe5a;
    border-color: #1ebe5a;
    color: #fff;
    }

    .logo-tagline{
        font-size: 10px;
        padding-left: 10px;        
        min-height: 25px;
        line-height: 25px;
    }

    nav#nav .navbar-brand{
        margin-right: 10px;
    }

    .follow-row{
        flex-direction: column;
    }
}
