/* ============================================================
   CLAWYEL ERP — INTERAKTIF DEMO
   Minimal-premium tema. Stripe / Linear / Vercel ruhunda.
   ============================================================ */

:root {
  --brand-1: #14B8A6;
  --brand-2: #2DD4BF;
  --brand-3: #5EEAD4;
  --brand-d: #0F766E;

  --accent-pink:   #EC4899;
  --accent-cyan:   #06B6D4;
  --accent-amber:  #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-green:  #10B981;
  --accent-red:    #EF4444;

  --bg:        #FAFBFC;
  --panel:     #FFFFFF;
  --panel-2:   #F7F8FA;
  --border:    #ECEEF2;
  --border-2:  #F2F4F7;

  --text:      #0B1220;
  --text-2:    #475569;
  --text-3:    #94A3B8;

  --shadow-1:  0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
  --shadow-2:  0 4px 16px rgba(15, 23, 42, .08);
  --shadow-3:  0 24px 64px rgba(15, 23, 42, .22);

  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ----- Demo badge ----- */
.demo-badge {
  position: fixed; right: 14px; bottom: 14px; z-index: 9999;
  padding: 6px 12px;
  background: rgba(11, 18, 32, .92);
  color: rgba(255, 255, 255, .7);
  border-radius: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .06);
}

/* ============================================================
   SPLASH (LOGIN)
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(900px 600px at -10% -10%, rgba(45, 212, 191, .22), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(139, 92, 246, .14), transparent 60%),
    linear-gradient(135deg, #050810 0%, #0F1726 100%);
  display: grid; place-items: center;
  animation: fadeIn .4s ease;
}
.splash.hide { animation: fadeOut .5s forwards; }
@keyframes fadeIn  { from {opacity:0} to {opacity:1} }
@keyframes fadeOut { to   {opacity:0; visibility:hidden} }

.splash-card {
  width: min(440px, 92vw);
  background: rgba(255, 255, 255, .98);
  border-radius: var(--radius-lg);
  padding: 44px 40px 32px;
  box-shadow: var(--shadow-3);
}
.splash-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--brand-d);
  color: #fff; font-weight: 800; font-size: 17px;
  border-radius: 8px;
  letter-spacing: -.02em;
}
.logo-mark.sm { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
.logo-text {
  font-weight: 700; letter-spacing: 1.5px;
  color: var(--text);
  font-size: 13px;
}
.splash-card h1 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
}
.splash-sub { margin: 0 0 28px; color: var(--text-2); font-size: 13px; }

.login-form .field { margin-bottom: 14px; }
.login-form label {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-2);
  margin-bottom: 6px;
}
.login-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-form input:focus {
  border-color: var(--brand-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.btn-block { width: 100%; justify-content: center; }
.login-hint {
  margin: 14px 0 0; font-size: 11px; text-align: center; color: var(--text-3);
}

.splash-stack {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  border-top: 1px solid var(--border-2); padding-top: 20px;
}
.chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10.5px; font-weight: 500; color: var(--text-2);
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "topbar  topbar"
    "sidebar main";
  height: 100vh;
  animation: fadeIn .4s ease;
}

/* TOPBAR */
.topbar {
  grid-area: topbar;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .logo-text { font-size: 12px; }
.breadcrumb {
  flex: 1; font-size: 13px; color: var(--text-2); font-weight: 500;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.breadcrumb b { color: var(--text); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px;
  border: none; background: transparent;
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.badge-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-d); border: 2px solid #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text);
  color: #fff; font-weight: 600; font-size: 11px;
}
.user-name { font-size: 12px; font-weight: 500; color: var(--text); }

/* SIDEBAR */
.sidebar {
  grid-area: sidebar;
  background: #fff;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px 12px 16px;
  display: flex; flex-direction: column;
}
.sidebar-section { margin-bottom: 6px; }
.sidebar-label {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 12px 6px 12px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--text-3); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.sidebar-label:hover { background: var(--panel-2); color: var(--text-2); }
.sidebar-label::after {
  content: '›';
  font-size: 14px;
  color: var(--text-3);
  transform: rotate(90deg);
  transition: transform .15s;
}
.sidebar-section.collapsed .sidebar-label::after {
  transform: rotate(0deg);
}
.sidebar-group-body {
  padding: 4px 0 8px;
}
.sidebar-section.collapsed .sidebar-group-body {
  display: none;
}
.nav-item {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; user-select: none;
  transition: all .12s ease;
  margin-bottom: 1px;
  position: relative;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active {
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
}
.nav-item.active::before {
  content: ""; position: absolute;
  left: -1px; top: 7px; bottom: 7px; width: 3px;
  background: var(--brand-d);
  border-radius: 2px;
}
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-2); }

