/* =========================================================================
   Congress MPTC Portal, Candidate Intelligence, Andhra Pradesh
   Top Header Navigation + Full Width Desktop & Mobile Layout
   ========================================================================= */

:root {
  --saffron-700: #C05A0E;
  --saffron-600: #E86A17;
  --saffron-500: #F7941D;
  --saffron-400: #FDBB6B;
  --saffron-100: #FDE8D2;
  --saffron-050: #FFF4E8;

  --green-800: #0C5C2A;
  --green-700: #0F7A37;
  --green-600: #138808;
  --green-100: #DFF2E3;

  --navy-950: #0A1734;
  --navy-900: #0E2049;
  --navy-800: #16305F;
  --navy-700: #1F3E77;
  --navy-600: #2C4E8F;

  --red-700: #AD3423;
  --red-100: #FBE1DC;

  --bg: #F4F5F3;
  --surface: #FFFFFF;
  --line: #E4E6E1;
  --line-strong: #D2D5CD;

  --ink-900: #181B22;
  --ink-700: #3B3F49;
  --ink-500: #666B76;
  --ink-400: #8A8F99;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 3px rgba(10,20,45,.06), 0 4px 14px rgba(10,20,45,.05);
  --shadow-2: 0 16px 36px rgba(10,20,45,.18);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 68px;
  --bottomnav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--ink-900); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--saffron-100); color: var(--navy-900); }

.icon { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; flex-shrink: 0; }

:focus-visible {
  outline: 2.5px solid var(--saffron-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- App Shell & Full Width Top Header ----------------------------------- */
.app { display: flex; flex-direction: column; min-height: 100vh; width: 100%; }
.sidebar { display: none !important; }

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-950); color: #fff;
  border-bottom: 1.5px solid var(--navy-800);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; min-height: var(--header-h); max-width: 1600px; margin: 0 auto; width: 100%; gap: 16px;
}

/* Header Left: Brand & Logo */
.header-brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none;
}
.brand-logo {
  height: 42px; width: auto; object-fit: contain; border-radius: 6px;
}
.brand-title {
  font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; white-space: nowrap;
}

/* Header Center: Navigation Menu */
.header-nav {
  display: none; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto;
}
@media (min-width: 992px) {
  .header-nav { display: flex; }
}
.h-nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: #C5D1E5; text-decoration: none; white-space: nowrap;
  transition: all .15s ease;
}
.h-nav-link i { font-size: 14px; }
.h-nav-link:hover { background: var(--navy-800); color: #fff; }
.h-nav-link.active {
  background: var(--saffron-600); color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px rgba(232,106,23,0.35);
}

/* Header Right: User Info & Logout */
.header-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.user-pill {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25;
}
.user-pill .u-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.user-pill .u-badge { font-size: 11px; margin-top: 1px; }

.btn-logout {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.25);
}
.btn-logout:hover {
  background: rgba(255,255,255,0.12); border-color: #fff; color: #fff;
}

.d-none-mobile { display: none; }
@media (min-width: 768px) {
  .d-none-mobile { display: inline-flex; }
  .header-container { padding: 0 24px; }
  .brand-title { font-size: 18px; }
}

/* --- Page Title & Breadcrumb Strip ---------------------------------------- */
.page-title-strip {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.page-title-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto; width: 100%; flex-wrap: wrap; gap: 12px;
}
.page-title { font-size: 19px; font-weight: 800; color: var(--navy-900); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--saffron-700); font-weight: 700; }

@media (min-width: 768px) {
  .page-title-strip { padding: 16px 24px; }
}
@media (min-width: 1200px) {
  .page-title-strip { padding: 18px 32px; }
}

/* --- Main Content Area --------------------------------------------------- */
.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column; width: 100%;
  padding-bottom: calc(var(--bottomnav-h) + 20px);
}
@media (min-width: 992px) {
  .main { padding-bottom: 36px; }
}

