/* Enhanced Referral Panel Styling */

/* Referral Panel Base */
#referralPanel {
    background: linear-gradient(135deg, rgba(10, 20, 35, 0.95), rgba(15, 25, 45, 0.95));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(48, 201, 201, 0.1);
    border: 1px solid rgba(48, 201, 201, 0.2);
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
}

#referralPanel.panel {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Override global panel styles */
.panel#referralPanel {
    padding: 0 !important;
    margin-top: 0 !important;
    position: fixed;
    top: 85px;
    z-index: 10;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 56px;
    overflow-y: auto;
}

/* Force panel to start at the top */
.panel-container #referralPanel {
    top: 0 !important;
}

/* Compact panel styling to match mobile screenshot */
.compact-panel {
    margin-top: 0 !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    display: block !important;
}

/* Direct container for referral panel to remove space */
.referral-container {
    margin-top: 0;
    position: relative;
    z-index: 10;
}

#referralPanel .panel-header,
.referral-panel-header {
    padding: 0.5rem 0.8rem;
    margin: 0;
    border-bottom: 1px solid rgba(48, 201, 201, 0.2);
}

.referral-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

#referralPanel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(48, 201, 201, 0.8), transparent);
    border-radius: 20px 20px 0 0;
    animation: shimmer 3s infinite linear;
}

/* Referral Tabs */
.referral-tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(48, 201, 201, 0.2);
    background: rgba(10, 20, 35, 0.5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
}

.referral-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.referral-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(48, 201, 201, 0.3), transparent);
    animation: glowPulse 3s infinite alternate;
}

.referral-tab-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

.referral-tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(48, 201, 201, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.referral-tab-button i {
    font-size: 1.1rem;
    margin-right: 0.3rem;
    transition: transform 0.3s ease;
}

.referral-tab-button:hover {
    color: var(--accent-color);
}

.referral-tab-button:hover::before {
    opacity: 1;
}

.referral-tab-button:hover i {
    transform: translateY(-2px);
}

.referral-tab-button.active {
    color: #30c9c9;
    background: transparent;
    font-weight: 600;
}

.referral-tab-button.active i {
    transform: scale(1.1);
}

.referral-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: #30c9c9;
    border-radius: 1px;
    animation: glow 2s infinite alternate;
    box-shadow: 0 0 5px rgba(48, 201, 201, 0.5);
}

/* Tab Content */
.referral-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    padding: 0.5rem 0.5rem 0;
    margin: 0;
}

.referral-tab-content.active {
    display: block;
}

/* Hero Sections */
.referral-hero {
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 1rem 1rem 0.8rem;
    background: linear-gradient(135deg, rgba(15, 25, 40, 0.6), rgba(10, 20, 35, 0.6));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(48, 201, 201, 0.15);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3));
    z-index: 0;
}

.referral-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(48, 201, 201, 0.05), transparent 70%);
    opacity: 0.5;
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.referral-hero-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(10, 20, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(48, 201, 201, 0.6);
    animation: glow 3s infinite alternate;
    transform: translateZ(20px);
}

.referral-hero-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.referral-hero-icon i {
    font-size: 2rem;
    color: #30c9c9;
    text-shadow: 0 0 10px rgba(48, 201, 201, 0.8);
    animation: pulse 2s infinite ease-in-out;
}

.referral-hero h3 {
    color: white;
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #30c9c9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(15px);
}

.referral-instruction {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    position: relative;
    z-index: 1;
    transform: translateZ(10px);
}

/* Link Container */
.referral-link-container {
    display: flex;
    margin: 1rem 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(48, 201, 201, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(48, 201, 201, 0.2);
    transform: translateZ(5px);
    transition: all 0.3s ease;
}

.referral-link-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(48, 201, 201, 0.1);
    transform: translateZ(8px) translateY(-1px);
}

.referral-link-input {
    flex: 1;
    background: rgba(10, 20, 35, 0.8);
    border: none;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.7rem 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: monospace;
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-button {
    background: #30c9c9;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 70px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s;
}

.copy-button:hover {
    background: #25b0b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.copy-button:hover::before {
    left: 100%;
}

.copy-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Share Buttons */
.referral-share-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.share-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.share-button:hover::before {
    left: 100%;
}

.share-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-button.telegram {
    background: #0088cc;
    border: none;
}

.share-button.telegram:hover {
    background: #0099e6;
}

.share-button.whatsapp {
    background: #25D366;
    border: none;
}

.share-button.whatsapp:hover {
    background: #2eec76;
}

.share-button i {
    font-size: 1.2rem;
    animation: bounce 3s infinite ease-in-out;
}

/* Stats Grid */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    perspective: 1000px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8), rgba(20, 30, 60, 0.6));
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 201, 201, 0.2);
    transform-style: preserve-3d;
    transform: rotateX(5deg);
}

