
    @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

    :root {
        --primary: #4e73df;
        --primary-gradient: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
        --primary-light: #eef3ff;
        --success: #1cc88a;
        --text-main: #2d3748;
        --text-muted: #718096;
        --bg-card: #ffffff;
        --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        --radius: 16px;
    }

    body {
        margin: 0;
        padding: 0;
        background-color: #f7fafc;
        font-family: 'Tajawal', sans-serif;
    }

    .dashboard-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 15px;
        color: var(--text-main);
        box-sizing: border-box;
    }

    .search-header-box {
        background: var(--primary-gradient);
        border-radius: var(--radius);
        padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(78, 115, 223, 0.2);
        margin-bottom: 25px;
        color: #fff;
        text-align: center;
    }

    .search-header-box h1 { font-size: 26px; font-weight: 800; margin: 0 0 10px 0; }
    .search-header-box p { font-size: 14px; opacity: 0.9; margin: 0; line-height: 1.5; }

    /* تنسيقات كروت التبويب العلوية الذكية (Tabs Cards) */
    .dashboard-tabs-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
        margin-bottom: 25px;
    }

    .tab-nav-card {
        text-decoration: none;
        color: inherit;
        outline: none;
    }

    .tab-stat-card {
        background: var(--bg-card);
        padding: 20px;
        border-radius: var(--radius);
        border: 2px solid #edf2f7;
        box-shadow: var(--shadow);
        cursor: pointer;
        transition: all 0.25s ease-in-out;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .tab-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    }

    .tab-stat-card.active-tab {
        border-color: var(--primary);
        background: #f8faff;
        box-shadow: 0 10px 20px rgba(78, 115, 223, 0.1);
    }

    .tab-title-lbl { margin: 0; font-size: 13px; color: var(--text-muted); font-weight: 700; }
    .tab-value-num { margin: 5px 0 0 0; font-size: 22px; font-weight: 800; color: var(--primary); }
    .tab-value-num .active-badge-lbl { font-size: 13px; font-weight: 500; color: var(--success); }
    .tab-icon-box { font-size: 28px; }

    /* تنسيقات الفلاتر */
    .filter-form-wrapper {
        background: #fff;
        padding: 15px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid #edf2f7;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .filter-group {
        display: flex;
        align-items: center;
        background: #f7fafc;
        border: 1px solid #edf2f7;
        border-radius: 10px;
        padding: 8px 12px;
    }

    .filter-group label { font-size: 13px; font-weight: 700; color: var(--text-main); white-space: nowrap; margin-left: 8px; }
    .filter-group select { border: none; outline: none; width: 100%; font-family: 'Tajawal', sans-serif; font-size: 13px; font-weight: 500; color: var(--primary); background: transparent; cursor: pointer; }

    /* تنسيقات كروت الكوتشز */
    .coaches-grid { display: flex; flex-direction: column; gap: 20px; }

    .coach-card {
        background: var(--bg-card);
        border-radius: var(--radius);
        padding: 20px;
        box-shadow: var(--shadow);
        border: 1px solid #edf2f7;
        display: flex;
        flex-direction: column;
        gap: 15px;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }
    .coach-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); }

    .coach-main-info { flex: 1.5; }
    .coach-stats-zone {
        flex: 1.2;
        background: #fafbfc;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #f0f4f8;
    }

    .coach-action-zone {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        border-top: 1px dashed #edf2f7;
        padding-top: 15px;
    }

    .card-header-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
    .badge-and-verify { display: flex; gap: 6px; flex-wrap: wrap; }
    .rank { background: var(--primary-light); color: var(--primary); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
    .verified-tag { background: #e6fffa; color: #234e52; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

    .coach-card h2 { font-size: 18px; font-weight: 700; margin: 5px 0; color: var(--text-main); }
    .level-box { margin-bottom: 5px; }
    .level-title { font-weight: 700; color: var(--primary); font-size: 14px; }
    .level-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin: 2px 0 0 0; }

    .categories-holder { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
    .category-mini-tag { background: #f0f4f8; color: #4a5568; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }

    .stats-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-item { background: #ffffff; padding: 6px 4px; border-radius: 8px; text-align: center; border: 1px solid #edf2f7; }
    .stat-val { font-size: 13px; font-weight: 700; color: var(--text-main); }
    .stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

    .coach-expanded-details { display: none; width: 100%; border-top: 1px dashed #e2e8f0; padding-top: 15px; margin-top: 5px; }
    .geo-stats-holder { background: #f0fff4; border: 1px dashed #c6f6d5; border-radius: 12px; padding: 10px; margin-bottom: 10px; }
    .geo-summary { font-size: 12px; font-weight: 700; color: #22543d; margin-bottom: 6px; display: flex; justify-content: space-between; }
    .geo-states-list { display: flex; gap: 6px; flex-wrap: wrap; }
    .state-mini-badge { background: #dbfbe6; color: #1c7430; font-size: 11px; padding: 2px 8px; border-radius: 6px; }
    .cod-analysis-holder { background: #f7fafc; border-right: 4px solid var(--primary); border-radius: 4px; padding: 8px 10px; font-size: 12px; color: var(--text-main); line-height: 1.4; margin-bottom: 10px; }
    .cod-title { font-weight: 800; color: #2b6cb0; margin-bottom: 2px; }
    .super-power-box { background: #fff5f5; border: 1px solid #fed7d7; padding: 8px 12px; border-radius: 10px; font-size: 12px; color: #9b2c2c; font-weight: 700; margin-bottom: 10px; }
    .tags-section-title { font-size: 12px; font-weight: 800; color: var(--text-main); margin: 5px 0; }
    .coach-tags-list { padding: 0; margin: 0; }
    .coach-tags-list li { font-size: 12px; color: #4a5568; margin-bottom: 4px; list-style: none; position: relative; padding-right: 15px; }
    .coach-tags-list li::before { content: "✓"; color: var(--success); font-weight: bold; position: absolute; right: 0; }

    .toggle-details-btn { background: none; border: 1px solid #cbd5e0; color: var(--text-main); padding: 8px; border-radius: 10px; cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: 12px; font-weight: 700; width: 100%; transition: background 0.2s; }
    .toggle-details-btn:hover { background: #edf2f7; }

    .price-section-box {
        background: #fffdf5;
        border: 1px solid #fef3c7;
        padding: 10px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .price-lbl { font-size: 12px; color: #92400e; font-weight: 700; text-align: center; }
    .price-values-wrapper { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
    .price-cash { color: #b45309; }
    .price-or { font-size: 11px; color: var(--text-muted); }
    .price-points { color: #2b6cb0; }

    .book-btn {
        display: block;
        text-align: center;
        background: var(--primary-gradient);
        color: #fff;
        padding: 12px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
        cursor: pointer;
        border: none;
        width: 100%;
        font-family: 'Tajawal', sans-serif;
    }

    #no-results-msg { display: none; text-align: center; padding: 30px 15px; background: #fff; border-radius: var(--radius); font-size: 15px; color: var(--text-muted); }

    /* تنسيقات لوحة استشاراتي الحالية الجديدة الفاخرة */
    .bookings-container { display: flex; flex-direction: column; gap: 15px; }
    .booking-card {
        background: #fff;
        border-radius: var(--radius);
        padding: 20px;
        border: 1px solid #edf2f7;
        box-shadow: var(--shadow);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .booking-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f0f4f8; padding-bottom: 12px; }
    .booking-coach-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0; }
    .booking-meta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; font-size: 13px; color: var(--text-muted); }
    .booking-meta-item { display: flex; align-items: center; gap: 6px; }
    .booking-status-badge { font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-align: center; }
    .status-pending { background: #fffdf5; color: #b45309; border: 1px solid #fef3c7; }
    .status-in_progress { background: #eef3ff; color: #224abe; border: 1px solid #d0e0ff; }
    .status-completed { background: #e6fffa; color: #234e52; border: 1px solid #b2f5ea; }
    .status-cancelled { background: #fff5f5; color: #9b2c2c; border: 1px solid #fed7d7; }
    .empty-state-box { background: #fff; text-align: center; padding: 50px 20px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text-muted); }

    /* تنسيق زر الدخول للشات المباشر */
    .btn-enter-chat {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background-color: #075e54; /* لون أخضر واتساب متناسق */
        color: #ffffff !important;
        text-decoration: none !important;
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 13px;
        transition: all 0.2s ease-in-out;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .btn-enter-chat:hover {
        background-color: #128c7e;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .btn-enter-chat i { font-size: 14px; }

    @media (min-width: 768px) {
        .filter-form-wrapper { grid-template-columns: repeat(3, 1fr); }
        .coach-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 25px; }
        .coach-main-info { border-left: 1px solid #edf2f7; padding-left: 20px; }
        .coach-stats-zone { margin: 0 15px; padding: 15px; }
        .coach-action-zone { border-top: none; border-right: 1px dashed #edf2f7; padding-top: 0; padding-right: 20px; min-width: 220px; }
        .booking-card { flex-direction: row; justify-content: space-between; align-items: center; }
        .booking-card-header { border-bottom: none; padding-bottom: 0; }
    }
    