.referral-hero {
    position: relative;
    padding: 60px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.8;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
    max-width: 80%;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}


.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.step-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 4;
    transition: all 0.3s ease;
    cursor: default;
}

.game-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: 0.3s ease;
}

.game-card:hover::after {
    opacity: 1;
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.3s;
}

.game-card:hover .game-cover {
    filter: brightness(1) blur(2px);
    transform: scale(1.05);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    z-index: 2;
    transform: translateY(100%);
    transition: 0.3s ease;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.game-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
}

.status-available {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-claimed {
    background: rgba(150, 150, 150, 0.2);
    color: #aaa;
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.game-card.claimed .game-cover {
    filter: grayscale(100%) brightness(0.4);
}

.game-card.claimed:hover .game-cover {
    filter: grayscale(100%) brightness(0.5) blur(2px);
}

.leaderboard-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.referrer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.referrer-rank {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--accent);
    width: 30px;
}

.referrer-name {
    font-weight: 600;
}

.referrer-score {
    font-family: 'JetBrains Mono', monospace;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.faq-q {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.faq-a {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .referral-hero {
        padding: 40px 25px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.modal-content {
    display: block;
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    animation: zoom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.vault-img {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.vault-img:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}