/* ════════════════════════════════════════════════════════════════
   ALLODOCTOR · CLINICAL CASE BOARD · questions_premium.css v5
   Wholly unique layout aligned to HealthBridge platform DNA
   Primary: #2563eb  |  Font: Inter  |  Palette: Slate
   ════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS (mirrors app.css :root) ── */
:root {
    --ccb-primary: #2563eb;
    --ccb-primary-dark: #1e40af;
    --ccb-primary-light: #eff6ff;
    --ccb-success: #10b981;
    --ccb-success-light: #d1fae5;
    --ccb-warning: #f59e0b;
    --ccb-danger: #ef4444;
    --ccb-dark: #0f172a;
    --ccb-dark-mid: #1e293b;
    --ccb-bg: #ffffff;
    --ccb-surface: #ffffff;
    --ccb-surface-alt: #ffffff;
    --ccb-text: #0f172a;
    --ccb-text-2: #475569;
    --ccb-text-muted: #94a3b8;
    --ccb-border: #e2e8f0;
    --ccb-font: 'Inter', -apple-system, system-ui, sans-serif;
    --ccb-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ccb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    --ccb-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --ccb-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --ccb-shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.22);
}

/* ════════════════════════════════════════════════════════════════
   ROOT WRAPPER
   ════════════════════════════════════════════════════════════════ */
.ccb-root {
    font-family: var(--ccb-font);
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ════════════════════════════════════════════════════════════════
   SPECIALTY STRIP
   ════════════════════════════════════════════════════════════════ */

.q-category-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 64px;
    z-index: 1001;
    width: 100%;
    display: flex !important;
    align-items: center;
    padding: 0 8px;
    flex-direction: row;
}

.q-category-inner {
    flex: 1;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 12px;
    gap: 12px;
}

.q-category-inner::-webkit-scrollbar {
    display: none;
}

.v-line-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

.q-category-static {
    flex-shrink: 0;
    padding: 8px;
    background: #ffffff;
    z-index: 10;
}

.q-category-static .qcat-btn {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: var(--ccb-primary) !important;
    min-width: 64px !important;
}

.qcat-btn {
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 72px;
    padding: 8px 4px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ccb-text-2);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    font-family: var(--ccb-font);
}

.qcat-btn i {
    font-size: 0.9rem;
    color: #64748b;
}

.qcat-btn span {
    font-size: 0.62rem;
    font-weight: 800;
    color: #475569;
    white-space: nowrap !important;
}

.qcat-btn:hover {
    background: #eff6ff;
}

.qcat-btn:hover i,
.qcat-btn:hover span {
    color: var(--ccb-primary);
}

.qcat-btn.active {
    background: #eff6ff;
    border-color: #dbeafe;
}

.qcat-btn.active i,
.qcat-btn.active span {
    color: var(--ccb-primary);
    font-weight: 950;
}

@media (min-width: 1025px) {
    .q-category-inner {
        justify-content: center;
        justify-content: safe center;
        padding: 10px 8px;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .q-category-nav {
        top: 0;
        padding: 0 4px;
    }

    .q-category-inner {
        padding: 6px 10px;
        gap: 6px;
        justify-content: flex-start;
    }

    .qcat-btn {
        flex-shrink: 0;
        min-width: 68px;
        padding: 8px 4px;
    }

    .qcat-btn i {
        font-size: 0.85rem;
    }

    .qcat-btn span {
        font-size: 0.6rem;
        letter-spacing: -0.2px;
    }
}


/* ════════════════════════════════════════════════════════════════
   WORKSPACE: 3-COLUMN GRID
   ════════════════════════════════════════════════════════════════ */
.ccb-workspace {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 24px;
    align-items: start;
}

.ccb-workspace-full {
    display: block !important;
    max-width: 1440px !important;
    padding: 40px 32px !important;
}

@media (max-width: 1100px) {
    .ccb-workspace {
        grid-template-columns: 240px 1fr;
    }

    .ccb-right-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .ccb-workspace {
        grid-template-columns: 1fr;
        padding: 12px;
        display: block;
    }

    .ccb-left-sidebar,
    .ccb-right-sidebar {
        display: none;
    }
}

/* ── SHARED SIDEBAR CARD ── */
.ccb-sidebar-card {
    background: var(--ccb-surface);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    margin-bottom: 20px;
}

.ccb-sidebar-card-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ccb-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── LEFT SIDEBAR ── */
.ccb-left-sidebar {
    position: sticky;
    top: 56px;
}

.ccb-filter-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccb-filter-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.ccb-filter-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.ccb-filter-item.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.ccb-filter-item-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.ccb-filter-item.active .ccb-filter-item-icon {
    color: var(--ccb-primary);
}

.ccb-filter-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.ccb-filter-item-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.ccb-filter-item.active .ccb-filter-item-text strong {
    color: #0f172a;
}

.ccb-filter-item-text span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ccb-filter-item-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ccb-text-muted);
    background: var(--ccb-surface-alt);
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
}

