/* ======================
   إعدادات عامة
====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {font-family: 'Cairo', 'Tajawal', Arial, sans-serif;background-color: #ffffff;background-image: url("backgrand.png"); /* ضع اسم صورة الخلفية هنا */background-repeat: repeat;background-size: 400px;color: #333;direction: rtl;line-height: 1.6;}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================
   Header
====================== */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1e88e5;
}

.logo span {
    color: #f9a825;
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 16px;
}

.nav-links a:hover {
    color: #1e88e5;
}

.nav-links a.active {
    color: #1e88e5;
    position: relative;
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 3px;
    background: #1e88e5;
    border-radius: 3px;
}

/* ======================
   Hero Section
====================== */
.hero {
        background: linear-gradient(rgba(30,136,229,0.7), rgba(21,101,192,0.7)),
        url("bg.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: white;
        padding: 126px 0;
        text-align: center;
        margin-bottom: 40px;
        border-radius: 0 0 40px 40px;
        }

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ======================
   Search Box
====================== */
.search-box {
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 100;
}

.search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-form select,
.search-form input {
    flex: 1;
    min-width: 220px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-form select:focus,
.search-form input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30,136,229,0.1);
}

.search-form button {
    background: #f9a825;
    color: white;
    border: none;
    padding: 15px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-family: 'Cairo', sans-serif;
}

.search-form button:hover {
    background: #f57f17;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249,168,37,0.4);
}

.search-form button:active {
    transform: translateY(0);
}

/* ======================
   Section Title
====================== */
.section-title {
    text-align: center;
    font-size: 34px;
    margin: 60px 0 35px;
    position: relative;
    color: #333;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1e88e5, #f9a825);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ======================
   Categories
====================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.category-card {
    background: white;
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30,136,229,0.15);
    border-color: #1e88e5;
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1;
}

.category-card h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* ======================
   Artisans Card
====================== */
.artisans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.artisan-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.artisan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.artisan-cover {
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #e0e0e0;
    width: 100%;
}

.artisan-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    position: absolute;
    top: 50px;
    right: 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: white;
    z-index: 10;
}

.artisan-info {
    padding: 60px 20px 25px;
    flex: 1;
}

.artisan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.artisan-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.artisan-location span {
    font-size: 16px;
}

.artisan-specialties {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.specialty-tag {
    background: #e3f2fd;
    color: #1e88e5;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.contact-btn {
    display: inline-block;
    background: #1e88e5;
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.contact-btn:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,136,229,0.3);
}

.contact-btn:active {
    transform: translateY(0);
}

/* ======================
   How It Works
====================== */
.how-it-works {
    background: white;
    padding: 70px 0;
    margin: 60px 0;
    border-radius: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(30,136,229,0.3);
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.step-card p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto;
}

/* ======================
   Footer
====================== */
footer {
    background: #1a237e;
    color: white;
    padding: 70px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #f9a825;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-col p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 15px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    font-size: 14px;
}

/* ======================
   Badge
====================== */
.badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ======================
   Message
====================== */
.message {
    background: #d4edda;
    color: #155724;
    padding: 18px 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
    font-weight: 600;
    border-right: 5px solid #28a745;
    font-size: 16px;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-right-color: #dc3545;
}

/* ======================
   Forms
====================== */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30,136,229,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.btn-submit {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    margin-top: 15px;
}

.btn-submit:hover {
    background: #1565c0;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30,136,229,0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ======================
   Table
====================== */
.table-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 15px;
}

th {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #1e88e5;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

tr:hover {
    background: #f8f9fa;
}

.action-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 3px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-approve {
    background: #4caf50;
    color: white;
}

.btn-approve:hover {
    background: #3d8b40;
    transform: translateY(-2px);
}

.btn-edit {
    background: #ff9800;
    color: white;
}

.btn-edit:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* ======================
   Status Badges
====================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-approved {
    background: #e8f5e8;
    color: #4caf50;
}

/* ======================
   ===== قسم الملف الشخصي - التصحيح النهائي =====
   ====================== */

/* شريط التنقل العلوي */
.profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: #1e88e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.action-btn:hover {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
}

/* ===== الحاوية الرئيسية للغلاف والصورة ===== */
.profile-cover-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 100px;
}

/* الغلاف */
.profile-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    position: relative;
    background-color: #e0e0e0;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* طبقة التغميق */
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 25px;
    z-index: 1;
}

/* الصورة الشخصية - داخل الغلاف */
.profile-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 6px solid white;
    position: absolute;
    bottom: -85px;
    right: 30px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: white;
    z-index: 10;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

/* بطاقة المعلومات */
.profile-info {
    background: white;
    border-radius: 25px;
    padding: 30px 35px;
    margin-top: -40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    position: relative;
    z-index: 5;
}

