/* Frontend Referral Dashboard */
.rrwc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rrwc-hero {
    background: var(--rrwc-primary, #f1c349);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.rrwc-hero h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.rrwc-hero p {
    font-size: 20px;
    opacity: 0.95;
    margin: 0;
}

.rrwc-stats-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.rrwc-stat-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.rrwc-stat-box:hover {
    transform: translateY(-5px);
}

.rrwc-referral-link-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.rrwc-link-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

.rrwc-copy-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--rrwc-primary, #f1c349);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
}

.rrwc-copy-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.rrwc-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.rrwc-share-btn {
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.rrwc-share-btn:hover {
    transform: translateY(-2px);
}

.rrwc-account-widget {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #c8e6c9;
}

.rrwc-widget-content {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.rrwc-balance {
    flex: 1;
    min-width: 150px;
}

.rrwc-balance .label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.rrwc-balance .amount {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2e7d32;
}

.rrwc-balance .amount.pending {
    color: #f5576c;
}

@media (max-width: 768px) {
    .rrwc-hero {
        padding: 40px 20px;
    }
    
    .rrwc-hero h1 {
        font-size: 28px;
    }
    
    .rrwc-stats-widget {
        grid-template-columns: 1fr;
    }
    
    .rrwc-share-buttons {
        flex-direction: column;
    }
}