.ccb-filter-item.active .ccb-filter-item-count {
    background: rgba(37, 99, 235, 0.12);
    color: var(--ccb-primary);
}

/* Specialists */
.ccb-specialist-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccb-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.ccb-spec-row:hover {
    background: var(--ccb-bg);
}

.ccb-spec-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ccb-spec-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ccb-spec-info strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ccb-text);
}

.ccb-spec-info span {
    font-size: 0.7rem;
    color: var(--ccb-text-muted);
}

.ccb-online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ccb-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.ccb-dot-busy {
    background: var(--ccb-warning);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* ════════════════════════════════════════════════════════════════
   CENTER FEED
   ════════════════════════════════════════════════════════════════ */

/* Toolbar */
.ccb-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.ccb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--ccb-text-2);
}

.ccb-toolbar-left strong {
    color: var(--ccb-text);
    font-weight: 700;
}

.ccb-toolbar-sep {
    color: var(--ccb-border);
}

.ccb-sort-select {
    border: 1px solid var(--ccb-border);
    background: var(--ccb-surface-alt);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ccb-text);
    cursor: pointer;
    font-family: var(--ccb-font);
}

.ccb-sort-select:focus {
    outline: none;
    border-color: var(--ccb-primary);
}

.ccb-ask-toolbar-btn {
    background: var(--ccb-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ccb-font);
}

.ccb-ask-toolbar-btn:hover {
    background: var(--ccb-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--ccb-shadow-blue);
}

/* ── CASE CARDS (Industrial Elite Style) ── */
.ccb-re-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 12px 30px -4px rgba(15, 23, 42, 0.03);
}

.ccb-re-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 45px -5px rgba(37, 99, 235, 0.08);
    border-color: #dbeafe;
}

.ccb-re-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-badge {
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-answered {
    background: #f0fdf4;
    color: #16a34a;
    border: none;
}

.badge-pending {
    background: #f8fafc;
    color: #475569;
    border: none;
}

.badge-cat {
    background: #eff6ff;
    color: #2563eb;
    border: none;
}

.badge-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin-left: auto;
}

.ccb-re-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.re-check-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 950;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.check-answered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
}

.check-pending {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.ccb-re-card:hover .check-answered {
    transform: scale(1.05) rotate(5deg);
}

.re-text-content {
    flex: 1;
}

.ccb-re-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.ccb-re-card:hover .ccb-re-title {
    color: var(--ccb-primary);
}

.ccb-re-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8em;
}

.ccb-re-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.re-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ccb-text-2);
}

.re-author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Circular like Doctor cards */
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.re-author span {
    font-size: 0.9rem;
    font-weight: 800;
    color: #334155;
}

.re-pending-txt {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    font-style: italic;
}

.re-btn-view {
    font-size: 0.85rem;
    font-weight: 900;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
}

.ccb-re-card:hover .re-btn-view {
    gap: 12px;
}

.re-btn-answer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.re-btn-answer:hover {
    background: var(--ccb-primary);
    color: #ffffff;
    border-color: var(--ccb-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ── CASE CARDS (Wide Grid Layout) ── */
.ccb-case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1100px) {
    .ccb-case-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ccb-case-list {
        grid-template-columns: 1fr;
    }
}

/* Empty state */
.ccb-empty {
    background: var(--ccb-surface);
    border: 1.5px dashed var(--ccb-border);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
}

.ccb-empty-icon {
    font-size: 3rem;
    color: var(--ccb-text-muted);
    margin-bottom: 20px;
}

.ccb-empty h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ccb-text);
    margin-bottom: 8px;
}

.ccb-empty p {
    color: var(--ccb-text-2);
    margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════════
   RIGHT SIDEBAR
   ════════════════════════════════════════════════════════════════ */
.ccb-right-sidebar {
    position: sticky;
    top: 56px;
}

/* CTA Card */
.ccb-cta-card {
    background: linear-gradient(145deg, var(--ccb-dark) 0%, var(--ccb-dark-mid) 100%);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    transition: all 0.3s var(--ccb-ease);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ccb-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ccb-shadow-lg);
}

