:root {
    --primary: #bb1b33;
    --primary-dark: #8e1527;
    --primary-light: #d4364d;
    --primary-bg: #FFF1F3;
    --primary-bg2: #FFE4E8;
    --bg: #F5F5F7;
    --card: #FFFFFF;
    --sidebar-bg: #1A0A10;
    --sidebar-hover: #2D1520;
    --sidebar-active: rgba(187, 27, 51, 0.15);
    --text: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --info: #2563EB;
    --info-bg: #EFF6FF;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --sidebar-width: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.5; }

/* AUTH LAYOUT */
.auth-layout { display: flex; min-height: 100vh; }
.auth-left { flex: 0 0 42%; max-width: 500px; background: linear-gradient(160deg, #1A0A10, #3D1525 40%, #6B2038); display: flex; flex-direction: column; padding: 40px 40px 48px; position: relative; overflow: hidden; color: #fff; background-image: url('../images/solmenubg.png'); background-size: cover; background-position: center; }
.auth-left::before { content: none; }
.auth-brand { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: center; }
.auth-logo-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 32px; }
.auth-fenkds-logo { width: 200px; height: auto; }
.auth-logo-divider { width: 2px; height: 60px; background: rgba(255,255,255,0.4); }
.auth-logo-title { font-size: 28px; font-weight: 700; line-height: 1.25; text-align: left; }
.auth-logo-title span { font-weight: 400; font-size: 24px; }
.auth-desc { font-size: 15px; line-height: 1.8; opacity: 0.9; margin-bottom: 0; text-align: center; padding: 0 12px; }
.auth-org-logos { display: flex; justify-content: center; gap: 48px; padding-bottom: 16px; }
.auth-org-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-org-item img { width: 90px; height: 90px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.12); padding: 0px; }
.auth-org-item span { font-size: 14px; font-weight: 500; text-align: center; opacity: 0.9; line-height: 1.4; }
.auth-right { flex: 1; display: flex; flex-direction: column; padding: 40px 60px; max-width: 760px; overflow-y: auto; max-height: 100vh; }
.auth-right .form-title { font-size: 29.5px; }
.auth-right .form-subtitle { font-size: 17.5px; }
.auth-right .form-label { font-size: 15.5px; margin-bottom: 6px; }
.auth-right .form-input, .auth-right .form-select { padding: 13px 16px; font-size: 16.5px; border-radius: var(--radius-md); }
.auth-right .form-hint { font-size: 14.5px; }
.auth-right .btn { padding: 14px 24px; font-size: 17.5px; border-radius: var(--radius-md); }
.auth-right .form-check label { font-size: 15.5px; }
.auth-right .form-section-label { font-size: 13.5px; }
.auth-right .pw-rule { font-size: 14.5px; }
.auth-right .register-info-bar { font-size: 15.5px; }
.auth-right .form-password .toggle-pw svg { width: 22px; height: 22px; }
.auth-right .form-password .toggle-pw { right: 14px; }
.auth-form { margin: auto 0; }

/* FORMS */
.form-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.form-label .required { color: var(--danger); }
.form-input, .form-select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: var(--card); transition: border-color 0.2s; }
.form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,30,58,0.08); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.form-check a { color: var(--primary); text-decoration: underline; }
.form-password { position: relative; }
.form-password .toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--text-muted); background: none; border: none; padding: 4px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.form-password .toggle-pw:hover { color: var(--text-secondary); }
.form-password .toggle-pw svg { width: 18px; height: 18px; }

/* REGISTER PAGE */
.register-form { max-width: 620px; }
.register-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.register-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.register-info-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--danger-bg); border: 1px solid #FECACA; border-radius: var(--radius-sm); font-size: 14px; color: var(--danger); margin-bottom: 18px; font-weight: 500; }
.register-info-bar strong { font-weight: 700; }
.form-section-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; margin-top: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.form-checks-row { margin-top: 12px; margin-bottom: 4px; }
.register-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.register-actions .btn { padding: 13px 22px; font-size: 16px; }

