:root {
    --bg: #f5f8fa;
    --base: #343a40;
    --primary: #2964B4;
    --secondary: #e7423b;
    --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('path-to-pattern.png');
    height: 200px;
    position: relative;
}

.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;
}

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

        
.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, #f69292, var(--secondary));
    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.2), transparent);
    animation: shine 2s 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;
}
        
.more-about::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

.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-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: #2964B4;
    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-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;
    width: 100%;
}

.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 {
    padding: 15px;
}

.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;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
}
        
.filters-hd{
    font-size: 2.5rem;
    font-weight: 700;
    padding: 5px 0;
    margin-top: -55px;
    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{
    padding: 10px
}

.review-box{
    padding: 10px;
}

.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;
}


@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) {
    .referral-card-item {
        width: calc((100% - 20px) / 2);
    }

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

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

    .logo-tagline span{
        display: block;
    }

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

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

.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;
}