.ccb-cta-card-title,
.ccb-cta-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.ccb-cta-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ccb-cta-icon {
    width: 54px;
    height: 54px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #60a5fa;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
}

.ccb-cta-btn {
    background: var(--ccb-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    transition: background 0.2s;
}

.ccb-cta-card:hover .ccb-cta-btn {
    background: var(--ccb-primary-dark);
}

.ccb-cta-deco-1 {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    pointer-events: none;
}

.ccb-cta-deco-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    pointer-events: none;
}

/* Trending */
.ccb-trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ccb-trend-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ccb-border);
}

.ccb-trend-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ccb-trend-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--ccb-border);
    letter-spacing: -0.03em;
    min-width: 28px;
}

.ccb-trend-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ccb-trend-info span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ccb-text);
    line-height: 1.4;
}

.ccb-trend-info small {
    font-size: 0.7rem;
    color: var(--ccb-text-muted);
}

/* Guidelines */
.ccb-guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ccb-guidelines-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ccb-text-2);
    font-weight: 500;
    line-height: 1.5;
}

.ccb-guidelines-list li i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════════════ */
.ccb-modal-overlay {
    display: none;
    /* hidden by default — JS sets display:flex to open */
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.60);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10005;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

.ccb-modal-panel {
    background: var(--ccb-surface);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    /* Scaling back up slightly for better balance */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--ccb-border);
    animation: ccb-modal-rise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow: hidden;
    margin: auto;
}

.ccb-modal-wide {
    max-width: 780px;
}

@keyframes ccb-modal-rise {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ccb-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ccb-border);
    background: var(--ccb-surface);
}

.ccb-modal-header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--ccb-primary);
    flex-shrink: 0;
}

.ccb-modal-header-text {
    flex: 1;
}

.ccb-modal-header-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ccb-text);
    margin: 0 0 3px;
}

.ccb-modal-header-text p {
    font-size: 0.82rem;
    color: var(--ccb-text-muted);
    margin: 0;
}

.ccb-modal-close {
    width: 36px;
    height: 36px;
    background: var(--ccb-surface-alt);
    border: 1px solid var(--ccb-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ccb-text-muted);
    font-size: 0.95rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ccb-modal-close:hover {
    background: var(--ccb-danger);
    border-color: transparent;
    color: #fff;
    transform: rotate(90deg);
}

/* Modal form */
.ccb-modal-form {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ccb-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ccb-form-row label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccb-optional {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    background: var(--ccb-surface-alt);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    color: var(--ccb-text-muted);
}

.ccb-form-row input,
.ccb-form-row select,
.ccb-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ccb-border);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ccb-text);
    font-family: var(--ccb-font);
    transition: all 0.2s ease;
    resize: vertical;
}

.ccb-form-row input:focus,
.ccb-form-row select:focus,
.ccb-form-row textarea:focus {
    outline: none;
    border-color: var(--ccb-primary);
    background: var(--ccb-surface);
    box-shadow: 0 0 0 4px var(--ccb-primary-light);
}

.ccb-form-row textarea {
    min-height: 100px;
}

/* Upload zone */
.ccb-upload-zone {
    border: 1px dashed var(--ccb-border);
    border-radius: 12px;
    padding: 16px;
    /* Narrower padding for tiny width */
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f8fafc;
}

.ccb-upload-zone:hover {
    border-color: var(--ccb-primary);
    background: var(--ccb-primary-light);
}

.ccb-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ccb-text-muted);
}

.ccb-upload-placeholder i {
    font-size: 2rem;
    color: var(--ccb-text-muted);
}

.ccb-upload-placeholder span {
    font-size: 0.875rem;
    font-weight: 600;
}

.ccb-upload-placeholder small {
    font-size: 0.75rem;
}

.ccb-upload-preview {
    position: relative;
    display: inline-block;
}

.ccb-upload-preview img {
    max-height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.ccb-remove-img {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
}

/* Modal footer */
.ccb-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.ccb-btn-cancel {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    font-family: var(--ccb-font);
    transition: all 0.2s;
}

.ccb-btn-cancel:hover {
    background: #e2e8f0;
}

.ccb-btn-submit {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ccb-font);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    transition: all 0.2s;
}

.ccb-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