/* PASSWORD VALIDATION RULES */
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.pw-rule { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.pw-rule .pw-dot { font-size: 12px; width: 14px; text-align: center; }
.pw-rule.pass { color: var(--success); }
.pw-rule.pass .pw-dot { color: var(--success); font-weight: 700; }

/* SELECT2 CUSTOM DROPDOWN */
.select2-wrap { position: relative; }
.select2-trigger { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--card); transition: border-color 0.2s; }
.select2-trigger:hover { border-color: var(--primary); }
.select2-wrap.open .select2-trigger { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,30,58,0.08); }
.select2-text { font-size: 13px; color: var(--text-muted); font-family: inherit; }
.select2-text.selected { color: var(--text); }
.select2-arrow { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.select2-wrap.open .select2-arrow { transform: rotate(180deg); }
.select2-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md), 0 10px 30px rgba(0,0,0,0.08); z-index: 50; max-height: 240px; overflow: hidden; }
.select2-wrap.open .select2-dropdown { display: block; }
.select2-search-wrap { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.select2-search { border: none; outline: none; font-size: 13px; font-family: inherit; background: transparent; width: 100%; color: var(--text); }
.select2-search::placeholder { color: var(--text-muted); }
.select2-options { max-height: 190px; overflow-y: auto; padding: 4px; }
.select2-option { padding: 8px 12px; font-size: 13px; cursor: pointer; border-radius: var(--radius-sm); transition: background 0.1s; }
.select2-option:hover { background: var(--primary-bg); color: var(--primary); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--card); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn + .btn { margin-left: 8px; }
.btn-group { display: flex; gap: 8px; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14.5px; font-weight: 500; margin-bottom: 16px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #A7F3D0; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECACA; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #FDE68A; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #BFDBFE; }

/* APP LAYOUT */
.app-layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; background-image: url('../images/solmenubg.png'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.sidebar-header { padding: 24px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sidebar-brand-logo { width: 80px; height: auto; }
.sidebar-brand-divider { width: 1.5px; height: 48px; background: rgba(255,255,255,0.35); flex-shrink: 0; }
.sidebar-brand-text { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.95); line-height: 1.25; letter-spacing: 0.2px; }
.sidebar-brand-text span { font-size: 15px; font-weight: 300; }
.sidebar-greeting { font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.4; }
.sidebar-greeting strong { font-weight: 700; color: #fff; }
.sidebar-nav { flex: 1; padding: 16px 10px; display: flex; flex-direction: column; justify-content: center; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; font-weight: 500; transition: all 0.15s; margin-bottom: 4px; }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; font-weight: 700; }
.nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 8px 12px; }
.sidebar-footer { margin-top: auto; padding: 20px 10px; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-orgs { display: flex; justify-content: center; gap: 28px; }
.sidebar-org-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sidebar-org-item img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,0.12); }
.sidebar-org-item span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.65); text-align: center; line-height: 1.3; }
.logout-link { color: rgba(255,255,255,0.5) !important; }
.logout-link:hover { color: var(--danger) !important; }

.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 32px; font-size: 15px; }

/* PAGE HEADER */
.page-header { margin-bottom: 24px; }
.page-title { font-size: 23.5px; font-weight: 700; }
.page-subtitle { font-size: 15.5px; color: var(--text-secondary); margin-top: 2px; }