/* رأس البطاقة */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.2;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-verified {
    background: #4caf50;
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-member {
    background: #f8f9fa;
    color: #666;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #e9ecef;
}

.badge-specialty {
    background: #1e88e5;
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* الإحصائيات */
.stats-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 25px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 160px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e88e5;
    font-size: 22px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

/* التقييمات */
.rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
    width: fit-content;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-value {
    font-weight: 700;
    color: #333;
}

.reviews-count {
    color: #666;
    font-size: 14px;
}

/* أزرار الاتصال */
.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.contact-btn {
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.phone-btn {
    background: #1e88e5;
    color: white;
}

.phone-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,136,229,0.3);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,0.3);
}

/* العنوان */
.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #666;
    margin: 15px 0;
}

.address-box i {
    color: #1e88e5;
}

/* النبذة التعريفية */
.profile-bio {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 18px;
    margin: 25px 0;
    line-height: 1.8;
    color: #555;
    border-right: 4px solid #1e88e5;
}

/* معرض الأعمال */
.gallery-section {
    background: white;
    border-radius: 25px;
    padding: 35px;
    margin: 35px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.gallery-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #1e88e5, #f9a825);
    border-radius: 2px;
}

.gallery-count {
    background: #f8f9fa;
    padding: 10px 25px;
    border-radius: 50px;
    color: #666;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item .caption {
    padding: 10px;
    text-align: center;
    background: white;
    font-size: 14px;
    color: #666;
}

/* حرفيون مشابهون */
.similar-section {
    margin: 50px 0;
}

.similar-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.similar-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-cover {
    height: 80px;
    background-size: cover;
    background-position: center;
}

.similar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin-top: -40px;
    margin-right: 15px;
    object-fit: cover;
    background: white;
}

.similar-info {
    padding: 15px;
}

.similar-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.similar-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.similar-btn {
    background: #1e88e5;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.similar-btn:hover {
    background: #1565c0;
}

/* نافذة عرض الصور */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover {
    color: #1e88e5;
}

/* ======================
   Dashboard Stats
====================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e88e5;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 16px;
    font-weight: 600;
}

/* ======================
   Admin Stats
====================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-card.pending {
    border-bottom: 5px solid #ff9800;
}

.stat-card.approved {
    border-bottom: 5px solid #4caf50;
}

.stat-card.verified {
    border-bottom: 5px solid #2196f3;
}

.stat-card.total {
    border-bottom: 5px solid #9c27b0;
}

/* ======================
   Responsive
====================== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .profile-name {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form select,
    .search-form input,
    .search-form button {
        width: 100%;
        min-width: 100%;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .profile-cover {
        height: 200px;
    }
    
    .profile-avatar {
        width: 130px;
        height: 130px;
        bottom: -65px;
        right: 20px;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-meta {
        gap: 15px;
    }
    
    .profile-meta span {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 130px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .artisan-avatar {
        width: 80px;
        height: 80px;
        top: 60px;
    }
    
    .artisan-info {
        padding: 55px 15px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .search-box {
        padding: 25px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h4:after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        bottom: -50px;
    }
    
    .profile-info {
        padding: 12px;
    }
    
    .profile-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .profile-badges {
        flex-direction: column;
    }
    
    .badge-specialty {
        width: fit-content;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ============================================
   التحسينات الإضافية - لا تؤثر على التصميم الحالي
   ============================================ */

/* تحسينات Lazy Loading */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* تأثيرات بسيطة للبطاقات (اختياري) */
.artisan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artisan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30,136,229,0.15);
}

/* وضع الليل المحسن - معزول تماماً */
body.dark-mode-improved {
    background: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode-improved header,
body.dark-mode-improved .artisan-card,
body.dark-mode-improved .form-container,
body.dark-mode-improved .search-box,
body.dark-mode-improved .profile-info,
body.dark-mode-improved .gallery-section,
body.dark-mode-improved .similar-card {
    background: #2d2d2d;
    border-color: #444;
    color: #f0f0f0;
}

body.dark-mode-improved h1,
body.dark-mode-improved h2,
body.dark-mode-improved h3,
body.dark-mode-improved h4 {
    color: #f0f0f0;
}

body.dark-mode-improved p,
body.dark-mode-improved span,
body.dark-mode-improved div:not(.specialty-tag) {
    color: #ccc;
}

body.dark-mode-improved .specialty-tag {
    background: #444;
    color: #1e88e5;
}

body.dark-mode-improved .nav-links a {
    color: #ccc;
}

body.dark-mode-improved .nav-links a:hover {
    color: #1e88e5;
}

/* تحسين شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e88e5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

body.dark-mode-improved ::-webkit-scrollbar-track {
    background: #333;
}

body.dark-mode-improved ::-webkit-scrollbar-thumb {
    background: #1e88e5;
}

/* تحسينات للأجهزة اللوحية والجوال */
@media (max-width: 768px) {
    #back-to-top-improved,
    #theme-toggle-improved {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    #back-to-top-improved {
        bottom: 20px;
        left: 20px;
    }
    
    #theme-toggle-improved {
        bottom: 70px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    #back-to-top-improved,
    #theme-toggle-improved {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}