/*
 * Waeyuk UI Primitives — components.css
 * v1.0 — Strategic Refactor Phase 2.2
 *
 * Rules:
 * - كل Component يعتمد على Design Tokens فقط (لا hardcoded values)
 * - كل Component له variants + sizes + states
 * - يُستخدم هذا الملف في كل الصفحات بدلاً من inline styles
 */

/* ==============================================
 * BUTTONS
 * ============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: var(--fw-bold);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}

/* Sizes */
.btn-sm  { padding: var(--space-2) var(--space-4);  font-size: var(--text-sm);  }
.btn-md  { padding: var(--space-3) var(--space-6);  font-size: var(--text-base);}
.btn-lg  { padding: var(--space-4) var(--space-8);  font-size: var(--text-lg);  }
.btn-xl  { padding: var(--space-5) var(--space-10); font-size: var(--text-xl);  }

/* Default is md */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-xl) {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
}

/* Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 var(--space-2) var(--space-5) var(--accent-glow-sm);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 var(--space-3) var(--space-8) var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-bright);
    color: var(--tx-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--tx-secondary);
    border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) {
    background: var(--glass-bright);
    color: var(--tx-primary);
    border-color: var(--border-subtle);
}

.btn-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-accent:hover:not(:disabled) {
    background: var(--info-bg);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(255, 51, 102, 0.2);
    box-shadow: 0 0 12px var(--error-glow);
}

.btn-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success);
}
.btn-success:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.2);
}

/* States */
.btn:disabled,
.btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    pointer-events: none;
}
.btn.loading::after {
    content: '';
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Icon-only button */
.btn-icon {
    padding: var(--space-2) !important;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
}
.btn-icon.btn-lg { width: 44px; height: 44px; }
.btn-icon.btn-sm { width: 28px; height: 28px; }


/* ==============================================
 * CARDS
 * ============================================== */

.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card-flat {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg-elevated);
}

.card-elevated {
    box-shadow: var(--shadow-lg);
}

.card-interactive {
    cursor: pointer;
}
.card-interactive:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md), var(--shadow-glow-sm);
    transform: translateY(-4px);
}

/* Sizes */
.card-sm { padding: var(--space-4); border-radius: var(--radius-md); }
.card-md { padding: var(--space-6); border-radius: var(--radius-lg); }
.card-lg { padding: var(--space-8); border-radius: var(--radius-xl); }

/* Default */
.card:not(.card-sm):not(.card-lg) {
    padding: var(--space-6);
}

/* Card sections */
.card-header {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--tx-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--tx-muted);
    margin: var(--space-1) 0 0;
}

.card-footer {
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-5);
}


/* ==============================================
 * INPUTS
 * ============================================== */

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--tx-secondary);
}

.input-label.required::after {
    content: ' *';
    color: var(--error);
}

.input {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--tx-primary);
    font-family: inherit;
    font-size: var(--text-base);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.input::placeholder { color: var(--tx-muted); }

/* Sizes */
.input-sm  { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.input-md  { padding: var(--space-3) var(--space-4); }
.input-lg  { padding: var(--space-4) var(--space-5); font-size: var(--text-lg); }

.input:not(.input-sm):not(.input-lg) {
    padding: var(--space-3) var(--space-4);
}

/* States */
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-sm);
    background: var(--bg-surface);
}

.input.input-error {
    border-color: var(--error);
}
.input.input-error:focus {
    box-shadow: 0 0 0 3px var(--error-glow);
}

.input.input-success {
    border-color: var(--success);
}

.input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Input with icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon .input {
    padding-right: var(--space-10);
}
.input-with-icon .input-icon {
    position: absolute;
    right: var(--space-4);
    color: var(--tx-muted);
    pointer-events: none;
    font-size: var(--text-base);
}

.input-hint {
    font-size: var(--text-xs);
    color: var(--tx-muted);
}
.input-hint.error { color: var(--error); }
.input-hint.success { color: var(--success); }


