/* Warm light "paper" theme: bid green / outbid red / saffron for #1, low-contrast surfaces that are easy on the eyes. */
:root {
  color-scheme: light;
  --bg:#faf7f2; --card:#ffffff; --muted:#f4f0e9; --ink:#2b2a27; --mute:#77736b; --line:#e3ddd2; --line-soft:#ece7df;
  --bid:#2f8f5f; --bid-strong:#2b8a5a; --outbid:#c8484f; --amber:#eaa94a; --amber-ink:#a8670c;
  --shadow:0 1px 2px rgba(60, 45, 20, .04), 0 4px 16px rgba(60, 45, 20, .04);
  --radius:16px; --font:Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-tap-highlight-color:transparent; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 var(--font); font-variant-numeric:tabular-nums; touch-action:manipulation; }
a { color:inherit; }
:focus-visible { outline:2px solid var(--ink); outline-offset:2px; border-radius:6px; }
.skip { position:absolute; left:-999px; } .skip:focus { left:16px; top:8px; background:var(--ink); color:var(--bg); padding:6px 10px; z-index:9; }
.wrap { max-width:1160px; margin:0 auto; padding:16px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }

header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:4px 0 20px; flex-wrap:wrap; }
.logo { font-weight:800; font-size:24px; letter-spacing:-.04em; text-decoration:none; }
.logo span { color:var(--amber); }
nav { display:flex; gap:4px; }
nav a { color:var(--mute); text-decoration:none; padding:8px 10px; border-radius:8px; font-size:14px; }
nav a:hover { color:var(--ink); background:var(--muted); }