/* CARDS */
.card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 16.5px; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* STAT CARDS */
.stat-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 20px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 15.5px; color: var(--text-secondary); margin-top: 2px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; padding: 10px 14px; font-weight: 600; color: var(--text-secondary); background: var(--bg); border-bottom: 1px solid var(--border); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--primary-bg); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; }
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* PAGINATION */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; text-decoration: none; color: var(--text-secondary); border: 1px solid var(--border); }
.pagination a:hover { background: var(--primary-bg); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* SEARCH BAR */
.search-bar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.search-bar .form-input { max-width: 300px; }
.search-bar .form-select { max-width: 200px; }

/* STEP WIZARD */
.step-bar { display: flex; gap: 4px; margin-bottom: 24px; }
.step-item { flex: 1; padding: 8px; text-align: center; font-size: 13.5px; font-weight: 600; border-radius: var(--radius-sm); background: var(--bg); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.step-item.active { background: var(--primary); color: #fff; }
.step-item.done { background: var(--primary-bg); color: var(--primary); }
.step-content { display: none; }
.step-content.active { display: block; }

/* OPTION ITEMS (radio/checkbox styled) */
.opt-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.opt-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; font-size: 15.5px; }
.opt-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.opt-item.selected { border-color: var(--primary); background: var(--primary-bg); }
.opt-item input { accent-color: var(--primary); }
.opt-item.disabled { opacity: 0.4; pointer-events: none; }
.opt-section-title { font-size: 15.5px; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.opt-section-sub { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 8px; }

/* RESULT MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--card); border-radius: var(--radius-xl); max-width: 600px; width: 90%; max-height: 85vh; overflow-y: auto; padding: 32px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.modal-title { font-size: 21.5px; font-weight: 700; margin-bottom: 4px; }
.modal-sub { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 20px; }
.modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }

/* RESULT CARDS */
.result-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.result-card-title { font-size: 16.5px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.result-card-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; background: var(--primary-bg); color: var(--primary); margin-bottom: 8px; }
.result-card-dose { font-size: 14.5px; line-height: 1.7; white-space: pre-line; margin-bottom: 8px; }
.result-card-note { font-size: 12px; color: var(--text-secondary); background: var(--bg); padding: 10px 12px; border-radius: var(--radius-sm); line-height: 1.6; white-space: pre-line; }
.result-card-warn { border-color: var(--warning); background: var(--warning-bg); }
.result-card-info { border-color: var(--info); background: var(--info-bg); }

/* ELIGIBILITY (On Degerlendirme) */
.eligibility-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.eligibility-item { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.eligibility-question { font-size: 13px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.eligibility-buttons { display: flex; gap: 8px; }
.elig-btn { flex: 1; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.elig-btn:hover { border-color: var(--primary); }
.elig-btn.active-yes { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.elig-btn.active-no { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.eligibility-warning { background: var(--danger-bg); border: 1px solid #FECACA; border-radius: var(--radius-md); padding: 16px; margin-top: 12px; }
.eligibility-warning-icon { font-size: 24px; margin-bottom: 8px; }
.eligibility-warning-title { font-size: 14px; font-weight: 700; color: var(--danger); margin-bottom: 8px; }
.eligibility-warning-text { font-size: 12px; color: #991B1B; line-height: 1.6; }
.eligibility-inline-warning { color: var(--danger); font-size: 12px; font-weight: 600; margin-top: 6px; padding: 6px 10px; background: var(--danger-bg); border-radius: var(--radius-sm); }
.prophylaxis-conflict-warning { color: var(--danger); font-size: 12px; font-weight: 600; margin-top: 8px; padding: 8px 12px; background: var(--danger-bg); border-radius: var(--radius-sm); }
.step-item.step-disabled { opacity: 0.4; pointer-events: none; }

/* PATHWAY (Islem Secimi) */
.pathway-cards { display: flex; flex-direction: column; gap: 12px; }
.pathway-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; }
.pathway-card:hover { border-color: var(--primary); }
.pathway-card.active { border-color: var(--primary); background: var(--primary-bg); }
.pathway-card.disabled { opacity: 0.5; cursor: not-allowed; }
.pathway-card.disabled:hover { border-color: var(--border); }
.pathway-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pathway-info { flex: 1; }
.pathway-title { font-size: 14px; font-weight: 700; }
.pathway-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pathway-check { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* SUB OPTIONS */
.sub-options { margin-left: 28px; padding-left: 14px; border-left: 2px solid var(--primary-bg2); margin-bottom: 8px; }
.opt-sub { font-size: 12px; padding: 10px 12px; }

/* VALIDATION TOAST */
.val-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 12px 24px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px rgba(220,38,38,0.3); z-index: 2000; display: flex; align-items: center; gap: 8px; max-width: 500px; text-align: center; }

/* RECORD DETAIL (Modern) */
.rd-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.rd-summary-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.rd-summary-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rd-summary-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.rd-summary-value { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.rd-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rd-left { }
.rd-right { }
.rd-card { padding: 20px; }
.rd-section { margin-bottom: 16px; }
.rd-section:last-child { margin-bottom: 0; }
.rd-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rd-section-num { width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rd-section-title { font-size: 15.5px; font-weight: 700; }
.rd-divider { height: 1px; background: var(--border); margin: 16px 0; }
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-tag { display: inline-block; padding: 5px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.rd-tag-sm { padding: 3px 10px; font-size: 12.5px; }
.rd-tag-muted { color: var(--text-muted); }
.rd-field-group { display: flex; flex-direction: column; gap: 10px; }
.rd-field { }
.rd-field-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.rd-field-value { font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.rd-field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-field-chip { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; flex: 1; min-width: 120px; }
.rd-chip-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.rd-chip-value { display: block; font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.rd-no-result { text-align: center; padding: 32px 16px; }
.rd-no-result-icon { font-size: 32px; margin-bottom: 8px; }
.rd-no-result-text { font-size: 16.5px; font-weight: 700; color: var(--warning); }
.rd-no-result-sub { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.rd-result-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; background: var(--card); }
.rd-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; flex-wrap: wrap; }
.rd-result-title { font-size: 16.5px; font-weight: 700; color: var(--primary); }
.rd-result-recs { margin-bottom: 10px; }
.rd-result-rec-item { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.6; margin-bottom: 4px; }
.rd-rec-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.rd-result-notes { background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.rd-result-notes-title { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px; }
.rd-result-note-item { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 3px; }

/* CHART */
.chart-container { position: relative; height: 300px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .auth-layout { flex-direction: column; }
    .auth-left { max-width: 100%; padding: 40px 24px; }
    .auth-right { padding: 32px 24px; max-width: 100%; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .rd-sections { grid-template-columns: 1fr; }
    .rd-summary { grid-template-columns: 1fr; }
    .rd-field-row { flex-direction: column; }
    .step-bar { flex-wrap: wrap; }
    .page-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
}