/* ==============================================
 * BADGES
 * ============================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    white-space: nowrap;
    border: 1px solid transparent;
}

/* Solid variants */
.badge-accent   { background: var(--info-bg);    color: var(--accent);  border-color: var(--accent); }
.badge-success  { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.badge-error    { background: var(--error-bg);   color: var(--error);   border-color: var(--error); }
.badge-purple   { background: rgba(153,51,255,.12); color: var(--accent-secondary); border-color: var(--accent-secondary); }
.badge-muted    { background: var(--glass-bright); color: var(--tx-muted); border-color: var(--border); }

/* Filled variants */
.badge-filled-accent   { background: var(--accent);  color: #000; }
.badge-filled-success  { background: var(--success);  color: #000; }
.badge-filled-gradient { background: var(--gradient-primary); color: #fff; border: none; }

/* Sizes */
.badge-sm { padding: 2px var(--space-2); font-size: 10px; }
.badge-lg { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }

/* Plan Badges */
.badge-plan-free   { background: var(--glass-bright); color: var(--tx-muted); border-color: var(--border); }
.badge-plan-pro    { background: var(--info-bg);      color: var(--accent);   border-color: var(--accent); }
.badge-plan-ultra  { background: var(--gradient-primary); color: #fff; border: none; box-shadow: var(--shadow-glow-sm); }

/* Status Badges */
.badge-pending   { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.badge-confirmed { background: var(--info-bg);    color: var(--accent);  border-color: var(--accent); }
.badge-completed { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.badge-cancelled { background: var(--error-bg);   color: var(--error);   border-color: var(--error); }


/* ==============================================
 * AVATARS
 * ============================================== */

.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    background: var(--bg-elevated);
    flex-shrink: 0;
    transition: var(--transition);
    display: block;
}

.avatar-xs  { width: 24px;  height: 24px;  }
.avatar-sm  { width: 36px;  height: 36px;  }
.avatar-md  { width: 48px;  height: 48px;  }
.avatar-lg  { width: 72px;  height: 72px;  border-width: 3px; }
.avatar-xl  { width: 100px; height: 100px; border-width: 3px; }
.avatar-2xl { width: 140px; height: 140px; border-width: 4px; }

.avatar:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Avatar group */
.avatar-group {
    display: flex;
    flex-direction: row-reverse;
}
.avatar-group .avatar {
    margin-right: -10px;
    border: 2px solid var(--bg-main);
}


/* ==============================================
 * SKELETON LOADERS
 * ============================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-elevated) 25%,
        rgba(255,255,255,0.04) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-wave 1.6s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text  { height: 14px; margin-bottom: var(--space-2); border-radius: var(--radius-full); }
.skeleton-title { height: 24px; margin-bottom: var(--space-3); border-radius: var(--radius-full); }
.skeleton-avatar{ border-radius: 50% !important; }
.skeleton-card  { height: 200px; border-radius: var(--radius-lg); }
.skeleton-short  { width: 40%; }
.skeleton-medium { width: 65%; }
.skeleton-long   { width: 85%; }


/* ==============================================
 * EMPTY STATES
 * ============================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--tx-muted);
    gap: var(--space-4);
}

.empty-state-icon {
    font-size: 3rem;
    opacity: 0.25;
    line-height: 1;
}

.empty-state-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--tx-secondary);
    margin: 0;
}

.empty-state-desc {
    font-size: var(--text-sm);
    color: var(--tx-muted);
    max-width: 320px;
    line-height: var(--leading-normal);
    margin: 0;
}


/* ==============================================
 * TABS
 * ============================================== */

.tabs {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    gap: var(--space-1);
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--tx-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    background: transparent;
    font-family: inherit;
}

.tab:hover:not(.tab-active) {
    color: var(--tx-secondary);
    background: var(--glass-bright);
}

.tab-active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow-sm);
}


/* ==============================================
 * DIVIDER
 * ============================================== */

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--tx-muted);
    font-size: var(--text-sm);
    margin: var(--space-6) 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* ==============================================
 * STAT CARD (Dashboard Widget)
 * ============================================== */

.stat-widget {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-widget:hover {
    border-color: rgba(0,210,255,0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.stat-widget-value {
    font-size: var(--text-3xl);
    font-weight: var(--fw-black);
    color: var(--tx-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-1);
}

.stat-widget-label {
    font-size: var(--text-sm);
    color: var(--tx-muted);
    font-weight: var(--fw-semibold);
}

.stat-widget-trend {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-xs);
}

/* Icon color variants */
.icon-blue   { background: var(--info-bg);    color: var(--accent); }
.icon-green  { background: var(--success-bg); color: var(--success); }
.icon-yellow { background: var(--warning-bg); color: var(--warning); }
.icon-red    { background: var(--error-bg);   color: var(--error); }
.icon-purple { background: rgba(153,51,255,.12); color: var(--accent-secondary); }


/* ==============================================
 * PROGRESS / USAGE BAR
 * ============================================== */

.progress {
    width: 100%;
    height: 6px;
    background: var(--glass-bright);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-glow-sm);
}

.progress-fill.danger  { background: var(--error);   box-shadow: 0 0 8px var(--error-glow); }
.progress-fill.warning { background: var(--warning);  box-shadow: 0 0 8px var(--warning-glow); }
.progress-fill.success { background: var(--success);  box-shadow: 0 0 8px var(--success-glow); }

.progress-sm { height: 4px; }
.progress-lg { height: 10px; }


/* ==============================================
 * RATING STARS
 * ============================================== */

.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #ffc107;
    font-size: var(--text-sm);
}

.stars .star-count {
    margin-right: var(--space-2);
    font-weight: var(--fw-bold);
    color: var(--tx-primary);
}


/* ==============================================
 * SECTION HEADER
 * ============================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-3);
}

.section-header h2 {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--tx-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-header-action {
    font-size: var(--text-sm);
    color: var(--accent);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    transition: var(--transition-fast);
}
.section-header-action:hover {
    color: var(--tx-primary);
}


/* ==============================================
 * LAYOUT UTILITIES
 * ============================================== */

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.flex-1 { flex: 1; }
.w-full { width: 100%; }


/* ==============================================
 * MOBILE PERFORMANCE — Disable heavy effects
 * ============================================== */

@media (max-width: 768px) {
    /* Disable glass blur for performance */
    .card,
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(18, 18, 24, 0.98);
    }

    /* Disable animated border */
    .glow-border::before {
        animation: none;
        background: var(--border);
    }

    /* Disable mouse-follow glow */
    .interactive-glow::after {
        display: none;
    }

/* ==============================================
 * STANDARD UI STATES (Loading, Error, Success)
 * ============================================== */

/* Shimmer Loading Skeleton */
.skeleton {
    background: var(--info-bg);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
    color: transparent !important;
    border: none !important;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-text { height: 1em; margin-bottom: 0.5em; border-radius: 4px; }
.skeleton-circle { border-radius: 50%; }
.skeleton-rect { height: 100px; }

/* Status Banners */
.status-banner {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-4);
    border: 1px solid transparent;
}
.status-banner-error {
    background: rgba(255, 82, 82, 0.1);
    color: var(--error);
    border-color: rgba(255, 82, 82, 0.2);
}
.status-banner-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
    border-color: rgba(0, 230, 118, 0.2);
}
.status-banner-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
    border-color: rgba(255, 193, 7, 0.2);
}
.status-banner-info {
    background: rgba(0, 210, 255, 0.1);
    color: var(--info);
    border-color: rgba(0, 210, 255, 0.2);
}

/* ==============================================
 * MOBILE UX OPTIMIZATION & PERFORMANCE
 * ============================================== */

/* Reduce heavy glass effects on mobile to improve scrolling and battery */
@media (max-width: 768px) {
    .glass-card,
    .glass-surface,
    .specialist-card,
    .dashboard-panel,
    .navbar {
        backdrop-filter: blur(4px) !important; /* Reduced from 16px/24px */
        -webkit-backdrop-filter: blur(4px) !important;
        background: rgba(15, 15, 20, 0.95) !important; /* More solid fallback */
    }
    
    /* Ensure minimum touch target size for accessibility */
    .btn,
    .badge,
    a,
    button,
    .nav-item {
        min-height: 44px; /* Apple/Google accessibility standard */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Exceptions for small badges that aren't clickable */
    .badge-sm {
        min-height: auto;
    }
}

/* Reduce motion for low-end devices or user preference */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
}


/* ==============================================
 * SPECIALIST CARD — Discovery Page
 * ============================================== */

.specialist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: var(--space-6) var(--space-4);
    min-height: 280px;
    position: relative;
}