.hero { display:grid; grid-template-columns:1.3fr 1fr; gap:24px; align-items:end; margin-bottom:24px; }
h1 { font-size:clamp(30px, 4.6vw, 52px); line-height:1.05; letter-spacing:-.035em; margin:0; text-wrap:balance; }
h1 em { font-style:normal; color:var(--amber); }
.hero p { color:var(--mute); margin:12px 0 0; max-width:52ch; }
.metrics { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.metric { background:var(--card); border:1px solid var(--line-soft); box-shadow:var(--shadow); border-radius:12px; padding:12px; min-width:0; }
.metric b { display:block; font-size:20px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.metric small { color:var(--mute); font-size:12px; }

.grid { display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:24px; align-items:start; }
.bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.seg { display:inline-flex; background:var(--muted); border:1px solid var(--line-soft); border-radius:12px; padding:3px; }
.seg a { text-decoration:none; color:var(--mute); padding:7px 14px; border-radius:9px; font-size:14px; font-weight:500; }
.seg a[aria-current=page] { background:var(--card); color:var(--ink); box-shadow:0 1px 2px rgba(60, 45, 20, .08); }
.live { display:inline-flex; align-items:center; gap:6px; color:var(--mute); font-size:12.5px; }
.live i { width:7px; height:7px; border-radius:50%; background:var(--bid); box-shadow:0 0 0 3px #2f8f5f26; }
.live.stale i { background:var(--mute); box-shadow:none; }
.countdown { color:var(--amber-ink); font-weight:600; }
.chips { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin-bottom:14px; padding:2px; }
.chips a { border:1px solid var(--line-soft); color:var(--mute); border-radius:99px; padding:5px 12px; font-size:13px; text-decoration:none; white-space:nowrap; }
.chips a:hover { color:var(--ink); border-color:var(--line); }
.chips a[aria-current=true] { border-color:var(--ink); color:var(--ink); background:var(--muted); }

.podium { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:10px; margin-bottom:10px; }
.pod { background:var(--card); border:1px solid var(--line-soft); box-shadow:var(--shadow); border-radius:var(--radius); padding:16px; display:flex; flex-direction:column; gap:10px; min-width:0; transition:border-color .2s, transform .2s; }
.pod:hover { border-color:var(--line); }
.pod.r1 { border-color:var(--amber); background:radial-gradient(120% 80% at 0 0, #eaa94a24, transparent 60%), var(--card); }
.row1 { display:flex; align-items:center; gap:10px; min-width:0; }
.medal { font-size:12px; font-weight:700; padding:2px 8px; border-radius:99px; background:var(--muted); color:var(--mute); }
.r1 .medal { background:var(--amber); color:#3a2500; }
.fav { width:40px; height:40px; border-radius:10px; background:var(--muted); flex:none; }
.pod .name { min-width:0; }
.t { font-weight:600; text-decoration:none; overflow-wrap:anywhere; } .t:hover { text-decoration:underline; text-underline-offset:3px; }
.pod .t { font-size:16px; }
.domain { display:block; width:fit-content; max-width:100%; color:var(--bid); font-size:13px; font-weight:500; text-decoration:none; overflow-wrap:anywhere; }
.domain:hover { text-decoration:underline; text-underline-offset:3px; }
.sub a { text-decoration:none; } .sub a:hover { color:var(--ink); text-decoration:underline; }
.sub { color:var(--mute); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pitch { color:var(--mute); font-size:13.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.amount { font-size:24px; font-weight:800; letter-spacing:-.02em; }
.r1 .amount { color:var(--amber-ink); }
.beat { display:inline-flex; align-items:center; justify-content:center; min-height:36px; border:1px solid var(--line); background:none; color:var(--bid); border-radius:10px; padding:6px 12px; font:600 13px var(--font); cursor:pointer; transition:background-color .15s, border-color .15s; }
.beat:hover { background:#2f8f5f0f; border-color:var(--bid-strong); }

.list { background:var(--card); border:1px solid var(--line-soft); box-shadow:var(--shadow); border-radius:var(--radius); }
.item { display:grid; grid-template-columns:44px 32px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:12px 14px; border-top:1px solid var(--line-soft); }
.item:first-child { border-top:0; }
.item .fav { width:32px; height:32px; border-radius:8px; }
.pod .fav { width:56px; height:56px; border-radius:14px; }
.sub.meta { white-space:normal; }
.sub .details { color:var(--ink); font-weight:500; }
.item > div { min-width:0; }
.rank { color:var(--mute); font-weight:600; font-size:13px; text-align:right; }
.move { display:block; font-size:11px; font-weight:600; }
.move.up { color:var(--bid); } .move.down { color:var(--outbid); }
.right { text-align:right; display:grid; gap:4px; justify-items:end; }
.right .amount { font-size:16px; font-weight:700; }
.right .beat { min-height:28px; padding:2px 10px; font-size:12px; }
.flash { animation:flash 1.2s ease-out; }
@keyframes flash { from { background-color:#2f8f5f1f; } to { background-color:transparent; } }
.empty { padding:48px 16px; text-align:center; color:var(--mute); background:var(--card); border:1px dashed var(--line); border-radius:var(--radius); }

aside { position:sticky; top:16px; display:grid; gap:12px; }
.card { background:var(--card); border:1px solid var(--line-soft); box-shadow:var(--shadow); border-radius:var(--radius); padding:18px; }
.card h2 { margin:0; font-size:18px; letter-spacing:-.01em; }
.card .lead { margin:4px 0 8px; color:var(--mute); font-size:13px; }
label { display:block; font-size:12.5px; font-weight:600; color:var(--mute); margin:12px 0 6px; }
select:invalid { color:#a39e94; }
input, select { width:100%; font:16px var(--font); padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); }
input::placeholder { color:#a39e94; }
input:focus-visible, select:focus-visible { outline:2px solid var(--bid); outline-offset:0; border-color:transparent; }
input[aria-invalid=true] { border-color:var(--outbid); }
.rupee { position:relative; } .rupee span { position:absolute; left:13px; top:50%; translate:0 -50%; color:var(--mute); font-weight:600; }
.rupee input { padding-left:30px; font-size:20px; font-weight:700; }
.quick { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.quick button { border:1px solid var(--line-soft); background:var(--muted); color:var(--ink); border-radius:8px; padding:6px 10px; min-height:32px; font:500 12.5px var(--font); cursor:pointer; }
.quick button:hover { border-color:var(--line); }
.quick button span { color:var(--mute); }
.err { color:var(--outbid); font-size:13px; margin-top:6px; }
.err.note { color:var(--mute); }
.summary dd { margin:0; }
.summary { margin-top:14px; border-radius:12px; background:var(--muted); padding:12px 14px; display:grid; gap:6px; font-size:14px; }
.summary div { display:flex; justify-content:space-between; gap:12px; }
.summary dt, .summary .k { color:var(--mute); }
.summary .total { border-top:1px solid var(--line); padding-top:8px; font-weight:700; font-size:16px; }
.summary .total b { color:var(--bid); }
.go { margin-top:14px; width:100%; min-height:48px; border:0; border-radius:12px; font:700 16px var(--font); background:var(--bid-strong); color:#fff; cursor:pointer; transition:background-color .15s; }
.go:hover { background:#247a4f; }
.go[aria-busy=true] { opacity:.7; cursor:progress; }
.trust { margin:10px 0 0; color:var(--mute); font-size:12px; text-align:center; }
.feed { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:10px; font-size:13.5px; }
.feed li { display:flex; justify-content:space-between; gap:10px; }
.feed li span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.feed b { color:var(--bid); }
.feed small { color:var(--mute); white-space:nowrap; }

#toast { position:fixed; left:50%; bottom:max(20px, env(safe-area-inset-bottom)); translate:-50% 0; background:var(--ink); color:var(--bg); padding:12px 16px; border-radius:12px; font-size:14px; font-weight:500; opacity:0; transition:opacity .2s; pointer-events:none; max-width:calc(100% - 32px); }
#toast.on { opacity:1; }
.jump { display:none; margin-top:16px; align-items:center; justify-content:center; min-height:48px; border-radius:12px; background:var(--bid-strong); color:#fff; font-weight:700; text-decoration:none; }
.how { margin-top:48px; display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; }
.how h2 { grid-column:1/-1; margin:0 0 4px; font-size:22px; scroll-margin-top:16px; }
.how div { background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius); padding:16px; color:var(--mute); font-size:14px; }
.how h3 { margin:0 0 6px; color:var(--ink); font-size:15px; }
footer { margin-top:32px; color:var(--mute); font-size:13px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* Header visitor counter */
.online { display:inline-flex; align-items:center; gap:6px; color:var(--mute); font-size:13px; margin-left:auto; white-space:nowrap; }
.online i { width:7px; height:7px; border-radius:50%; background:var(--bid); box-shadow:0 0 0 3px #2f8f5f26; }
.online b { color:var(--ink); font-weight:600; }

/* Listing and category pages */
.crumbs { display:flex; flex-wrap:wrap; gap:8px; color:var(--mute); font-size:13px; margin:-4px 0 16px; }
nav.crumbs a { padding:0; color:var(--mute); text-decoration:none; } nav.crumbs a:hover { color:var(--ink); background:none; text-decoration:underline; }
a.beat { text-decoration:none; }
.detail { display:grid; gap:14px; padding:22px; }
.detail.r1 { border-color:var(--amber); background:radial-gradient(120% 60% at 0 0, #eaa94a24, transparent 60%), var(--card); }
.detail .fav { width:48px; height:48px; border-radius:12px; }
.detail h1 { font-size:clamp(24px, 3.4vw, 32px); }
.detail .r1 .medal, .detail.r1 .medal { background:var(--amber); color:#3a2500; }
.lede { margin:0; color:var(--mute); font-size:16px; }
.facts { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0; }
.facts div { background:var(--muted); border-radius:12px; padding:10px 12px; min-width:0; }
.facts dt { color:var(--mute); font-size:12px; }
.facts dd { margin:2px 0 0; font-weight:700; font-size:17px; overflow-wrap:anywhere; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
a.go { display:inline-flex; align-items:center; justify-content:center; width:auto; margin:0; padding:0 20px; text-decoration:none; }
.detail .trust { text-align:left; margin:0; }
.badge-box { margin-top:16px; display:grid; gap:10px; justify-items:start; }
.badge-box code { display:block; width:100%; padding:10px 12px; border-radius:10px; background:var(--muted); font-size:12px; overflow-wrap:anywhere; color:var(--mute); }
.qa { margin-top:24px; }
.mini { list-style:none; margin:12px 0; padding:0; display:grid; gap:10px; font-size:14px; }
.mini li { display:grid; grid-template-columns:32px minmax(0, 1fr) auto; gap:8px; align-items:baseline; }
.mini li a { text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mini li a:hover { text-decoration:underline; }
.mini li[aria-current=true] a { font-weight:700; }
.mini .rank { text-align:left; }
.more { color:var(--bid); font-size:13px; font-weight:600; text-decoration:none; }

@media (max-width:960px) {
  .hero, .grid { grid-template-columns:minmax(0, 1fr); }
  aside { position:static; }
  .jump { display:flex; }
  .podium { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .facts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .online { font-size:12px; }
  .item { grid-template-columns:32px 28px minmax(0, 1fr); }
  .item .right { grid-column:3; justify-items:start; grid-auto-flow:column; align-items:center; gap:10px; }
  .metrics b { font-size:16px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }
