/* =========================================================
   IHS Urban Developers ERP — single theme for every page
   Navy + gold brand, soft surfaces, gentle motion
   ========================================================= */
:root {
  --brand: #142b4a;
  --brand-2: #1f4f7a;
  --brand-3: #2a6aa3;
  --brand-soft: #e8eff7;
  --accent: #c8a24a;
  --accent-soft: #f7efd9;
  --ok: #1f8a5b;
  --ok-soft: #e3f4ec;
  --bad: #c0392b;
  --bad-soft: #fbe9e7;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --line: #e4e9f0;
  --ink: #18222f;
  --ink-2: #4a5768;
  --muted: #7a8696;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 43, 74, .04), 0 4px 16px rgba(20, 43, 74, .06);
  --shadow-lg: 0 10px 30px rgba(20, 43, 74, .12);
  --sidebar-w: 260px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap overrides so every component picks up the brand */
  --bs-primary: #1f4f7a; --bs-primary-rgb: 31, 79, 122;
  --bs-success: #1f8a5b; --bs-success-rgb: 31, 138, 91;
  --bs-danger: #c0392b; --bs-danger-rgb: 192, 57, 43;
  --bs-warning: #d9a21b; --bs-warning-rgb: 217, 162, 27;
  --bs-link-color: #1f4f7a; --bs-link-color-rgb: 31, 79, 122;
  --bs-link-hover-color: #142b4a; --bs-link-hover-color-rgb: 20, 43, 74;
  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: #18222f;
  --bs-border-color: #e4e9f0;
  --bs-border-radius: 10px;
  --bs-focus-ring-color: rgba(31, 79, 122, .2);
}
body { background: var(--bg); color: var(--ink); font-size: .84rem; font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.min-w-0 { min-width: 0; }

/* ---------- Brand mark & avatar ---------- */
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #e3c477 0%, var(--accent) 55%, #a9832f 100%);
  color: var(--brand); font-weight: 600; display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px; font-size: .82rem; box-shadow: 0 4px 14px rgba(200, 162, 74, .35);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #a9832f); color: var(--brand); font-weight: 600; font-size: .76rem;
}
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

