:root {
  --brand: #2d74d6; --brand-2: #1e5fbf; --brand-light: #e8f1fd; --brand-dark: #1a4fa0;
  --success: #16a34a; --success-light: #dcfce7; --warn: #d97706; --warn-light: #fef3c7;
  --danger: #dc2626; --danger-light: #fee2e2; --purple: #7c3aed; --purple-light: #ede9fe;
  --bg: #f1f5f9; --surface: #ffffff; --surface-2: #f8fafc; --border: #e2e8f0;
  --border-2: #cbd5e1; --text: #0f172a; --text-mid: #475569; --text-soft: #94a3b8;
  --sidebar-w: 230px; --topbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

#login-screen { position: fixed; inset: 0; background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.login-card { width: 420px; background: #fff; border: 1.5px solid var(--border); border-radius: 20px; padding: 44px 40px; box-shadow: 0 12px 60px rgba(45,116,214,.13); }
.lc-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.lc-icon { width: 40px; height: 40px; background: var(--brand); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.lc-icon svg { width: 20px; height: 20px; }
.lc-name { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.lc-name span { color: var(--brand); }
.lc-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.lc-sub { font-size: 13px; color: var(--text-soft); margin-bottom: 28px; }
.inp-wrap { position: relative; margin-bottom: 14px; }
.inp-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-soft); pointer-events: none; }
.login-inp { width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13.5px; font-family: 'DM Mono', monospace; color: var(--text); background: var(--surface-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.login-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(45,116,214,.1); background: #fff; }
.login-btn { width: 100%; padding: 13px; background: var(--brand); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.login-btn:hover { background: var(--brand-dark); }
.login-err { font-size: 12.5px; color: var(--danger); margin-top: 10px; min-height: 16px; display: none; }

#app { display: none; min-height: 100vh; }

.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 100; transition: transform 0.3s ease;}
.sb-logo { padding: 18px 18px 14px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.sb-logo-icon { width: 32px; height: 32px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sb-logo-icon svg { width: 16px; height: 16px; }
.sb-logo-text { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.sb-logo-text span { color: var(--brand); }
.sb-section { padding: 14px 10px 0; }
.sb-section-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); padding: 0 8px 6px; }
.sb-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sb-nav li a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text-mid); transition: all .15s; cursor: pointer; }
.sb-nav li a:hover { background: var(--surface-2); color: var(--text); }
.sb-nav li a.active { background: var(--brand-light); color: var(--brand); }
.sb-nav li a .nav-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.sb-nav li a.active .nav-icon { background: rgba(45,116,214,.15); }
.sb-nav li a .nav-badge { margin-left: auto; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 100px; font-family: 'DM Mono', monospace; }
.sb-footer { margin-top: auto; padding: 14px 10px; border-top: 1px solid var(--border); }
.sb-user { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.sb-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sb-user-info .sb-uname { font-size: 12px; font-weight: 700; }
.sb-user-info .sb-urole { font-size: 11px; color: var(--text-soft); }
.logout-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-soft); padding: 3px; border-radius: 4px; display: flex; align-items: center; }
.logout-btn:hover { color: var(--danger); }
.logout-btn svg { width: 14px; height: 14px; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); height: var(--topbar-h); padding: 0 30px; display: flex; align-items: center; justify-content: space-between; }
.topbar-title { font-size: 15px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.tpb-pill { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--text-mid); }
.tpb-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.page { display: none; padding: 28px 30px 60px; }
.page.active { display: block; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.page-header p { font-size: 13.5px; color: var(--text-mid); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-blue { background: var(--brand-light); color: var(--brand); }
.badge-green { background: var(--success-light); color: var(--success); }
.badge-orange { background: var(--warn-light); color: var(--warn); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }

.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 13.5px; font-weight: 700; }
.card-body { padding: 16px 20px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: none; border: 1.5px solid var(--border); color: var(--text-mid); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-danger { background: var(--danger-light); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

.stat-grid { display: grid; gap: 14px; margin-bottom: 24px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.stat-item .s-num { font-size: 28px; font-weight: 800; font-family: 'DM Mono', monospace; letter-spacing: -1px; color: var(--brand); }
.stat-item .s-label { font-size: 11.5px; color: var(--text-soft); font-weight: 500; margin-top: 3px; }

.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-grid .cl-full { grid-column: 1 / -1; }
.cl-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.cl-card-header { padding: 14px 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.cl-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cl-meta { flex: 1; }
.cl-title { font-size: 13px; font-weight: 700; }
.cl-desc { font-size: 11.5px; color: var(--text-soft); margin-top: 1px; }
.cl-prog { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.prog-bar { width: 60px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.prog-bar-fill { height: 100%; background: var(--brand); border-radius: 2px; transition: width .3s; }
.prog-pct { font-size: 11px; font-weight: 700; color: var(--brand); font-family: 'DM Mono', monospace; min-width: 26px; text-align: right; }

.check-item { border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; display: block; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 18px; transition: background .12s; }
.check-row:hover { background: var(--surface-2); }
.check-item.checked .check-row { background: #f0fdf4; }
.chk-box { width: 17px; height: 17px; border: 2px solid var(--border); border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.check-item.checked .chk-box { background: var(--success); border-color: var(--success); }
.chk-box svg { width: 10px; height: 10px; opacity: 0; transform: scale(.4); transition: all .18s; }
.check-item.checked .chk-box svg { opacity: 1; transform: scale(1); }
.chk-label { flex: 1; font-size: 12.5px; font-weight: 500; transition: color .12s; }
.check-item.checked .chk-label { color: var(--text-soft); text-decoration: line-through; }
.chk-tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 100px; flex-shrink: 0; }
.tag-critical { background: #fef2f2; color: var(--danger); }
.tag-important { background: #fff7ed; color: var(--warn); }
.tag-optional { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.expand-btn { margin-left: 2px; width: 20px; height: 20px; border-radius: 5px; background: none; border: none; cursor: pointer; color: var(--text-soft); display: flex; align-items: center; justify-content: center; padding: 0; transition: background .12s; flex-shrink: 0; }
.expand-btn:hover { background: var(--brand-light); color: var(--brand); }
.check-item.open .expand-btn svg { transform: rotate(180deg); }
.sub-tasks { overflow: hidden; max-height: 0; transition: max-height .28s ease; background: #f8fafd; border-top: 1px solid transparent; }
.check-item.open .sub-tasks { border-top-color: var(--border); }
.sub-task { display: flex; align-items: flex-start; gap: 8px; padding: 6px 18px 6px 46px; }
.sub-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-soft); flex-shrink: 0; margin-top: 5px; }
.sub-task-text { font-size: 11.5px; color: var(--text-mid); line-height: 1.45; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; transition: box-shadow .2s, border-color .2s; }
.svc-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.07); border-color: var(--border-2); }
.svc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.svc-icon-wrap { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.svc-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.svc-card p { font-size: 12px; color: var(--text-mid); line-height: 1.5; margin-bottom: 14px; }
.svc-price { font-size: 18px; font-weight: 800; color: var(--brand); font-family: 'DM Mono', monospace; letter-spacing: -.5px; }
.svc-price span { font-size: 11px; font-weight: 500; color: var(--text-soft); font-family: 'Plus Jakarta Sans', sans-serif; }
.svc-features { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.svc-feat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-mid); }
.svc-feat svg { width: 13px; height: 13px; color: var(--success); flex-shrink: 0; }
.svc-table-wrap { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; margin-top: 24px; }
.svc-table { width: 100%; border-collapse: collapse; }
.svc-table th { background: var(--surface-2); padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); border-bottom: 1px solid var(--border); }
.svc-table td { padding: 12px 16px; font-size: 12.5px; border-bottom: 1px solid var(--border); vertical-align: middle; }

.clients-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.search-inp { flex: 1; max-width: 300px; padding: 9px 14px 9px 36px; border: 1.5px solid var(--border); border-radius: 9px; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--surface); outline: none; }
.search-wrap { position: relative; flex: 1; max-width: 300px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-soft); pointer-events: none; }
.clients-table-wrap { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.clients-table { width: 100%; border-collapse: collapse; }
.clients-table th { background: var(--surface-2); padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); border-bottom: 1px solid var(--border); }
.clients-table td { padding: 13px 16px; font-size: 12.5px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.client-name-cell { display: flex; align-items: center; gap: 10px; }
.client-avatar { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.client-nm { font-weight: 700; font-size: 13px; }
.client-sector { font-size: 11px; color: var(--text-soft); }

.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(4px); z-index: 500; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: 16px; width: 520px; max-width: 95vw; box-shadow: 0 20px 80px rgba(0,0,0,.2); max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top:0; background: var(--surface); z-index: 10;}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-soft); padding: 4px; border-radius: 6px; display: flex; align-items: center; }
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom:0; background: var(--surface); z-index: 10;}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--surface-2); outline: none; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.client-detail-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.35); backdrop-filter: blur(3px); z-index: 400; display: none; }
.client-detail-overlay.open { display: block; }
.client-detail-panel { position: fixed; right: 0; top: 0; bottom: 0; width: 440px; background: var(--surface); border-left: 1.5px solid var(--border); z-index: 401; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; }
.client-detail-panel.open { transform: translateX(0); }
.cdp-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.cdp-avatar { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #fff; }
.cdp-info h3 { font-size: 15px; font-weight: 700; }
.cdp-info p { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.cdp-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-soft); padding: 6px; border-radius: 8px; }
.cdp-section { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cdp-field { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.cdp-field .fl { font-size: 12px; color: var(--text-soft); }
.cdp-field .fv { font-size: 12.5px; font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 0; }
.team-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; transition: box-shadow .2s; }
.team-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.team-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; font-family: 'DM Mono', monospace; }
.team-info h4 { font-size: 14px; font-weight: 700; }
.team-info .team-role { font-size: 11.5px; color: var(--brand); font-weight: 600; margin-top: 2px; }
.skill-tag { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--text-mid); border: 1px solid var(--border); }