/* Verified badge — top right (LTR: left) */
.sc-verified-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--info-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    box-shadow: var(--shadow-glow-sm);
    z-index: 2;
}

/* Level badge — top right */
.sc-level-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 2;
}

/* Plan badge — under level */
.sc-plan-badge {
    position: absolute;
    top: calc(var(--space-4) + 30px);
    right: var(--space-4);
    z-index: 2;
    font-size: 10px;
}

/* Avatar wrapper */
.sc-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.sc-avatar {
    width: 100%;
    height: 100%;
}

.sc-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: var(--info-bg);
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.5rem;
}

/* Trust ring — glowing border around avatar for high-trust specialists */
.sc-trust-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: trust-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes trust-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Name & spec */
.sc-name {
    font-size: var(--text-lg);
    font-weight: var(--fw-black);
    color: var(--tx-primary);
    margin: 0 0 var(--space-1);
    line-height: var(--leading-snug);
}

.sc-spec {
    font-size: var(--text-sm);
    color: var(--tx-secondary);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-2);
}

/* Short bio */
.sc-bio {
    font-size: var(--text-xs);
    color: var(--tx-muted);
    line-height: var(--leading-normal);
    margin: 0 0 var(--space-3);
    max-width: 180px;
}

/* Rating row — always visible */
.sc-rating {
    margin: var(--space-1) 0 var(--space-3);
    font-size: var(--text-xs);
}

