:root {
    --primary-color: #138275;
    --primary-hover: #0f6b5f;
    --primary-light: rgba(19,130,117,0.1);
    --secondary-color: #65BF83;
    --accent-color: #FFB347;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #95a5a6;
    --background: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-strong: 0 10px 40px rgba(0,0,0,0.12);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, #138275 0%, #65BF83 50%, #4ECDC4 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #FF8C00 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 50%, #f0f8ff 100%);
    min-height: 100vh;
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.6;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.locked-container, .not-found-container {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    margin: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.locked-icon, .not-found-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.not-found-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.locked-icon::before, .not-found-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.locked-title, .not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.not-found-title {
    color: #dc3545;
}

.locked-subtitle, .not-found-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.back-button-container {
    margin-top: 1rem;
}

.btn-back-home {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    text-align: center;
}

.btn-back-home:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-auth {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-outline-auth {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background: transparent;
}

.btn-outline-auth:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-primary-auth {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-primary-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 1.5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
}

/* تعديل hero-section عند وجود تنبيه الخصوصية */
.privacy-alert + .hero-section {
    padding-top: 3rem;
}

.privacy-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.hero-section::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

.hero-left {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-center {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 2rem;
    padding-bottom: 1rem;
}

.hero-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: block;
}

.profile-avatar-hero {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    z-index: 10;
    align-self: center;
}

.profile-avatar-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.profile-avatar-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-name {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0;
    line-height: 1.2;
    color: white;
}

.hero-name-container {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-name-with-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
}

/* كتلة موحدة للنشاط ونوع العمل */
.hero-info-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem 0;
    width: 100%;
    position: relative;
    flex-wrap: wrap;
}

.hero-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title i {
    margin-left: 0.5rem;
    opacity: 0.9;
}

.hero-activity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-activity i {
    margin-left: 0.5rem;
    opacity: 0.8;
}

.hero-activity::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    border-radius: 1px;
}

/* Social Icons in Hero Section */
.social-icons-hero {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.social-icon-hero {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.social-icon-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
    z-index: 1;
}

.social-icon-hero i {
    position: relative;
    z-index: 2;
}

.social-icon-hero:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-icon-hero:hover::before {
    background: rgba(255,255,255,0.2);
}

.social-icon-hero.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
}

.social-icon-hero.facebook:hover {
    background: rgba(66, 103, 178, 0.2);
    border-color: rgba(66, 103, 178, 0.5);
}

.social-icon-hero.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: rgba(0, 119, 181, 0.5);
}

.social-icon-hero.instagram:hover {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.2), rgba(255, 204, 128, 0.2));
    border-color: rgba(225, 48, 108, 0.5);
}

.social-icon-hero.website:hover {
    background: rgba(138, 130, 117, 0.2);
    border-color: rgba(138, 130, 117, 0.5);
}

.social-icon-hero.email:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

/* ألوان مخصصة للشبكات الاجتماعية - الحالة العادية */
.social-icon-hero.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-icon-hero.whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.social-icon-hero.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-icon-hero.facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1565c0 100%);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon-hero.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.social-icon-hero.linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #0077b5 100%);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.social-icon-hero.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #fd1d1d 50%, #fcb045 100%);
}

