:root {
    --gold-primary: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.6);
    --gold-dark: #b8860b;
}

.golden-modal {
    border: 1px solid var(--gold-glow);
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 10px rgba(255, 215, 0, 0.1);
    background: rgba(15, 15, 15, 0.85); /* Darker background to make gold pop */
}

.gold-text-glow {
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.referral-desc {
    text-align: center;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#referral-link-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold-dark);
    color: var(--gold-primary);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.btn-gold-glow {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--gold-glow);
}

.btn-gold-glow:hover {
    box-shadow: 0 0 20px var(--gold-primary);
    transform: translateY(-2px);
}

.social-share-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--gold-dark);
    background: transparent;
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--gold-glow);
    color: #111;
    box-shadow: 0 0 15px var(--gold-primary);
    transform: scale(1.1);
}

.referral-trigger-link {
    color: var(--gold-primary, #ffd700);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: all 0.3s ease;
    cursor: pointer;
}

.referral-trigger-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px var(--gold-primary, #ffd700);
    transform: translateY(-1px);
}
.footer-content .referral-trigger-link .icon-small {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    display: inline-flex;
}


#referral-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 20px;
}

#referral-modal.hidden {
    display: none;
}

.golden-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--gold-glow);
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 10px rgba(255, 215, 0, 0.1);
    background: rgba(15, 15, 15, 0.85);
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    left: 16px;
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--gold-primary);
    transform: scale(1.15);
}