@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #07090f;
    --bg-2: #0d1119;
    --card: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 217, 163, 0.4);
    --text: #e5e9f0;
    --text-muted: #8b94a7;
    --text-dim: #5a6376;
    --accent: #00d9a3;
    --accent-2: #3b82f6;
    --gradient: linear-gradient(135deg, #00d9a3 0%, #14b8a6 50%, #3b82f6 100%);
    --glow: 0 0 40px rgba(0, 217, 163, 0.25);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Фоновое свечение */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 10% 15%, rgba(0, 217, 163, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 90% 70% at 90% 85%, rgba(59, 130, 246, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* ===== СТРАНИЦА ВХОДА ===== */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; position: relative; z-index: 1;
}
.login-card {
    background: rgba(13, 17, 25, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 24px; padding: 48px 40px;
    width: 100%; max-width: 440px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient);
}
.login-logo { text-align: center; margin-bottom: 12px; }
.login-logo-icon {
    width: 68px; height: 68px; background: var(--gradient); border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 20px; box-shadow: var(--glow);
}
.login-title { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: #ffffff; margin-bottom: 6px; }
.login-subtitle { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: 12px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}
.form-input {
    width: 100%; padding: 14px 16px; font-size: 15px; background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border); border-radius: 12px; color: var(--text);
    outline: none; transition: all 0.2s; font-family: inherit;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15); background: rgba(0, 0, 0, 0.5); }
.form-input::placeholder { color: var(--text-dim); }

.btn {
    display: inline-block; padding: 14px 24px; font-size: 15px; font-weight: 600;
    border-radius: 12px; border: none; cursor: pointer; transition: all 0.25s;
    font-family: inherit; text-decoration: none; text-align: center; letter-spacing: -0.01em;
}
.btn-primary { width: 100%; background: var(--gradient); color: #051512; margin-top: 8px; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 217, 163, 0.4); filter: brightness(1.1); }
.login-footer { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 28px; }

/* Пароль с глазиком */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 48px; }
.toggle-password {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer; font-size: 18px;
    padding: 6px 10px; border-radius: 8px; opacity: 0.6; transition: all 0.2s; color: var(--text-muted);
}
.toggle-password:hover { opacity: 1; background: rgba(255, 255, 255, 0.05); }

.error-message {
    background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5; padding: 12px 16px; border-radius: 12px; font-size: 13px;
    margin-bottom: 20px; text-align: center;
}
.success-message {
    background: rgba(0, 217, 163, 0.1); border: 1px solid rgba(0, 217, 163, 0.4);
    color: var(--accent); padding: 12px 20px; border-radius: 12px; font-size: 14px; margin-bottom: 20px;
}

/* ===== САЙДБАР И ОБЩИЙ КАРКАС ===== */
.app-body { display: flex; min-height: 100vh; padding: 0; }
.sidebar {
    width: 260px; background: rgba(7, 9, 15, 0.95); backdrop-filter: blur(20px);
    border-right: 1px solid var(--border); display: flex; flex-direction: column;
    padding: 24px 16px; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: #ffffff; padding: 8px 12px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-brand-icon { width: 38px; height: 38px; background: var(--gradient); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 20px rgba(0, 217, 163, 0.35); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text-muted); text-decoration: none; border-radius: 12px; font-size: 14px; font-weight: 500; transition: all 0.2s; border: 1px solid transparent; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-item.active { background: rgba(0, 217, 163, 0.1); color: var(--accent); border-color: rgba(0, 217, 163, 0.2); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); margin-bottom: 10px; }
.sidebar-user-avatar { width: 40px; height: 40px; border-radius: 11px; background: var(--gradient); color: #051512; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }
.sidebar-logout { display: block; text-align: center; padding: 10px; font-size: 13px; color: var(--text-muted); text-decoration: none; border-radius: 10px; border: 1px solid var(--border); transition: all 0.2s; }
.sidebar-logout:hover { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }

.main-content { margin-left: 260px; flex: 1; padding: 40px 48px; position: relative; z-index: 1; min-height: 100vh; width: calc(100% - 260px); }
.topbar { background: rgba(7, 9, 15, 0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.topbar-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: #ffffff; }
.topbar-brand-icon { width: 38px; height: 38px; background: var(--gradient); border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 20px rgba(0, 217, 163, 0.35); }
.topbar-user { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-muted); }
.topbar-user-name { font-weight: 600; color: var(--text); }
.btn-logout { padding: 8px 16px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border-radius: 10px; text-decoration: none; border: 1px solid var(--border); transition: all 0.2s; }
.btn-logout:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.container { max-width: 1160px; margin: 0 auto; padding: 40px 32px; position: relative; z-index: 1; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.page-title { font-size: 32px; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }
.back-link { display: inline-block; color: var(--text-muted); text-decoration: none; font-size: 13px; margin-bottom: 20px; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

/* ===== СТАТИСТИКА (ДАШБОРД) ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: all 0.25s; overflow: hidden; }
.stat-card:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.stat-card-accent { background: rgba(0, 217, 163, 0.06); border-color: rgba(0, 217, 163, 0.25); }
.stat-icon { font-size: 24px; margin-bottom: 12px; }
.stat-value { font-size: 26px; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 6px; word-wrap: break-word; }
.stat-card-accent .stat-value { color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ===== КАРТОЧКИ ПАЦИЕНТОВ ===== */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 240px; max-width: 420px; padding: 13px 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; color: var(--text); outline: none; font-family: inherit; transition: all 0.2s; }
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15); }
.btn-secondary { padding: 13px 22px; background: var(--gradient); color: #051512; font-size: 14px; font-weight: 700; border-radius: 12px; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; display: inline-block; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 217, 163, 0.35); }

.patients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.patient-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: all 0.25s; cursor: pointer; text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
.patient-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient); opacity: 0; transition: opacity 0.3s; }
.patient-card:hover { background: var(--card-hover); border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow); }
.patient-card:hover::before { opacity: 1; }
.patient-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); color: #051512; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.patient-name { font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 6px; word-wrap: break-word; overflow-wrap: anywhere; min-width: 0; }
.patient-info { font-size: 13.5px; color: var(--text-muted); margin-bottom: 3px; word-wrap: break-word; }
.patient-meta { font-size: 12px; color: var(--text-dim); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.badge { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 600; border-radius: 20px; background: rgba(0, 217, 163, 0.15); color: var(--accent); border: 1px solid rgba(0, 217, 163, 0.3); }

/* ===== КАРТОЧКА ПАЦИЕНТА (ДЕТАЛИ) ===== */
.patient-header-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 32px; margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.patient-header-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient); }
.patient-header-info { display: flex; gap: 20px; align-items: center; flex: 1; min-width: 0; }
.patient-avatar-lg { width: 76px; height: 76px; border-radius: 20px; background: var(--gradient); color: #051512; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex-shrink: 0; box-shadow: var(--glow); }
.patient-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-block; padding: 5px 12px; font-size: 12px; font-weight: 500; border-radius: 20px; background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); max-width: 100%; white-space: normal; }
.tag-accent { background: rgba(0, 217, 163, 0.12); color: var(--accent); border-color: rgba(0, 217, 163, 0.3); }

