/* Profile Header Styles */
.profile-header {
    margin-bottom: 2rem;
}

.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #4ade80;
    border: 3px solid white;
    border-radius: 50%;
}

.profile-info {
    flex: 1;
    z-index: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-id {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

/* Action Grid Styles */
.profile-actions {
    margin-bottom: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.action-card:hover::before {
    left: 100%;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.action-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.action-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Referral Section Styles */
.referral-section {
    margin-top: 2rem;
}

.referral-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.referral-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.referral-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-header p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.referral-input-group {
    display: flex;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.referral-input-group:focus-within {
    border-color: #667eea;
}

.referral-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    border-radius: 8px;
}

.copy-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
    
    .copy-button {
        justify-content: center;
    }
}

/* Referral Actions Styling */
.referral-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f3f4;
}

.referral-manage-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    gap: 1rem;
}

.referral-manage-link:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #495057;
}

.referral-link-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.referral-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.referral-link-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.referral-link-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

.referral-link-arrow {
    color: #adb5bd;
    transition: transform 0.2s ease;
}

.referral-manage-link:hover .referral-link-arrow {
    transform: translateX(4px);
}

.referral-manage-link:hover .referral-link-icon {
    background: #007bff;
    color: white;
}



@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .referral-manage-link {
        padding: 0.875rem;
    }
    
    .referral-link-icon {
        width: 40px;
        height: 40px;
    }
    
    .referral-link-title {
        font-size: 0.95rem;
    }
    
    .referral-link-subtitle {
        font-size: 0.8rem;
    }
}


/* Toast Animation */
@keyframes toast {
    0% { transform: translateX(100%); opacity: 0; }
    20% { transform: translateX(0); opacity: 1; }
    80% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    animation: toast 3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}