.content {
  padding: 16px; display: flex; flex-direction: column; gap: 18px;
  width: 100%; max-width: 1600px; margin: 0 auto;
}
@media (min-width: 768px) {
  .content { padding: 22px 24px; }
}
@media (min-width: 1200px) {
  .content { padding: 26px 32px; }
}

/* --- Badges & Chips ------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-admin { background: var(--navy-900); color: #fff; border: 1px solid var(--navy-700); }
.badge-dcc { background: var(--saffron-100); color: var(--saffron-700); border: 1px solid var(--saffron-400); }
.badge-global { background: var(--green-100); color: var(--green-800); border: 1px solid #a3d9b1; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; line-height: 1;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.chip-dcc1 { background: #EBF3FC; color: #1D5DAE; border: 1px solid #C4DCFA; }
.chip-dcc1 .chip-dot { background: #1D5DAE; }

.chip-dcc2 { background: #EAF7ED; color: #177C32; border: 1px solid #B8E4C3; }
.chip-dcc2 .chip-dot { background: #177C32; }

.chip-global { background: #FFF4E5; color: #B25E00; border: 1px solid #FCD49C; }
.chip-global .chip-dot { background: #E86A17; }

.chip-active { background: var(--saffron-050); color: var(--saffron-700); border: 1px solid var(--saffron-100); }
.chip-finalized { background: #EFF0EB; color: var(--ink-700); border: 1px solid var(--line-strong); }
.chip-pending { background: #FDEEEC; color: var(--red-700); border: 1px solid #F7C5BF; }
.chip-complete { background: var(--green-100); color: var(--green-800); border: 1px solid #A2DCB0; }

.chip-tier-strong { background: #EAF7ED; color: #177C32; border: 1px solid #B8E4C3; }
.chip-tier-average { background: #FFF7E6; color: #A05E03; border: 1px solid #FDE0A2; }
.chip-tier-poor { background: #FDEEEC; color: #AD3423; border: 1px solid #F7C5BF; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; min-height: 44px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-saffron { background: var(--saffron-600); color: #fff; box-shadow: 0 4px 14px rgba(232,106,23,.28); }
.btn-saffron:hover { background: var(--saffron-700); }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); }
.btn-outline { background: var(--surface); color: var(--ink-900); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-700); background: #FAFBF9; }
.btn-ghost { background: transparent; color: var(--ink-700); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 6px 14px; font-size: 12.5px; min-height: 36px; border-radius: 8px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.btn-block { width: 100%; }

/* --- Alerts & Banners ---------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 500;
}
.alert-success { background: var(--green-100); color: var(--green-800); border: 1px solid #B8E4C3; }
.alert-error { background: #FDEEEC; color: var(--red-700); border: 1px solid #F7C5BF; }
.alert-warning { background: var(--saffron-050); color: var(--saffron-700); border: 1px solid var(--saffron-400); }
.alert-info { background: #EBF3FC; color: #1D5DAE; border: 1px solid #C4DCFA; }

.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #FFF4E5; border: 1px solid #FCD49C;
  border-radius: var(--radius-md); color: #8A4600; font-size: 13.5px;
}

/* --- Cards & Stat Strip -------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); font-weight: 700; }
.stat-card .value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--navy-900); }
.stat-card .value small { font-size: 13.5px; color: var(--ink-400); font-weight: 600; }
.stat-card .note { font-size: 11.5px; color: var(--red-700); font-weight: 600; }
.stat-card.accent { background: linear-gradient(155deg, var(--navy-950), var(--navy-800)); border-color: var(--navy-800); }
.stat-card.accent .label { color: #B9C4E0; }
.stat-card.accent .value { color: var(--saffron-400); }
.stat-card.accent .note { color: #FFCF9E; }
.stat-card.accent-green { background: linear-gradient(155deg, #072714, #0E4724); border-color: #0E4724; }
.stat-card.accent-green .label { color: #A7E0B8; }
.stat-card.accent-green .value { color: #4ADE80; }
.stat-card.accent-green .note { color: #86EFAC; }

/* --- Progress Bar -------------------------------------------------------- */
.progress { display: flex; flex-direction: column; gap: 6px; }
.progress-track { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; width: 100%; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--saffron-600); transition: width .3s ease; }
.progress-fill.green { background: var(--green-600); }
.progress-caption { font-size: 12.5px; color: var(--ink-500); }

