/* நம்ம நாகூர் – App styles */
:root {
  --green: #0F5132; --green-d: #0B3B25; --green-t: #E8F1EC;
  --gold: #FFC93C; --gold-d: #D4A23A; --gold-t: #FFF6DB;
  --ink: #1B1F1C; --ink2: #3D4541; --muted: #5B6560; --line: #E4E1D8;
  --bg: #F6F4EE; --card: #FFFFFF;
  --red: #B42318; --red-d: #8A1C12; --red-t: #FDECEA;
  --wa: #E3F6EA; --wa-d: #0F5132;
  --r: 18px; --r-s: 12px;
  --shadow: 0 6px 20px rgba(15, 81, 50, .12);
  --font: 'Noto Sans Tamil', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --disp: 'Baloo Thambi 2', 'Noto Sans Tamil', system-ui, sans-serif;
  --nav-h: 68px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body { margin: 0; background: #E9E6DD; color: var(--ink); font-family: var(--font); font-size: .88rem; line-height: 1.45; }
a { color: var(--green); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); box-shadow: 0 0 40px rgba(0,0,0,.06); }
.page { padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; margin: 0; }
.center { text-align: center; }
.row { display: flex; align-items: center; } .gap { gap: 8px; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.small { font-size: .8rem; margin: 0; color: var(--ink2); }
.note { font-size: .72rem; color: var(--muted); margin: 0; }
.note a { color: var(--muted); text-decoration: underline; }
.boot { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--disp); font-size: 1.6rem; color: var(--green); }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-ic.big { width: 72px; height: 72px; border-radius: 22px; }
.brand-name { font-family: var(--disp); font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; letter-spacing: -.5px; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-name.xl { font-size: 2.4rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: none; background: var(--green); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; }
.btn.sm { min-height: 42px; padding: 0 12px; font-size: .78rem; border-radius: 12px; }
.btn.big { min-height: 54px; font-size: .95rem; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost.indigo { color: #3730A3; border-color: #3730A3; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn.wa { background: var(--wa); color: var(--wa-d); border: 1.5px solid #1F7A4D; }
.btn.red { background: var(--red); }
.btn.redline { background: #fff; color: var(--red-d); border: 1.5px solid var(--red); }
.btn:disabled { opacity: .6; }
.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: none; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink); }
.iconbtn.light { background: rgba(255,255,255,.16); color: #fff; }
.iconbtn.solid { border-radius: 14px; }
.iconbtn.float { position: absolute; top: calc(14px + env(safe-area-inset-top)); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.iconbtn.float.l { left: 14px; } .iconbtn.float.r { right: 14px; }
.linkbtn { background: none; border: none; padding: 0; color: var(--gold); font-weight: 700; font-size: .75rem; text-align: left; }
.center-link { display: block; text-align: center; font-weight: 700; padding: 10px; }

/* Home header */
.hhead { background: var(--green); padding: calc(16px + env(safe-area-inset-top)) 16px 62px; border-radius: 0 0 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.hhead-row { display: flex; justify-content: space-between; align-items: center; }
.searchbar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 6px 0 14px; height: 52px; }
.searchbar.boxed { border: 1px solid var(--line); }
.searchbar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: .85rem; color: var(--ink); }
.mic-btn { height: 40px; padding: 0 10px; border-radius: 12px; background: var(--gold); display: inline-flex; align-items: center; gap: 4px; color: var(--green-d); font-weight: 700; font-size: .72rem; flex-shrink: 0; }

.catgrid-card { margin: -46px 16px 0; background: #fff; border-radius: 22px; padding: 12px 6px; box-shadow: var(--shadow); position: relative; }
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 4px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; min-height: 84px; color: var(--ink); }
.cat-ic { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.06); }
.i3d { display: block; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); flex-shrink: 0; }
.cat-l { font-size: .7rem; font-weight: 600; text-align: center; line-height: 1.2; }
.today { margin: 12px 16px 0; font-size: .75rem; color: var(--ink2); } .today:empty { display: none; }
.today span { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 6px 12px; border-radius: 20px; }

.sec { display: flex; flex-direction: column; gap: 10px; }
.page > .sec + .sec { margin-top: 2px; }
#h-special, #h-new, #h-events, #h-news { padding: 18px 16px 0; }
#h-alert:not(:empty) { padding: 14px 16px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec-h h2, .h2 { font-family: var(--disp); font-size: 1.15rem; font-weight: 800; }
.sec-h a { font-size: .75rem; font-weight: 600; white-space: nowrap; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.mini { width: 150px; background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.mini-ph { height: 96px; display: flex; align-items: center; justify-content: center; }
.mini-ph img { width: 100%; height: 100%; object-fit: cover; }
.mini b { font-size: .8rem; padding: 8px 10px 0; line-height: 1.25; }
.mini small { font-size: .68rem; color: var(--muted); padding: 2px 10px 10px; }

.evcard { width: 236px; background: #fff; border-radius: 18px; padding: 12px; display: flex; gap: 12px; color: var(--ink); }
.evdate { width: 56px; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.evdate b { font-family: var(--disp); font-size: 1.2rem; line-height: 1; } .evdate small { font-size: .65rem; font-weight: 600; }
.evtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; flex: 1; }
.evtext b { font-size: .82rem; line-height: 1.3; } .evtext small { font-size: .66rem; font-weight: 700; }
.evtext small.muted { font-weight: 400; }
.evrow { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: none; border-radius: 18px; padding: 12px; }
.dayhead { font-size: .75rem; color: var(--muted); font-weight: 700; margin: 6px 2px -4px; }

.row-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; color: var(--ink); }
.row-ph { width: 76px; height: 64px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.row-ph img { width: 100%; height: 100%; object-fit: cover; }
.row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-text b { font-size: .82rem; line-height: 1.35; } .row-text small { font-size: .66rem; font-weight: 700; } .row-text small.muted { font-weight: 400; }

.alertbar, .alertcard { display: flex; align-items: center; gap: 10px; background: var(--red-t); border-radius: 14px; padding: 10px 12px; color: var(--red-d); }
.alertbar b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alertcard span:last-child { display: flex; flex-direction: column; } .alertcard small { color: #5B2A24; font-size: .7rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
.pill.red { background: var(--red); color: #fff; } .pill.gold { background: var(--gold); color: var(--green-d); }

.emerg { background: var(--red-t); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.emerg b { font-family: var(--disp); color: var(--red-d); display: flex; align-items: center; gap: 6px; }
.emerg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.emerg-row .btn { padding: 0 6px; font-size: .7rem; }
.home-pad { padding: 0 16px; }
#view > .sec:has(.emerg) { padding: 18px 16px 0; }
.foot { display: flex; justify-content: center; gap: 6px; font-size: .66rem; color: var(--muted); padding: 18px 16px 8px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: underline; }

/* Page header */
.phead { padding: calc(14px + env(safe-area-inset-top)) 16px 18px; border-radius: 0 0 26px 26px; color: #fff; }
.phead-row { display: flex; align-items: center; gap: 10px; }
.phead-text { min-width: 0; }
.phead h1 { font-family: var(--disp); font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.phead p { margin: 2px 0 0; font-size: .72rem; opacity: .85; }
.phead.tall { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; }
.phead.tall small { font-weight: 700; opacity: .85; } .phead.tall h1 { font-size: 1.75rem; }

/* Tiles */
.tilegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #fff; border-radius: 20px; padding: 10px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px; min-height: 92px; text-align: center; color: var(--ink); border-radius: 14px; }
.tile b { font-size: .72rem; line-height: 1.2; } .tile small { font-size: .62rem; color: var(--muted); line-height: 1.2; }
.tile-ic { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-ic.round { border-radius: 23px; }
.howto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.howto-i { background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; min-height: 62px; color: var(--ink); }
.howto-i .tile-ic { width: 38px; height: 38px; } .howto-i b { font-size: .74rem; line-height: 1.3; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin-right: 0; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid #D6D2C6; background: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); flex-shrink: 0; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.chip.big { min-height: 42px; }
.chip.dark { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

/* Listing card */
.lcard { background: #fff; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lcard-top { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.lcard-ph { width: 62px; height: 62px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.lcard-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lcard-text b { font-size: .92rem; display: flex; align-items: center; gap: 6px; }
.lcard-text small { font-size: .72rem; color: var(--ink2); } .lcard-text small.muted { color: var(--muted); }
small.ok { color: #1F7A4D !important; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.vbadge { width: 18px; height: 18px; border-radius: 9px; background: #1F7A4D; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vbadge.lg { width: 22px; height: 22px; border-radius: 11px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: .68rem; font-weight: 600; color: var(--green); background: var(--green-t); border-radius: 8px; padding: 3px 8px; }
.tags span.green { color: #1F5F2E; background: #E3F6EA; font-weight: 700; } .tags span.indigo { color: #3730A3; background: #E8E7F8; }
.lcard-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lcard-act:empty { display: none; }

/* Detail */
.cover { height: 230px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.dcard { margin-top: -54px; position: relative; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 8px 24px rgba(27,31,28,.1); display: flex; flex-direction: column; gap: 4px; }
.dcard h1 { font-family: var(--disp); font-size: 1.35rem; font-weight: 800; line-height: 1.15; display: flex; align-items: center; gap: 8px; }
.dcard p { margin: 0; font-size: .8rem; }
.actions4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.actions4 > * { min-height: 64px; border-radius: 14px; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .68rem; font-weight: 700; }
.actions4 .wa { background: var(--wa); color: var(--wa-d); }
.actions4 .blue { background: #EAF0F8; color: #1F4E8C; }
.actions4 .gold { background: #FFF1C7; color: #6B5310; }
.infolist { background: #fff; border-radius: 16px; padding: 4px 14px; }
.infolist div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F0EDE5; }
.infolist div:last-child { border-bottom: none; }
.infolist span { width: 96px; flex-shrink: 0; color: var(--muted); font-size: .75rem; }
.infolist b { font-size: .78rem; font-weight: 600; }
.photos img { height: 140px; width: auto; border-radius: 14px; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px; border: none; text-align: left; }
.pcard > b, .pcard > small, .pcard > .ttl, .pcard-row { padding: 0 12px; }
.pcard .ttl { font-size: .78rem; font-weight: 600; }
.pcard-ph { height: 110px; background: #F1EFEA; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 6px; }
.pcard-ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tag { position: absolute; top: 8px; left: 8px; font-size: .6rem; font-weight: 700; color: #fff; background: rgba(27,31,28,.7); border-radius: 6px; padding: 2px 6px; }
.pcard.out { opacity: .55; }
.pcard-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.addbtn { min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--green); background: #fff; color: var(--green); font-size: .7rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: none; background: var(--green-t); color: var(--green); display: flex; align-items: center; justify-content: center; }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); width: min(448px, calc(100% - 32px)); background: #1F7A4D; color: #fff; border-radius: 16px; padding: 0 16px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px rgba(15,81,50,.35); z-index: 20; }
.cartbar b { display: inline-flex; gap: 6px; align-items: center; }
.page.has-cart { padding-bottom: 90px; }
.mapbox { border-radius: 18px; overflow: hidden; background: #E8E6DF; height: 220px; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }
small.dist { color: #1D4E89 !important; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.geo { display: flex; flex-direction: column; gap: 10px; background: #F4F8F6; border: 1px solid #DCE9E1; border-radius: 14px; padding: 12px; }
.geo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.geo .btn { min-height: 44px; }
.geo-ok { font-size: .74rem; color: #1F7A4D; font-weight: 700; margin: 0; }
.geo-ok:empty { display: none; }
.center a { color: var(--muted); }

/* Article */
.article { display: flex; flex-direction: column; gap: 10px; }
.article-ph { border-radius: 18px; width: 100%; max-height: 300px; object-fit: cover; }
.article h1 { font-size: 1.25rem; line-height: 1.35; }
.article p { margin: 0; }
.topnews { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.topnews-ph { height: 170px; background: #F8E4EA; display: flex; align-items: center; justify-content: center; position: relative; }
.topnews-ph img { width: 100%; height: 100%; object-fit: cover; }
.topnews-ph .pill { position: absolute; top: 12px; left: 12px; }
.topnews-t { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.topnews-t b { font-size: 1rem; line-height: 1.35; } .topnews-t small { font-size: .75rem; color: var(--ink2); }

/* Jobs */
.seg-wrap { padding: 0 16px 16px; margin-top: -10px; border-radius: 0 0 26px 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.14); border-radius: 16px; padding: 4px; }
.seg button { min-height: 54px; border-radius: 13px; border: none; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seg button b { font-size: .88rem; } .seg button small { font-size: .62rem; opacity: .85; }
.seg button.on { background: #fff; color: #3730A3; }
.jcard { background: #fff; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jcard-top { display: flex; gap: 12px; align-items: center; }
.jcard-top > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.jcard-top b { font-size: .92rem; } .jcard-top small { font-size: .74rem; color: var(--ink2); }
.jcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Sell */
.sellcats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sellcats button { min-height: 76px; border-radius: 16px; border: 1px solid #EADFC6; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #8A5A00; font-size: .68rem; font-weight: 600; }
.sellcats button.on { background: #8A5A00; color: #fff; border-color: #8A5A00; }
.safety { display: flex; gap: 8px; align-items: flex-start; background: #FBEFD6; color: #5E3D00; border-radius: 14px; padding: 10px 12px; font-size: .72rem; margin: 0; }
.price { font-family: var(--disp); font-size: 1.4rem; font-weight: 800; margin: 0; }
.fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); min-height: 56px; padding: 0 20px; border-radius: 28px; background: var(--gold); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-weight: 800; box-shadow: 0 6px 18px rgba(138,90,0,.35); z-index: 15; }

/* Forms */
.card { background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-family: var(--disp); font-size: 1.1rem; font-weight: 800; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; }
.form label > span, .lbl { font-size: .76rem; font-weight: 600; color: var(--ink2); }
.form input, .form select, .form textarea { min-height: 48px; border-radius: 12px; border: 1px solid #D6D2C6; padding: 10px 14px; font: inherit; font-size: .85rem; background: #FBFAF7; color: var(--ink); outline: none; width: 100%; }
.form textarea { min-height: 90px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,81,50,.12); }
.req { color: var(--red); font-style: normal; }
.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--green-t); color: #0F3D27; border-radius: 14px; padding: 12px; font-size: .76rem; margin: 0; }
.note-box.gold { background: var(--gold-t); color: #5B4A1A; }
.typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.typebtn { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--green); min-height: 96px; }
.typebtn b { color: var(--ink); font-size: .82rem; } .typebtn small { color: var(--muted); font-size: .64rem; line-height: 1.3; }
.typebtn.on { border: 2px solid var(--green); background: var(--green-t); }
.photopick { display: flex; flex-direction: column; gap: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 13px; border: none; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; }
.photobtn { min-height: 84px; border-radius: 14px; border: 1.5px dashed #9AA39E; background: #FBFAF7; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 8px; color: var(--ink2); font-weight: 600; font-size: .78rem; cursor: pointer; }
.addbanner { background: var(--gold-t); border: 1.5px dashed var(--gold-d); border-radius: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.addbanner > span:last-child { display: flex; flex-direction: column; } .addbanner b { font-size: .82rem; } .addbanner small { font-size: .7rem; color: #5B4A1A; }
.addbanner-ic { width: 44px; height: 44px; border-radius: 22px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green-d); }

/* Account */
.acc { padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.acc-me { display: flex; align-items: center; gap: 14px; }
.acc-me > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-me b { font-family: var(--disp); font-size: 1.3rem; line-height: 1.1; } .acc-me small { font-size: .74rem; opacity: .85; }
.avatar { width: 68px; height: 68px; border-radius: 34px; background: var(--gold); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-guest { display: flex; flex-direction: column; gap: 10px; } .acc-guest p { margin: 0; font-size: .85rem; }
.statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.statrow a { border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: .72rem; font-weight: 700; text-align: center; }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg3 button { min-height: 48px; border-radius: 12px; border: 1px solid #D6D2C6; background: #fff; font-weight: 700; font-size: .8rem; }
.seg3 button.on { border: 2px solid var(--green); background: var(--green-t); color: var(--green); }
.preview { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin: 0; }
.card.list { padding: 4px 0; gap: 0; }
.card.list > a, .card.list > button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border: none; background: none; text-align: left; color: var(--ink); width: 100%; }
.card.list > a > span, .card.list > button > span:last-child { display: flex; flex-direction: column; }
.card.list b { font-size: .82rem; } .card.list small { font-size: .7rem; color: var(--muted); }
.postrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #F0EDE5; }
.postrow > span:first-child { display: flex; flex-direction: column; min-width: 0; } .postrow b { font-size: .82rem; }
.postrow small { font-size: .7rem; color: var(--muted); } .postrow small.err { color: var(--red); }
.postact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; } .postact .btn.sm { padding: 4px 10px; font-size: .72rem; }
.keptphotos { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .keptphotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid #E5E1D6; } .keptphotos .note { flex-basis: 100%; margin: 0; }

/* Login */
.login-top { background: var(--green); padding: calc(56px + env(safe-area-inset-top)) 24px 44px; border-radius: 0 0 36px 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: #CFE3D7; }
.login-top p { margin: 0; font-size: .85rem; }
.emaillogin { background: #fff; border-radius: 16px; padding: 4px 14px; }
.emaillogin summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.emaillogin form { padding: 6px 0 14px; }

/* Guide */
.contact { background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.contact > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact b { font-size: .86rem; } .contact small { font-size: .72rem; color: var(--ink2); } .contact small.muted { color: var(--muted); }
.contact-ic { width: 46px; height: 46px; border-radius: 14px; background: #DDF0F5; color: #0E6B85; font-family: var(--disp); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.checks button { display: flex; align-items: center; gap: 12px; }
.checks .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #9AA39E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checks .box svg { visibility: hidden; }
.checks button.on .box { background: #0E6B85; border-color: #0E6B85; } .checks button.on .box svg { visibility: visible; }
.checks button.on span:last-child { text-decoration: line-through; color: var(--muted); }
.cnt { font-size: .75rem; color: #0E6B85; }
.steps > div { display: flex; gap: 12px; align-items: flex-start; }
.steps .num { width: 30px; height: 30px; border-radius: 15px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.steps span:last-child { display: flex; flex-direction: column; } .steps small { color: var(--muted); font-size: .72rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid2 > :only-child { grid-column: 1 / -1; }
.info2 > div { background: #DDF0F5; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.info2 small { font-size: .66rem; color: #0A4E61; } .info2 b { font-size: .8rem; }
.darklist { background: var(--ink); border-radius: 20px; padding: 6px 0; }
.darklist button { width: 100%; border: none; background: none; color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; }
.darklist .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--gold); flex-shrink: 0; }
.darklist span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.darklist small { color: #B9C1BC; font-size: .7rem; } .darklist em { font-style: normal; color: var(--gold); font-weight: 700; font-size: .72rem; }

/* Voice */
.voice { min-height: calc(100vh - var(--nav-h)); background: var(--green-d); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.voice-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.voice h1 { font-family: var(--disp); font-size: 1.7rem; margin-top: 24px; }
.muted-l { color: #CFE3D7; margin: 0; font-size: .8rem; }
.seg3.dark { grid-template-columns: repeat(2, minmax(0, 1fr)); background: rgba(255,255,255,.1); padding: 4px; border-radius: 14px; gap: 4px; }
.seg3.dark button { min-height: 36px; background: transparent; border: none; color: #fff; padding: 0 14px; }
.seg3.dark button.on { background: var(--gold); color: var(--green-d); border: none; }
.micwrap { width: 190px; height: 190px; position: relative; display: flex; align-items: center; justify-content: center; margin: 10px 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: 0; }
.voice.on .ring { animation: ring 1.6s ease-out infinite; } .voice.on .ring.r2 { animation-delay: .8s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(1.3); opacity: 0; } }
.bigmic { position: relative; width: 124px; height: 124px; border-radius: 62px; border: 6px solid rgba(255,255,255,.25); background: var(--gold); display: flex; align-items: center; justify-content: center; }
.heard { font-size: 1.1rem; font-weight: 700; min-height: 1.5em; margin: 0; }
.voice-ideas { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; width: 100%; margin-top: 8px; }

/* Bottom nav */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); z-index: 30; }
.nav-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .62rem; font-weight: 600; }
.nav-i.on { color: var(--green); }
.nav-i.add { color: #B07A00; }

/* Sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; transform: translateY(100%); transition: transform .25s ease; }
.sheet-wrap.open .sheet { transform: none; } .sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet h2 { font-family: var(--disp); font-size: 1.3rem; line-height: 1.25; padding-right: 44px; }
.sheet p { margin: 0; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 20px; border: none; background: #fff; display: flex; z-index: 5; align-items: center; justify-content: center; }
.ann-img { border-radius: 16px; width: 100%; max-height: 260px; object-fit: cover; }
.ann { display: flex; flex-direction: column; gap: 12px; }
.ann-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--green); }
.ann .row .btn { flex: 1; }

/* Misc */
.empty { background: #fff; border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.empty p { margin: 0; }
.skel-list { display: flex; flex-direction: column; gap: 10px; }
.skel { height: 92px; border-radius: 18px; background: linear-gradient(90deg, #EEEBE3 25%, #F7F5F0 50%, #EEEBE3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: .8rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #1F7A4D; } .toast.err { background: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (min-width: 520px) { body { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* 3D ஐகான் photo-இடத்தில் வரும்போது முழு அளவுக்கு நீளக்கூடாது */
.mini-ph img.i3d { width: 54px; height: 54px; }
.lcard-ph img.i3d { width: 40px; height: 40px; }
.row-ph img.i3d { width: 40px; height: 40px; }
.cover img.i3d { width: 96px; height: 96px; }
.tile-ic img.i3d { width: 34px; height: 34px; }
.cat-ic img.i3d { width: 42px; height: 42px; }

/* ---------- Labels: இடிக்காம, நேர்த்தியா (max 2 வரி, தேவைப்பட்டா எழுத்து சின்னதாகும்) ---------- */
.catgrid { column-gap: 2px; }
.cat { min-width: 0; padding: 6px 3px; }
.cat-l, .tile-l, .tile-s {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  width: 100%; max-width: 100%; text-align: center; word-break: keep-all; overflow-wrap: normal; hyphens: none;
}
.cat-l { font-size: .68rem; line-height: 1.22; min-height: 2.44em; letter-spacing: -.1px; }
.tile { min-width: 0; }
.tile-l { font-size: .72rem; line-height: 1.22; }
.tile-s { font-size: .6rem; line-height: 1.2; color: var(--muted); }

/* ---------- ★ Ratings ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.star { display: block; }
.lmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.rbadge { font-size: .68rem; font-weight: 700; color: #8A5A00; background: #FFF4D6; border-radius: 6px; padding: 1px 6px; }
.rbadge i { font-style: normal; font-weight: 600; color: #8A6F3A; }
.rvbox { padding: 14px; gap: 0; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; }
.rv-sum { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; min-width: 0; }
.rv-avg { font-family: var(--disp); font-size: 1.15rem; line-height: 1; }
.rv-btn { flex-shrink: 0; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid; background: #fff; font-size: .72rem; font-weight: 700; }
.rv { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #F0EDE5; }
.rv-av { width: 30px; height: 30px; border-radius: 15px; background: var(--green-t); color: var(--green); font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rv-body { min-width: 0; flex: 1; }
.rv-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-top b { font-size: .76rem; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-top small { font-size: .62rem; margin-left: auto; }
.rv-body p { margin: 3px 0 0; font-size: .76rem; color: var(--ink2); line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; }
.rv-del { background: none; border: none; padding: 2px 0 0; color: var(--red); font-size: .66rem; font-weight: 700; }
.rv-more { width: 100%; min-height: 40px; border: none; border-top: 1px solid #F0EDE5; background: none; font-size: .74rem; font-weight: 700; color: var(--green); }
.rate-pick { display: flex; justify-content: center; gap: 6px; }
.rate-pick button { width: 48px; height: 48px; border: none; background: none; font-size: 34px; line-height: 1; color: #E2DED3; padding: 0; transition: transform .1s; }
.rate-pick button.on { color: #F5A623; }
.rate-pick button:active { transform: scale(.9); }
.rate-label { text-align: center; font-weight: 700; font-size: .8rem; color: #8A5A00; min-height: 1.2em; margin: -4px 0 0; }
.cnt-r { align-self: flex-end; font-size: .66rem; color: var(--muted); font-weight: 400; }
.actions4 .gold.on { background: #F5C542; color: #4A3300; }
.actions4 .gold.on svg path { fill: currentColor; }

/* ஆன்லைன் சேவைகள் */
.olgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oltile { background: #fff; border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 10px; min-height: 66px; color: var(--ink); min-width: 0; }
.oltile .tile-ic { width: 42px; height: 42px; border-radius: 13px; }
.oltile .tile-ic img.i3d { width: 28px; height: 28px; object-fit: contain; }
.oltile .tile-ic img.own { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.ol-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ol-t b { font-size: .74rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ol-t small { font-size: .62rem; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oltile > svg { flex-shrink: 0; }
@media (max-width: 340px) { .olgrid { grid-template-columns: 1fr; } }

/* பேருந்து / ரயில் */
.seg.seg3t { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.seg3t button.on { color: #9A3412; }
.ttable { padding: 4px 0; }
.tt { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line, #EEF0EE); align-items: flex-start; }
.tt:last-child { border-bottom: none; }
.tt.next { background: #FFF7ED; }
.tt-time { min-width: 78px; display: flex; flex-direction: column; gap: 3px; }
.tt-time b { font-family: var(--disp); font-size: .95rem; color: #9A3412; }
.tt-time em { font-style: normal; font-size: .6rem; font-weight: 700; color: #fff; background: #9A3412; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.tt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-body b { font-size: .84rem; } .tt-body small { font-size: .7rem; line-height: 1.3; }

/* நாகூர் சிறப்புகள் / காணொளிகள் */
.dchips .chip { display: inline-flex; align-items: center; gap: 6px; }
.dchips .chip img.i3d { width: 18px; height: 18px; }
.wcard { background: #fff; border-radius: 20px; overflow: hidden; margin-bottom: 12px; }
.wcard img { width: 100%; max-height: 190px; object-fit: cover; display: block; }
.wcard > div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.wcard b { font-family: var(--disp); font-size: 1rem; }
.wcard p { margin: 0; font-size: .8rem; line-height: 1.55; color: #3D4541; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.wcard a { font-size: .74rem; font-weight: 700; color: #7C2D12; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vcard { background: #fff; border: none; border-radius: 16px; padding: 0 0 10px; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--ink); min-width: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #1F2937; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; inset: 0; margin: auto; width: 40px; height: 28px; border-radius: 8px; background: rgba(220, 38, 38, .92); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.vcard b { font-size: .74rem; line-height: 1.3; padding: 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard small { font-size: .62rem; color: var(--muted); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vplayer { position: relative; aspect-ratio: 16 / 9; margin: 38px 0 10px; border-radius: 14px; overflow: hidden; background: #000; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vtitle { font-size: 1rem; margin: 0 0 4px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink); border-bottom: 1px solid #EEF0EE; }
.mrow:last-child { border-bottom: none; }
.mrow-ic { width: 36px; height: 36px; border-radius: 11px; background: #FDE8D7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mrow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mrow-t b { font-size: .8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mrow-t small { font-size: .66rem; color: var(--muted); }
.mrow > svg { flex-shrink: 0; }

/* தானாக நகரும் பட்டியல் */
.hscroll.marquee { scroll-snap-type: none; }

/* மரண அறிவிப்புகள் */
.obsearch input { width: 100%; border: 1px solid #E2E8F0; border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; margin-bottom: 12px; }
.obcard { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 10px; color: var(--ink); border: 1px solid #E2E8F0; }
.ob-ph { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #F1F5F9; }
.ob-noph { display: flex; align-items: center; justify-content: center; }
.ob-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ob-t b { font-size: .95rem; line-height: 1.3; }
.ob-t small { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.ob-head { color: #475569 !important; font-weight: 700; font-size: .66rem !important; }
.ob-head.big { font-size: .9rem; text-align: center; margin: 0 0 12px; font-weight: 700; color: #334155; }
.ob-burial { color: #334155 !important; font-weight: 600; }
.ob-day { font-style: normal; font-size: .62rem; color: #64748B; text-align: right; max-width: 70px; line-height: 1.3; }
.obdetail { background: #fff; border-radius: 22px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid #E2E8F0; }
.obdetail h1 { font-size: 1.25rem; margin: 6px 0 0; line-height: 1.35; }
.obdetail .infolist { width: 100%; text-align: left; margin-top: 10px; }
.ob-text { width: 100%; text-align: left; white-space: pre-wrap; font-size: 1rem; line-height: 1.75; background: #F8FAFC; border-radius: 14px; padding: 14px; margin: 10px 0; color: #1E293B; overflow-wrap: anywhere; }
.ob-imgs { width: 100%; display: grid; gap: 8px; }
.ob-imgs button { border: none; padding: 0; background: none; border-radius: 12px; overflow: hidden; }
.ob-imgs img { width: 100%; display: block; }
.obdetail .grid2 { width: 100%; margin-top: 10px; }
.ob-full { width: 100%; border-radius: 12px; margin: 30px 0 10px; display: block; }
.obbanner { display: flex; gap: 10px; align-items: center; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 16px; padding: 10px 12px; margin: 0 0 12px; color: #1E293B; }
.obbanner span { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.obbanner b { font-size: .86rem; } .obbanner small { font-size: .68rem; color: #475569; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.seg2 label { position: relative; }
.seg2 input { position: absolute; opacity: 0; inset: 0; }
.seg2 span { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; border: 1.5px solid #CBD5E1; font-weight: 700; font-size: .82rem; background: #fff; }
.seg2 input:checked + span { border-color: #475569; background: #475569; color: #fff; }
.seg2 input:focus-visible + span { outline: 2px solid #0F5132; }
[hidden] { display: none !important; }
#h-obit:not(:empty) { padding: 14px 16px 0; } #h-obit .obbanner { margin: 0; }

/* மின்தடை – முன்னுரிமை அட்டை */
#h-power:not(:empty) { margin-top: -46px; padding: 0 16px; position: relative; z-index: 1; }
#h-power:not(:empty) + .catgrid-card { margin-top: 0; }
.pccard { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 1.5px solid #F59E0B; border-radius: 18px; padding: 12px 14px; color: #78350F; box-shadow: 0 6px 18px rgba(245, 158, 11, .25); margin-bottom: 12px; }
.pccard.on { background: linear-gradient(135deg, #FEE2E2, #FECACA); border-color: #DC2626; color: #7F1D1D; box-shadow: 0 6px 18px rgba(220, 38, 38, .25); }
.pc-ic { width: 46px; height: 46px; border-radius: 14px; background: #D97706; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: pcpulse 1.8s ease-in-out infinite; }
.pccard.on .pc-ic { background: #DC2626; }
@keyframes pcpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .pc-ic { animation: none; } }
.pc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pc-t small { font-size: .68rem; font-weight: 700; text-transform: none; }
.pc-t b { font-size: 1rem; font-family: var(--disp); line-height: 1.25; }
.pc-range { font-size: .84rem; font-weight: 700; }
.pc-areas { font-weight: 500 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-left { font-style: normal; font-size: .64rem; font-weight: 700; background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 4px 6px; text-align: center; max-width: 72px; line-height: 1.25; }

/* Push அனுமதி அட்டை */
#h-push:not(:empty) { padding: 14px 16px 0; }
.pushask { display: flex; gap: 12px; align-items: flex-start; background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 18px; padding: 12px 14px; }
.pa-ic { width: 40px; height: 40px; border-radius: 12px; background: #0F5132; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pa-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pa-t b { font-size: .86rem; } .pa-t small { font-size: .7rem; color: #3D4541; line-height: 1.35; }
.pa-btns { display: flex; gap: 8px; margin-top: 6px; }
.pushset { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.ps-t { display: flex; flex-direction: column; gap: 2px; } .ps-t small { font-size: .72rem; color: var(--muted); }

/* ரயில் நேரலை நிலை */
.livebox { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-bottom: 12px; }
.livebox b { font-size: .9rem; }
.lb-row { display: flex; gap: 8px; }
.lb-row input { flex: 1; min-width: 0; border: 1px solid #E5E7EB; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 1rem; letter-spacing: 1px; }
.livebox small { font-size: .68rem; }
.tt-live { align-self: flex-start; margin-top: 4px; font-size: .72rem; font-weight: 700; color: #9A3412; background: #FFEDD5; border-radius: 8px; padding: 4px 8px; }
/* டெலிவரி & இன்றைய ஸ்பெஷல் */
.lcard small.dlv { color: #C2410C; font-weight: 600; }
.sprow { gap: 10px; }
.spcard { flex: 0 0 168px; background: #fff; border: 1px solid #F3E2CF; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(194,65,12,.08); }
.spcard .sp-ph { position: relative; height: 96px; display: grid; place-items: center; overflow: hidden; }
.spcard .sp-ph img.sp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spcard .sp-price { position: absolute; left: 8px; bottom: 8px; background: #C2410C; color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.spcard .sp-t { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; flex: 1; }
.spcard .sp-t b { font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spcard .sp-t small { font-size: .68rem; color: var(--muted); }
.spcard .btn.sm { margin: 4px 10px 10px; justify-content: center; }
.spbox { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border: 1px solid #FDBA74; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.spbox .sp-badge { font-size: .72rem; font-weight: 700; color: #C2410C; }
.spbox img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; }
.spbox b { font-size: .95rem; }
.spbox .sp-pr { font-weight: 700; color: #9A3412; }
.spbox .btn.sm { align-self: flex-start; }
.form [hidden] { display: none !important; }
