body {
    font-family: 'Cairo', sans-serif;
    transition: background-color 0.3s;
}

.hidden {
    display: none !important;
}

/* Modern Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-light {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Spinner Animation */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #0284c7;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Input Field */
.input-field {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.dark .input-field {
    background: #334155;
    border-color: #475569;
    color: white;
}

/* Fade In Animation */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Picture Upload */
.profile-pic-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

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

.profile-pic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-pic-container:hover .profile-pic-overlay {
    opacity: 1;
}

.upload-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Referral Card Glow */
.referral-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

/* Copy Button Animation */
.copy-btn {
    transition: all 0.3s;
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Suggestion Card */
.suggestion-card {
    transition: all 0.3s;
}

.suggestion-card:hover {
    transform: translateX(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dir-ltr {
    direction: ltr;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
