/* ===========================================================
   SMART RENT — UI Theme
   =========================================================== */
:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #ec4899;
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --info: #06b6d4;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e7eaf3;
  --bg: #f4f6fc;
  --card: #ffffff;
  --sidebar-w: 268px;
  --radius: 18px;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 20px 45px -15px rgba(79, 70, 229, .35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(236, 72, 153, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-size: .925rem;
}
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: inherit; }
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  position: fixed; inset: 0 auto 0 0; z-index: 1040;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #1e1b4b 0%, #2e1065 55%, #3b0764 100%);
  color: #c7d2fe;
  transition: transform .3s ease;
}
.sidebar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 260px at 0 0, rgba(99, 102, 241, .35), transparent 70%),
              radial-gradient(300px 300px at 100% 100%, rgba(236, 72, 153, .25), transparent 70%);
}
.brand { position: relative; display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.25rem 1rem; }
.brand-mark, .brand-logo {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
}
.brand-mark {
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.05rem;
  background: var(--grad); box-shadow: 0 8px 20px -6px rgba(236, 72, 153, .6);
}
.brand-logo { object-fit: contain; background: #fff; padding: 4px; }
.brand-text { min-width: 0; }
.brand-name { color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 165px; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #a5b4fc; }

.side-nav { position: relative; flex: 1; overflow-y: auto; padding: .25rem .85rem 1rem; }
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 9px; }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #818cf8; margin: 1.1rem .75rem .4rem; font-weight: 700; }
.side-nav .nav-link {
  display: flex; align-items: center; gap: .8rem;
  color: #c7d2fe; padding: .62rem .85rem; border-radius: 12px; font-weight: 500;
  margin-bottom: 2px; transition: all .2s ease;
}
.side-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .9; }
.side-nav .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(3px); }
.side-nav .nav-link.active {
  color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .9), rgba(236, 72, 153, .75));
  box-shadow: 0 8px 22px -8px rgba(236, 72, 153, .7);
}
.nav-logout:hover { background: rgba(244, 63, 94, .2) !important; }
.side-foot { position: relative; padding: .9rem 1.25rem; font-size: .72rem; color: #818cf8; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-backdrop { display: none; }

/* ---------- Main ---------- */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.75rem;
  background: rgba(244, 246, 252, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 234, 243, .8);
}
.topbar-title h1 { font-size: 1.3rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.crumb { font-size: .78rem; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.icon-btn { border: 0; background: #fff; width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow); font-size: 1.35rem; }
.user-chip {
  display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); background: #fff;
  padding: .3rem .75rem .3rem .3rem; border-radius: 999px; box-shadow: var(--shadow);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem;
}
.u-name { display: block; font-weight: 700; font-size: .85rem; line-height: 1.1; }
.u-role { display: block; font-size: .72rem; color: var(--muted); }
.content { padding: 1.5rem 1.75rem; flex: 1; }
.app-footer { display: flex; justify-content: space-between; padding: 1rem 1.75rem; color: var(--muted); font-size: .8rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 11px; font-weight: 600; }
.btn-gradient {
  background: var(--grad); color: #fff; border: 0;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .8);
  background-size: 160% 160%; transition: all .3s ease;
}
.btn-gradient:hover, .btn-gradient:focus { color: #fff; background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(236, 72, 153, .7); }
.btn-soft { background: #eef2ff; color: var(--primary); border: 0; }
.btn-soft:hover { background: #e0e7ff; color: #4338ca; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.btn-icon.edit { background: #eef2ff; color: var(--primary); }
.btn-icon.view { background: #ecfeff; color: #0891b2; }
.btn-icon.del { background: #fff1f2; color: var(--danger); }
.btn-icon:hover { filter: brightness(.95); transform: translateY(-1px); }

/* ---------- Cards ---------- */
.card-modern {
  background: var(--card); border: 1px solid rgba(231, 234, 243, .9);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-modern .card-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line);
}
.card-head h5 { margin: 0; font-weight: 700; font-size: 1.02rem; }
.card-head .sub { color: var(--muted); font-size: .8rem; }
.card-modern .card-body { padding: 1.35rem; }

.stat-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.25rem 1.35rem;
  color: #fff; min-height: 132px; box-shadow: var(--shadow-lg);
  transition: transform .25s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.stat-card::before {
  content: ""; position: absolute; right: 30px; bottom: -60px; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.stat-card .s-label { padding-right: 52px; position: relative; z-index: 1; font-size: .8rem; opacity: .9; font-weight: 600; letter-spacing: .02em; }
.stat-card .s-value { font-size: 1.6rem; font-weight: 800; margin: .35rem 0 .25rem; letter-spacing: -.02em; position: relative; z-index: 1; }
.stat-card .s-foot { font-size: .76rem; opacity: .9; position: relative; z-index: 1; }
.stat-card .s-icon {
  position: absolute; right: 1.1rem; top: 1.1rem; width: 46px; height: 46px; border-radius: 14px; z-index: 1;
  display: grid; place-items: center; font-size: 1.35rem; background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.g-income { background: linear-gradient(135deg, #059669, #10b981 55%, #34d399); }
.g-expense { background: linear-gradient(135deg, #e11d48, #f43f5e 55%, #fb7185); }
.g-balance { background: linear-gradient(135deg, #4f46e5, #7c3aed 55%, #a855f7); }
.g-due { background: linear-gradient(135deg, #d97706, #f59e0b 55%, #fbbf24); }
.g-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4 55%, #22d3ee); }

.mini-stat { display: flex; align-items: center; gap: .9rem; }
.mini-stat .m-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.mini-stat .m-val { font-weight: 800; font-size: 1.15rem; }
.mini-stat .m-lbl { color: var(--muted); font-size: .78rem; }
.bg-soft-primary { background: #eef2ff; color: var(--primary); }
.bg-soft-success { background: #ecfdf5; color: var(--success); }
.bg-soft-danger { background: #fff1f2; color: var(--danger); }
.bg-soft-warning { background: #fffbeb; color: var(--warning); }
.bg-soft-info { background: #ecfeff; color: #0891b2; }

/* ---------- Tables ---------- */
.table-modern { margin: 0; }
.table-modern thead th {
  background: #f8f9fe; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; border-bottom: 1px solid var(--line); padding: .85rem 1rem; white-space: nowrap;
}
.table-modern tbody td { padding: .85rem 1rem; vertical-align: middle; border-color: #f1f3f9; }
.table-modern tbody tr { transition: background .15s; }
.table-modern tbody tr:hover { background: #fafaff; }
.table-modern tfoot td { padding: .85rem 1rem; font-weight: 700; background: #f8f9fe; }
.t-name { font-weight: 700; }
.t-sub { color: var(--muted); font-size: .78rem; }
.amount-in { color: var(--success); font-weight: 700; white-space: nowrap; }
.amount-out { color: var(--danger); font-weight: 700; white-space: nowrap; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; }
.cust-avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  color: #fff; background: var(--grad); flex-shrink: 0;
}

.badge-soft { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.badge-soft-success { background: #d1fae5; color: #047857; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-danger { background: #ffe4e6; color: #be123c; }
.badge-soft-primary { background: #e0e7ff; color: #4338ca; }
.badge-soft-secondary { background: #f1f5f9; color: #475569; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .82rem; color: #334155; margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: 11px; border-color: #dfe3ee; padding: .6rem .85rem; font-size: .9rem;
}
.form-control:focus, .form-select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 .22rem rgba(99, 102, 241, .15); }
.input-group-text { border-radius: 11px; background: #f8f9fe; border-color: #dfe3ee; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 2.3rem; min-width: 220px; }
.modal-content { border-radius: 20px; border: 0; }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; }
.modal-header .modal-title { font-weight: 700; }
.modal-header.grad { background: var(--grad); color: #fff; border-radius: 20px 20px 0 0; }
.modal-header.grad .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #fff1f2; color: var(--danger); }

.alert-modern { border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: .6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.segmented { display: inline-flex; background: #eef0f8; border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.segmented a { padding: .45rem .95rem; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .84rem; }
.segmented a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

.progress-thin { height: 7px; border-radius: 9px; background: #eef0f8; }
.progress-thin .progress-bar { border-radius: 9px; }

/* ---------- Logo preview ---------- */
.logo-preview {
  width: 120px; height: 120px; border-radius: 20px; border: 2px dashed #c7d2fe; background: #f8f9fe;
  display: grid; place-items: center; overflow: hidden;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-preview {
  border-radius: var(--radius); padding: 1.5rem; color: #fff;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 60%, #9d174d);
}

/* ---------- Invoice ---------- */
.invoice-paper { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.25rem; position: relative; overflow: hidden; }
.invoice-paper::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--grad); }
.inv-title { font-size: 2rem; font-weight: 800; letter-spacing: .05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inv-logo { max-height: 70px; max-width: 180px; object-fit: contain; }
.inv-box { background: #f8f9fe; border-radius: 14px; padding: 1rem 1.2rem; }
.inv-total-row td { font-size: 1.05rem; }
.items-table td { padding: .5rem .4rem; }
.items-table input { min-width: 80px; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, #1e1b4b 0%, #4c1d95 50%, #be185d 100%);
}
.auth-hero .blob { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .55; animation: float 9s ease-in-out infinite; }
.auth-hero .b1 { width: 320px; height: 320px; background: #6366f1; top: -80px; right: -60px; }
.auth-hero .b2 { width: 260px; height: 260px; background: #ec4899; bottom: -70px; left: -50px; animation-delay: -3s; }
.auth-hero .b3 { width: 160px; height: 160px; background: #06b6d4; top: 45%; left: 55%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, -25px) scale(1.07); } }
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero h2 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero-feature { display: flex; gap: .75rem; align-items: center; margin-bottom: .9rem; }
.hero-feature i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); }
.auth-form { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .form-control { padding: .8rem 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); box-shadow: 0 0 60px rgba(0, 0, 0, .35); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; backdrop-filter: blur(2px); }
  .main { margin-left: 0; }
  .topbar { padding: .75rem 1rem; }
  .content { padding: 1rem; }
  .app-footer { padding: 1rem; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 575.98px) {
  .topbar-title h1 { font-size: 1.1rem; }
  .crumb { display: none; }
  .stat-card .s-value { font-size: 1.2rem; }
  .stat-card { padding: 1rem; min-height: 120px; }
  .stat-card .s-icon { width: 34px; height: 34px; font-size: 1rem; border-radius: 10px; right: .75rem; top: .75rem; }
  .stat-card .s-label { padding-right: 38px; font-size: .74rem; }
  .card-modern .card-head, .card-modern .card-body { padding: 1rem; }
  .search-box input { min-width: 0; width: 100%; }
  .search-box { width: 100%; }
  .invoice-paper { padding: 1.25rem; }
  .inv-title { font-size: 1.5rem; }
  .table-modern thead th, .table-modern tbody td { padding: .7rem .65rem; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .app-footer, .no-print, .sidebar-backdrop, .alert { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff !important; font-size: 12px; }
  .card-modern, .invoice-paper { box-shadow: none !important; border: 0 !important; }
  .stat-card { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .invoice-paper::before, .badge-soft, .table-modern thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit !important; }
}

/* ===========================================================
   v1.1 — Bilingual customer form & profile
   =========================================================== */
.bn, .bn-font, .sec-bn { font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif; }
.bl-label { display: block; line-height: 1.25; }
.bl-label .bn, .fam-table th .bn, .info-lbl .bn, .tick-option .bn {
  display: block; font-weight: 500; font-size: .8rem; color: #7c3aed; margin-top: 1px; text-transform: none; letter-spacing: 0;
}
.lang-note {
  margin-left: auto; font-size: .82rem; color: #4338ca; background: #eef2ff; border: 1px solid #e0e7ff;
  padding: .45rem .9rem; border-radius: 999px;
}
.form-section { overflow: hidden; }
.form-section-head {
  display: flex; align-items: center; gap: .75rem; padding: 1rem 1.35rem;
  background: linear-gradient(90deg, #eef2ff 0%, #fdf2f8 100%); border-bottom: 1px solid var(--line);
}
.form-section-head > i { font-size: 1.3rem; color: var(--primary); }
.sec-num {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 6px 14px -6px rgba(236, 72, 153, .7);
}
.sec-en { font-weight: 800; font-size: 1rem; line-height: 1.1; }
.sec-bn { font-size: .85rem; color: #7c3aed; font-weight: 600; }

/* Tick option (radio as check cards) */
.tick-group { display: flex; gap: .6rem; flex-wrap: wrap; }
.tick-option {
  flex: 1; min-width: 130px; display: flex; align-items: center; gap: .6rem; cursor: pointer;
  border: 1.5px solid #dfe3ee; border-radius: 12px; padding: .5rem .8rem; font-weight: 600; background: #fff; transition: all .2s;
}
.tick-option input { position: absolute; opacity: 0; pointer-events: none; }
.tick-box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c7d2fe; display: grid; place-items: center;
  color: transparent; flex-shrink: 0; transition: all .2s;
}
.tick-option:hover { border-color: #a5b4fc; }
.tick-option:has(input:checked) { border-color: var(--primary); background: #eef2ff; box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .12); }
.tick-option input:checked + .tick-box { background: var(--grad); border-color: transparent; color: #fff; }
.tick-option input:focus-visible + .tick-box { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Upload boxes */
.upload-drop {
  display: grid; place-items: center; width: 100%; height: 190px; cursor: pointer; overflow: hidden;
  border: 2px dashed #c7d2fe; border-radius: 16px; background: #f8f9fe; transition: all .2s; text-align: center;
}
.upload-drop:hover { border-color: var(--primary); background: #eef2ff; }
.upload-drop img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.upload-ph { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.upload-ph i { font-size: 2.1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.upload-ph small { font-family: 'Hind Siliguri', sans-serif; font-weight: 500; }
[data-upload]:has(#f_photo) .upload-drop { height: 225px; }

/* Family table */
.fam-table thead th { font-size: .78rem; font-weight: 700; color: #334155; border-bottom: 2px solid var(--line); background: #f8f9fe; vertical-align: top; }
.fam-table td { padding: .45rem .35rem; }
.fam-table .sl { color: var(--primary); }

.form-actions {
  position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap;
  margin: 1.5rem -1.75rem -1.5rem; padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}

/* Profile view */
.profile-hero {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: #fff; border-radius: var(--radius); padding: 1.75rem;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #be185d); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.profile-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -60px; top: -90px; background: rgba(255, 255, 255, .08); }
.profile-photo {
  width: 112px; height: 112px; border-radius: 24px; overflow: hidden; flex-shrink: 0; border: 4px solid rgba(255, 255, 255, .35);
  background: var(--grad); display: grid; place-items: center; font-size: 2.2rem; font-weight: 800;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-stats { display: flex; gap: 1.75rem; position: relative; z-index: 1; }
.info-item { background: #f8f9fe; border-radius: 12px; padding: .7rem .9rem; height: 100%; }
.info-lbl { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-lbl .bn { font-size: .78rem; }
.info-val { font-weight: 600; margin-top: .25rem; word-break: break-word; }
.nid-img { display: grid; place-items: center; height: 200px; border-radius: 14px; overflow: hidden; background: #f8f9fe; border: 1px solid var(--line); }
.nid-img img { width: 100%; height: 100%; object-fit: contain; }
.nid-img.empty { color: var(--muted); font-size: .85rem; gap: .3rem; }

@media (max-width: 991.98px) {
  .form-actions { margin: 1.25rem -1rem -1rem; padding: .8rem 1rem; }
}
@media (max-width: 575.98px) {
  .lang-note { margin-left: 0; width: 100%; border-radius: 12px; }
  .form-actions .btn { flex: 1; font-size: .82rem; padding: .6rem .5rem; white-space: nowrap; }
  .form-actions .btn .bi { display: none; }
  .profile-hero { padding: 1.25rem; gap: 1rem; }
  .profile-photo { width: 84px; height: 84px; }
  .profile-stats { gap: 1rem; width: 100%; }
}
@media print {
  .profile-hero, .form-section-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
  .form-actions { display: none !important; }
  .info-item { padding: .4rem .6rem; }
  .form-section { break-inside: avoid; margin-bottom: 1rem !important; }
}

/* ===========================================================
   v1.2 — Flat Or Shop
   =========================================================== */
.min-w-0 { min-width: 0; }
.prop-card {
  position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1px solid rgba(231, 234, 243, .9); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.prop-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; }
.prop-card.occ::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.prop-card.vac::before { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prop-top { display: flex; align-items: center; gap: .8rem; padding: 1.15rem 1.2rem .6rem; }
.prop-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--grad); flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(139, 92, 246, .8); }
.prop-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.prop-no { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-no:hover { color: var(--primary); }
.prop-meta { padding: 0 1.2rem .8rem; font-size: .84rem; color: #475569; display: grid; gap: .25rem; }
.prop-meta i { color: #a5b4fc; margin-right: .4rem; }
.prop-tenant { margin: 0 1.2rem; padding: .75rem .85rem; background: #f8f9fe; border-radius: 14px; min-height: 62px; display: flex; align-items: center; }
.prop-actions { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.2rem 1.1rem; margin-top: auto; }
.profile-photo > i { font-size: 2.6rem; }

/* ===========================================================
   v1.3 — Police form "P" button
   =========================================================== */
.btn-icon.btn-police {
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8);
}
.btn-icon.btn-police:hover { color: #fff; filter: brightness(1.1); }
.p-badge {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: .9rem;
  background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; vertical-align: middle;
}
.btn-police-lg { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; display: inline-flex; align-items: center; gap: .5rem; }
.btn-police-lg:hover { background: #dbeafe; color: #1e3a8a; }
.btn-police-lg .p-badge { width: 24px; height: 24px; }

/* v1.5 — electric meter block */
.meter-head {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .9rem; border-radius: 12px;
  background: linear-gradient(90deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; color: #92400e;
}
.meter-head > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #f97316); flex-shrink: 0; }
.meter-head .bn-font { color: #b45309; }

/* v1.6 — WhatsApp */
.btn-whatsapp { background: #25d366; color: #fff; border: 0; box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .8); }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5b; color: #fff; }
.btn-icon.btn-wa { background: #dcfce7; color: #16a34a; }
.btn-icon.btn-wa:hover { background: #25d366; color: #fff; }
.wa-head { background: linear-gradient(135deg, #128c7e, #25d366); color: #fff; border-radius: 20px 20px 0 0; }
#waText { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Hind Siliguri', monospace; font-size: .85rem; }

/* v1.8 — Active / Inactive toggle */
.status-toggle {
  display: inline-flex; align-items: center; gap: .45rem; border: 0; cursor: pointer; border-radius: 999px;
  padding: .22rem .7rem .22rem .25rem; font-size: .74rem; font-weight: 700; transition: all .2s;
}
.status-toggle .knob { width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: all .2s; }
.status-toggle.on { background: linear-gradient(135deg, #10b981, #34d399); color: #fff; }
.status-toggle.off { background: #e2e8f0; color: #475569; flex-direction: row-reverse; padding: .22rem .25rem .22rem .7rem; }
.status-toggle:hover { filter: brightness(1.05); transform: translateY(-1px); }
.seg-count { display: inline-block; min-width: 20px; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: rgba(99,102,241,.12); font-size: .72rem; }
.segmented a.active .seg-count { background: #eef2ff; }