/* Category grid in modal */
.ccb-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 24px 28px 28px;
}

.ccb-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: 16px;
    border: 1.5px solid var(--ccb-border);
    background: var(--ccb-surface);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ccb-text);
    text-align: center;
    transition: all 0.25s var(--ccb-ease);
}

.ccb-cat-item:hover {
    border-color: var(--ccb-primary);
    background: var(--ccb-primary-light);
    color: var(--ccb-primary);
    transform: translateY(-3px);
    box-shadow: var(--ccb-shadow-blue);
}

.ccb-cat-item i {
    font-size: 1.4rem;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .ccb-workspace {
        grid-template-columns: 220px 1fr;
    }

    .ccb-right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .ccb-root {
        padding-bottom: 100px;
    }

    .ccb-workspace {
        grid-template-columns: 1fr;
        padding: 12px 16px;
        gap: 16px;
    }

    .ccb-left-sidebar,
    .ccb-right-sidebar {
        display: none;
    }

    /* Category Nav — handled in global scope above */

    .q-category-inner {
        padding: 4px 12px;
        gap: 8px;
        justify-content: flex-start;
    }

    .qcat-btn {
        padding: 8px 4px;
        font-size: 0.8rem;
    }

    /* Mobile Floating Action Button - Redesigned for Clarity */
    .mobile-ask-fab {
        display: flex !important;
        position: fixed;
        bottom: 85px;
        /* Sits comfortably above the mobile bottom nav */
        left: 50%;
        transform: translateX(-50%);
        /* Centered for maximum visibility */
        height: 54px;
        padding: 0 24px;
        background: var(--ccb-primary);
        color: #fff !important;
        border-radius: 27px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 0.95rem;
        font-weight: 800;
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
        z-index: 2500;
        border: 2px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        white-space: nowrap;
        animation: fabRise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        text-transform: none;
        letter-spacing: -0.01em;
    }

    .mobile-ask-fab i {
        font-size: 1.1rem;
        margin-right: 2px;
    }

    .ccb-root .mobile-ask-fab::after {
        content: 'Ask Clinical Case';
        /* Added clear text label */
    }

    html[lang="ar"] .ccb-root .mobile-ask-fab::after,
    html[dir="rtl"] .ccb-root .mobile-ask-fab::after {
        content: 'اطرح حالة سريرية';
    }

    html[lang="fr"] .ccb-root .mobile-ask-fab::after {
        content: 'Poser un cas clinique';
    }

    @keyframes fabRise {
        from {
            transform: translateX(-50%) translateY(40px);
            opacity: 0;
        }

        to {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
    }

    /* Case Card Comprehensive Mobile Overhaul */
    .ccb-case-card {
        flex-direction: column;
        padding: 18px;
        gap: 12px;
        border-radius: 20px;
    }

    .ccb-case-card::before {
        width: 3px;
    }

    .ccb-vote-col {
        display: none;
        /* Keep hidden, stats moved to footer */
    }

    .ccb-case-main {
        padding: 0;
    }

    .ccb-case-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .ccb-case-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .ccb-case-meta-row {
        gap: 8px;
        margin-bottom: 12px;
    }

    /* Mobile Card Footer Stats */
    .ccb-mobile-stats-row {
        display: flex !important;
        align-items: center;
        gap: 16px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
    }

    .mob-stat {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.75rem;

        .ccb-open-link {
            display: none;
            /* Hide on mobile to save space */
        }

        .ccb-feed-toolbar {
            border-radius: 12px;
            padding: 10px 14px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .ccb-ask-toolbar-btn {
            display: none;
            /* FAB takes over */
        }
    }

    /* Base styles for new components */
    .mobile-ask-fab,
    .ccb-mobile-stats-row {
        display: none;
    }

    .qd-title {
        font-size: 1.3rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   DETAIL VIEW STYLES (Global — all screen sizes)
   ════════════════════════════════════════════════════════════════ */

@keyframes ccbFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ccb-detail-view-container {
    animation: ccbFadeUp 0.4s ease-out;
    padding-bottom: 40px;
}

.ccb-detail-header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.ccb-back-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ccb-back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #2563eb;
    transform: translateX(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ccb-detail-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Question Detail Card */
/* Question Detail Card - Elite Clean DNA */
/* Question Detail Card - Unique Elite Identity */
/* Question Detail Card - Elite Premium */
.qd-card {
    background: #ffffff;
    background-image: radial-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.01),
        0 10px 15px -3px rgba(0, 0, 0, 0.02),
        0 20px 50px -12px rgba(37, 99, 235, 0.03);
    position: relative;
    overflow: hidden;
    /* Fix for broken bits spilling out */
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .qd-card {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .qd-body-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

.qd-evidence-action {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.qd-evidence-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.qd-evidence-toggle-btn i {
    font-size: 1.2rem;
    color: #2563eb;
    transition: transform 0.3s;
}

.qd-evidence-toggle-btn:hover {
    background: #ffffff;
    border-color: #2563eb;
    color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.qd-evidence-toggle-btn.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.qd-evidence-toggle-btn.active i {
    color: #dc2626;
    transform: rotate(90deg);
}

.qd-visual-evidence {
    margin: 32px -12px 0 -12px;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    background: #ffffff;
    padding: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: all 0.4s;
}

.qd-visual-evidence:hover {
    border-color: #2563eb;
    background: #fcfdfe;
}

.qd-visual-evidence img {
    width: 100%;
    max-height: 520px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.qd-visual-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #2563eb;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 8px;
    /* Industrial Elite Stamp style */
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.qd-card::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 0;
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom, #2563eb, #0084BD);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.qd-body-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #1e293b;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.qd-answer-card {
    background: #ffffff;
    border: 1px solid rgba(238, 242, 246, 0.8);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.qd-answer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.05);
}

.qd-answer-header {
    padding: 28px 48px;
    background: linear-gradient(to right, #ffffff, #fcfdfe);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 24px;
}

.qd-answer-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

@media (max-width: 600px) {
    .qd-answer-avatar {
        width: 54px;
        height: 54px;
        flex-shrink: 0;
        font-size: 20px;
        border-radius: 14px;
    }

    .qd-answer-header h5 {
        font-size: 1.1rem;
        word-break: break-word;
        /* Prevents long name spill */
    }
}

.qd-role-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.qd-answer-header h5 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.qd-answer-header span {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 8px;
}

.qd-answer-body {
    padding: 48px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.02), transparent 200px);
}

.qd-answer-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 24px;
}

/* --- INSIGHT LIKE STYLE --- */
.qd-engagement-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    background: white;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

.qd-engagement-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.qd-engagement-btn.liked {
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    background: #FEF2F2 !important;
}

.qd-engagement-btn i {
    font-size: 14px;
}

.pulse-line {
    position: absolute;
    left: 76px;
    top: -40px;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.4), transparent);
}

.qd-diagnostic-seal {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 80px;
    height: 80px;
    opacity: 0.03;
    pointer-events: none;
    filter: saturate(0);
}

/* --- THE ELITE BOOKING EXPERIENCE --- */
.qd-answer-card .qd-book-btn-clean {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0055D4 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
    box-shadow: 0 4px 10px rgba(0, 132, 189, 0.25) !important;
    border: none !important;
    width: fit-content !important;
    margin-top: 0 !important;
    cursor: pointer !important;
}

.qd-answer-card .qd-book-btn-clean:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 132, 189, 0.35) !important;
    filter: brightness(1.05);
}

.qd-answer-card .qd-book-btn-clean i {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-answer-card .qd-book-btn-clean:hover i {
    transform: scale(1.1) rotate(-5deg) !important;
}

/* --- PREMIUM FLOATING ACTION BUTTON (ELITE STYLE) --- */
.ccb-fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 64px;
    height: 64px;
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fabPopIn 0.6s ease-out;
}

.ccb-fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
    background: #1d4ed8;
}