.stat-card:nth-child(even) {
    transform: rotateX(-5deg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px) rotateX(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(48, 201, 201, 0.4);
}

.stat-card:nth-child(even):hover {
    transform: translateY(-5px) rotateX(0);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(48, 201, 201, 0.3), rgba(48, 201, 201, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: pulse 3s infinite ease-in-out;
    transform: translateZ(20px);
}

.stat-icon i {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(48, 201, 201, 0.5);
    animation: bounce 3s infinite ease-in-out;
}

.stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    flex: 1;
    transform: translateZ(10px);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.stat-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #ffffff, #30c9c9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(15px);
}

/* Referred Users List */
.referred-users-list {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(20, 30, 60, 0.7), rgba(30, 40, 70, 0.5));
    border-radius: 16px;
    overflow: hidden;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 201, 201, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(48, 201, 201, 0.5) rgba(20, 30, 60, 0.5);
}

.referred-users-list::-webkit-scrollbar {
    width: 6px;
}

.referred-users-list::-webkit-scrollbar-track {
    background: rgba(20, 30, 60, 0.5);
    border-radius: 0 16px 16px 0;
}

.referred-users-list::-webkit-scrollbar-thumb {
    background: rgba(48, 201, 201, 0.5);
    border-radius: 3px;
}

.referred-user-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.referred-user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(48, 201, 201, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.referred-user-item:hover::before {
    opacity: 1;
}

/* Referred Users List Styling */
.referred-users-list {
    padding: 15px;
    overflow-y: auto;
}

.referred-user-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.referred-user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.referred-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(48, 201, 201, 0.2);
    border: 1px solid rgba(48, 201, 201, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-right: 15px;
    color: #30c9c9;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(48, 201, 201, 0.2);
    position: relative;
    overflow: hidden;
}

/* Styles for avatars with profile photos */
.referred-user-avatar.has-photo {
    background: none;
    padding: 0;
    border: 2px solid rgba(48, 201, 201, 0.5);
}

.referred-user-avatar .user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loading indicator styles */
.referral-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 35, 0.8);
    z-index: 10;
    transition: all 0.3s ease;
}

.referral-loading-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.referral-loading-indicator i {
    font-size: 2rem;
    color: #30c9c9;
    margin-bottom: 1rem;
    animation: spin 1.5s infinite linear;
    text-shadow: 0 0 10px rgba(48, 201, 201, 0.7);
}

.referral-loading-indicator p {
    font-size: 1rem;
    margin: 0;
    animation: pulse 1.5s infinite alternate;
}

.loading-users {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.loading-users i {
    margin-right: 8px;
    color: #30c9c9;
}

/* Username styles */
.referred-user-username {
    font-size: 0.8rem;
    color: rgba(48, 201, 201, 0.8);
    margin-bottom: 4px;
}

.referred-user-avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.referred-user-item:hover .referred-user-avatar {
    transform: scale(1.1);
}

.referred-user-item:hover .referred-user-avatar::after {
    opacity: 1;
}

.referred-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.referred-user-name {
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.referred-user-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    display: inline-block;
}

.referred-user-item:hover .referred-user-date {
    background: rgba(48, 201, 201, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.no-referrals-message {
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 20px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-referrals-message i {
    font-size: 2.5rem;
    color: rgba(48, 201, 201, 0.5);
    margin-bottom: 15px;
    display: block;
    display: block;
    animation: pulse 3s infinite ease-in-out;
}

.no-referrals-message p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Rewards Section */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.reward-card {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8), rgba(20, 30, 60, 0.6));
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 201, 201, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 800px;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(48, 201, 201, 0.4);
}

.reward-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}

/* Referral Tiers Styling */
.referral-tiers {
    padding: 1.5rem;
    background: rgba(30, 40, 70, 0.3);
    border-radius: 16px;
    margin: 1rem 1rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(48, 201, 201, 0.15);
    position: relative;
    overflow: hidden;
}

.referral-tiers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(48, 201, 201, 0.8), transparent);
    animation: shimmer 3s infinite linear;
}

.referral-tiers h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referral-tiers h4 i {
    color: rgba(48, 201, 201, 0.9);
    font-size: 1.1rem;
}

.tier-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tier-item {
    background: linear-gradient(135deg, rgba(40, 50, 80, 0.7), rgba(30, 40, 70, 0.5));
    border-radius: 12px;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(48, 201, 201, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Progress indicator for tier items */
.tier-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(48, 201, 201, 0.7), rgba(48, 201, 201, 0.2));
    border-radius: 0 0 0 12px;
    transition: width 0.5s ease;
}

/* Different progress widths for each tier */
.tier-item:nth-child(1)::before {
    width: 30%; /* Novice progress */
}

.tier-item:nth-child(2)::before {
    width: 60%; /* Influencer progress */
}

.tier-item:nth-child(3)::before {
    width: 90%; /* Ambassador progress - almost complete */
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.7), rgba(255, 215, 0, 0.2));
}

.tier-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(48, 201, 201, 0.4);
}

.tier-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at top right, rgba(48, 201, 201, 0.2), transparent 70%);
    border-radius: 0 12px 0 60px;
    pointer-events: none;
}

.tier-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tier-specific colors */
.tier-item:nth-child(1) .tier-name {
    color: #b0b9c5; /* Novice - Silver */
}