.btn-start-appointment { display: inline-flex; align-items: center; gap: 16px; padding: 18px 28px; background: var(--gradient); color: #051512; border-radius: 16px; text-decoration: none; font-weight: 700; transition: all 0.25s; box-shadow: 0 10px 30px rgba(0, 217, 163, 0.3); flex-shrink: 0; }
.btn-start-appointment:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 217, 163, 0.5); }
.btn-start-icon { font-size: 28px; }
.btn-start-title { display: block; font-size: 16px; }
.btn-start-sub { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; }

.patient-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.detail-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: border-color 0.25s; word-wrap: break-word; overflow-wrap: anywhere; min-width: 0; }
.detail-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.detail-card-info { background: rgba(0, 217, 163, 0.04); border-color: rgba(0, 217, 163, 0.2); }
.detail-card-title { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 18px; }
.detail-text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.detail-text strong { color: var(--accent); font-weight: 600; }
.empty-state { text-align: center; padding: 24px 12px; color: var(--text-dim); }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; margin-bottom: 4px; }
.empty-state-hint { font-size: 12px; color: var(--text-dim); }

.diagnoses-list { background: rgba(0, 217, 163, 0.05); border: 1px solid rgba(0, 217, 163, 0.2); border-radius: 12px; padding: 14px 18px; margin-top: 8px; }
.diagnosis-item { font-size: 14px; color: var(--text); line-height: 1.7; padding: 4px 0; }