/* --- Forms & Inputs ------------------------------------------------------ */
.form-section-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--navy-900); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1.5px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.form-label .req { color: var(--red-700); margin-left: 2px; }
.form-control, .select {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font);
  color: var(--ink-900); transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .select:focus {
  border-color: var(--saffron-600);
  box-shadow: 0 0 0 3px var(--saffron-100);
  outline: none;
}
.form-control[readonly], .select[disabled] { background: #F7F8F6; color: var(--ink-500); cursor: not-allowed; }
.form-hint { font-size: 12px; color: var(--ink-500); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
  .form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
}

/* --- Option Tabs & Candidate Completion Cards ----------------------------- */
.option-tabs { display: flex; gap: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.opt-tab {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); text-align: center; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--ink-700);
  transition: all .15s ease;
}
.opt-tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); box-shadow: 0 2px 8px rgba(14,32,73,0.2); }
.opt-tab.done { border-color: var(--green-600); color: var(--green-800); background: var(--green-100); }

.complete-card {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: #F8FAF7; border: 1.5px solid #CBE3D1; border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.complete-thumb { width: 62px; height: 76px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: #e2e8f0; }
.complete-info { flex: 1; min-width: 0; }
.complete-info .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--green-700); }
.complete-info .name { font-size: 16px; font-weight: 800; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.complete-info .village { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

/* --- Accordions & Lists -------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; user-select: none; gap: 12px;
}
.acc-head-left { display: flex; align-items: center; gap: 14px; }
.acc-head .chev { transition: transform .2s ease; color: var(--ink-400); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-title { font-size: 16px; font-weight: 800; color: var(--ink-900); }
.acc-sub { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.acc-body { display: none; padding: 0 20px 20px; border-top: 1px solid var(--line); }
.acc-item.open .acc-body { display: block; }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mptc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

.mptc-card { background: #FAFAFA; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.mptc-head { font-size: 14.5px; font-weight: 800; color: var(--ink-900); }
.mptc-sub { font-size: 12px; color: var(--ink-500); margin-bottom: 10px; }
.mptc-options { display: flex; flex-direction: column; gap: 8px; }

.option-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; gap: 10px;
}
.option-row.empty { background: #F7F8F6; border-style: dashed; }
.option-row .who { min-width: 0; flex: 1; }
.option-row .opt-label { font-size: 11px; font-weight: 700; color: var(--saffron-700); text-transform: uppercase; }
.option-row .opt-label.green { color: var(--green-700); }
.option-row .nm { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.option-row .vg { font-size: 12px; color: var(--ink-500); }
.add-details {
  background: transparent; border: none; color: var(--saffron-700);
  font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.add-details.green { color: var(--green-700); }
.add-details.green:hover { color: var(--green-800); }

/* --- District Ledger Cards (Admin) --------------------------------------- */
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-1); }
.data-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.data-card-title { font-size: 16.5px; font-weight: 800; color: var(--ink-900); }
.data-card-title .sub { font-size: 12px; color: var(--ink-500); font-weight: 500; margin-top: 2px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.field .f-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ink-500); display: block; margin-bottom: 2px; }
.field .f-value { font-size: 14px; font-weight: 700; color: var(--ink-900); }
.data-card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* --- Toolbar & Search ---------------------------------------------------- */
.toolbar { display: flex; flex-direction: column; gap: 10px; }
.search-field { position: relative; width: 100%; }
.search-field .icon { position: absolute; left: 14px; top: 14px; color: var(--ink-400); }
.search-field input { width: 100%; min-height: 44px; padding: 10px 14px 10px 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-size: 14px; }
.toolbar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) {
  .toolbar-row { grid-template-columns: repeat(4, 1fr); }
}

