.quests-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    color: white;
    font-family: 'Exo 2', sans-serif;
}

.quests-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quests-title-banner {
    display: inline-block;
    background: linear-gradient(90deg, #ff007f 0%, #00f2fe 100%);
    padding: 10px 40px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.quests-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.tab-btn.active {
    background: #00ff8d;
    color: black;
    border-color: #00ff8d;
    box-shadow: 0 0 15px rgba(0, 255, 141, 0.4);
}

.quests-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.quest-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.quest-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.quest-info {
    flex: 1;
}

.quest-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}

.quest-progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.quest-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    width: 0%;
    transition: width 1s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 5px black;
}

.quest-reward {
    text-align: center;
    min-width: 60px;
}

.reward-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.reward-value {
    font-weight: bold;
    color: #ffcc00;
    font-size: 14px;
}

.quest-action {
    min-width: 80px;
    display: flex;
    justify-content: center;
}

.claim-btn {
    background: #4facfe;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.claim-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.completed-check {
    color: #00ff8d;
    font-size: 24px;
}

.quests-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    gap: 15px;
}

.footer-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
    text-align: center;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-receive-all {
    background: #00ff8d;
    border: none;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 141, 0.3);
}

@media (max-width: 900px) {
    .quest-card {
        padding: 15px;
        gap: 10px;
    }

    .quest-name {
        font-size: 14px;
    }

    .tab-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* REFERRAL TAB STYLES */
.referral-container {
    padding: 0 10px;
    color: white;
}

.referral-hero {
    text-align: center;
    margin-bottom: 25px;
}

.hero-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.referral-hero h2 {
    font-family: 'Exo 2', sans-serif;
    color: #00ff8d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 20px;
}

.referral-hero p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.referral-link-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.referral-link-section .label {
    font-size: 10px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.copy-box {
    display: flex;
    gap: 10px;
}

.copy-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #00f2fe;
    padding: 8px;
    font-family: monospace;
    font-size: 12px;
}

.copy-box button {
    background: #4facfe;
    border: none;
    padding: 0 15px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 12px;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.referral-total-earning {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 255, 141, 0.05) 0%, transparent 100%);
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 141, 0.1);
    font-size: 14px;
}

.referral-total-earning .value {
    color: #00ff8d;
    font-weight: bold;
    font-size: 16px;
}