:root { --primary: #0b6bcb; }
* { box-sizing: border-box; }
body { font-family: system-ui, Arial, sans-serif; background: #f4f6f8; margin: 0; color: #1f2933; }
.card { max-width: 400px; margin: 48px auto; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
h1 { margin: 0 0 18px; font-size: 22px; }
label { display: block; margin: 12px 0 4px; font-size: 14px; }
input, select { width: 100%; padding: 10px; border: 1px solid #cbd2d9; border-radius: 6px; font-size: 15px; }
button { width: 100%; margin-top: 18px; padding: 11px; background: var(--primary); color: #fff; border: 0; border-radius: 6px; font-size: 16px; cursor: pointer; }
button.secondary { background: #e4e7eb; color: #1f2933; }
.error { background: #fde8e8; color: #b42318; padding: 10px; border-radius: 6px; margin-top: 14px; display: none; font-size: 14px; }
.hint { margin-top: 16px; font-size: 14px; text-align: center; }
a { color: var(--primary); }
.row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eef0f2; font-size: 15px; }

/* ---- Step 3: dashboard aur property form ---- */
.wide { max-width: 900px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.topbar h1 { margin: 0; }
.actions { display: flex; gap: 8px; }
.actions a, .actions button, .btn { width: auto; margin: 0; padding: 9px 14px; font-size: 14px; border-radius: 6px; text-decoration: none; display: inline-block; cursor: pointer; border: 0; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-light { background: #e4e7eb; color: #1f2933; }
.btn-danger { background: #fde8e8; color: #b42318; }
.prop { border: 1px solid #e4e7eb; border-radius: 8px; padding: 14px; margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prop h3 { margin: 0 0 4px; font-size: 17px; }
.prop .meta { font-size: 14px; color: #52606d; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.badge.active { background: #def7ec; color: #046c4e; }
.badge.inactive { background: #e4e7eb; color: #52606d; }
.empty { text-align: center; color: #52606d; padding: 28px 0; }
textarea { width: 100%; padding: 10px; border: 1px solid #cbd2d9; border-radius: 6px; font-size: 15px; font-family: inherit; min-height: 90px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.success { background: #def7ec; color: #046c4e; padding: 10px; border-radius: 6px; margin-top: 14px; display: none; font-size: 14px; }

/* ---- Step 4: search page ---- */
.nav { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.nav-inner { max-width: 900px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.nav-inner a.brand { font-weight: 700; font-size: 18px; text-decoration: none; color: #1f2933; }
.nav-links a { margin-left: 14px; font-size: 14px; }
.page { max-width: 900px; margin: 20px auto; padding: 0 16px; }
.panel { background: #fff; padding: 18px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px; }
.filters label { margin: 0 0 4px; }
.filters .btns { display: flex; gap: 8px; align-items: end; }
.filters .btns button { margin: 0; width: auto; padding: 10px 16px; font-size: 15px; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } }
.summary { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 4px; font-size: 15px; }
.summary select { width: auto; padding: 6px; }
.result { text-decoration: none; color: inherit; }
.result:hover { border-color: var(--primary); }
.price { font-size: 18px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 20px 0; font-size: 14px; }
.pager button { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; }
.pager button:disabled { opacity: .4; cursor: default; }
.detail h1 { font-size: 24px; }
.detail .price { font-size: 24px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 18px 0; }
.detail-grid .row { border: 0; padding: 4px 0; }
.desc { white-space: pre-wrap; line-height: 1.5; margin-top: 8px; }

/* ---- Map ---- */
.map { height: 320px; border-radius: 8px; margin-top: 8px; border: 1px solid #cbd2d9; z-index: 0; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.map-tools .btn { font-size: 13px; padding: 7px 12px; }
.pin-info { font-size: 13px; color: #52606d; margin-top: 6px; }
.maplink { display: inline-block; margin-top: 8px; font-size: 14px; }

/* ---- Photos ---- */
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #e4e7eb; flex: none; }
.prop-left { display: flex; gap: 12px; align-items: center; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.ph { position: relative; width: 104px; height: 82px; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid #cbd2d9; }
.ph .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; padding: 0; margin: 0; border-radius: 50%; background: #b42318; color: #fff; font-size: 13px; line-height: 1; }
.ph .tag { position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.ph .mk { position: absolute; bottom: 4px; left: 4px; width: auto; margin: 0; padding: 1px 6px; font-size: 11px; border-radius: 4px; background: rgba(255,255,255,.92); color: #1f2933; }
.gallery-main { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-top: 12px; background: #e4e7eb; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb:hover { border-color: var(--primary); }

/* ---- Enquiry ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enq-form { max-width: 460px; }
.enq-msg { margin-top: 6px; font-size: 14px; white-space: pre-wrap; }
.enq-contact a { margin-right: 14px; font-weight: 600; }
.count-badge { background: #e8f1fc; color: var(--primary); }

/* ---- Admin panel ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; background: #e4e7eb; color: #1f2933; }
.tabs button.on { background: var(--primary); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #f4f6f8; padding: 14px; border-radius: 8px; font-size: 14px; color: #52606d; }
.stat b { display: block; font-size: 26px; color: #1f2933; }
.scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { text-align: left; padding: 8px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
.t th { color: #52606d; font-weight: 600; white-space: nowrap; }
.t .btn { padding: 5px 10px; font-size: 13px; margin-right: 4px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; flex: 1; min-width: 160px; padding: 8px; }

/* ---- Profile edit ---- */
input[readonly] { background: #f4f6f8; color: #52606d; }
dialog { border: 0; border-radius: 10px; padding: 22px; width: 92%; max-width: 380px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.4); }
dialog h2 { margin: 0 0 6px; font-size: 18px; }
.dlg-btns { display: flex; gap: 8px; margin-top: 16px; }
.dlg-btns button { margin: 0; }
.section-title { font-size: 17px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid #eef0f2; }

/* ---- Broker profile ---- */
.vbadge { display: inline-block; background: #def7ec; color: #046c4e; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
.pbadge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: #e4e7eb; border: 1px solid #cbd2d9; flex: none; }
.avatar.sm { width: 48px; height: 48px; }
.avatar-ph { display: flex; align-items: center; justify-content: center; font-size: 30px; color: #7b8794; }
.broker-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.broker-head h1 { margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #e8f1fc; color: var(--primary); font-size: 13px; padding: 3px 10px; border-radius: 12px; }
.btn-wa { background: #25d366; color: #fff; }
.photo-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.photo-row .btn { font-size: 13px; padding: 7px 12px; }
.checkrow { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.checkrow input { width: auto; }
.brokercard { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px; border: 1px solid #e4e7eb; border-radius: 8px; text-decoration: none; color: inherit; }
.brokercard:hover { border-color: var(--primary); }

/* ---- Label aur value paas-paas ---- */
.detail-grid .row, .kv { justify-content: flex-start; gap: 8px; }
.kv { display: flex; border: 0; padding: 4px 0; font-size: 15px; }
.kv span::after { content: ':'; }
.kv span { color: #52606d; }

/* ---- Map search bar ---- */
.mapsearch { display: flex; gap: 8px; margin-top: 4px; }
.mapsearch input { flex: 1; }
.mapsearch button { width: auto; margin: 0; padding: 9px 16px; font-size: 14px; }
.map-results { margin-top: 6px; }
.map-results button { display: block; width: 100%; margin: 4px 0 0; padding: 7px 10px; font-size: 13px; text-align: left; background: #f4f6f8; color: #1f2933; }
.map-results button:hover { background: #e8f1fc; }

/* ---- Area chips (highlight) ---- */
button.chip { width: auto; margin: 0; border: 0; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--primary); color: #fff; }
.chip small { opacity: .8; margin-left: 4px; }

/* ---- Captcha, footer, badges, naye details ---- */
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row input { flex: 1; max-width: 160px; }
.captcha-row button { width: auto; margin: 0; padding: 8px 12px; font-size: 13px; }
.notice { font-size: 12.5px; color: #52606d; margin-top: 12px; line-height: 1.5; }
.footer { text-align: center; font-size: 13px; color: #52606d; margin: 34px 0 24px; }
.footer a { margin: 0 8px; }
.obadge { display: inline-block; background: #e0f2fe; color: #075985; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; white-space: nowrap; }
.banner { background: #fef3c7; color: #92400e; padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; display: none; }
.banner button { width: auto; margin: 8px 0 0; padding: 6px 12px; font-size: 13px; background: #92400e; display: block; }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; margin-top: 8px; }
.fac-grid label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.fac-grid input { width: auto; }
.chip.fac { background: #f0fdf4; color: #166534; }
.ownercard { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 12px; border: 1px solid #e4e7eb; border-radius: 8px; }
.danger { border: 1px solid #fecaca; background: #fef2f2; border-radius: 8px; padding: 14px; margin-top: 8px; }
.danger button { background: #b42318; }
.legal { max-width: 760px; }
.legal h2 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { line-height: 1.65; font-size: 15px; }
.legal .todo { background: #fef3c7; color: #92400e; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .draftnote { background: #fef3c7; border-radius: 8px; padding: 12px 14px; font-size: 14px; color: #92400e; }


/* ================= Home page ================= */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; margin-right: 8px; border-radius: 4px; }
.announce { background: var(--primary); color: #fff; text-align: center; padding: 8px 14px; font-size: 14px; }
.announce a { color: #fff; text-decoration: underline; }

.hero { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--primary), #0f172a); color: #fff; }
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.3s ease; }
.hero-slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
.hero-shade { background: linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.35) 45%, rgba(15,23,42,.7)); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; padding: 40px 18px; text-align: center; }
.hero-content h1 { font-size: 34px; margin: 0 0 8px; line-height: 1.25; animation: fadeUp .9s ease both; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-content p { margin: 0 0 22px; font-size: 17px; opacity: .95; animation: fadeUp .9s .15s ease both; }
.hero-search { background: #fff; color: #1f2933; border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 130px 1fr 1fr 150px 130px; gap: 10px; text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.3); animation: fadeUp .9s .3s ease both; }
.hero-search label { margin: 0 0 3px; font-size: 12px; color: #52606d; }
.hero-search input, .hero-search select { padding: 10px; }
.hero-search button { margin: 0; align-self: end; padding: 11px; }
.hero-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: rgba(255,255,255,.4); }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; margin: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-dots button.on { background: #fff; width: 26px; border-radius: 6px; transition: width .3s; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.13); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes shine { from { left: -80%; } to { left: 130%; } }

.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 22px 0 6px; }
.cat { background: #fff; border-radius: 12px; padding: 16px 10px; text-align: center; text-decoration: none; color: #1f2933; box-shadow: 0 2px 10px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.cat .ic { font-size: 28px; }
.cat b { display: block; margin-top: 6px; } .cat small { color: #52606d; }
.home-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 270px; gap: 20px; margin: 20px 0; align-items: start; }
.side-box, .home-box { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 16px; }
.side-box h3, .home-box h2 { margin: 0 0 10px; font-size: 16px; }
.home-box h2 { font-size: 19px; }
.flist a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: #1f2933; font-size: 14px; transition: background .2s, padding-left .2s; }
.flist a:hover { background: #eef4fb; padding-left: 12px; color: var(--primary); }
.flist small { color: #7b8794; }
.flist-title { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #7b8794; margin: 12px 0 2px; }

.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lcard { display: block; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s; }
.lcard:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.lph { position: relative; height: 160px; overflow: hidden; background: #e4e7eb; }
.lph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lcard:hover .lph img { transform: scale(1.1); }
.lph::after { content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); pointer-events: none; }
.lcard:hover .lph::after, .fslide:hover .lph::after { animation: shine .9s ease; }
.lph-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: #9aa5b1; font-size: 13px; }
.lbadges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.lbadges span { margin: 0; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.lprice { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 10px 7px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-weight: 700; z-index: 2; }
.lbody { padding: 10px 12px 12px; }
.lbody h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.lbody .meta { font-size: 13px; color: #52606d; }

.fslider { position: relative; margin-bottom: 16px; }
.ftrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 12px; scrollbar-width: none; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.ftrack::-webkit-scrollbar { display: none; }
.fslide { flex: 0 0 100%; scroll-snap-align: start; position: relative; display: block; text-decoration: none; color: #fff; }
.fslide .lph { height: 300px; background: #1f2933; }
.fslide .lph img { transition: transform 1.2s ease; }
.fslide:hover .lph img { transform: scale(1.06); }
.fcap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.fcap h3 { margin: 0 0 3px; font-size: 21px; } .fcap div { font-size: 14px; opacity: .95; }
.fcap .fp { font-size: 20px; font-weight: 700; margin-top: 6px; }
.fnav { position: absolute; top: 50%; z-index: 4; transform: translateY(-50%); width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #1f2933; font-size: 20px; }
.fnav.prev { left: 10px; } .fnav.next { right: 10px; }

.brk { display: flex; gap: 10px; align-items: center; padding: 8px 4px; text-decoration: none; color: inherit; border-radius: 8px; transition: background .2s; }
.brk:hover { background: #eef4fb; }
.brk .avatar { width: 44px; height: 44px; }
.brk b { display: block; font-size: 14px; } .brk small { color: #52606d; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 26px; }
.stats div { background: var(--primary); color: #fff; border-radius: 12px; padding: 18px 10px; text-align: center; }
.stats b { display: block; font-size: 28px; }
.footer-contact { margin-bottom: 8px; line-height: 1.7; }
.footer-contact a { margin: 0 6px; }

@media (max-width: 1050px) { .home-grid { grid-template-columns: 220px minmax(0, 1fr); } #colRight { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } }
@media (max-width: 800px) {
  .hero { min-height: 520px; } .hero-content h1 { font-size: 25px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  #colCenter { order: 1; } #colLeft { order: 2; } #colRight { order: 3; }
  .fslide .lph { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide.on, .hero-content h1, .hero-content p, .hero-search, .lcard:hover .lph::after, .fslide:hover .lph::after { animation: none !important; } .lph img, .lcard, .cat { transition: none !important; } }

/* ---- Admin design panel ---- */
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dpanel { border: 1px solid #e4e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.dpanel h3 { margin: 0 0 6px; }
.slide-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.slide-grid .ph { width: 130px; height: 80px; }
.sec-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.sec-row input[type=text] { flex: 1; } .sec-row input[type=checkbox] { width: auto; }
.sec-row .btn { padding: 5px 10px; font-size: 13px; margin: 0; }
.colorrow { display: flex; gap: 10px; align-items: center; } .colorrow input[type=color] { width: 56px; height: 40px; padding: 2px; }
@media (max-width: 700px) { .dgrid { grid-template-columns: 1fr; } }

/* ================= CRM ================= */
.crm-wrap { max-width: 1240px; margin: 18px auto; padding: 0 16px; }
.crm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.crm-head h1 { margin: 0; font-size: 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.07); cursor: default; }
.kpi.click { cursor: pointer; } .kpi.click:hover { box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.kpi b { display: block; font-size: 26px; } .kpi small { color: #52606d; }
.kpi.red b { color: #b42318; } .kpi.green b { color: #046c4e; }
.card2 { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 16px; }
.card2 h2 { margin: 0 0 10px; font-size: 17px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters-bar input, .filters-bar select { width: auto; padding: 8px; min-width: 130px; }
.sbadge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.s-new { background: #e0f2fe; color: #075985; } .s-contacted { background: #ede9fe; color: #5b21b6; }
.s-visit_scheduled { background: #fef3c7; color: #92400e; } .s-visit_done { background: #ffedd5; color: #9a3412; }
.s-negotiation { background: #fce7f3; color: #9d174d; } .s-won { background: #def7ec; color: #046c4e; } .s-lost { background: #e4e7eb; color: #52606d; }
.pri { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.pri-hot { background: #dc2626; } .pri-warm { background: #f59e0b; } .pri-cold { background: #60a5fa; }
.late { color: #b42318; font-weight: 600; }
.task { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid #eef0f2; }
.task:last-child { border-bottom: 0; }
.task .when { min-width: 120px; font-size: 13px; } .task .who { flex: 1; min-width: 180px; }
.task .who small { display: block; color: #52606d; }
.mini { padding: 5px 10px; font-size: 13px; width: auto; margin: 0; border-radius: 6px; text-decoration: none; display: inline-block; cursor: pointer; border: 0; }
.mini.call { background: #e0f2fe; color: #075985; } .mini.wa { background: #25d366; color: #fff; }
.mini.ok { background: #def7ec; color: #046c4e; } .mini.gray { background: #e4e7eb; color: #1f2933; } .mini.red { background: #fde8e8; color: #b42318; }
.bulkbar { display: none; gap: 8px; align-items: center; flex-wrap: wrap; background: #eef4fb; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.bulkbar select { width: auto; padding: 6px; }
tr.row-click { cursor: pointer; } tr.row-click:hover { background: #f4f8fd; }
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kcol { min-width: 240px; max-width: 240px; background: #eef0f3; border-radius: 10px; padding: 8px; }
.kcol h3 { font-size: 14px; margin: 4px 4px 8px; display: flex; justify-content: space-between; }
.kcol.over { outline: 2px dashed var(--primary); background: #e3edf9; }
.kcard { background: #fff; border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: grab; font-size: 13px; }
.kcard b { display: block; } .kcard small { color: #52606d; display: block; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; display: none; }
.drawer { position: fixed; top: 0; right: 0; width: min(540px, 100%); height: 100%; background: #fff; z-index: 50; box-shadow: -8px 0 30px rgba(0,0,0,.28); transform: translateX(100%); transition: transform .25s; overflow-y: auto; padding: 18px; }
.drawer.open { transform: none; }
.drawer h2 { margin: 0; font-size: 20px; }
.drawer .sec { border-top: 1px solid #eef0f2; margin-top: 16px; padding-top: 12px; }
.drawer .sec h3 { margin: 0 0 8px; font-size: 15px; }
.drawer label { font-size: 13px; margin-top: 8px; }
.drawer button.primary { margin-top: 10px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips2 { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chips2 button { width: auto; margin: 0; padding: 4px 10px; font-size: 12px; background: #e8f1fc; color: var(--primary); border-radius: 12px; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { padding: 7px 0 7px 14px; border-left: 3px solid #e4e7eb; margin-left: 4px; font-size: 14px; }
.tl li small { color: #7b8794; display: block; }
.tl li.k-call, .tl li.k-whatsapp, .tl li.k-email { border-color: #60a5fa; } .tl li.k-status { border-color: #a78bfa; }
.tl li.k-followup, .tl li.k-followup_done { border-color: #f59e0b; } .tl li.k-visit, .tl li.k-meeting { border-color: #34d399; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; }
.bar-row .lab { width: 130px; flex: none; } .bar-row .bar { flex: 1; background: #eef0f3; border-radius: 6px; height: 14px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; } .bar-row .n { width: 42px; text-align: right; flex: none; }
.legend { font-size: 13px; margin-bottom: 6px; } .legend i { display: inline-block; width: 12px; height: 4px; margin: 0 6px 2px 12px; border-radius: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.pnums{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:center}
.pager .pnum{min-width:38px}
.pager .pnum.on{background:#4338ca;color:#fff}
.pgap{padding:0 2px;color:#889}

/* iPhone: 16px se chhota input font hone par Safari page zoom kar deta hai */
@media (max-width: 768px) { input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; } }
