/* ════════════════════════════════════════════════════════════
   features-styles.css — Nurabilt Extended Feature Styles
   Covers: Doctor Profile, Enhanced Directory, Appointment
   Manager, Patient My Care section, Reviews, Modals
════════════════════════════════════════════════════════════ */

/* ── Nav badge (pending count) ──────────────────────────── */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9px;
    margin-left: auto;
    line-height: 1;
}

/* ════════════════════════════════════════════════════════════
   1. DOCTOR MY PROFILE
════════════════════════════════════════════════════════════ */
.dp-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border-radius: 18px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.dp-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.dp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dp-hero-info { flex: 1; z-index: 1; }
.dp-name { font-size: 22px; font-weight: 800; color: #fff; font-family: Sora, sans-serif; }
.dp-spec-tag { font-size: 13px; color: #c4b5fd; margin-top: 3px; font-weight: 600; }
.dp-stats { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.dp-stats span { font-size: 12px; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 5px; }
.dp-stats i { color: #a78bfa; }
.dp-badge { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; z-index: 1; white-space: nowrap; }
.dp-badge-on { background: rgba(22,163,74,0.2); color: #86efac; border: 1px solid rgba(22,163,74,0.3); }
.dp-badge-off { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* Form grid */
.dp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .dp-form-grid { grid-template-columns: 1fr; } }

.dp-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dp-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.dp-card-title i { color: #7c3aed; font-size: 15px; }

.dp-field { margin-bottom: 14px; }
.dp-field:last-child { margin-bottom: 0; }
.dp-field label, .dp-label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.4px; }
.dp-field input, .dp-field select, .dp-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    color: #0f172a;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}
.dp-field input:focus, .dp-field select:focus, .dp-field textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: #faf5ff;
}
.dp-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; font-style: italic; }

.dp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-row3 { display: grid; grid-template-columns: 1fr 1fr 0.7fr; gap: 10px; }
@media (max-width: 600px) { .dp-row2 { grid-template-columns: 1fr; } .dp-row3 { grid-template-columns: 1fr 1fr; } }

/* Radio buttons */
.dp-radio-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.dp-radio { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 13px; color: #374151; transition: all 0.15s; font-weight: 600; }
.dp-radio:has(input:checked) { border-color: #7c3aed; background: #faf5ff; color: #7c3aed; }
.dp-radio input { display: none; }

/* Toggle switches */
.dp-toggles { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.dp-toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; color: #374151; font-weight: 600; }
.dp-toggle-label > span:first-child { flex: 1; display: flex; align-items: center; gap: 8px; }
.dp-toggle-label > span:first-child i { color: #7c3aed; }
.dp-toggle-wrap { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.dp-toggle-wrap input { display: none; }
.dp-toggle-slider {
    position: absolute; inset: 0;
    background: #e2e8f0;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}
.dp-toggle-slider::after {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    background: #fff; border-radius: 50%;
    top: 3px; left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.dp-toggle-wrap input:checked ~ .dp-toggle-slider { background: #7c3aed; }
.dp-toggle-wrap input:checked ~ .dp-toggle-slider::after { transform: translateX(20px); }

.dp-save-row { display: flex; align-items: center; gap: 16px; padding: 20px 0 4px; }
.dp-save-btn {
    padding: 13px 32px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: inherit; display: flex; align-items: center; gap: 8px;
    transition: opacity 0.2s;
}
.dp-save-btn:hover { opacity: 0.9; }
.dp-save-btn:disabled { opacity: 0.6; }

/* ════════════════════════════════════════════════════════════
   2. DOCTOR DIRECTORY — enhanced cards
════════════════════════════════════════════════════════════ */
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
@media (max-width: 700px) { .doctor-grid { grid-template-columns: 1fr; } }

.doctor-grid-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
}
.doctor-grid-card:hover { box-shadow: 0 8px 28px rgba(124,58,237,0.12); transform: translateY(-2px); }

.dgc-top { display: flex; gap: 14px; align-items: flex-start; }
.dgc-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dgc-avatar {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
    overflow: hidden; flex-shrink: 0;
}
.dgc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avail-badge { padding: 3px 8px; border-radius: 8px; font-size: 10px; font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.avail-yes { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.avail-no  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.avail-badge i { font-size: 6px; }

.dgc-info { flex: 1; min-width: 0; }
.dgc-name { font-size: 15px; font-weight: 800; color: #0f172a; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgc-spec { font-size: 12px; color: #7c3aed; font-weight: 700; }
.dgc-subspecialty { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.dgc-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.dp-dir-new { display: inline-block; padding: 2px 8px; background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; border-radius: 6px; font-size: 10px; font-weight: 700; margin-top: 4px; }

.dgc-meta { display: flex; flex-direction: column; gap: 4px; }
.dgc-meta div { font-size: 12px; color: #475569; display: flex; align-items: center; gap: 6px; }
.dgc-meta i { width: 14px; color: #94a3b8; flex-shrink: 0; }

.dgc-slots-label { font-size: 11px; font-weight: 700; color: #64748b; display: flex; align-items: center; gap: 5px; }
.dgc-slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.slot-chip { padding: 3px 9px; background: #ede9fe; color: #7c3aed; border-radius: 6px; font-size: 11px; font-weight: 600; }

.dgc-actions { display: flex; gap: 8px; margin-top: 4px; }
.dgc-view-btn {
    flex: 1; padding: 10px; border: 1.5px solid #7c3aed;
    color: #7c3aed; background: #faf5ff; border-radius: 10px;
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dgc-view-btn:hover { background: #7c3aed; color: #fff; }
.dgc-book-btn {
    flex: 1; padding: 10px; border: none;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border-radius: 10px;
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: opacity 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dgc-book-btn:hover { opacity: 0.9; }

/* ── Doctor Profile Detail Modal ───────────────────────── */
.nbdpm-card {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.nbdpm-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}
.nbdpm-avatar {
    width: 80px; height: 80px; border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px; font-weight: 800;
    overflow: hidden; flex-shrink: 0;
}
.nbdpm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nbdpm-hinfo { flex: 1; min-width: 180px; }
.nbdpm-hinfo h2 { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 3px; font-family: Sora, sans-serif; }
.nbdpm-spec { font-size: 13px; color: #7c3aed; font-weight: 700; margin-bottom: 6px; }
.nbdpm-rating-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; margin-bottom: 8px; }
.nbdpm-rating-row b { color: #0f172a; }
.nbdpm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nbdpm-chips span { padding: 3px 10px; background: #f1f5f9; color: #475569; border-radius: 8px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.nbdpm-chip-green { background: #f0fdf4 !important; color: #16a34a !important; border: 1px solid #bbf7d0; }
.nbdpm-chip-red { background: #fef2f2 !important; color: #dc2626 !important; }
.nbdpm-book-btn {
    padding: 11px 20px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; border-radius: 12px;
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
    white-space: nowrap; display: flex; align-items: center; gap: 6px;
    align-self: flex-start;
}
.nbdpm-book-btn:hover { opacity: 0.9; }

.nbdpm-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f8fafc; }
.nbdpm-section:last-child { border-bottom: none; margin-bottom: 0; }
.nbdpm-section h3 { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.nbdpm-bio { font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }

.nbdpm-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
@media (max-width: 600px) { .nbdpm-details-grid { grid-template-columns: 1fr; } }
.nbdpm-detail-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #f8fafc; border-radius: 10px; }
.nbdpm-detail-item > i { color: #7c3aed; font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.nbdpm-detail-item > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nbdpm-detail-item b { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; }
.nbdpm-detail-item span, .nbdpm-detail-item a { font-size: 13px; color: #0f172a; font-weight: 600; word-break: break-word; }
.nbdpm-detail-item a { color: #7c3aed; text-decoration: none; }
.nbdpm-detail-item a:hover { text-decoration: underline; }

.nbdpm-edu { display: flex; flex-direction: column; gap: 8px; }
.nbdpm-edu-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: #faf5ff; border-radius: 10px; }
.nbdpm-edu-item i { color: #7c3aed; font-size: 13px; margin-top: 1px; }
.nbdpm-edu-item span { font-size: 13px; color: #374151; }

.nbdpm-rev-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nbdpm-rev-header h3 { margin: 0; }
.nbdpm-write-review-btn { padding: 7px 14px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border: none; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.nbdpm-reviews { display: flex; flex-direction: column; gap: 12px; }
.nbdpm-review { padding: 14px; background: #f8fafc; border-radius: 12px; border: 1px solid #f1f5f9; }
.nbdpm-rev-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.nbdpm-rev-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #0f7fdb, #0066bb); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.nbdpm-rev-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.nbdpm-rev-stars { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.nbdpm-rev-date { margin-left: auto; font-size: 11px; color: #94a3b8; white-space: nowrap; }
.nbdpm-rev-text { font-size: 13px; color: #475569; font-style: italic; line-height: 1.5; }

/* Write review stars */
.wr-stars { display: flex; gap: 8px; padding: 8px 0; }
.wr-star { font-size: 28px; color: #e2e8f0; cursor: pointer; transition: color 0.1s, transform 0.1s; }
.wr-star:hover { transform: scale(1.15); }
.wr-star-active { color: #f59e0b !important; }

/* ════════════════════════════════════════════════════════════
   3. DOCTOR APPOINTMENTS — enhanced
════════════════════════════════════════════════════════════ */
.appt-pending-section {
    background: #fff;
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}
.appt-pending-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 800; color: #92400e;
    margin-bottom: 14px;
}
.appt-pending-title i { color: #f59e0b; }
.appt-pending-badge { background: #f59e0b; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 8px; }

/* Appointment cards */
.pa-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.pa-card-pending { border-left: 4px solid #f59e0b; background: #fffbeb; }
.pa-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.pa-patient-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.pa-patient-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #0f7fdb, #0066bb);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.pa-patient-name { font-size: 14px; font-weight: 800; color: #0f172a; }
.pa-patient-sub { font-size: 12px; color: #64748b; margin-top: 1px; }
.pa-dt { font-size: 12px; color: #7c3aed; font-weight: 700; white-space: nowrap; }
.pa-note { font-size: 12px; color: #475569; padding: 6px 10px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.pa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-accept-btn { padding: 8px 16px; background: #16a34a; color: #fff; border: none; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px; }
.pa-reject-btn { padding: 8px 16px; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px; }
.pa-view-btn  { padding: 8px 16px; background: #ede9fe; color: #7c3aed; border: none; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px; }
.pa-accept-btn:hover { background: #15803d; }
.pa-reject-btn:hover { background: #fecaca; }
.pa-view-btn:hover   { background: #ddd6fe; }

/* Share record via doctor */
.share-record-section {
    background: #fff;
    border: 1.5px solid #ddd6fe;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}
.share-record-title { font-size: 14px; font-weight: 800; color: #4c1d95; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sr-patient-select { width: 100%; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 13px; font-family: inherit; background: #fafafa; margin-bottom: 12px; }
.sr-patient-select:focus { outline: none; border-color: #7c3aed; }

/* ════════════════════════════════════════════════════════════
   4. PATIENT MY CARE
════════════════════════════════════════════════════════════ */
.mc-section { }
.mc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.mc-count {
    background: #ede9fe; color: #7c3aed;
    font-size: 11px; font-weight: 800;
    padding: 2px 8px; border-radius: 8px;
    margin-left: 4px;
}

/* Appointment cards — patient view */
.mc-appt-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.mc-appt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.mc-appt-confirmed { border-left: 4px solid #16a34a; }
.mc-appt-pending   { border-left: 4px solid #f59e0b; }
.mc-appt-cancelled { border-left: 4px solid #ef4444; opacity: 0.7; }
.mc-appt-past      { border-left: 4px solid #94a3b8; }

.mc-appt-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.mc-doc-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.mc-appt-info { flex: 1; }
.mc-doc-name { font-size: 15px; font-weight: 800; color: #0f172a; }
.mc-doc-spec { font-size: 12px; color: #7c3aed; font-weight: 600; margin-top: 1px; }
.mc-appt-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-top: 4px; }
.mc-status-pending   { background: #fffbeb; color: #92400e; }
.mc-status-confirmed { background: #f0fdf4; color: #166534; }
.mc-status-cancelled { background: #fef2f2; color: #991b1b; }
.mc-status-done      { background: #f1f5f9; color: #475569; }
.mc-appt-dt { font-size: 12px; color: #7c3aed; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.mc-appt-note { font-size: 12px; color: #475569; background: #f8fafc; padding: 8px 12px; border-radius: 8px; margin-top: 8px; display: flex; align-items: flex-start; gap: 6px; }

.mc-meeting-link { margin-top: 10px; }
.mc-join-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #0f7fdb, #0066bb);
    color: #fff; text-decoration: none; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    transition: opacity 0.2s;
}
.mc-join-btn:hover { opacity: 0.9; }

/* Care records grid */
.mc-records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (max-width: 600px) { .mc-records-grid { grid-template-columns: 1fr; } }

.mc-record-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.mc-record-card:hover { box-shadow: 0 6px 20px rgba(124,58,237,0.1); border-color: #c4b5fd; transform: translateY(-1px); }
.mc-record-type-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.mc-record-info { flex: 1; min-width: 0; }
.mc-record-title { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-record-doc { font-size: 12px; color: #7c3aed; font-weight: 600; }
.mc-record-date { font-size: 11px; color: #94a3b8; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.mc-record-type-tag { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 800; text-transform: capitalize; }

/* Record view modal content */
.mc-record-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.7;
    max-height: 50vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Empty states */
.mc-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 32px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}
.mc-find-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 12px; padding: 9px 18px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none; border-radius: 10px;
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.mc-review-btn {
    padding: 7px 14px;
    background: #fffbeb; color: #92400e;
    border: 1px solid #fde68a; border-radius: 9px;
    font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 5px;
}
.mc-review-btn:hover { background: #fef3c7; }

/* ════════════════════════════════════════════════════════════
   MEETING MODAL + SHARE RECORD MODAL
════════════════════════════════════════════════════════════ */
/* These use existing .nb-overlay / .nb-card from nb-styles */

/* ════════════════════════════════════════════════════════════
   DOCTOR PROFILE SECTION — wrapper
════════════════════════════════════════════════════════════ */
#doctor-profile-content { }

/* ════════════════════════════════════════════════════════════
   MY CARE PAGE wrapper
════════════════════════════════════════════════════════════ */
#my-care-content { }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE TWEAKS
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .dp-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
    .dp-badge { align-self: flex-start; }
    .nbdpm-card { padding: 20px; }
    .nbdpm-header { flex-direction: column; }
    .nbdpm-book-btn { width: 100%; justify-content: center; }
    .mc-appt-top { flex-wrap: wrap; }
    .mc-appt-dt { width: 100%; }
}