/* ===== ИСТОРИЯ ПРИЁМОВ ===== */
.appointments-list { display: flex; flex-direction: column; gap: 12px; }
.appointment-item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; transition: all 0.2s; }
.appointment-item:hover { border-color: rgba(0, 217, 163, 0.3); background: rgba(0, 217, 163, 0.03); }
.appointment-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.appointment-item-date { font-size: 14px; font-weight: 600; color: var(--accent); }
.appointment-item-id { font-size: 11px; color: var(--text-dim); font-family: 'SF Mono', Consolas, monospace; padding: 3px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 20px; }
.appointment-item-preview { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; white-space: pre-wrap; word-wrap: break-word; }
.appointment-item-actions { display: flex; gap: 8px; }
.btn-small { display: inline-block; padding: 8px 16px; font-size: 12px; font-weight: 600; background: var(--gradient); color: #051512; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; }
.btn-small:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 217, 163, 0.3); }
.btn-small-danger { background: transparent; color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-small-danger:hover { background: rgba(239, 68, 68, 0.1); color: #fecaca; }

/* ===== ЭКРАН ПРИЁМА ===== */
.appointment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.appointment-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.status-dot.recording { background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.appointment-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 24px; }
.appointment-main { display: flex; flex-direction: column; gap: 20px; }
.appointment-controls { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.recording-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.rec-status { font-size: 13px; color: var(--accent); font-weight: 500; }

.btn-record-start { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: var(--gradient); color: #051512; font-size: 15px; font-weight: 700; border: none; border-radius: 14px; cursor: pointer; font-family: inherit; transition: all 0.25s; box-shadow: 0 10px 30px rgba(0, 217, 163, 0.3); }
.btn-record-start:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0, 217, 163, 0.5); }
.btn-record-stop { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; background: #ef4444; color: #ffffff; font-size: 15px; font-weight: 700; border: none; border-radius: 14px; cursor: pointer; font-family: inherit; transition: all 0.25s; }
.btn-record-stop:hover { background: #dc2626; }
.record-timer { font-family: 'SF Mono', Consolas, monospace; font-size: 22px; font-weight: 700; color: #ef4444; letter-spacing: 0.05em; }

.transcript-panel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.transcript-header { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--text); }
.transcript-hint { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.transcript-textarea { width: 100%; min-height: 320px; padding: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-size: 14px; font-family: 'Inter', sans-serif; line-height: 1.7; outline: none; resize: vertical; transition: all 0.2s; }
.transcript-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 217, 163, 0.15); }
.transcript-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.doc-preview { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.doc-preview-header { padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.02); display: flex; justify-content: space-between; align-items: center; }
.doc-preview-body { padding: 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; min-height: 100px; }
.doc-empty { color: var(--text-dim); font-style: italic; }
.doc-text { white-space: pre-wrap; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text); line-height: 1.6; margin: 0; word-wrap: break-word; }
.doc-textarea { width: 100%; min-height: 180px; padding: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--accent); border-radius: 10px; color: var(--text); font-size: 13px; font-family: 'Inter', sans-serif; line-height: 1.6; outline: none; resize: vertical; margin-bottom: 10px; }
.doc-edit-btn { background: transparent; border: none; cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 6px; opacity: 0.5; transition: all 0.2s; }
.doc-edit-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }

