:root {
  --brand: #0a1f44;
  --brand-2: #143a80;
  --brand-3: #2563eb;
  --brand-soft: #e7eefc;
  --gold: #f6b91a;
  --gold-soft: #fff4d6;
  --ink: #0b1630;
  --ink-2: #364766;
  --muted: #66758f;
  --line: #dfe6f3;
  --bg: #eef2fa;
  --card: #ffffff;
  --full: #0f8a63;
  --partial: #f29b0c;
  --empty: #94a3b8;
  --vacant: #7c5cdb;
  --active: #16a34a;
  --damaged: #dc2626;
  --repair: #ea580c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 8px 28px -10px rgba(10, 31, 68, .22);
  --shadow-lg: 0 20px 50px -12px rgba(10, 31, 68, .45);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --kn: 'Noto Sans Kannada', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.kn { font-family: var(--kn); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(100deg, #061433 0%, var(--brand) 45%, #16397a 100%);
  color: #fff; box-shadow: 0 4px 20px -6px rgba(0,0,0,.35);
}
.topbar::after { content: ''; display: block; height: 3px; background: linear-gradient(90deg, var(--gold) 0 50%, #d7263d 50% 100%); }
.topbar-inner { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.18); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; opacity: .82; display: flex; flex-direction: column; line-height: 1.35; }
.brand-text small span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { white-space: nowrap; color: rgba(255,255,255,.85); padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.mainnav a:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.mainnav a.active { background: rgba(255,255,255,.16); color: #fff; }
.mainnav a.nav-add { background: var(--gold); color: #3a2a00; }
.mainnav a.nav-add:hover { background: #ffc93d; }
.userbox { display: flex; align-items: center; gap: 8px; }
.userbox .chip-user { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #3a2a00; display: grid; place-items: center; font-weight: 800; }

.demo-banner { background: var(--gold-soft); color: #6b4d00; border-bottom: 1px solid #f3dc9b; font-size: 13.5px; padding: 8px 20px; text-align: center; }

/* ---------- layout ---------- */
.view { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 20px 40px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-3); }
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }
.section-title { font-size: 18px; font-weight: 800; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; }

.footer { text-align: center; font-size: 12.5px; color: var(--ink-2); padding: 22px 20px 30px; border-top: 1px solid var(--line); background: #fff; }

/* ---------- hero / KPIs ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 26px 22px; color: #fff; margin-bottom: 20px;
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(246,185,26,.22), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(37,99,235,.55), transparent 60%),
    linear-gradient(120deg, #050f29, #0a1f44 50%, #173f8c);
  box-shadow: var(--shadow-lg);
}
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hero-top { position: relative; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.hero h1 { font-size: 28px; font-weight: 800; }
.hero p { margin: 6px 0 0; opacity: .85; max-width: 640px; }
.hero .updated { font-size: 12.5px; opacity: .8; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.15); }
.kpis { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px); min-width: 0; }
.kpi .label { font-size: 12px; font-weight: 600; opacity: .8; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; white-space: nowrap; }
.kpi .value small { font-size: 13px; font-weight: 600; opacity: .75; margin-left: 3px; }
.kpi .foot { font-size: 12px; opacity: .8; margin-top: 2px; }
.kpi .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); margin-top: 8px; overflow: hidden; }
.kpi .bar span { display: block; height: 100%; background: var(--gold); border-radius: 6px; transition: width 1s ease; }
.kpi .ico { width: 16px; height: 16px; }

/* ---------- map ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; }
.map-card { position: relative; overflow: hidden; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.map-toolbar h3 { font-size: 16px; font-weight: 700; }
#kaMap { height: 640px; background: #eef2fa; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.chip:hover { border-color: var(--brand-3); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; min-width: 190px; }
.map-legend .title { font-weight: 700; margin-bottom: 6px; }
.legend-scale { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.legend-scale span { flex: 1; }
.legend-ticks { display: flex; justify-content: space-between; color: var(--muted); margin-top: 3px; }
.legend-dots { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.legend-dots span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.map-toggles { position: absolute; right: 12px; top: 74px; z-index: 500; display: flex; flex-direction: column; gap: 6px; }
.map-toggles button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.map-toggles button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.district-label { background: none; border: none; box-shadow: none; font-size: 10.5px; font-weight: 700; color: #0b1630; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; white-space: nowrap; pointer-events: none; }
.district-label::before { display: none; }
.leaflet-tooltip.ka-tip { padding: 0; border: none; border-radius: 14px; box-shadow: 0 14px 40px -10px rgba(0,0,0,.35); overflow: hidden; }
.leaflet-tooltip.ka-tip::before { display: none; }
.tip { width: 250px; font-family: var(--font); }
.tip-head { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; padding: 10px 14px; }
.tip-head strong { font-size: 15px; display: block; }
.tip-head span { font-size: 11.5px; opacity: .85; }
.tip-body { padding: 10px 14px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px; color: var(--ink-2); }
.tip-body b { display: block; font-size: 15px; color: var(--ink); }
.tip-foot { grid-column: 1/-1; font-size: 11px; color: var(--brand-2); font-weight: 600; border-top: 1px solid var(--line); padding-top: 6px; }
.tip-bar { grid-column: 1/-1; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--font); }
.pop img { width: 100%; height: 120px; object-fit: cover; }
.pop .noimg { height: 70px; background: linear-gradient(120deg, var(--brand-soft), #fff); display: grid; place-items: center; color: var(--brand-3); font-size: 12px; font-weight: 600; }
.pop-body { padding: 10px 14px 14px; }
.pop-body h4 { font-size: 14.5px; }
.pop-body .meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.pop-body .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* side panel */
.side-panel { display: flex; flex-direction: column; max-height: 712px; }
.side-panel .sp-body { padding: 18px 20px; overflow: auto; flex: 1; }
.sp-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.sp-empty svg { width: 72px; height: 72px; margin: 0 auto 10px; opacity: .5; }
.sp-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sp-title h2 { font-size: 22px; font-weight: 800; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.mini-stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
.mini-stat .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mini-stat .v { font-size: 19px; font-weight: 800; }
.mini-stat .v small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 8px 0 6px; }
.stack-bar span { height: 100%; transition: width .6s; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-2); }
.stack-legend span { display: inline-flex; align-items: center; gap: 5px; }
.g-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.g-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: all .15s; background: #fff; color: inherit; }
.g-item:hover { border-color: var(--brand-3); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.g-item .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-3); }
.g-item .thumb svg { width: 22px; height: 22px; }
.g-item .info { min-width: 0; flex: 1; }
.g-item .info strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-item .info span { font-size: 12px; color: var(--muted); }
.g-item .pct { font-size: 12px; font-weight: 700; text-align: right; }

/* ---------- badges, buttons ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-full { background: #dcf3ea; color: #0b6b4c; }
.b-partial { background: #fef0d4; color: #a35f00; }
.b-empty { background: #eef1f5; color: #4b5a6d; }
.b-vacant { background: #ece6fb; color: #5a3bb8; }
.b-active { background: #dcfce7; color: #15803d; }
.b-damaged { background: #fee2e2; color: #b91c1c; }
.b-repair { background: #ffedd5; color: #c2410c; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; background: var(--brand); color: #fff; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-gold:hover { background: #ffc93d; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); border-color: #c7d3ea; }
.btn-danger { background: #fff; color: var(--damaged); border-color: #f5c2c2; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-icon { padding: 8px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 8px; }

/* ---------- charts ---------- */
.charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-box { position: relative; height: 260px; padding: 12px 16px 16px; }
.chart-wide { grid-column: span 2; }
.chart-wide .chart-box { height: 340px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f6f8fd; white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; }
table.data th.num, table.data td.num { text-align: right; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr { cursor: pointer; transition: background .1s; }
table.data tbody tr:hover { background: #f1f5fe; }
table.data th .sort { opacity: .5; font-size: 10px; }

/* ---------- list page ---------- */
.filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: 10px; padding: 14px; margin-bottom: 18px; align-items: center; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #d3dcee; background: #fff; border-radius: 11px; padding: 10px 12px; outline: none; transition: border .15s, box-shadow .15s; min-height: 42px;
}
.input:focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
textarea.input { min-height: 90px; resize: vertical; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 38px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg button { border: none; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.g-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; color: inherit; }
.g-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.g-card .cover { height: 150px; position: relative; background: linear-gradient(135deg, #0a1f44, #1e4fb8); overflow: hidden; }
.g-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.g-card .cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.35); }
.g-card .cover .ph svg { width: 70px; height: 70px; }
.g-card .cover .badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; justify-content: space-between; }
.g-card .cover .badge { box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.g-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g-card h3 { font-size: 15.5px; font-weight: 700; }
.g-card .loc { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.g-card .loc .icon { width: 14px; height: 14px; }
.g-card .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.g-card .row3 div { font-size: 11px; color: var(--muted); font-weight: 600; }
.g-card .row3 b { display: block; font-size: 14px; color: var(--ink); }
.fill-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { width: 90px; height: 90px; margin: 0 auto 12px; opacity: .4; }

/* ---------- detail ---------- */
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.detail-head h1 { font-size: 28px; font-weight: 800; }
.detail-head .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.gallery { overflow: hidden; }
.gallery .main { position: relative; height: 420px; background: linear-gradient(135deg, #0a1f44, #1e4fb8); cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); text-align: center; font-weight: 600; }
.gallery .main .ph svg { width: 90px; height: 90px; margin: 0 auto 8px; opacity: .6; }
.gallery .main .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 82px; height: 62px; object-fit: cover; border-radius: 9px; cursor: pointer; border: 2px solid transparent; flex: none; }
.thumbs img.on { border-color: var(--gold); }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.info-list > div { padding: 12px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.info-list > div.full { grid-column: 1 / -1; }
.info-list .l { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.info-list .v { font-size: 14.5px; font-weight: 600; word-wrap: break-word; }
.gauge-wrap { display: flex; align-items: center; gap: 20px; padding: 20px; }
.gauge { position: relative; width: 140px; height: 140px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .center b { font-size: 28px; font-weight: 800; display: block; line-height: 1; }
.gauge .center span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.gauge-stats { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gauge-stats div { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gauge-stats b { display: block; font-size: 18px; color: var(--ink); }
#miniMap { height: 230px; }
.docs { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .1s; }
.doc:hover { background: var(--bg); }
.doc .ft { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; flex: none; }
.ft-pdf { background: #dc2626; } .ft-xls { background: #15803d; } .ft-img { background: #7c3aed; } .ft-doc { background: #2563eb; } .ft-oth { background: #64748b; }
.doc .meta { flex: 1; min-width: 0; }
.doc .meta strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .meta span { font-size: 12px; color: var(--muted); }
.remark { padding: 16px 20px; white-space: pre-wrap; color: var(--ink-2); }

/* ---------- form ---------- */
.form-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.form-steps { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.form-steps a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.form-steps a:hover { background: #fff; text-decoration: none; }
.form-steps a .n { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.form-section { margin-bottom: 18px; scroll-margin-top: 90px; }
.form-section .card-head .n { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.form-section .card-head h3 { display: flex; align-items: center; gap: 10px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field label .req { color: var(--damaged); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group select.input, .input-group .addon { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; width: auto; flex: none; border-top-right-radius: 11px; border-bottom-right-radius: 11px; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--bg); border: 1px solid #d3dcee; border-left: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.radio-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.radio-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1.5px solid #d3dcee; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 13px; text-align: center; transition: all .15s; background: #fff; }
.radio-card span i { width: 14px; height: 14px; border-radius: 50%; }
.radio-card input:checked + span { border-color: var(--brand-3); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
.radio-card input:focus-visible + span { outline: 2px solid var(--brand-3); }
.fill-preview { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.fill-preview .progress { flex: 1; height: 12px; }
.fill-preview b { font-size: 20px; min-width: 64px; text-align: right; }
#pickMap { height: 300px; border-radius: 12px; border: 1px solid var(--line); }
.upload-zone { border: 2px dashed #c3d0ea; border-radius: 14px; padding: 22px; text-align: center; background: #f9fbff; transition: all .15s; }
.upload-zone.drag { border-color: var(--brand-3); background: var(--brand-soft); }
.upload-zone p { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.upload-zone .btn-row { justify-content: center; }
.upload-zone .big-ico { width: 44px; height: 44px; margin: 0 auto; color: var(--brand-3); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.file-tile { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.file-tile .pv { height: 96px; background: var(--bg); display: grid; place-items: center; }
.file-tile .pv img { width: 100%; height: 100%; object-fit: cover; }
.file-tile .nm { padding: 6px 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-tile .sz { padding: 0 8px 6px; font-size: 10.5px; color: var(--muted); }
.file-tile .rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.file-tile .new { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #3a2a00; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.form-actions { position: sticky; bottom: 0; z-index: 50; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.15); }
.errors { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 3000; background: rgba(5, 12, 33, .6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .2s; }
.modal.wide { max-width: 980px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h3 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 20px; }
.x { border: none; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } }
.lightbox { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox iframe { width: 94vw; height: 88vh; border: none; background: #fff; border-radius: 8px; }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; opacity: .85; }

/* scanner */
.scan-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.scan-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.scan-stage { position: relative; background: #070f24; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; max-height: 60vh; display: grid; place-items: center; color: #9fb3ac; text-align: center; width: 100%; }
.scan-stage video { width: 100%; height: 100%; object-fit: cover; }
.scan-stage .guide { position: absolute; inset: 6%; border: 2px dashed rgba(246,185,26,.8); border-radius: 10px; pointer-events: none; }
.scan-stage .msg { padding: 20px; font-size: 14px; }
.shutter { width: 66px; height: 66px; border-radius: 50%; border: 5px solid #fff; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 3px var(--gold); }
.shutter:active { transform: scale(.94); }
.scan-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.page-tile { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.page-tile img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.page-tile .no { position: absolute; left: 6px; top: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; }
.page-tile .acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.page-tile .acts button { width: 26px; height: 26px; border-radius: 8px; border: none; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }

/* toast */
.toasts { position: fixed; z-index: 5000; top: 84px; right: 16px; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0f1f1a; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: 340px; border-left: 4px solid var(--gold); }
.toast.ok { border-left-color: #22c55e; }
.toast.err { border-left-color: #ef4444; }

.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand-3); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg) } }
.skeleton { background: linear-gradient(90deg, #e9eef8 25%, #f6f8fd 50%, #e9eef8 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0 } }

.login-card { max-width: 420px; margin: 40px auto; }
.login-card .top { padding: 28px 28px 10px; text-align: center; }
.login-card .top .brand-mark { margin: 0 auto 12px; width: 60px; height: 60px; background: var(--brand); }
.login-card form { padding: 10px 28px 28px; display: flex; flex-direction: column; gap: 14px; }

/* bottom nav (mobile) */
.bottomnav { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .brand-text small .kn { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-wrap { grid-template-columns: minmax(0, 1fr) 330px; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .side-panel { max-height: none; }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-wide { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-steps { display: none; }
  .scan-layout { grid-template-columns: minmax(0, 1fr); }
  .mainnav { display: none; }
  .brand-text small .kn { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .form-actions { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.2);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px; border-radius: 10px; }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottomnav a.active { color: var(--brand); background: var(--brand-soft); }
  .bottomnav a.bn-add svg { background: var(--gold); color: #3a2a00; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar-inner { padding: 8px 14px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { font-size: 10.5px; }
  .view { padding: 16px 16px 30px; }
  .hero { padding: 20px 16px 16px; border-radius: 18px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13.5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi .value { font-size: 21px; }
  #kaMap { height: 460px; }
  .map-toggles { top: 10px; right: 10px; left: 56px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .map-toggles button { padding: 6px 8px; font-size: 11px; }
  .demo-banner { font-size: 12px; padding: 6px 14px; }
  .filters .seg { justify-self: start; }
  .map-legend { min-width: 150px; font-size: 11px; padding: 8px 10px; left: 10px; bottom: 10px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .map-legend .legend-dots { display: none; }
  .map-legend { min-width: 130px; }
  .fields { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .radio-cards { grid-template-columns: 1fr 1fr; }
  .radio-cards.c3 { grid-template-columns: 1fr 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .gallery .main { height: 260px; }
  .detail-head h1 { font-size: 22px; }
  .page-head h1 { font-size: 22px; }
  .gauge-wrap { flex-direction: column; align-items: stretch; }
  .gauge { margin: 0 auto; }
  .gauge-stats { flex-direction: row; justify-content: space-around; text-align: center; }
  .form-actions { border-radius: 0; margin: 0 -16px; bottom: calc(62px + env(safe-area-inset-bottom)); }
  .modal { border-radius: 18px; }
  .modal-back { padding: 8px; }
  .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; right: 16px; }
  .toast { max-width: none; }
  .footer { padding-bottom: 20px; }
  .userbox .chip-user span { display: none; }
  table.data { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* print */
@media print {
  .topbar, .bottomnav, .footer, .demo-banner, .btn, .btn-row, .map-toggles, .toasts, .thumbs { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .gallery .main { height: 260px; }
}
.leaflet-container a.btn, .leaflet-container a.btn:hover { color: #fff; text-decoration: none; }
.leaflet-container { font-family: var(--font); }


/* =====================================================================
   GLOSSY NAVY LAYER
   ===================================================================== */
body {
  background:
    radial-gradient(1100px 520px at 105% -10%, rgba(37, 99, 235, .13), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(246, 185, 26, .07), transparent 60%),
    linear-gradient(180deg, #f3f6fd 0%, #e9eef8 100%);
  background-attachment: fixed;
}

/* top bar: glass with reflection */
.topbar::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
}
.topbar-inner { position: relative; }
.brand-mark {
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px -6px rgba(0,0,0,.5);
}
.mainnav a.active { background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* hero: deep navy glass with sheen */
.hero { border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -20px rgba(5, 15, 41, .65), inset 0 1px 0 rgba(255,255,255,.18); }
.hero::after {
  content: ''; position: absolute; top: -60%; left: -20%; width: 70%; height: 220%; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.09) 45%, rgba(255,255,255,.02) 55%, transparent 70%);
  transform: rotate(8deg);
}
.kpi {
  background: linear-gradient(160deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 55%, rgba(255,255,255,.07) 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 24px -14px rgba(0,0,0,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 16px 30px -14px rgba(0,0,0,.7); }
.kpi .bar span { background: linear-gradient(90deg, #f6b91a, #ffd970); box-shadow: 0 0 10px rgba(246,185,26,.6); }

/* cards: porcelain gloss */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 60%, #f7f9fe 100%);
  border: 1px solid rgba(207, 218, 240, .9);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(10,31,68,.05), 0 12px 32px -14px rgba(10,31,68,.25);
}
.card-head { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(241,245,254,.6)); border-radius: var(--radius) var(--radius) 0 0; }
.card-head h3 { color: var(--brand); }
.section-title { color: var(--brand); }
.section-title .icon { color: var(--brand-3); }

/* buttons: glossy gel */
.btn {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #2a4f9c 0%, #143a80 48%, #0a1f44 52%, #0f2a5e 100%);
  border-color: #0a1f44;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -6px rgba(10,31,68,.6);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 140%; }
.btn:hover { background: linear-gradient(180deg, #3561b8 0%, #1b479a 48%, #10306b 52%, #16397a 100%); }
.btn-gold {
  background: linear-gradient(180deg, #ffe08a 0%, #f8c437 48%, #f0ad0f 52%, #f6be2c 100%);
  border-color: #d99a06; color: #3a2a00; text-shadow: 0 1px 0 rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px -6px rgba(200,140,0,.65);
}
.btn-gold:hover { background: linear-gradient(180deg, #ffe8a6 0%, #ffcd45 48%, #f6b414 52%, #ffc73a 100%); }
.mainnav a.nav-add {
  background: linear-gradient(180deg, #ffe08a 0%, #f8c437 48%, #f0ad0f 52%, #f6be2c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px -4px rgba(0,0,0,.4);
}
.btn-ghost, .btn-danger {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px -2px rgba(10,31,68,.15); text-shadow: none;
}
.btn-ghost { color: var(--brand); border-color: #d3dcee; }
.btn-ghost:hover { background: linear-gradient(180deg, #ffffff 0%, #e9effb 100%); }
.btn-danger:hover { background: linear-gradient(180deg, #fff 0%, #fdecec 100%); }
.userbox .btn-icon { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.06)) !important; }

/* chips & segmented */
.chip { background: linear-gradient(180deg, #fff, #f2f5fc); box-shadow: inset 0 1px 0 #fff, 0 1px 3px rgba(10,31,68,.08); }
.chip.active {
  background: linear-gradient(180deg, #2a4f9c 0%, #143a80 50%, #0a1f44 51%, #12336f 100%);
  border-color: #0a1f44; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 10px -4px rgba(10,31,68,.6);
}
.seg button.on { background: linear-gradient(180deg, #fff, #eef3fd); color: var(--brand-3); }

/* map overlay controls: frosted */
.map-legend, .map-toggles button {
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 8px 20px -8px rgba(10,31,68,.35);
}
.map-toggles button.on {
  background: linear-gradient(180deg, #2a4f9c 0%, #143a80 50%, #0a1f44 51%, #12336f 100%); color: #fff; border-color: #0a1f44;
}
.tip-head { background: linear-gradient(180deg, #1d468f 0%, #0f2c66 50%, #0a1f44 51%, #12336f 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }

/* list items, mini stats */
.g-item { background: linear-gradient(180deg, #fff, #f8faff); box-shadow: inset 0 1px 0 #fff; }
.g-item:hover { border-color: #9db8ef; box-shadow: 0 10px 22px -12px rgba(37,99,235,.45); }
.g-item .thumb { background: linear-gradient(160deg, #eaf0fd, #d6e2fa); color: var(--brand-2); }
.mini-stat { background: linear-gradient(180deg, #ffffff, #f1f5fd); box-shadow: inset 0 1px 0 #fff; }
.mini-stat .v { color: var(--brand); }

/* progress bars: glossy gel */
.progress { background: linear-gradient(180deg, #dbe3f2, #e9eef8); box-shadow: inset 0 1px 2px rgba(10,31,68,.15); }
.progress span, .stack-bar span { background-image: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 60%); }

/* godown cards */
.g-card .cover::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}
.g-card:hover { box-shadow: 0 24px 44px -18px rgba(10,31,68,.5); border-color: #b5c7ee; }
.g-card h3 { color: var(--brand); }
.gallery .main::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
}

/* badges: candy gloss */
.badge { background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(10,31,68,.08); }

/* form */
.input, select.input, textarea.input { background-color: #fff; box-shadow: inset 0 1px 2px rgba(10,31,68,.06); }
.form-section .card-head .n, .form-steps a .n {
  background: linear-gradient(180deg, #2a4f9c 0%, #143a80 50%, #0a1f44 51%, #12336f 100%); color: #fff; border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.form-steps a:hover { background: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(10,31,68,.25); }
.radio-card span { background: linear-gradient(180deg, #fff, #f5f8fe); box-shadow: inset 0 1px 0 #fff; }
.radio-card input:checked + span { background: linear-gradient(180deg, #f3f7ff, #dfe9fc); }
.form-actions { background: rgba(255,255,255,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.9); }
.upload-zone { background: linear-gradient(180deg, #fbfcff, #f1f5fd); }

/* tables */
table.data th { background: linear-gradient(180deg, #f8faff, #edf2fb); color: var(--brand-2); }

/* modal, toast, footer, bottom nav */
.modal { box-shadow: 0 40px 80px -20px rgba(5,15,41,.6), inset 0 1px 0 #fff; }
.modal-head { background: linear-gradient(180deg, #fff, #f3f6fd); }
.toast { background: linear-gradient(180deg, #1b3f86, #0a1f44); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 40px -12px rgba(5,15,41,.6); }
.footer { background: linear-gradient(180deg, #ffffff, #f2f5fc); }
.demo-banner { background: linear-gradient(180deg, #fff8e1, #ffefc2); }
.shutter { background: radial-gradient(circle at 50% 30%, #ffe9a8, #f6b91a 60%, #d99a06); }
.login-card .top .brand-mark { background: linear-gradient(180deg, #2a4f9c 0%, #143a80 50%, #0a1f44 51%, #12336f 100%); }
@media (max-width: 980px) {
  .bottomnav { background: rgba(255,255,255,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .bottomnav a.active { background: linear-gradient(180deg, #eef3ff, #dbe6fc); box-shadow: inset 0 1px 0 #fff; }
}
@media print { .btn::after, .hero::after, .topbar::before { display: none; } }