/* --- Modals -------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,23,52,0.65);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px; backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 500px; width: 100%; padding: 24px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 14px; animation: modalPop .18s ease-out;
  max-height: 90vh; overflow-y: auto;
}
.modal.modal-lg { max-width: 700px; }
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.modal .m-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--saffron-050); color: var(--saffron-700); font-size: 20px;
}
.modal .m-icon.danger { background: #FDEEEC; color: var(--red-700); }
.modal h3 { font-size: 18px; }
.modal p { font-size: 13.5px; color: var(--ink-700); line-height: 1.5; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* --- Cropper Workspace ---------------------------------------------------- */
.cropper-box { width: 100%; height: 340px; background: #222; border-radius: var(--radius-sm); overflow: hidden; }
.cropper-toolbar { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

/* --- Login Page Design with Transparent Congress Flag Background ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(135deg, #0E2049 0%, #16305F 50%, #0A1734 100%);
}
.login-card {
  position: relative; max-width: 420px; width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px; padding: 32px 26px; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden; z-index: 1;
}
.login-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('../images/congress.jpg');
  background-size: cover; background-position: center;
  opacity: 0.12; z-index: -1; pointer-events: none;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .logo-img { width: 68px; height: auto; border-radius: 8px; margin-bottom: 10px; }
.login-brand h1 { font-size: 21px; color: var(--navy-900); }
.login-brand p { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

/* --- Mobile Bottom Nav ---------------------------------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  height: var(--bottomnav-h); background: var(--surface);
  border-top: 1px solid var(--line); display: flex;
}
@media (min-width: 992px) {
  .bottom-nav { display: none; }
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 11px; font-weight: 700;
  color: var(--ink-500);
}
.bn-item i { font-size: 16px; }
.bn-item.active { color: var(--saffron-700); }

/* --- Printable Styles ----------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .app-header, .bottom-nav, .page-title-strip, .btn, .toolbar { display: none !important; }
  .main { padding: 0; min-height: auto; }
  .content { padding: 0; max-width: 100%; }
}
/* --- Slider & Percentage Badges ------------------------------------------- */
.slider-group {
  display: flex; flex-direction: column; background: #FAFBF9;
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px;
}
.form-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 999px; background: #D9DDD4; outline: none; transition: background .15s ease;
  margin: 10px 0 6px; cursor: pointer;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--saffron-600); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25); cursor: pointer; transition: transform .12s ease;
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.form-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--saffron-600);
  border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.25); cursor: pointer;
}
.slider-ticks {
  display: flex; justify-content: space-between; font-size: 11.5px;
  font-weight: 700; color: var(--ink-500); padding: 0 2px;
}
.slider-ticks span { cursor: pointer; user-select: none; }
.slider-ticks span:hover { color: var(--saffron-700); }

.chip-pct-0 { background: #FDEEEC; color: #AD3423; border: 1px solid #F7C5BF; }
.chip-pct-25 { background: #FFF7E6; color: #A05E03; border: 1px solid #FDE0A2; }
.chip-pct-75 { background: #EBF3FC; color: #1D5DAE; border: 1px solid #C4DCFA; }
.chip-pct-100 { background: #EAF7ED; color: #177C32; border: 1px solid #B8E4C3; }

/* --- Dynamic Chips for Financial Status & Win Prob ------------------------- */
.chip-tier-strong { background: #EAF7ED; color: #177C32; border: 1px solid #B8E4C3; }
.chip-tier-average { background: #FFF7E6; color: #A05E03; border: 1px solid #FDE0A2; }
.chip-tier-poor { background: #FDEEEC; color: #AD3423; border: 1px solid #F7C5BF; }

.chip-prob-low { background: #FDEEEC; color: #AD3423; border: 1px solid #F7C5BF; }
.chip-prob-mid { background: #FFF7E6; color: #A05E03; border: 1px solid #FDE0A2; }
.chip-prob-high { background: #EBF3FC; color: #1D5DAE; border: 1px solid #C4DCFA; }
.chip-prob-top { background: #EAF7ED; color: #177C32; border: 1px solid #B8E4C3; }