:root {
    --primary-color: #1a202c;
    --secondary-color: #4a5568;
    --accent-color: #3182ce;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --gradient-accent: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-page {
    background-color: var(--bg-light);
    min-height: 100vh;
}

.profile-hero {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.profile-hero .profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    transition: var(--transition-base);
}

.profile-hero .profile-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.bg-white-30 {
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

.profile-hero-orb {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.profile-stat {
    background: var(--white);
    transition: var(--transition-base);
}

.profile-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.service-card-mini {
    transition: var(--transition-base);
    border: 1px solid transparent !important;
}

.service-card-mini:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(49, 130, 206, 0.15) !important;
}

.service-card-mini .card-img-top {
    transition: var(--transition-base);
}

.service-card-mini:hover .card-img-top {
    transform: scale(1.05);
}

.text-inherit {
    color: inherit;
}

.sticky-top {
    transition: var(--transition-base);
}

/* Contact Sidebar Extensions */
.contact-item {
    padding: 8px 0;
    transition: var(--transition-base);
}

.contact-icon-wrapper {
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.1);
}

.bg-success-soft {
    background-color: rgba(72, 187, 120, 0.12) !important;
    color: #38a169 !important;
}

.bg-success-soft i {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.verification-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.bg-warning-soft {
    background-color: rgba(237, 137, 54, 0.12) !important;
    color: #dd6b20 !important;
}

.bg-danger-soft {
    background-color: rgba(245, 101, 101, 0.12) !important;
    color: #e53e3e !important;
}

.bg-secondary-soft {
    background-color: rgba(113, 128, 150, 0.12) !important;
    color: #4a5568 !important;
}

.bg-primary-soft {
    background-color: rgba(49, 130, 206, 0.12) !important;
    color: #3182ce !important;
}

/* Sticky sidebar improvements */
.sticky-top {
    top: 2rem !important;
}

/* RTL Support for Arabic icons */
[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

@media (max-width: 768px) {
    .profile-hero .profile-avatar {
        width: 100px;
        height: 100px;
    }
}