/* MAIN */
.main {
  grid-area: main;
  padding: 32px 36px 64px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-kicker {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--brand-d); text-transform: uppercase;
  margin-bottom: 8px;
}
.page-head h1 {
  margin: 0 0 6px;
  font-size: 28px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.page-head p {
  margin: 0; color: var(--text-2); font-size: 14px;
  max-width: 720px;
  line-height: 1.55;
}

/* ============================================================
   KPI CARDS — IKONSUZ
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.kpi:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: var(--shadow-1);
}
.kpi-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-3); letter-spacing: .2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.kpi-value {
  font-size: 28px; font-weight: 700; line-height: 1;
  letter-spacing: -.025em;
  color: var(--text);
}
.kpi-trend {
  font-size: 11.5px; margin-top: 10px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.kpi-trend::before {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.kpi-trend.up   { color: var(--accent-green); }
.kpi-trend.up::before   { border-bottom: 5px solid var(--accent-green); }
.kpi-trend.down { color: var(--accent-red); }
.kpi-trend.down::before { border-top: 5px solid var(--accent-red); }
/* Renk varyantlari sadece sol-ust koselikte ince accent */
.kpi.pink::after, .kpi.cyan::after, .kpi.amber::after,
.kpi.purple::after, .kpi.green::after, .kpi.teal::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; border-radius: var(--radius) 0 0 var(--radius);
}
.kpi.pink::after   { background: var(--accent-pink); }
.kpi.cyan::after   { background: var(--accent-cyan); }
.kpi.amber::after  { background: var(--accent-amber); }
.kpi.purple::after { background: var(--accent-purple); }
.kpi.green::after  { background: var(--accent-green); }
.kpi.teal::after   { background: var(--brand-d); }

/* ============================================================
   ROWS / PANELS
   ============================================================ */