.social-icon-hero.instagram:hover {
    background: linear-gradient(135deg, #fd1d1d 0%, #fcb045 50%, #833ab4 100%);
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-icon-hero.website {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.social-icon-hero.website:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.social-icon-hero.email {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.social-icon-hero.email:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-stat:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: -3rem 0 3rem;
    position: relative;
    z-index: 3;
    border: 1px solid var(--border-color);
}

.contact-header {
    background: var(--gradient-accent);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    text-align: center;
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-content {
    padding: 2.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-method:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-method:hover .contact-method-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-method h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Professional Info Section */
.professional-info {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.professional-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.professional-content {
    padding: 2.5rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.info-card:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.2rem;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
.public-footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.public-footer p {
    margin: 0;
    opacity: 0.8;
}

.public-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.public-footer a:hover {
    color: white;
}

/* Bio Section - أنماط محسنة */
.bio-section {
    margin: 0 0 1rem 0 !important;
    position: relative;
    z-index: 3;
    padding-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.bio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    margin: 0 auto;
    max-width: 100%;
}

.bio-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.bio-header {
    background: var(--gradient-accent);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bio-header::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="bio-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23bio-pattern)"/></svg>');
    opacity: 0.3;
}

.bio-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.bio-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    margin: 0;
}

.bio-content {
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.bio-text {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bio-text:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bio-quote-label {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bio-quote-label i {
    margin-left: 0.5rem;
}

.bio-content-text {
    margin-top: 1rem;
}

/* نظام التقييم - نفس التصميم في directory.php */
.rating-display {
    text-align: center;
    margin: 1rem 0;
}

.rating-display .stars {
    display: inline-flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.rating-display .rating-star {
    font-size: 1.5rem;
    color: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.rating-display .rating-star:hover {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.5)) brightness(1.2);
}

/* للمستخدمين غير المسجلين */
.rating-display .stars.not-logged-in .rating-star {
    cursor: not-allowed;
    opacity: 0.7;
}

.rating-display .stars.not-logged-in .rating-star:hover {
    transform: none;
    filter: none;
}

.rating-display .rating-text {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    font-weight: 500;
}

/* Tooltip للمستخدمين غير المسجلين */
.rating-display .stars.not-logged-in::after {
    content: "يجب تسجيل الدخول للتقييم";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.rating-display .stars.not-logged-in:hover::after {
    opacity: 1;
}

/* رسائل التقييم - نفس التصميم في directory.php */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rating-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    z-index: 10000;
    border: 2px solid var(--primary-color);
    text-align: center;
    backdrop-filter: blur(10px);
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.rating-message.success {
    border-color: #28a745;
    background: linear-gradient(145deg, #f8fff9 0%, #e8f5e8 100%);
}

.rating-message.error {
    border-color: #dc3545;
    background: linear-gradient(145deg, #fff8f8 0%, #f5e8e8 100%);
}

.rating-message button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-message button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 130, 117, 0.3);
}

/* CSS خاص باللغة الفرنسية */
html[lang="fr"] body {
    direction: ltr;
}

html[lang="fr"] .hero-content,
html[lang="fr"] .professional-header,
html[lang="fr"] .bio-header,
html[lang="fr"] .bio-content,
html[lang="fr"] .public-footer {
}

html[lang="fr"] .hero-name-container {
    flex-direction: row-reverse;
}

html[lang="fr"] .hero-name-with-badge {
    flex-direction: row-reverse;
}

html[lang="fr"] .social-icons-hero {
    justify-content: flex-start;
}

html[lang="fr"] .info-cards {
    text-align: left;
}

html[lang="fr"] .hero-title i {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="fr"] .bio-text .fas.fa-quote-left {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[lang="fr"] .bio-text > div:first-child {
    left: 20px;
    right: auto;
}

/* CSS خاص باللغة الفرنسية لنظام التقييم */
html[lang="fr"] .rating-display .stars.not-logged-in::after {
    content: "Vous devez vous connecter pour évaluer";
}

/* CSS خاص باللغة الفرنسية لرسائل التقييم */
html[lang="fr"] .rating-message {
    text-align: center;
}

html[lang="fr"] .rating-message button {
    margin: 0 0.5rem;
}

/* مؤشر حالة الاتصال */
.profile-status-indicator {
    position: absolute !important;
    bottom: 20px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 999 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.hero-left > .profile-status-indicator.online {
    background: #28a745 !important;
}

.hero-left > .profile-status-indicator.offline {
    background: #6c757d !important;
}

/* إصلاح موضع المؤشر في الجوال */
@media (max-width: 768px) {
    .profile-status-indicator {
        position: absolute !important;
        bottom: 12px !important;
        right: 5px !important;
        width: 16px !important;
        height: 16px !important;
        z-index: 1000 !important;
        /* ضمان عدم التداخل مع الصورة */
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* ضمان عدم إخفاء المؤشر من الصورة */
    .profile-avatar-hero {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* ضمان موضع المؤشر بالنسبة لـ hero-left */
    .hero-left {
        position: relative !important;
        overflow: visible !important;
    }

    /* تصغير شارة التوثيق في الجوال */
    .verification-badge-hero {
                width: 28px !important;
                height: 28px !important;
                font-size: 0.9rem !important;
                border: 2px solid white !important;
                margin-right: 0.4rem !important;
    }

    .locked-container, .not-found-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .locked-title, .not-found-title {
        font-size: 1.6rem;
    }

    .locked-icon, .not-found-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .btn-auth {
        justify-content: center;
    }


    /* Responsive Design */
    .hero-section {
        padding: 1rem 0 3rem 0;
        min-height: 140px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-center {
        order: 2;
        text-align: center;
        align-items: center;
        margin-left: 0;
        padding-bottom: 0.5rem;
    }
    
    .hero-right {
        order: 3;
        margin-left: 0;
        display: block;
    }
    
    .profile-avatar-hero {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    .hero-name-container {
        justify-content: center;
    }
    
    .hero-name-with-badge {
        gap: 0.4rem;
    }
    
    .hero-info-block {
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .hero-title, .hero-activity {
        text-align: center;
        justify-content: center;
    }
    
    .hero-title i, .hero-activity i {
        margin-left: 0;
        margin-right: 0;
    }
    
    .social-icons-hero {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .professional-content {
        padding: 2rem 1.5rem;
    }
    
    .info-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
        max-width: 800px;
    }
    
    .info-card {
        max-width: 280px;
        padding: 1.25rem;
    }
    
    .bio-section {
        margin: 1rem 0 2rem 0 !important;
        padding: 0;
    }
    
    .bio-card {
        margin: 0 auto;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    /* إصلاح خاص لقسم البايو على الجوال */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-status-indicator {
        position: absolute !important;
        bottom: 8px !important;
        right: 3px !important;
        width: 14px !important;
        height: 14px !important;
        z-index: 1000 !important;
        /* ضمان عدم التداخل مع الصورة */
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
    
    /* تصغير الصورة قليلاً في الشاشات الصغيرة لضمان ظهور المؤشر */
    .profile-avatar-hero {
        width: 75px !important;
        height: 75px !important;
        font-size: 1.2rem !important;
        overflow: visible !important;
    }

    /* تصغير شارة التوثيق في الشاشات الصغيرة */
    .verification-badge-hero {
                width: 24px !important;
                height: 24px !important;
                font-size: 0.8rem !important;
                border: 2px solid white !important;
                margin-right: 0.3rem !important;
    }
}

/* تأثيرات نبض القلب */
.profile-status-indicator.online {
    animation: heartbeat 2s ease-in-out infinite !important;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }
    25% { 
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 3px 10px rgba(40, 167, 69, 0.35);
    }
    75% { 
        transform: scale(1.15);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
    }
}

/* حلقة النبض الخارجية */
.profile-status-indicator.online::before {
    content: "" !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    border-radius: 50% !important;
    background: rgba(40, 167, 69, 0.3) !important;
    animation: pulse-ring 2s ease-in-out infinite !important;
    z-index: -1 !important;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


@media (max-width: 480px) {
    .hero-section {
        padding: 0.6rem 0 2rem 0;
        min-height: 100px;
    }
    
    .hero-content {
        gap: 0.4rem;
    }
    
    .profile-avatar-hero {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
    }
    
    .hero-name {
        font-size: 1.75rem;
        margin-bottom: 0rem;
    }
    
    .hero-name-with-badge {
        gap: 0.3rem;
    }
    
    .hero-info-block {
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .hero-activity {
        font-size: 0.9rem;
        padding: 0.25rem 0.6rem;
        min-width: 120px;
        justify-content: center;
    }
    
    .hero-title i, .hero-activity i {
        margin-left: 0;
        margin-right: 0;
    }
    
    .social-icons-hero {
        gap: 0.8rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .hero-stat {
        padding: 0.5rem 0.8rem;
        min-width: 70px;
    }
    
    .professional-content {
        padding: 1.5rem 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 320px;
    }
    
    .info-card {
        max-width: 100%;
        padding: 1rem;
        margin: 0 auto;
    }
    
    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 auto 0.75rem auto;
    }
    
    .info-card h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .bio-section {
        margin: 1.5rem 0 1.5rem 0 !important;
    }
}

/* Print Styles */
@media print {
    .contact-btn {
        display: none;
    }
    
    .hero-section {
        background: #138275 !important;
        color: white !important;
    }
}

/* تحسين الفواصل بين الأقسام */
.hero-section + .container {
    padding-top: 0;
}

.hero-section + .container .bio-section {
    margin-top: 0 !important;
}

/* تحسين z-index للطبقات */
.hero-section {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem !important;
}

.bio-section {
    position: relative;
    z-index: 4;
    clear: both;
}

.professional-info {
    position: relative;
    z-index: 3;
}


@media (max-width: 480px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
} 