/* Кнопки действий */
.appointment-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.btn-action-icon { padding: 12px 20px; font-size: 14px; font-weight: 600; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font-family: inherit; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-action-icon:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); transform: translateY(-1px); }
.btn-action-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.25); }
.btn-action-danger:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.btn-action-primary { padding: 14px 28px; font-size: 15px; font-weight: 700; background: var(--gradient); color: #051512; border: none; box-shadow: 0 8px 24px rgba(0, 217, 163, 0.35); }
.btn-action-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 217, 163, 0.5); filter: brightness(1.1); color: #051512; }

/* ===== МЕДИЦИНСКИЕ БЛАНКИ (ПЕЧАТЬ) ===== */
.quick-toggles { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.toggle-btn { padding: 10px 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; color: var(--text-muted); font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; transition: all 0.2s; }
.toggle-btn:hover { background: rgba(0, 217, 163, 0.08); border-color: rgba(0, 217, 163, 0.3); color: var(--accent); }
.hidden-section { display: none; margin-bottom: 20px; }
.documents-view { display: flex; flex-direction: column; gap: 24px; }
.medical-form { background: #ffffff; color: #1f2937; border-radius: 12px; padding: 32px 40px; font-family: 'Times New Roman', 'Times', serif; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); position: relative; }
.form-header { text-align: center; border-bottom: 2px solid #1f2937; padding-bottom: 14px; margin-bottom: 20px; }
.form-clinic { font-size: 15px; font-weight: bold; letter-spacing: 0.02em; color: #111827; }
.form-clinic-sub { font-size: 11px; color: #4b5563; margin-top: 4px; }
.form-title { font-size: 17px; font-weight: bold; margin-top: 14px; letter-spacing: 0.1em; color: #111827; }
.form-patient-row { display: flex; justify-content: space-between; gap: 24px; font-size: 13px; padding: 6px 0; border-bottom: 1px dotted #d1d5db; flex-wrap: wrap; }
.form-label-inline { color: #6b7280; font-style: italic; }
.form-body { margin: 20px 0; min-height: 200px; }
.form-content { white-space: pre-wrap; font-family: 'Times New Roman', 'Times', serif; font-size: 13.5px; line-height: 1.7; color: #1f2937; margin: 0; }
.form-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; padding-top: 20px; border-top: 1px solid #d1d5db; }
.form-signature { font-size: 13px; color: #1f2937; }
.form-signature-line { margin-top: 6px; color: #6b7280; }
.form-stamp { text-align: right; }
.form-stamp-circle { width: 100px; height: 100px; border: 2px dashed #9ca3af; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; letter-spacing: 0.15em; font-family: 'Inter', sans-serif; font-weight: 600; }
.form-qr-block { text-align: center; padding: 0 20px; }
.form-qr-img { width: 80px; height: 80px; border-radius: 6px; }
.form-qr-caption { font-size: 9px; color: #6b7280; margin-top: 4px; font-family: 'Inter', sans-serif; line-height: 1.3; }
.print-form { background: #ffffff; color: #1f2937; padding: 40px 50px; font-family: 'Times New Roman', 'Times', serif; }

/* ===== ПРОФИЛЬ ===== */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; text-align: center; position: sticky; top: 24px; }
.profile-avatar-big { width: 96px; height: 96px; border-radius: 24px; background: var(--gradient); color: #051512; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; margin: 0 auto 18px; box-shadow: var(--glow); }
.profile-name { font-size: 19px; font-weight: 700; color: #ffffff; margin-bottom: 4px; letter-spacing: -0.02em; }
.profile-role { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 4px; }
.profile-clinic { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.profile-seal { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.profile-seal-box { width: 120px; height: 120px; border: 2px dashed var(--border); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 11px; text-align: center; letter-spacing: 0.1em; line-height: 1.5; }
.profile-signature { font-size: 13px; color: var(--text-muted); }
.profile-form-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ===== СЕТКА ДАШБОРДА ===== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quick-actions { display: flex; flex-direction: column; gap: 8px; }
.quick-action { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; text-decoration: none; color: inherit; transition: all 0.2s; }
.quick-action:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); transform: translateX(4px); }
.quick-action-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(0, 217, 163, 0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.quick-action-title { font-size: 14px; font-weight: 600; color: var(--text); }
.quick-action-sub { font-size: 12px; color: var(--text-muted); }

/* ===== ТАБЛИЦЫ И СЕЛЕКТЫ ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%238b94a7' d='M6 8L2 4h8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.form-input option { background: #0d1119; color: #e5e9f0; }

/* ===== АНАЛИЗЫ ===== */
.upload-form { background: rgba(0, 217, 163, 0.03); border: 1px dashed rgba(0, 217, 163, 0.3); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analyses-list { display: flex; flex-direction: column; gap: 10px; }
.analysis-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s; }
.analysis-item:hover { border-color: rgba(0, 217, 163, 0.25); background: rgba(0, 217, 163, 0.02); }
.analysis-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 217, 163, 0.1); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.analysis-info { flex: 1; min-width: 0; }
.analysis-title { font-size: 15px; font-weight: 600; color: #ffffff; margin-bottom: 4px; }
.analysis-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.analysis-notes { font-size: 13px; color: var(--text-muted); font-style: italic; }
.analysis-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== УВЕДОМЛЕНИЯ ===== */
.notif-bell { position: relative; text-decoration: none; font-size: 20px; padding: 6px 10px; border-radius: 10px; transition: background 0.2s; }
.notif-bell:hover { background: rgba(255, 255, 255, 0.05); }
.notif-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 10px; min-width: 16px; text-align: center; box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.notifications-inline { background: rgba(0, 217, 163, 0.06); border: 1px solid rgba(0, 217, 163, 0.25); border-radius: 16px; padding: 18px 22px; margin-bottom: 24px; }
.notifications-inline-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.notification-inline-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(0, 0, 0, 0.2); border-radius: 12px; text-decoration: none; color: inherit; margin-bottom: 8px; transition: all 0.2s; }
.notification-inline-item:hover { background: rgba(0, 217, 163, 0.06); transform: translateX(4px); }
.notification-inline-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 217, 163, 0.15); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.notification-inline-content { flex: 1; min-width: 0; }
.notification-inline-title { font-size: 13px; font-weight: 700; color: #ffffff; margin-bottom: 2px; }
.notification-inline-message { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notification-inline-arrow { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.notifications-list { display: flex; flex-direction: column; gap: 10px; }
.notification-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; transition: all 0.2s; position: relative; }
.notification-card.unread { background: rgba(0, 217, 163, 0.05); border-color: rgba(0, 217, 163, 0.25); }
.notification-card:hover { border-color: rgba(0, 217, 163, 0.4); transform: translateX(4px); }
.notification-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 217, 163, 0.12); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.notification-card-body { flex: 1; min-width: 0; }
.notification-card-title { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.notification-card-message { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.notification-card-date { font-size: 11px; color: var(--text-dim); }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(0, 217, 163, 0.8); flex-shrink: 0; }

/* ===== ГРАФИК ГЛАВВРАЧА ===== */
.chart-container { padding: 20px 0; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 200px; padding: 0 8px; }
.chart-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart-bar-value { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.chart-bar { width: 100%; max-width: 40px; min-height: 4px; background: var(--gradient); border-radius: 6px 6px 0 0; transition: all 0.3s; box-shadow: 0 0 12px rgba(0, 217, 163, 0.3); }
.chart-bar-wrapper:hover .chart-bar { filter: brightness(1.3); box-shadow: 0 0 20px rgba(0, 217, 163, 0.6); }
.chart-bar-label { font-size: 10px; color: var(--text-dim); margin-top: 8px; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }

/* ===== ЛЕНДИНГ ===== */
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 48px; position: sticky; top: 0; background: rgba(7, 9, 15, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 100; }
.landing-logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; color: #ffffff; }
.landing-logo-icon { width: 40px; height: 40px; background: var(--gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 24px rgba(0, 217, 163, 0.4); }
.landing-nav-actions { display: flex; gap: 12px; }
.btn-nav-ghost, .btn-nav-primary { padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 10px; text-decoration: none; transition: all 0.2s; }
.btn-nav-ghost { color: var(--text-muted); border: 1px solid var(--border); }
.btn-nav-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-nav-primary { background: var(--gradient); color: #051512; }
.btn-nav-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 217, 163, 0.4); }
.hero { max-width: 1100px; margin: 0 auto; padding: 80px 32px 60px; text-align: center; position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 8px 18px; background: rgba(0, 217, 163, 0.1); border: 1px solid rgba(0, 217, 163, 0.3); border-radius: 24px; color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.hero-title { font-size: 64px; font-weight: 800; color: #ffffff; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; }
.hero-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 80px; flex-wrap: wrap; }
.btn-hero-primary, .btn-hero-ghost { padding: 16px 36px; font-size: 16px; font-weight: 700; border-radius: 14px; text-decoration: none; transition: all 0.25s; }
.btn-hero-primary { background: var(--gradient); color: #051512; box-shadow: 0 10px 30px rgba(0, 217, 163, 0.4); }
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 217, 163, 0.55); }
.btn-hero-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.hero-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; text-align: left; }
.hero-feature { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 18px; padding: 24px; transition: all 0.25s; }
.hero-feature:hover { transform: translateY(-4px); border-color: rgba(0, 217, 163, 0.3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.hero-feature-icon { font-size: 28px; margin-bottom: 14px; }
.hero-feature-title { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.hero-feature-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.landing-section { max-width: 1100px; margin: 0 auto; padding: 80px 32px; position: relative; z-index: 1; }
.landing-section-title { font-size: 40px; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; text-align: center; margin-bottom: 48px; }
.steps-grid, .roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-card, .role-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: all 0.25s; }
.step-card:hover, .role-card:hover { border-color: rgba(0, 217, 163, 0.3); transform: translateY(-3px); }
.step-number { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.step-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.role-card { text-align: center; }
.role-icon { font-size: 40px; margin-bottom: 16px; }
.role-name { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.role-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.landing-cta { max-width: 700px; margin: 0 auto; padding: 80px 32px 60px; text-align: center; position: relative; z-index: 1; }
.landing-cta-title { font-size: 40px; font-weight: 800; color: #ffffff; letter-spacing: -0.03em; margin-bottom: 16px; }
.landing-cta-text { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }
.landing-footer { text-align: center; padding: 40px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-dim); position: relative; z-index: 1; }

/* ===== СПИСОК ДОКУМЕНТОВ ===== */
.documents-list { display: flex; flex-direction: column; gap: 12px; }
.document-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 22px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; transition: all 0.2s; align-items: center; flex-wrap: wrap; }
.document-row:hover { border-color: rgba(0, 217, 163, 0.3); background: rgba(0, 217, 163, 0.03); transform: translateX(4px); }
.document-row-left { flex: 1; min-width: 240px; }
.document-row-date { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.document-row-patient { font-size: 15px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.document-row-preview { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.document-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.document-row-id { font-size: 11px; color: var(--text-dim); font-family: 'SF Mono', Consolas, monospace; padding: 3px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 20px; }

/* Защита от переполнения */
.patient-name, .patient-info, .detail-card, .appointment-item-preview, .doc-text, .form-content { word-wrap: break-word; overflow-wrap: anywhere; }

.security-note { font-size: 11px; color: var(--text-dim); text-align: center; padding: 20px; margin-top: 20px; letter-spacing: 0.02em; }

/* ===== БУРГЕР-МЕНЮ (МОБИЛЬНАЯ АДАПТАЦИЯ) ===== */
.burger-btn { display: none; position: fixed; top: 16px; left: 16px; z-index: 200; width: 44px; height: 44px; background: var(--gradient); color: #051512; border: none; border-radius: 12px; font-size: 22px; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 217, 163, 0.4); font-family: inherit; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 90; backdrop-filter: blur(2px); }
.sidebar-overlay.visible { display: block; }

@media (max-width: 900px) {
    .burger-btn { display: block; }
    .sidebar { left: -280px; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; width: 260px; }
    .sidebar.open { left: 0; }
    .main-content { margin-left: 0; width: 100%; padding: 72px 20px 24px; }
    .topbar { padding: 14px 20px; padding-left: 76px; }
    .container { padding: 20px 16px; }
    .page-title { font-size: 22px; }
    .page-subtitle { font-size: 13px; }
    .stat-value { font-size: 22px; }
    .patients-grid { grid-template-columns: 1fr; }
    .appointment-grid, .patient-detail-grid, .dashboard-grid, .profile-layout, .appointment-view-grid { grid-template-columns: 1fr !important; }
    .patient-header-card { flex-direction: column; align-items: stretch; }
    .patient-header-info { flex-direction: row; }
    .btn-start-appointment { width: 100%; justify-content: center; }
    .appointment-actions { flex-direction: column-reverse; }
    .btn-action-icon, .btn-action-primary { width: 100%; justify-content: center; }
    .hero-title { font-size: 36px; }
    .landing-section-title, .landing-cta-title { font-size: 26px; }
    .landing-nav { padding: 14px 20px; flex-wrap: wrap; }
    .hero { padding: 40px 20px; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-ghost { width: 100%; }
    .medical-form { padding: 20px; }
    .form-patient-row { flex-direction: column; gap: 6px; }
    .form-footer { flex-direction: column; align-items: center; gap: 20px; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 8px; }
    .upload-row { grid-template-columns: 1fr; }
    .analysis-item { flex-wrap: wrap; }
    .analysis-actions { width: 100%; justify-content: flex-end; }
    .chart-bars { height: 140px; }
    .chart-bar-label { font-size: 9px; }
    .chart-bar-value { font-size: 10px; }
    .login-card { padding: 32px 24px; }
    .login-title { font-size: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .documents-view { gap: 16px; }
    .appointment-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .appointment-header .btn-record-start { width: 100%; justify-content: center; }
    .recording-controls { flex-direction: column; align-items: stretch; }
    .recording-controls button { width: 100%; justify-content: center; }
}

/* =========================================
   ИНДИВИДУАЛЬНОСТЬ СПЕЦИАЛЬНОСТЕЙ (ИЗЮМИНКА)
   ========================================= */

/* Кардиолог (Красный) */
.specialty-cardiologist .sidebar-brand-icon { background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%); box-shadow: 0 0 20px rgba(255, 71, 87, 0.4); }
.specialty-cardiologist .nav-item.active { background: rgba(255, 71, 87, 0.1); color: #ff4757; border-color: rgba(255, 71, 87, 0.2); }
.specialty-cardiologist .stat-card-accent { background: rgba(255, 71, 87, 0.06); border-color: rgba(255, 71, 87, 0.25); }
.specialty-cardiologist .stat-card-accent .stat-value { color: #ff4757; }

/* Хирург (Зеленый) */
.specialty-surgeon .sidebar-brand-icon { background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%); box-shadow: 0 0 20px rgba(46, 213, 115, 0.4); }
.specialty-surgeon .nav-item.active { background: rgba(46, 213, 115, 0.1); color: #2ed573; border-color: rgba(46, 213, 115, 0.2); }
.specialty-surgeon .stat-card-accent { background: rgba(46, 213, 115, 0.06); border-color: rgba(46, 213, 115, 0.25); }
.specialty-surgeon .stat-card-accent .stat-value { color: #2ed573; }

/* Невролог (Фиолетовый) */
.specialty-neurologist .sidebar-brand-icon { background: linear-gradient(135deg, #a55eea 0%, #ce9cff 100%); box-shadow: 0 0 20px rgba(165, 94, 234, 0.4); }
.specialty-neurologist .nav-item.active { background: rgba(165, 94, 234, 0.1); color: #a55eea; border-color: rgba(165, 94, 234, 0.2); }
.specialty-neurologist .stat-card-accent { background: rgba(165, 94, 234, 0.06); border-color: rgba(165, 94, 234, 0.25); }
.specialty-neurologist .stat-card-accent .stat-value { color: #a55eea; }

/* Офтальмолог (Голубой) */
.specialty-ophthalmologist .sidebar-brand-icon { background: linear-gradient(135deg, #0abde3 0%, #48dbfb 100%); box-shadow: 0 0 20px rgba(10, 189, 227, 0.4); }
.specialty-ophthalmologist .nav-item.active { background: rgba(10, 189, 227, 0.1); color: #0abde3; border-color: rgba(10, 189, 227, 0.2); }
.specialty-ophthalmologist .stat-card-accent { background: rgba(10, 189, 227, 0.06); border-color: rgba(10, 189, 227, 0.25); }
.specialty-ophthalmologist .stat-card-accent .stat-value { color: #0abde3; }

/* Стоматолог (Золотой) */
.specialty-dentist .sidebar-brand-icon { background: linear-gradient(135deg, #eccc68 0%, #ffd32a 100%); box-shadow: 0 0 20px rgba(236, 204, 104, 0.4); }
.specialty-dentist .nav-item.active { background: rgba(236, 204, 104, 0.1); color: #eccc68; border-color: rgba(236, 204, 104, 0.2); }
.specialty-dentist .stat-card-accent { background: rgba(236, 204, 104, 0.06); border-color: rgba(236, 204, 104, 0.25); }
.specialty-dentist .stat-card-accent .stat-value { color: #eccc68; }

/* ЛОР (Оранжевый) */
.specialty-lor .sidebar-brand-icon { background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%); box-shadow: 0 0 20px rgba(254, 202, 87, 0.4); }
.specialty-lor .nav-item.active { background: rgba(254, 202, 87, 0.1); color: #feca57; border-color: rgba(254, 202, 87, 0.2); }
.specialty-lor .stat-card-accent { background: rgba(254, 202, 87, 0.06); border-color: rgba(254, 202, 87, 0.25); }
.specialty-lor .stat-card-accent .stat-value { color: #feca57; }

/* Педиатр (Розовый) */
.specialty-pediatrician .sidebar-brand-icon { background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%); box-shadow: 0 0 20px rgba(255, 159, 243, 0.4); }
.specialty-pediatrician .nav-item.active { background: rgba(255, 159, 243, 0.1); color: #ff9ff3; border-color: rgba(255, 159, 243, 0.2); }
.specialty-pediatrician .stat-card-accent { background: rgba(255, 159, 243, 0.06); border-color: rgba(255, 159, 243, 0.25); }
.specialty-pediatrician .stat-card-accent .stat-value { color: #ff9ff3; }

/* По умолчанию (Терапевт и остальные) */
.specialty-therapist .sidebar-brand-icon { background: var(--gradient); box-shadow: 0 0 20px rgba(0, 217, 163, 0.4); }
.specialty-therapist .nav-item.active { background: rgba(0, 217, 163, 0.1); color: var(--accent); border-color: rgba(0, 217, 163, 0.2); }
.specialty-therapist .stat-card-accent { background: rgba(0, 217, 163, 0.06); border-color: rgba(0, 217, 163, 0.25); }
.specialty-therapist .stat-card-accent .stat-value { color: var(--accent); }
/* =========================================
   /* ===== АККУРАТНАЯ ИНДИВИДУАЛЬНОСТЬ ===== */
.specialty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}
.specialty-icon-large {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}