/* Bootstrap's .offcanvas-lg makes the background transparent on desktop, so force the sidebar look */
.sidebar, .sidebar.offcanvas-lg {
  --bs-offcanvas-bg: var(--brand);
  --bs-offcanvas-color: #fff;
  --bs-offcanvas-width: var(--sidebar-w);
  background: radial-gradient(120% 60% at 0% 0%, #23466f 0%, rgba(35, 70, 111, 0) 60%),
              linear-gradient(180deg, #163257 0%, #11243f 100%) !important;
  color: #fff; width: var(--sidebar-w); flex-shrink: 0;
  display: flex; flex-direction: column;
}
@media (min-width: 992px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 6px; }
.sidebar .brand { display: flex; align-items: center; gap: .75rem; padding: 1.15rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand-name { font-weight: 600; font-size: .88rem; line-height: 1.15; }
.brand-sub { font-size: .68rem; opacity: .6; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.sidebar .nav { padding: .5rem .75rem 1rem; flex: 1; }
.nav-heading { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .38); padding: .8rem .8rem .3rem; font-weight: 600; }
.sidebar .nav-link {
  position: relative; color: rgba(255, 255, 255, .74); border-radius: 10px; padding: .47rem .8rem;
  display: flex; gap: .75rem; align-items: center; margin-bottom: 2px; font-weight: 400; font-size: .83rem;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.sidebar .nav-link i { font-size: .98rem; width: 20px; transition: transform .25s var(--ease), color .2s; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transform: translateX(3px); }
.sidebar .nav-link:hover i { transform: scale(1.12); color: var(--accent); }
.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(200, 162, 74, .22) 0%, rgba(255, 255, 255, .06) 100%);
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.sidebar .nav-link.active i { color: var(--accent); }
.sidebar .nav-link.active::before {
  content: ""; position: absolute; left: -.75rem; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--accent); box-shadow: 0 0 12px rgba(200, 162, 74, .7);
}
.side-user { display: flex; align-items: center; gap: .65rem; margin: .75rem; padding: .65rem .75rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); }
.side-user-name { font-weight: 500; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-role { font-size: .72rem; opacity: .6; }
.side-logout { margin-left: auto; color: rgba(255, 255, 255, .6); font-size: 1.1rem; padding: .25rem; border-radius: 8px; transition: color .2s, background .2s; }
.side-logout:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; display: flex; align-items: center; gap: .6rem;
  position: sticky; top: 0; z-index: 100; flex-wrap: wrap; min-height: 62px;
}
.page-title { font-size: 1.05rem; font-weight: 600; margin: 0; color: var(--brand); letter-spacing: -.01em; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-size: 1.1rem; }
.btn-icon:hover { background: var(--brand-soft); border-color: #cfdbe8; color: var(--brand); }
.btn-back { transition: transform .2s var(--ease), background .2s; }
.btn-back:hover { transform: translateX(-3px); }
.btn-user { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem .25rem .3rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.btn-user:hover, .btn-user.show { background: var(--brand-soft); border-color: #cfdbe8; }
.content { padding: 1.5rem; }
@media (max-width: 575px) { .stat .value { font-size: 1rem; } .hero { padding: 1.25rem; } .hero h2 { font-size: 1.15rem; } .content { padding: 1rem; } .topbar { padding: .6rem 1rem; } .page-title { font-size: 1.02rem; } }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.card-header { background: transparent; font-weight: 500; font-size: .9rem; border-bottom: 1px solid var(--line); padding: .9rem 1.1rem; color: var(--brand); }
.card-header:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card-footer { border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius) !important; padding: .85rem 1.1rem; }
.card > .table-responsive:last-child, .card > .table-responsive:last-child .table { border-radius: 0 0 var(--radius) var(--radius); }
.card > .table-responsive:first-child { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
a.card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cfdbe8; text-decoration: none; }
.list-group-item { border-color: var(--line); padding: .75rem 1.1rem; }

/* ---------- Stat tiles ---------- */
.stat { padding: 1.1rem 1.15rem; position: relative; overflow: hidden; color: var(--ink); }
.stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; }
.stat .value { font-size: clamp(1rem, 1.15vw, 1.25rem); white-space: nowrap; font-weight: 600; color: var(--brand); letter-spacing: -.01em; margin-top: .35rem; line-height: 1.15; }
.stat .icon { font-size: 1.5rem; color: var(--accent); }
.stat-ico {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0;
  transition: transform .3s var(--ease);
}
a.card:hover .stat-ico { transform: scale(1.08) rotate(-4deg); }
.tone-blue  .stat-ico { background: var(--brand-soft); color: var(--brand-2); }
.tone-gold  .stat-ico { background: var(--accent-soft); color: #9a7524; }
.tone-green .stat-ico { background: var(--ok-soft); color: var(--ok); }
.tone-red   .stat-ico { background: var(--bad-soft); color: var(--bad); }
.tone-navy  .stat-ico { background: #e6e9f2; color: var(--brand); }
.stat .sub { font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ---------- Buttons ---------- */
.btn { font-weight: 400; font-size: .84rem; border-radius: 10px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { border-radius: 9px; padding: .32rem .75rem; font-size: .8rem; }
.btn-primary { --bs-btn-bg: var(--brand-2); --bs-btn-border-color: var(--brand-2); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-disabled-bg: var(--brand-2); --bs-btn-disabled-border-color: var(--brand-2); box-shadow: 0 2px 8px rgba(31, 79, 122, .25); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(31, 79, 122, .32); }
.btn-success { --bs-btn-bg: var(--ok); --bs-btn-border-color: var(--ok); --bs-btn-hover-bg: #187049; --bs-btn-hover-border-color: #187049; --bs-btn-active-bg: #187049; box-shadow: 0 2px 8px rgba(31, 138, 91, .25); }
.btn-secondary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: #0e2038; --bs-btn-hover-border-color: #0e2038; --bs-btn-active-bg: #0e2038; }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-border-color: #cfdbe8; --bs-btn-color: var(--ink-2); }
.btn-outline-primary { --bs-btn-color: var(--brand-2); --bs-btn-border-color: #bcd0e4; --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: #9fbbd8; --bs-btn-active-bg: var(--brand-soft); --bs-btn-active-color: var(--brand); background: var(--surface); }
.btn-outline-success { --bs-btn-color: var(--ok); --bs-btn-border-color: #b5dcc8; --bs-btn-hover-bg: var(--ok-soft); --bs-btn-hover-color: #187049; --bs-btn-hover-border-color: #8ccbaa; --bs-btn-active-bg: var(--ok-soft); --bs-btn-active-color: #187049; background: var(--surface); }
.btn-outline-secondary, .btn-outline-dark { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--brand-soft); --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: #cfdbe8; background: var(--surface); }
.btn-outline-danger { --bs-btn-color: var(--bad); --bs-btn-border-color: #f0c4be; --bs-btn-hover-bg: var(--bad-soft); --bs-btn-hover-color: var(--bad); --bs-btn-hover-border-color: #e6a59c; background: var(--surface); }
.btn-gold { background: linear-gradient(135deg, #e3c477, var(--accent)); color: var(--brand); border: 0; font-weight: 500; box-shadow: 0 4px 14px rgba(200, 162, 74, .35); }
.btn-gold:hover { color: var(--brand); filter: brightness(1.05); box-shadow: 0 6px 18px rgba(200, 162, 74, .45); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Filter chips (nav-pills) ---------- */
.nav-pills { gap: .4rem; flex-wrap: wrap; }
.nav-pills .nav-link {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px;
  padding: .34rem .85rem; font-weight: 400; font-size: .78rem; transition: all .2s var(--ease);
}
.nav-pills .nav-link:hover { border-color: #bcd0e4; color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav-pills .nav-link.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(20, 43, 74, .25); }

/* ---------- Tabs (underline style) ---------- */
.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: .84rem; padding: .7rem .95rem; margin-bottom: -1px;
  background: transparent; border-radius: 0; transition: color .2s, border-color .25s var(--ease);
}
.nav-tabs .nav-link:hover { color: var(--brand); border-bottom-color: #cfdbe8; text-decoration: none; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--accent); background: transparent; }
.nav-tabs.overflow-auto { scrollbar-width: none; }
.nav-tabs.overflow-auto::-webkit-scrollbar { display: none; }

/* ---------- Filter bar ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem; box-shadow: var(--shadow); align-items: center;
}
.filters .form-control, .filters .form-select { max-width: 230px; }
.filters .btn { padding-left: 1rem; padding-right: 1rem; }
form.filters:not(.no-icon) input[name="s"] {
  padding-left: 2rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%237a8696' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat .7rem center;
}

/* ---------- Forms ---------- */
.form-label { font-weight: 500; font-size: .78rem; margin-bottom: .3rem; color: var(--ink-2); }
.form-control, .form-select { border-color: var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: #8fb0d1; box-shadow: 0 0 0 .22rem rgba(31, 79, 122, .12); }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-check-input:checked { background-color: var(--brand-2); border-color: var(--brand-2); }
.form-range::-webkit-slider-thumb { background: var(--brand-2); }
.form-range::-moz-range-thumb { background: var(--brand-2); }

/* ---------- Tables ---------- */
.table { margin-bottom: 0; --bs-table-hover-bg: #f5f8fc; }
.table > :not(caption) > * > * { padding: .7rem .8rem; border-bottom-color: #eef1f5; }
.table-sm > :not(caption) > * > * { padding: .5rem .7rem; }
.table thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f8fafc; white-space: nowrap; font-weight: 500; border-bottom: 1px solid var(--line); }
.table td { vertical-align: middle; }
.table tfoot th { background: #f8fafc; color: var(--brand); }
.table-hover tbody tr { transition: background .15s; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 2.5rem 1rem !important; color: var(--muted); }
.empty-state i { display: block; font-size: 2rem; color: #c4cfdc; margin-bottom: .4rem; }
.empty-state div { font-size: .82rem; }

/* ---------- Badges, alerts, misc ---------- */
.badge { font-weight: 500; font-size: .7rem; padding: .38em .7em; border-radius: 999px; letter-spacing: .01em; }
.text-bg-primary { background: var(--brand-soft) !important; color: var(--brand-2) !important; }
.text-bg-success { background: var(--ok-soft) !important; color: #187049 !important; }
.text-bg-warning { background: var(--warn-soft) !important; color: var(--warn) !important; }
.text-bg-danger { background: var(--bad-soft) !important; color: var(--bad) !important; }
.text-bg-secondary { background: #eef1f5 !important; color: var(--ink-2) !important; }
.text-bg-dark { background: var(--brand) !important; color: #fff !important; }
.alert { border-radius: 12px; border: 0; box-shadow: var(--shadow); animation: slideDown .4s var(--ease) both; }
.alert-success { background: var(--ok-soft); color: #145c3c; }
.alert-danger { background: var(--bad-soft); color: #8e2a20; }
.alert-warning { background: var(--warn-soft); color: #7a5214; }
.alert-info { background: var(--brand-soft); color: var(--brand); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; padding: .4rem; animation: pop .18s var(--ease) both; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }
.dropdown-item:hover { background: var(--brand-soft); }
.progress { height: 8px; background: #edf1f6; border-radius: 99px; }
.progress-bar { background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); border-radius: 99px; transition: width 1s var(--ease); }
.low, .text-shortage { color: var(--bad); font-weight: 500; }
.text-danger { color: var(--bad) !important; }
.text-success { color: var(--ok) !important; }
.text-primary { color: var(--brand-2) !important; }
.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
.dl-grid dt { color: var(--muted); font-weight: 400; }
.dl-grid dd { margin: 0; }

/* ---------- Dashboard ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 1.6rem 1.75rem;
  background: radial-gradient(90% 140% at 100% 0%, #2e6ca3 0%, rgba(46, 108, 163, 0) 55%),
              linear-gradient(120deg, #142b4a 0%, #1d4570 100%);
  box-shadow: 0 12px 34px rgba(20, 43, 74, .22);
}
.hero::after { /* soft rooftop skyline */
  content: ""; position: absolute; right: -10px; bottom: -6px; width: 360px; height: 120px; opacity: .12; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 120' fill='%23ffffff'%3E%3Cpath d='M0 120V80l30-24 30 24v40zM70 120V60l45-36 45 36v60zM170 120V70h20V50l35-28 35 28v70zM270 120V84l25-20 25 20v36zM325 120V90l17-14 18 14v30z'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.hero-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 162, 74, .35), rgba(200, 162, 74, 0) 70%); top: -120px; left: 35%; animation: float 8s ease-in-out infinite; pointer-events: none; }
.hero .greet { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #e3c477; font-weight: 500; font-size: .72rem; }
.hero h2 { font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; margin: .25rem 0 .35rem; }
.hero p { color: rgba(255, 255, 255, .72); margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; position: relative; z-index: 1; }
.chart-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 0 .25rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-stack { width: 100%; max-width: 42px; display: flex; flex-direction: column-reverse; gap: 2px; height: 0; transition: height 1.1s var(--ease); }
.chart-seg { width: 100%; position: relative; cursor: default; transition: filter .15s; }
.chart-seg:first-child { border-radius: 0 0 2px 2px; }
.chart-seg:last-child { border-radius: 4px 4px 0 0; }
.chart-seg:hover { filter: brightness(1.1); }
.chart-x { font-size: .72rem; color: var(--muted); }
.chart-total { font-size: .68rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.chart-grid { position: relative; }
.chart-grid::before { content: ""; position: absolute; inset: 0 0 22px 0; background: repeating-linear-gradient(to top, #eef1f5 0 1px, transparent 1px 25%); pointer-events: none; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: var(--c); }
.viz-tip { position: fixed; z-index: 2000; pointer-events: none; background: var(--brand); color: #fff; font-size: .76rem; padding: .45rem .6rem; border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; white-space: nowrap; }
.viz-tip.on { opacity: 1; transform: none; }
.setup-step { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .15s; }
.setup-step:last-child { border-bottom: 0; }
.setup-step:hover { background: #f8fafc; text-decoration: none; color: var(--ink); }
.setup-step .dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; flex-shrink: 0; }
.setup-step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-step.done .t { color: var(--muted); text-decoration: line-through; }
.feed-item { display: flex; gap: .7rem; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: radial-gradient(80% 60% at 80% 10%, #2e6ca3 0%, rgba(46, 108, 163, 0) 60%), linear-gradient(135deg, #11243f 0%, #1d4570 100%);
}
.auth-card { width: 100%; max-width: 410px; border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); animation: rise .6s var(--ease) both; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 18px); } }
.content > *:not(.reveal) { animation: rise .5s var(--ease) both; }
.content > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4) { animation-delay: .15s; }
.content > *:nth-child(n+5) { animation-delay: .2s; }
.reveal > * { animation: rise .55s var(--ease) both; }
.reveal > *:nth-child(1) { animation-delay: .05s; } .reveal > *:nth-child(2) { animation-delay: .1s; }
.reveal > *:nth-child(3) { animation-delay: .15s; } .reveal > *:nth-child(4) { animation-delay: .2s; }
.reveal > *:nth-child(5) { animation-delay: .25s; } .reveal > *:nth-child(6) { animation-delay: .3s; }
.reveal > *:nth-child(n+7) { animation-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .no-print, .btn, .hero .actions { display: none !important; }
  .content { padding: 0; } body { background: #fff; }
  .card { border: none; box-shadow: none; }
  .content > * { animation: none; }
}

/* Typography: calm, professional weights (Poppins) */
b, strong, .fw-bold, th { font-weight: 500 !important; }
.fw-semibold { font-weight: 500 !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; }
.table { font-size: .82rem; }
.table tfoot th, .stat .value b { font-weight: 600 !important; }
.small, small { font-size: .78rem; }
.form-control, .form-select { font-size: .84rem; }
.form-control-sm, .form-select-sm { font-size: .8rem; }
.dropdown-item { font-size: .82rem; }
.list-group-item { font-size: .83rem; }
.alert { font-size: .84rem; }