.row { display: grid; gap: 14px; margin-bottom: 14px; }
.row-2 { grid-template-columns: 1.6fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1100px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-2);
}
.panel-head h3 {
  margin: 0; font-size: 14px; font-weight: 600;
  letter-spacing: -.01em;
}
.panel-head .sub {
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.panel-body { padding: 20px; }
.panel-body.tight { padding: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .12s;
  background: #fff; color: var(--text);
  letter-spacing: -.005em;
}
.btn:hover { border-color: rgba(15, 118, 110, .4); color: var(--brand-d); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: #1F2937;
  color: #fff;
  border-color: #1F2937;
}
.btn-accent {
  background: var(--brand-d);
  color: #fff;
  border-color: var(--brand-d);
}
.btn-accent:hover { background: #115E54; border-color: #115E54; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: transparent; }
.btn-soft  { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn-danger { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
.btn-success { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }
.btn-success:hover { background: #059669; color: #fff; border-color: #059669; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; border-right-width: 0; }
.btn-group .btn:first-child { border-radius: 6px 0 0 6px; }
.btn-group .btn:last-child  { border-radius: 0 6px 6px 0; border-right-width: 1px; }
.btn-group .btn.active { background: var(--text); color: #fff; border-color: var(--text); z-index: 1; }

.action-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.search-box {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--brand-d); }
.search-box input {
  border: none; outline: none; flex: 1; font-size: 13px;
  background: transparent; color: var(--text);
}
.search-box svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl {
  width: 100%; border-collapse: collapse;
  background: #fff;
}
.tbl thead th {
  text-align: left; padding: 11px 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  color: var(--text-3); text-transform: uppercase;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.tbl tbody td {
  padding: 13px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text);
}
.tbl tbody td.muted { color: var(--text-3); font-variant-numeric: tabular-nums; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--panel-2); cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr.row-flash { animation: flash 1.4s; }
@keyframes flash {
  0%   { background: rgba(20, 184, 166, .12); }
  100% { background: transparent; }
}
.tbl tr.danger td:first-child {
  border-left: 2px solid var(--accent-red);
}

.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2px;
  border: 1px solid transparent;
}
.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status.ok      { background: rgba(16, 185, 129, .08);  color: #047857; border-color: rgba(16, 185, 129, .2); }
.status.warn    { background: rgba(245, 158, 11, .08);  color: #B45309; border-color: rgba(245, 158, 11, .2); }
.status.danger  { background: rgba(239, 68, 68, .08);   color: #B91C1C; border-color: rgba(239, 68, 68, .2); }
.status.info    { background: rgba(6, 182, 212, .08);   color: #0E7490; border-color: rgba(6, 182, 212, .2); }
.status.pink    { background: rgba(236, 72, 153, .08);  color: #BE185D; border-color: rgba(236, 72, 153, .2); }
.status.muted   { background: var(--panel-2); color: var(--text-2); border-color: var(--border); }

/* progress bar */
.progress {
  width: 100%; height: 5px;
  background: var(--border-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block; height: 100%;
  background: var(--brand-d);
  transition: width .6s ease;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(11, 18, 32, .6);
  display: grid; place-items: center;
  animation: fadeIn .15s;
}
.modal {
  width: min(540px, 94vw);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  animation: modalIn .2s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
  max-height: 90vh;
  display: flex; flex-direction: column;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-2);
}
.modal-head h3 {
  margin: 0; font-size: 15px; font-weight: 600;
  letter-spacing: -.01em;
}
.modal-body {
  padding: 22px;
  overflow-y: auto; flex: 1;
}
.modal-foot {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--border-2);
  background: var(--panel-2);
}
.form-grid {
  display: grid; gap: 14px;
}
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-field label {
  display: block; font-size: 11.5px; font-weight: 500; color: var(--text-2);
  margin-bottom: 5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  font-family: inherit;
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-d);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.form-hint { font-size: 11px; color: var(--text-3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-stack {
  position: fixed; bottom: 60px; right: 14px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9000;
  width: min(340px, 92vw);
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: var(--shadow-2);
  font-size: 13px;
  animation: toastIn .2s ease, toastOut .25s 4s forwards;
}
.toast strong { display: block; font-size: 13px; margin-bottom: 2px; font-weight: 600; }
.toast small  { color: var(--text-2); font-size: 12px; }
.toast.success { border-left-color: var(--accent-green); }
.toast.warn    { border-left-color: var(--accent-amber); }
.toast.error   { border-left-color: var(--accent-red); }
.toast.info    { border-left-color: var(--accent-cyan); }
@keyframes toastIn {
  from { transform: translateX(16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(16px); opacity: 0; }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  display: none;
  width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loader.on { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CHARTS (SVG)
   ============================================================ */
.chart {
  width: 100%; height: 220px;
  display: block;
}

/* ============================================================
   BOM TREE
   ============================================================ */
.bom-tree {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--text);
}
.bom-node {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.bom-node:hover { background: var(--panel-2); }
.bom-twirl {
  width: 10px; font-family: ui-monospace, monospace; font-size: 9px;
  color: var(--text-3);
  transition: transform .15s;
  display: inline-flex; justify-content: center;
}
.bom-node.open .bom-twirl  { transform: rotate(90deg); }
.bom-node .bom-code { color: var(--brand-d); font-weight: 600; }
.bom-node .bom-qty  { margin-left: auto; color: var(--text-3); font-size: 11.5px; }
.bom-children { padding-left: 20px; display: none; border-left: 1px solid var(--border-2); margin-left: 13px; }
.bom-node.open + .bom-children { display: block; }

/* ============================================================
   GANTT
   ============================================================ */
.gantt {
  display: grid;
  grid-template-columns: 130px 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.gantt-label {
  padding: 11px 14px;
  font-size: 12px; font-weight: 600;
  border-bottom: 1px solid var(--border-2);
  border-right: 1px solid var(--border-2);
  background: var(--panel-2);
  display: flex; align-items: center;
  color: var(--text);
}
.gantt-track {
  position: relative;
  border-bottom: 1px solid var(--border-2);
  height: 40px;
  background:
    repeating-linear-gradient(to right,
      transparent 0,
      transparent calc(100% / 14 - 1px),
      var(--border-2) calc(100% / 14 - 1px),
      var(--border-2) calc(100% / 14));
}
.gantt-bar {
  position: absolute; top: 8px; bottom: 8px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: filter .12s, transform .12s;
  letter-spacing: -.01em;
}
.gantt-bar:hover { filter: brightness(1.08); transform: scale(1.02); }
.gantt-bar.b1 { background: var(--brand-d); }
.gantt-bar.b2 { background: #0E7490; }
.gantt-bar.b3 { background: #6D28D9; }
.gantt-bar.b4 { background: #B45309; }
.gantt-bar.b5 { background: #BE185D; }
.gantt-bar.b6 { background: #047857; }
.gantt-bar.conflict {
  background: var(--accent-red) !important;
  animation: conflict 1s infinite alternate;
}
@keyframes conflict {
  from { box-shadow: 0 0 0 rgba(239, 68, 68, .5); }
  to   { box-shadow: 0 0 14px rgba(239, 68, 68, .8); }
}

.gantt-head {
  display: grid; grid-template-columns: repeat(14, 1fr);
  font-size: 10px; font-weight: 600; letter-spacing: .6px;
  color: var(--text-3); text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.gantt-head span {
  text-align: center; padding: 9px 0;
  border-right: 1px solid var(--border-2);
}
.gantt-head span:last-child { border-right: none; }

/* ============================================================
   TOUR
   ============================================================ */
.tour-overlay {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(11, 18, 32, .55);
  display: grid; place-items: center;
  animation: fadeIn .2s;
}
.tour-card {
  width: min(420px, 92vw);
  background: #fff; border-radius: var(--radius);
  padding: 26px 26px 18px;
  box-shadow: var(--shadow-3);
  position: relative;
}
.tour-step {
  position: absolute; top: 18px; right: 22px;
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  letter-spacing: 1px;
}
.tour-card h3 {
  margin: 4px 0 8px; font-size: 17px; font-weight: 600;
  letter-spacing: -.01em;
}
.tour-card p {
  margin: 0 0 22px; color: var(--text-2);
  line-height: 1.6; font-size: 13.5px;
}
.tour-actions {
  display: flex; justify-content: space-between; gap: 8px;
}

/* ============================================================
   MISC
   ============================================================ */
.bullets {
  list-style: none; padding: 0; margin: 0;
}
.bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  font-size: 13px; color: var(--text-2);
  line-height: 1.5;
}
.bullets li::before {
  content: ""; width: 4px; height: 4px;
  background: var(--brand-d); border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.callout {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-d);
  font-size: 13px; color: var(--text);
  margin-top: 18px;
  line-height: 1.55;
}
.callout strong { color: var(--brand-d); font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 3px 9px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px; font-weight: 500; color: var(--text-2);
}
.tag.brand { background: rgba(15, 118, 110, .06); border-color: rgba(15, 118, 110, .25); color: var(--brand-d); }

/* Bank cards — minimal */
.bank-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  position: relative;
  overflow: hidden;
}
.bank-card:hover { border-color: var(--brand-d); transform: translateY(-1px); }
.bank-card .bank-name {
  font-size: 11px; color: var(--text-3); letter-spacing: 1.2px;
  text-transform: uppercase; font-weight: 600;
}
.bank-card .bank-no {
  font-family: ui-monospace, monospace; font-size: 11.5px;
  color: var(--text-3); margin-top: 4px;
}
.bank-card .bank-bal {
  font-size: 22px; font-weight: 700; margin-top: 14px;
  letter-spacing: -.02em; color: var(--text);
}
.bank-card .bank-cur {
  font-size: 12px; color: var(--text-2); margin-top: 4px; font-weight: 500;
}
.bank-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-d);
}
.bank-card.cyan::before   { background: var(--accent-cyan); }
.bank-card.purple::before { background: var(--accent-purple); }
.bank-card.amber::before  { background: var(--accent-amber); }

/* Stats strip — inline mini-stats */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.stat-strip > div {
  padding: 18px 22px;
  border-right: 1px solid var(--border-2);
}
.stat-strip > div:last-child { border-right: none; }
.stat-strip .lbl {
  font-size: 11px; color: var(--text-3); letter-spacing: .8px;
  text-transform: uppercase; font-weight: 500;
}
.stat-strip .val {
  font-size: 22px; font-weight: 700; margin-top: 8px;
  letter-spacing: -.02em; color: var(--text);
}
.stat-strip .delta { font-size: 11px; margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .app { grid-template-columns: 0 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 56px; bottom: 0;
    width: 232px;
    transform: translateX(-100%);
    transition: transform .25s;
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .breadcrumb { display: none; }
  .user-name { display: none; }
  .main { padding: 24px 18px 56px; }
}