.tier-item:nth-child(2) .tier-name {
    color: #30c9c9; /* Influencer - Teal */
}

.tier-item:nth-child(3) .tier-name {
    color: #ffd700; /* Ambassador - Gold */
}

.tier-requirement {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(48, 201, 201, 0.3);
}

.tier-bonus {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.8rem;
    background: rgba(48, 201, 201, 0.1);
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.3rem;
}

/* Bonus highlight colors */
.tier-item:nth-child(2) .tier-bonus {
    background: rgba(48, 201, 201, 0.15);
}

.tier-item:nth-child(3) .tier-bonus {
    background: rgba(255, 215, 0, 0.15);
}

/* Active tier highlighting */
.active-tier {
    border: 2px solid rgba(48, 201, 201, 0.6);
    box-shadow: 0 8px 25px rgba(48, 201, 201, 0.15);
    transform: translateY(-3px);
}

.active-tier::before {
    height: 4px;
    opacity: 1;
}

.active-tier::after {
    background: radial-gradient(circle at top right, rgba(48, 201, 201, 0.4), transparent 70%);
}

.tier-item:nth-child(3).active-tier {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.tier-item:nth-child(3).active-tier::after {
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.4), transparent 70%);
}

/* Bonus status indicators */
.bonus-claimed, .bonus-pending {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.bonus-claimed {
    background: rgba(40, 167, 69, 0.15);
    color: rgba(40, 167, 69, 0.9);
}

.bonus-pending {
    background: rgba(255, 193, 7, 0.15);
    color: rgba(255, 193, 7, 0.9);
}

.bonus-claimed i, .bonus-pending i {
    font-size: 0.75rem;
}

.reward-title {
    z-index: 1;
}

.reward-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(48, 201, 201, 0.3), rgba(48, 201, 201, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: pulse 3s infinite ease-in-out;
    transform: translateZ(20px);
}

.reward-icon i {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(48, 201, 201, 0.5);
}

.reward-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateZ(15px);
}

.reward-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    transform: translateZ(10px);
}

.reward-value {
    display: inline-block;
    background: linear-gradient(135deg, rgba(48, 201, 201, 0.2), rgba(48, 201, 201, 0.05));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(48, 201, 201, 0.2);
    position: relative;
    z-index: 1;
    transform: translateZ(15px);
    transition: all 0.3s ease;
}

.reward-card:hover .reward-value {
    background: linear-gradient(135deg, rgba(48, 201, 201, 0.3), rgba(48, 201, 201, 0.1));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 15px rgba(48, 201, 201, 0.3);
    transform: translateZ(20px) scale(1.05);
}

/* Tier Cards */
.tier-card {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.8), rgba(20, 30, 60, 0.6));
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(48, 201, 201, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    opacity: 0.7;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(48, 201, 201, 0.4);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.tier-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(48, 201, 201, 0.3), rgba(48, 201, 201, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: pulse 3s infinite ease-in-out;
}

.tier-icon i {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(48, 201, 201, 0.5);
}

.tier-info {
    flex: 1;
}

.tier-name {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    margin: 0 0 0.3rem;
    background: linear-gradient(90deg, #ffffff, #30c9c9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tier-requirement {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.tier-bonuses {
    margin-top: 1.2rem;
}

.tier-bonus-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(48, 201, 201, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(48, 201, 201, 0.1);
    transition: all 0.3s ease;
}

.tier-bonus-item:hover {
    background: rgba(48, 201, 201, 0.1);
    transform: translateX(5px);
}

.tier-bonus-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.tier-bonus-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.tier-bonus-value {
    color: var(--accent-color);
    font-weight: 700;
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(48, 201, 201, 0.3);
        opacity: 0.5;
    }
    100% {
        box-shadow: 0 0 20px rgba(48, 201, 201, 0.7);
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(48, 201, 201, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(48, 201, 201, 0.7);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(30px);
    }
    50% {
        transform: translateY(-10px) translateZ(30px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    #referralPanel .panel-header {
        padding: 0.5rem 0.8rem;
    }
    
    .referral-content {
        padding: 0;
        margin: 0;
    }
    
    .referral-tab-button {
        padding: 0.5rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .referral-tab-button i {
        margin-right: 0.2rem;
    }
    
    .referral-hero {
        padding: 0.8rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .referral-hero-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .referral-hero-icon i {
        font-size: 1.8rem;
    }
    
    .referral-hero h3 {
        font-size: 1.4rem;
    }
    
    .referral-instruction {
        font-size: 0.85rem;
    }
    
    .referral-link-container {
        margin: 0.8rem 0;
    }
    
    .referral-link-input {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .copy-button {
        padding: 0.7rem 0.8rem;
        min-width: 70px;
        font-size: 0.85rem;
    }
    
    .referral-share-buttons {
        gap: 0.6rem;
    }
    
    .share-button {
        padding: 0.7rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .share-button i {
        font-size: 1.1rem;
    }
    
    .referral-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-card {
        padding: 1.2rem;
    }
    
    .tier-card {
        padding: 1.2rem;
    }
}