.team-tasks { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.team-tasks-title { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.t-task-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; padding: 8px; border-radius: 8px; background: var(--surface-2); transition: background .2s; border: 1px solid transparent; }
.t-task-check { width: 16px; height: 16px; border: 1.5px solid var(--border-2); border-radius: 5px; cursor: pointer; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; transition: .2s; }
.t-task-item.done .t-task-check { background: var(--success); border-color: var(--success); }
.t-task-text { font-size: 11.5px; font-weight: 500; color: var(--text-mid); line-height: 1.4; flex: 1; transition: .2s; }
.t-task-item.done .t-task-text { text-decoration: line-through; color: var(--text-soft); }
.t-task-meta { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-top: 6px; display: inline-block; }
.t-meta-client { background: var(--brand-light); color: var(--brand); }
.t-meta-urgent { background: var(--danger-light); color: var(--danger); margin-left: 4px; }
.t-task-del { margin-left: auto; color: var(--text-soft); cursor: pointer; font-size: 14px; opacity: 0; transition: .2s; background: none; border: none; }
.t-task-item:hover .t-task-del { opacity: 1; }

.training-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.training-nav { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 20px); }
.training-nav-header { padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); }
.training-nav-list { list-style: none; }
.training-nav-list li a { display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-mid); text-decoration: none; cursor: pointer; border-bottom: 1px solid var(--border); transition: all .12s; }
.training-nav-list li a.active { background: var(--brand-light); color: var(--brand); }
.training-nav-list li a .tn-icon { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; background: var(--surface-2); flex-shrink: 0; }
.training-nav-list li a.active .tn-icon { background: rgba(45,116,214,.15); }
.training-content { display: flex; flex-direction: column; gap: 16px; }
.training-module { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; }
.tm-header { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tm-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tm-meta h4 { font-size: 14px; font-weight: 700; }
.tm-body { padding: 16px 20px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 900; display: none; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }

.idea-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; transition: all .2s; }
.idea-card.open { border-color: var(--brand); box-shadow: 0 4px 20px rgba(45,116,214,.12); }
.idea-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: var(--surface-2); user-select: none; }
.idea-title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.idea-badge { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.idea-body { max-height: 0; overflow: hidden; transition: max-height .35s ease-in-out; background: var(--surface); }
.idea-card.open .idea-body { max-height: 1000px; border-top: 1px solid var(--border); overflow-y: auto;}
.idea-content-wrap { padding: 20px; }
.idea-prop { margin-bottom: 14px; }
.idea-prop-lbl { display:flex; align-items:center; gap:6px; font-size: 11px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; margin-bottom: 6px; }
.idea-prop-val { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.idea-hook { background: #fdf4ff; border-left: 3px solid var(--purple); padding: 14px 16px; border-radius: 0 8px 8px 0; margin-top: 18px; }
.idea-hook-lbl { font-size: 11px; font-weight: 800; color: var(--purple); margin-bottom: 6px; text-transform: uppercase;}
.idea-hook-val { font-size: 14px; font-style: italic; font-weight: 700; color: var(--text); }
.idea-step { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.idea-step-num { font-size: 11px; font-weight: 800; color: var(--brand); font-family: 'DM Mono', monospace; background: var(--brand-light); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; }

.aa-add-task { display: flex; gap: 10px; margin-bottom: 20px; background: var(--surface-2); padding: 12px; border-radius: 12px; border: 1.5px solid var(--border); }
.aa-add-task input { flex: 1; border: none; background: transparent; font-size: 13px; outline: none; padding-left: 8px; }
.aa-add-task button { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* ─── MOBİL GÖRÜNÜM VE HAMBURGER MENÜ ─── */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; margin-right: 12px; padding: 0; align-items: center; justify-content: center; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 99; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(2px); }
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .mobile-menu-btn { display: flex; }
  .sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,0.1); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { padding: 0 20px; }
  .page { padding: 20px 20px 80px; }
  
  .stat-grid-4, .stat-grid-3, .services-grid, .team-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cl-grid { grid-template-columns: 1fr; }
  
  .login-card { width: 90vw; padding: 32px 24px; }
  .modal { width: 95vw; }
  
  .tpb-pill span:last-child { display: none; } 
  .tpb-pill { padding: 5px; border-radius: 50%; width: 24px; height: 24px; justify-content: center; }
  
  .clients-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-wrap { max-width: 100%; }
  .clients-toolbar .form-select { width: 100% !important; }
  .clients-toolbar .btn { width: 100%; justify-content: center; }
  
  .svc-table-wrap, .clients-table-wrap { overflow-x: auto; }
  .svc-table, .clients-table { min-width: 600px; }
  .client-detail-panel { width: 85vw; }
}
/* ─── YENİ EKLENEN ÖZELLİKLER (MENTION & FİNANS) ─── */
.mention { background: var(--brand-light); color: var(--brand); font-weight: 800; padding: 2px 6px; border-radius: 4px; font-size: 10.5px; margin: 0 2px; }
.pay-badge { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; display: inline-block; }
.pay-odendi { background: var(--success-light); color: var(--success); }
.pay-bekliyor { background: var(--warn-light); color: var(--warn); }
.pay-gecikti { background: var(--danger-light); color: var(--danger); }

/* ─── TEKLİF OLUŞTURUCU VE YAZDIRMA (PRINT) BİLEŞENLERİ ─── */
.proposal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.prop-card { background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 14px; transition: border-color .2s, background .2s; }
.prop-card:hover { border-color: var(--brand-light); background: #f8fafd; }
.prop-card.selected { border-color: var(--brand); background: var(--brand-light); }
.prop-check { width: 22px; height: 22px; border: 2px solid var(--border-2); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; flex-shrink: 0; }
.prop-card.selected .prop-check { background: var(--brand); border-color: var(--brand); }
.prop-check svg { width: 12px; height: 12px; stroke: white; stroke-width: 3; fill: none; opacity: 0; transform: scale(.5); transition: .2s; }
.prop-card.selected .prop-check svg { opacity: 1; transform: scale(1); }
.prop-info { flex: 1; }
.prop-info h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.prop-info p { font-size: 11px; color: var(--text-soft); }
.prop-price-input { width: 100px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: 'DM Mono', monospace; font-weight: 700; color: var(--text); text-align: right; outline: none; }
.prop-price-input:focus { border-color: var(--brand); }
.prop-total-bar { position: sticky; bottom: 20px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 40px rgba(0,0,0,.08); z-index: 10; }
.prop-total-text { font-size: 13px; color: var(--text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.prop-total-val { font-size: 28px; font-weight: 800; color: var(--brand); font-family: 'DM Mono', monospace; letter-spacing: -1px; }

/* Yazdırma (PDF) Ekranı Şablonu */
.invoice-wrapper { padding: 20px; background: #fff; color: #000; }
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid #f1f5f9; }
.inv-logo { font-size: 28px; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.inv-logo span { color: var(--brand); }
.inv-meta { text-align: right; font-size: 13px; color: #475569; line-height: 1.6; }
.inv-client { background: #f8fafc; padding: 20px; border-radius: 12px; margin-bottom: 30px; font-size: 14px; line-height: 1.6; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.inv-table th { background: #0f172a; color: #fff; padding: 12px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.inv-table td { padding: 16px; border-bottom: 1px solid #e2e8f0; font-size: 14px; font-weight: 500; }
.inv-table td.money { font-family: 'DM Mono', monospace; text-align: right; font-weight: 700; }
.inv-total-row { text-align: right; padding-top: 20px; }
.inv-total-row h2 { font-size: 32px; color: var(--brand); font-family: 'DM Mono', monospace; letter-spacing: -1px; margin-top: 5px; }

/* Sadece Yazdırırken Çalışacak CSS */
@media print {
  body * { visibility: hidden; }
  #proposal-print-area, #proposal-print-area * { visibility: visible; }
  #proposal-print-area { position: absolute; left: 0; top: 0; width: 100%; padding: 0; margin: 0; box-shadow: none; }
  .modal-overlay { background: none; }
  .modal { box-shadow: none; border: none; width: 100% !important; max-width: 100% !important; margin: 0; padding: 0; }
  .modal-header, .modal-footer { display: none !important; }
}

/* ==========================================================================
   YAMA: GELİŞMİŞ FİNANS & BÜYÜME PROJEKSİYONU (PREMİUM TASARIM)
   ========================================================================== */
/* Sol Menü Scroll (Kaydırma) Özelliği */
.sidebar { overflow-y: auto; overflow-x: hidden; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background-color: var(--border-2); border-radius: 10px; }

/* Finans Kartları */
.fin-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.fin-card { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s, border-color 0.2s; }
.fin-card:hover { transform: translateY(-3px); border-color: var(--brand-light); }
.fin-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 8px; }
.fin-value { font-size: 28px; font-weight: 800; font-family: 'DM Mono', monospace; color: var(--text); letter-spacing: -1px; }
.fin-value.success { color: var(--success); }
.fin-value.warn { color: var(--warn); }

/* Simülatör Alanı */
.projection-box { background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border: 1.5px solid var(--border); border-radius: 16px; padding: 30px; margin-top: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.proj-sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.proj-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--border); }
.proj-table th { background: #f8fafc; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--text-soft); padding: 16px; text-align: left; border-bottom: 1.5px solid var(--border); }
.proj-table td { padding: 16px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.proj-table tr:last-child td { border-bottom: none; }

@media (max-width: 900px) {
  .fin-card-grid { grid-template-columns: 1fr; }
  .proj-sim-grid { grid-template-columns: 1fr; }
  .proj-table { min-width: 600px; }
  .projection-box { overflow-x: auto; padding: 20px; }
}

/* ==========================================================================
   YAMA S2.0: GELİŞMİŞ CFO FİNANS PANELİ EKSTRALARI
   ========================================================================== */
/* Ciro Hedef Barı Tasarımları */
.goal-container { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.01); }
.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.goal-bar-bg { width: 100%; height: 12px; background: var(--border); border-radius: 100px; overflow: hidden; position: relative; }
.goal-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand) 0%, var(--success) 100%); width: 0%; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 100px; }

/* İki Sütunlu Finans Düzeni */
.fin-layout-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 24px; }

/* Tahsilat Radarı Alarm Kartları */
.radar-list { display: flex; flex-direction: column; gap: 10px; }
.radar-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; border-left: 4px solid var(--danger); box-shadow: 0 4px 12px rgba(0,0,0,0.01); }
.radar-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.radar-meta { display: flex; align-items: center; gap: 12px; }
.radar-amt { font-family: 'DM Mono', monospace; font-weight: 700; color: var(--danger); font-size: 14px; }

@media (max-width: 900px) {
  .fin-layout-2col { grid-template-columns: 1fr; }
}