.ccb-fab i {
    transition: transform 0.4s ease;
}

.ccb-fab:hover i {
    transform: rotate(90deg);
}

@keyframes fabPopIn {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (max-width: 768px) {
    .ccb-fab {
        bottom: 100px;
        right: 24px;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}

.qd-book-btn-clean::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.qd-book-btn-clean:hover::after {
    opacity: 1;
}

@media (max-width: 600px) {
    .qd-answer-card .qd-book-btn-clean {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 12px !important;
        margin-top: 0 !important;
    }

    .qd-answer-card .qd-book-btn-clean span {
        display: none !important;
    }

    .qd-answer-card .qd-book-btn-clean i {
        display: inline-block !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-size: 1.5rem !important;
        color: #ffffff !important;
        margin: 0 !important;
        position: relative;
        z-index: 5;
    }

    .qd-answer-card .qd-book-btn-clean::after {
        display: none !important;
        /* Hide gradient overlay on mobile to simplify */
    }
}

/* --- MOBILE FLOATING ACTION BUTTON (ELITE STYLE) --- */
.mobile-ask-fab {
    display: none;
}

@keyframes fabRise {
    from {
        transform: translateX(-50%) translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-ask-fab {
        display: flex !important;
        position: fixed;
        bottom: 85px;
        /* Sits above mobile bottom nav */
        left: 50%;
        transform: translateX(-50%);
        height: 54px;
        padding: 0 24px;
        background: var(--ccb-primary);
        color: #fff !important;
        border-radius: 27px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 0.95rem;
        font-weight: 800;
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
        z-index: 2500;
        border: 2px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        white-space: nowrap;
        animation: fabRise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        text-decoration: none !important;
    }

    .mobile-ask-fab::after {
        content: 'Ask Question';
    }

    html[lang="ar"] .mobile-ask-fab::after,
    html[dir="rtl"] .mobile-ask-fab::after {
        content: 'اطرح سؤالاً';
    }

    html[lang="fr"] .mobile-ask-fab::after {
        content: 'Poser une question';
    }

    .mobile-ask-fab i {
        font-size: 1.1rem;
    }

    .ccb-ask-toolbar-btn {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Shared\_QuestionDetailsPartial.cshtml
═══════════════════════════════════════════════════ */
@keyframes slideDown {
                    from { opacity: 0; transform: translateY(-10px); }
                    to { opacity: 1; transform: translateY(0); }
                }

/* ── NEW QUESTION CARD (GLASS & BENTO STYLE) ── */
.nqc-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0px 8px 32px rgba(15, 23, 42, 0.04), 0px 1px 2px rgba(15, 23, 42, 0.02);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    font-family: 'Inter', sans-serif;
}
.nqc-card:hover {
    box-shadow: 0px 20px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}
.nqc-text-on-surface { color: #191c1e; }
.nqc-text-on-surface-variant { color: #45464d; }
.nqc-text-secondary { color: #0051d5; }
.nqc-bg-secondary { 
    background: linear-gradient(135deg, #0051d5, #1e40af); 
    color: #ffffff; 
    border: none;
    box-shadow: 0 4px 12px rgba(0, 81, 213, 0.25);
}
.nqc-bg-surface-highest { 
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.05)); 
    color: #475569; 
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.15);
}
.nqc-body {
    padding: 24px;
    flex-grow: 1;
}
.nqc-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.nqc-badge {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 20px;
}
.nqc-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.nqc-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nqc-card:hover .nqc-title {
    color: #0051d5;
}
.nqc-excerpt {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 24px;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nqc-footer-answered {
    background: rgba(0, 81, 213, 0.05);
    border-top: 1px solid rgba(0, 81, 213, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 0.3s ease;
}
.nqc-card:hover .nqc-footer-answered {
    background: rgba(0, 81, 213, 0.1);
}
.nqc-footer-pending {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(226, 232, 240, 0.4));
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.nqc-card:hover .nqc-footer-pending {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.6), rgba(203, 213, 225, 0.3));
}
.nqc-footer-pending::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    animation: nqc-shimmer-pending 3s infinite;
}
@keyframes nqc-shimmer-pending {
    100% { left: 200%; }
}
.nqc-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.nqc-author-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 0 0 2px #ffffff;
}
.nqc-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nqc-author-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.nqc-author-name-row {
    display: block;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 700;
}
.nqc-author-role {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #45464d;
}
.nqc-view-btn {
    background: #ffffff;
    padding: 7px 14px;
    border-radius: 9999px;
    color: #0051d5;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0px 8px 32px rgba(15, 23, 42, 0.04), 0px 1px 2px rgba(15, 23, 42, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
    border: none;
    transition: all 0.3s ease;
}
.nqc-card:hover .nqc-view-btn {
    background: #0051d5;
    color: #ffffff;
}
.nqc-pending-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64748b, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
    animation: nqc-pulse-pending 2s infinite;
    flex-shrink: 0;
}
@keyframes nqc-pulse-pending {
    0% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(100, 116, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 116, 139, 0); }
}
.nqc-pending-text-primary {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}
.nqc-pending-text-secondary {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    opacity: 0.9;
}

/* RTL Specific Styles for FAB */
html[dir="rtl"] .ccb-fab {
    right: auto;
    left: 40px;
}

@media (max-width: 768px) {
    html[dir="rtl"] .ccb-fab {
        right: auto;
        left: 24px;
    }
}