.sc-rating-count {
    color: var(--tx-muted);
    font-size: var(--text-xs);
    margin-right: var(--space-1);
}

.sc-rating-empty {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--tx-muted);
    font-size: var(--text-xs);
}

/* Progress bar */
.sc-progress {
    width: 75%;
    margin-bottom: var(--space-3);
}

/* Footer */
.sc-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
}

.sc-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'Outfit', sans-serif;
}

.sc-price i { color: var(--accent); font-size: var(--text-xs); }

.sc-price-val {
    font-size: var(--text-xl);
    font-weight: var(--fw-black);
    color: var(--tx-primary);
}

.sc-price-label {
    font-size: var(--text-xs);
    color: var(--tx-muted);
}

.sc-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.sc-meta-item {
    font-size: var(--text-xs);
    color: var(--tx-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-trust-badge { color: var(--success); }

/* Mobile adjustments */
@media (max-width: 768px) {
    .specialist-card { padding: var(--space-5) var(--space-3); min-height: auto; }
    .sc-avatar-wrap  { width: 72px; height: 72px; }
    .sc-name         { font-size: var(--text-base); }
    .sc-bio          { display: none; } /* Hide bio on mobile for cleaner card */
    .sc-plan-badge   { display: none; }
}


/* ==============================================
 * REVIEW CARD
 * ============================================== */

.review-card {
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--border-subtle);
}
.review-card:last-child { border-bottom: none; }

.review-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.review-name {
    font-weight: var(--fw-bold);
    font-size: var(--text-sm);
    color: var(--tx-primary);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--tx-muted);
    margin-top: 2px;
}

.review-stars {
    margin-right: auto;
    font-size: var(--text-xs);
}

.review-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--leading-normal);
    margin: 0;
}
