/* ============================================================
   OutBid — modern & minimal theme
   ============================================================ */
:root {
  --ink: #0a0a0a;
  --ink-2: #404040;
  --mut: #737373;
  --mut-2: #a3a3a3;
  --line: #e7e7e7;
  --line-soft: #f0f0f0;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --card: #ffffff;
  --acc: #16a34a;
  --acc-dark: #15803d;
  --acc-soft: #f0fdf4;
  --gold: #f59e0b;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.10);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.05), 0 20px 44px -16px rgba(0,0,0,.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------ boot loader */
.boot-loader { display: flex; gap: 8px; justify-content: center; align-items: center; height: 60vh; }
.boot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: boot 1s infinite ease-in-out; }
.boot-dot:nth-child(2) { animation-delay: .15s; }
.boot-dot:nth-child(3) { animation-delay: .3s; }
@keyframes boot { 0%,100% { opacity:.2; transform: translateY(0);} 50% { opacity:1; transform: translateY(-5px);} }

/* ------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--ink);
  display: grid; place-items: center; color: var(--acc); font-size: 14px; font-weight: 900;
}
.brand .lol { color: var(--mut-2); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--mut); font-weight: 600; white-space: nowrap;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--acc); opacity: .5; animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity:.7;} 80%,100% { transform: scale(1.4); opacity:0;} }
.header-links a { font-size: 13.5px; font-weight: 600; color: var(--mut); margin-left: 16px; }
.header-links a:hover { color: var(--ink); }

/* Mobile header: one compact line, nothing wraps */
@media (max-width: 600px) {
  .header-period { display: none !important; }
  .header-in { height: 52px; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 16px; gap: 8px; flex-shrink: 0; }
  .brand .mark { width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
  .header-right { gap: 10px; min-width: 0; }
  .header-links { white-space: nowrap; }
  .header-links a { margin-left: 12px; font-size: 12.5px; }
  .live-pill { font-size: 11.5px; }
  .theme-toggle { width: 32px; height: 32px; flex-shrink: 0; }
}
@media (max-width: 480px) {
  .live-word { display: none; }
  .header-links a { margin-left: 10px; }
}

/* ------------------------------------------------ hero */
.hero { padding: 30px 0 8px; text-align: center; }
.hero-stats {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--mut); font-weight: 600; margin-bottom: 16px;
}
.hero-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-toggle { display: none; justify-content: center; margin: 0 0 16px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 800; }
.hero h1 .price { color: var(--acc); font-variant-numeric: tabular-nums; }
.hero .sub { color: var(--mut); max-width: 560px; margin: 0 auto; font-size: 15.5px; }
.hero .sub b { color: var(--ink-2); }

/* ------------------------------------------------ claim form */
.claim-card {
  max-width: 748px; margin: 26px auto 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow);
  text-align: left;
}
.claim-grid {
  display: grid; gap: 10px;
  grid-template-columns: 1.35fr 1fr .75fr auto;
  grid-template-areas: "identity category amount button" "more more more more";
}
.f-identity { grid-area: identity; }
.pf-svg { width: 18px; height: 18px; display: block; }
.pf-select {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px 4px;
  background: none; border: 0; border-radius: 7px; cursor: pointer;
  color: var(--mut); z-index: 2;
}
.pf-select:hover { color: var(--ink); background: var(--line-soft); }
.pf-caret { opacity: .65; flex-shrink: 0; }
.pf-menu {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 75;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  box-shadow: var(--shadow-lg); padding: 5px; min-width: 165px;
}
.pf-menu.open { display: block; animation: slidein .18s ease; }
.pf-option {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
}
.pf-option:hover { background: var(--bg-soft); color: var(--ink); }
.pf-option.on { background: var(--bg-soft); color: var(--ink); }
.pf-option .pf-svg { width: 16px; height: 16px; color: var(--mut); flex-shrink: 0; }
.pf-option.on .pf-svg { color: var(--ink); }
.field.f-identity input { padding-left: 56px; }
.id-fav {
  position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 6px; object-fit: contain;
  display: none; background: var(--bg-soft); z-index: 1;
}
.field.has-fav input { padding-left: 42px; }
.field.f-identity.has-fav input { padding-left: 70px; }
/* Platform icon at the start of each listing title */
.pf-badge { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--mut-2); opacity: .95; }
.pf-badge .pf-svg { width: 30px; height: 30px; }
.pf-badge.pf-instagram { color: #d6336c; }
.pf-badge.pf-youtube   { color: #d92d20; }
.pf-badge.pf-github    { color: #40464e; }
.pf-badge.pf-x         { color: #14171a; }
.pf-badge.pf-telegram  { color: #1f9bdc; }
.pf-badge.pf-dribbble  { color: #e0457f; }
.pf-badge.pf-behance   { color: #1463ff; }
html[data-theme="dark"] .pf-badge.pf-github { color: #c9d1d9; }
html[data-theme="dark"] .pf-badge.pf-x      { color: #e8e8e8; }
html[data-theme="dark"] .pf-badge.pf-behance { color: #4d8dff; }
.pf-no-link { cursor: default; gap: 8px; display: inline-flex; align-items: center; color: var(--ink-2); }
.pf-no-link .pf-svg { width: 16px; height: 16px; color: var(--mut); }
.f-category { grid-area: category; }
.f-amount { grid-area: amount; }
.btn-claim { grid-area: button; }
.claim-more { grid-area: more; display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.claim-card.expanded .claim-more { display: grid; animation: slidein .25s ease; }
.field { position: relative; }
.field input, .field select {
  width: 100%; padding: 12px 14px; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft);
  color: var(--ink); appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 32px; }
.cat-wrap { position: relative; }
.cat-select {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; font-size: 14.5px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); color: var(--mut);
}
.cat-select.open { border-color: var(--ink); background: #fff; }
html[data-theme="dark"] .cat-select.open { border-color: var(--mut); background: var(--card); }
.cat-select-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-select.has-value .cat-select-label { color: var(--ink); font-weight: 600; }
.cat-select-icon:empty { display: none; }
.cat-caret { flex-shrink: 0; color: var(--mut-2); }
.cat-menu {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 70;
  min-width: 100%; width: max-content; max-width: min(300px, calc(100vw - 28px));
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 300px; overflow-y: auto;
}
.cat-menu.open { display: block; animation: slidein .18s ease; }
.cat-option {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: 0; background: none; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
}
.cat-option:hover { background: var(--bg-soft); color: var(--ink); }
.cat-svg { width: 17px; height: 17px; display: block; }
.cat-option-icon, .browse-icon, .cat-select-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--mut);
}
.cat-option:hover .cat-option-icon, .browse-item:hover .browse-icon { color: var(--ink); }
.cat-select-icon { color: var(--ink-2); }
.cat-option-text, .browse-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-name-icon { display: inline-flex; align-items: center; margin-right: 8px; color: var(--acc-dark); vertical-align: -3px; }
html[data-theme="dark"] .cat-name-icon { color: var(--acc); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; }
.field .money-prefix {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--mut); font-weight: 700; font-size: 14px; pointer-events: none;
}
.field.has-prefix input { padding-left: 30px; }
.btn-claim {
  padding: 12px 22px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: transform .12s ease, background .15s ease;
}
.btn-claim:hover { background: #000; transform: translateY(-1px); }
.btn-claim:active { transform: translateY(0); }
.btn-claim:disabled { opacity: .55; cursor: wait; transform: none; }
.claim-hint { margin: 11px 2px 0; font-size: 12.5px; color: var(--mut); }
.claim-hint b { color: var(--ink-2); }
.claim-error {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 9px; font-size: 13px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; display: none;
}
.claim-error.show { display: block; animation: slidein .25s ease; }
.meta-preview {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--acc-soft);
  border: 1px solid #dcfce7; font-size: 13px; color: #14532d; display: none; gap: 10px; align-items: center;
}
.meta-preview.show { display: flex; animation: slidein .25s ease; }
.meta-preview img { width: 22px; height: 22px; border-radius: 5px; }
@media (max-width: 720px) {
  .claim-grid { grid-template-columns: 1fr; grid-template-areas: "identity" "category" "amount" "more" "button"; }
  .claim-more { grid-template-columns: 1fr; }
  .btn-claim { width: 100%; justify-content: center; }
}

/* ------------------------------------------------ layout */
.main { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 28px; padding: 34px 0 20px; align-items: start; }
@media (max-width: 940px) {
  .main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .activity-panel { position: static; }
  .header-period { display: none !important; }
  .hero-toggle { display: flex; }
}
.main > * { min-width: 0; }
/* Tablet: keep rows comfortable between the phone and desktop layouts */
@media (min-width: 641px) and (max-width: 940px) {
  .row { grid-template-columns: 48px 74px minmax(0,1fr) auto; }
  .row-side { min-width: 116px; }
  .claim-mini { padding: 7px 11px; font-size: 12px; }
  .main { padding-top: 26px; }
}

/* ------------------------------------------------ toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.chips {
  display: flex; gap: 8px; flex-wrap: nowrap; flex: 1; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Browse-all dropdown */
.browse-wrap { position: relative; }
.browse-btn {
  white-space: nowrap; background: var(--ink); color: var(--bg); border-color: var(--ink);
  font-weight: 700; display: inline-flex; align-items: center; gap: 6px;
}
.browse-btn:hover { border-color: var(--ink); color: var(--bg); opacity: .88; }
.browse-menu { min-width: 250px; }
.browse-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 240px;
  max-width: min(320px, calc(100vw - 28px)); max-height: 340px; overflow-y: auto; z-index: 80;
}
.browse-menu.open { display: block; animation: slidein .18s ease; }
.browse-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.browse-item:hover { background: var(--bg-soft); color: var(--ink); }
.browse-sep { height: 1px; background: var(--line-soft); margin: 6px 4px; }
.browse-dir { color: var(--acc-dark); }
html[data-theme="dark"] .browse-dir { color: var(--acc); }
.chip {
  padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--mut); background: var(--card); cursor: pointer;
  transition: all .15s ease; text-decoration: none; flex-shrink: 0; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-note { font-size: 12.5px; color: var(--mut-2); }

/* ------------------------------------------------ board rows */
.board { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; }
.row { width: 100%; }
.row {
  display: grid; grid-template-columns: 52px 74px minmax(0,1fr) auto; gap: 14px;
  align-items: center; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  position: relative;
}
.row:hover { border-color: #d4d4d4; box-shadow: var(--shadow); }
.row.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { background: var(--acc-soft); border-color: #86efac; } 100% { background: var(--card); } }
.rank-num { font-size: 19px; font-weight: 800; color: var(--mut-2); font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-align: center; }
.row.top1 .rank-num { color: var(--gold); }
.row.top2 .rank-num { color: #94a3b8; }
.row.top3 .rank-num { color: #b45309; }
.fav {
  width: 70px; height: 70px; border-radius: 16px; background: var(--bg-soft);
  border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.fav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav .letters { font-weight: 800; font-size: 23px; color: var(--mut); }
.row-body { min-width: 0; }
.row-title, .row-desc, .row-meta { overflow-wrap: anywhere; }
.row-title {
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; min-width: 0;
}
.row-title a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-price { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 17px; white-space: nowrap; letter-spacing: -.01em; }
.row-desc { color: var(--mut); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: var(--mut-2); align-items: center; }
.row-meta a { color: var(--mut); font-weight: 600; }
.row-meta a:hover { color: var(--ink); text-decoration: underline; }
.cat-chip { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 99px; padding: 2px 9px; font-weight: 600; color: var(--mut); }
.row-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; min-width: 128px; }
.claim-mini {
  padding: 8px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  background: var(--acc); color: #fff; border: 0; cursor: pointer; white-space: nowrap;
  opacity: 0; transform: translateY(2px); transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.row:hover .claim-mini, .claim-mini:focus-visible { opacity: 1; transform: translateY(0); }
.claim-mini:hover { background: var(--acc-dark); }
@media (hover: none) { .claim-mini { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .row { grid-template-columns: 26px 56px minmax(0,1fr) auto; gap: 8px; padding: 10px; }
  .fav { width: 52px; height: 52px; border-radius: 12px; }
  .fav img { width: 100%; height: 100%; }
  .rank-num { font-size: 12.5px; }
  .claim-mini { display: none; }
  .row-side { min-width: 0; align-items: flex-end; }
  .mobile-claim { display: inline-block !important; }
}
.mobile-claim { display: none; font-size: 12px; font-weight: 700; color: var(--acc-dark); white-space: nowrap; }

/* rank dividers */
.divider {
  display: flex; align-items: center; gap: 12px; margin: 6px 2px;
  color: var(--mut-2); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

.load-more {
  margin: 18px auto 0; display: block;
  padding: 11px 26px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--card); font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.load-more:hover { border-color: var(--ink); }
.empty-note { text-align: center; color: var(--mut); padding: 48px 0; font-size: 14px; }

/* ------------------------------------------------ activity panel */
.activity-panel {
  position: sticky; top: 76px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px;
  min-width: 0; max-width: 100%;
}
.act-item { min-width: 0; max-width: 100%; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.activity-list { display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow: hidden; }
.act-item {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px;
  transition: background .15s ease;
}
.act-item:hover { background: var(--card); }
.act-item.new { animation: slidein .4s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.act-fav { width: 30px; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-soft); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.act-fav img { width: 19px; height: 19px; object-fit: contain; }
.act-body { min-width: 0; flex: 1; }
.act-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-sub { font-size: 11.5px; color: var(--mut-2); font-variant-numeric: tabular-nums; }
.act-sub b { color: var(--acc-dark); }
.show-more-link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--mut); cursor: pointer; border: 0; background: none; padding: 0; }
.show-more-link:hover { color: var(--ink); }

/* Mobile: latest activity shows 2 items + Show more → expands to 5 */
.act-more {
  display: none; margin: 12px auto 0; padding: 7px 18px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.act-more:hover { border-color: var(--mut-2); }
@media (max-width: 940px) {
  .act-more { display: block; }
  .activity-list:not(.expanded) .act-item:nth-child(n+3) { display: none; }
  .activity-list.expanded .act-item:nth-child(n+6) { display: none; }
}

/* ------------------------------------------------ product page */
.product-page { max-width: 720px; margin: 0 auto; padding: 36px 0 30px; }
.crumb { font-size: 13px; color: var(--mut); margin-bottom: 22px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.p-head { display: flex; gap: 18px; align-items: center; }
.p-fav { width: 92px; height: 92px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.p-fav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-head h1 { font-size: clamp(21px, 3.4vw, 30px); margin: 0 0 6px; letter-spacing: -.02em; line-height: 1.2; }
.p-desc { color: var(--mut); margin: 16px 0 0; font-size: 15px; }
.p-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--mut-2); align-items: center; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--mut); font-size: 12px; }
.stat-card .sub { display: block; font-size: 11.5px; color: var(--mut-2); margin-top: 2px; }
.p-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.btn-big {
  padding: 13px 24px; border-radius: 12px; font-size: 14.5px; font-weight: 700; cursor: pointer; border: 0;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all .15s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-acc { background: var(--acc); color: #fff; }
.btn-acc:hover { background: var(--acc-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.p-history { margin-top: 30px; }
.p-history h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 0 0 12px; }
.h-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.h-row b { font-variant-numeric: tabular-nums; }
.h-row span { color: var(--mut-2); }
@media (max-width: 560px) { .p-stats { grid-template-columns: 1fr 1fr; } .p-head { flex-direction: row; } }

/* ------------------------------------------------ revenue + testimonials */
.revenue-card {
  margin: 30px auto 0; max-width: 640px; text-align: center;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  box-shadow: var(--shadow);
}
.revenue-card .caption { color: var(--mut); }
.revenue-card a { color: var(--ink-2); }
.revenue-card .amount { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--acc-dark); }
html[data-theme="dark"] .revenue-card .amount { color: var(--acc); }



.testimonials { padding: 36px 0 8px; }
.testimonials h2 { text-align: center; font-size: 21px; letter-spacing: -.02em; margin: 0 0 20px; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.t-card { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.t-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: #171717; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.t-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.t-handle { font-size: 12px; color: var(--mut-2); }
.t-body { font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }

/* ------------------------------------------------ about */
.about-page { max-width: 640px; margin: 0 auto; padding: 44px 0; }
.about-page h1 { font-size: 30px; letter-spacing: -.02em; }
.about-page p { color: var(--ink-2); font-size: 15.5px; }
.about-page h2 { font-size: 18px; margin-top: 30px; letter-spacing: -.01em; }

/* ------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 30px; padding: 26px 0 40px; }
.footer-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--mut); font-size: 13px; align-items: center; }
.footer-in a { font-weight: 600; margin-left: 14px; }
.footer-in a:hover { color: var(--ink); }

/* ------------------------------------------------ toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); animation: toastin .3s ease; text-align: center; max-width: 100%;
}
.toast.ok { background: var(--acc-dark); }
.toast.err { background: var(--red); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s ease; }

/* skeleton shimmer while loading lists */
.skel { border-radius: var(--radius); background: linear-gradient(90deg, #f5f5f5 25%, #ebebeb 40%, #f5f5f5 60%); background-size: 400px 100%; animation: shimmer 1.1s infinite linear; height: 78px; }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ------------------------------------------------ UPI payment modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,10,.55);
  display: grid; place-items: center; padding: 20px;
  animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--card); border-radius: 18px; max-width: 400px; width: 100%;
  padding: 26px 24px; position: relative; box-shadow: var(--shadow-lg);
  text-align: center; max-height: 92vh; overflow: auto; animation: slidein .25s ease;
}
.modal-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 24px; color: var(--mut-2); cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--ink); }
.modal-card h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.modal-amount { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 4px 0 14px; }
.modal-qr img { width: 178px; height: 178px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.upi-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 2px; flex-wrap: wrap; }
.upi-id { font-weight: 700; font-size: 14.5px; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.btn-sm { padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn-sm:hover { border-color: var(--ink); }
.modal-payee { font-size: 12.5px; color: var(--mut); margin: 6px 0 10px; }
.modal-pay { width: 100%; justify-content: center; margin-top: 2px; }
.modal-note { font-size: 12.5px; color: var(--mut); margin: 10px 0 0; }
.modal-divider { display: flex; align-items: center; gap: 10px; color: var(--mut-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 12px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.utr-row { display: flex; gap: 8px; }
.utr-row input { flex: 1; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; min-width: 0; background: var(--bg-soft); color: var(--ink); }
.utr-row input:focus { outline: none; border-color: var(--ink); }
.utr-row .btn-big { padding: 11px 16px; font-size: 13.5px; }
.modal-msg { font-size: 12.5px; margin-top: 10px; min-height: 16px; color: var(--mut); }
.modal-msg.err { color: #b91c1c; }
.modal-success .modal-check { width: 52px; height: 52px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 26px; display: grid; place-items: center; margin: 6px auto 12px; }
.modal-success h3 { margin-bottom: 8px; }
.modal-success p { color: var(--mut); font-size: 13.5px; margin: 0 0 16px; }

/* ----------------------------------------- pending verification banner */
.pending-card {
  display: flex; align-items: center; gap: 10px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 10px; animation: slidein .3s ease;
}
.pending-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #92400e; }
.pending-cancel { border: 0; background: none; color: #b45309; font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.pending-cancel:hover { text-decoration: underline; }

/* ============================================================
   Day / night mode
   ============================================================ */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 99px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--card); color: var(--mut);
  display: grid; place-items: center; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--mut-2); }
.theme-toggle svg { width: 16px; height: 16px; }
html[data-theme="light"] .icon-sun, .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

.modal-breakdown { font-size: 12.5px; color: var(--mut); margin: -6px 0 12px; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --mut: #a1a1aa;
  --mut-2: #6f6f78;
  --line: #27272a;
  --line-soft: #1c1c1f;
  --bg: #0a0a0b;
  --bg-soft: #131316;
  --card: #151517;
  --acc: #22c55e;
  --acc-dark: #4ade80;
  --acc-soft: #0e2417;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.65);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.5), 0 20px 44px -16px rgba(0,0,0,.75);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .site-header { background: rgba(10,10,11,.82); border-bottom-color: var(--line-soft); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select { background: var(--bg-soft); color: var(--ink); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus { background: var(--card); border-color: var(--mut); }
html[data-theme="dark"] .btn-claim { background: var(--ink); color: #0a0a0b; }
html[data-theme="dark"] .btn-claim:hover { background: #fff; }
html[data-theme="dark"] .btn-dark { background: var(--ink); color: #0a0a0b; }
html[data-theme="dark"] .btn-dark:hover { background: #fff; }
html[data-theme="dark"] .brand .mark { background: #f4f4f5; color: #16a34a; }
html[data-theme="dark"] .claim-error { background: #2a1214; border-color: #7f1d1d; color: #fca5a5; }
html[data-theme="dark"] .meta-preview { background: var(--acc-soft); border-color: #14532d; color: #86efac; }
html[data-theme="dark"] .pending-card { background: #221c07; border-color: #854d0e; }
html[data-theme="dark"] .pending-title { color: #fbbf24; }
html[data-theme="dark"] .pending-cancel { color: #fbbf24; }
html[data-theme="dark"] .skel {
  background: linear-gradient(90deg, #17171a 25%, #202024 40%, #17171a 60%);
  background-size: 400px 100%;
}
html[data-theme="dark"] .modal-qr img { border-color: var(--line); }
html[data-theme="dark"] .cat-chip { background: var(--bg-soft); border-color: var(--line-soft); }
html[data-theme="dark"] .row:hover { border-color: #3f3f46; }
html[data-theme="dark"] .stat-card { background: var(--bg-soft); border-color: var(--line-soft); }

/* ----------------------------------------- owner hint (already listed) */
.owner-hint {
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #eff6ff; border: 1px solid #bfdbfe;
  font-size: 13px; color: #1e40af; display: none; line-height: 1.5;
}
.owner-hint.show { display: block; animation: slidein .25s ease; }
html[data-theme="dark"] .owner-hint { background: #101c30; border-color: #1e3a5f; color: #93c5fd; }

/* ------------------------------------------------ categories directory */
.categories-page { padding: 34px 0 20px; }
.categories-page h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; margin: 0 0 6px; }
.categories-page .sub { color: var(--mut); margin: 0 0 22px; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.cat-card:hover { border-color: #d4d4d4; box-shadow: var(--shadow); transform: translateY(-1px); }
html[data-theme="dark"] .cat-card:hover { border-color: #3f3f46; }
.cat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.cat-count { font-size: 11.5px; color: var(--mut-2); white-space: nowrap; }
.cat-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cat-top-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cat-top-title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-top-sub { font-size: 12px; color: var(--mut-2); }
.cat-top-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cat-empty { font-size: 12.5px; color: var(--mut); padding: 6px 0; }
.chip-more { color: var(--acc-dark); border-style: dashed; }

/* ============================================================
   Podium: highlighted top 3
   ============================================================ */
.row.top1, .row.top2, .row.top3 { padding: 13px 16px; }

.row.top1 .row-price, .row.top2 .row-price, .row.top3 .row-price { font-size: 18px; }
.row.top1 {
  border-color: rgba(245,158,11,.65);
  background: linear-gradient(0deg, rgba(245,158,11,.10), rgba(245,158,11,.10)), var(--card);
  box-shadow: 0 6px 22px -12px rgba(245,158,11,.5);
}
.row.top2 {
  border-color: rgba(100,116,139,.6);
  background: linear-gradient(0deg, rgba(100,116,139,.11), rgba(100,116,139,.11)), var(--card);
  box-shadow: 0 6px 22px -12px rgba(100,116,139,.45);
}
.row.top3 {
  border-color: rgba(180,83,9,.55);
  background: linear-gradient(0deg, rgba(180,83,9,.09), rgba(180,83,9,.09)), var(--card);
  box-shadow: 0 6px 22px -12px rgba(180,83,9,.45);
}
.rank-num.medal {
  width: 38px; height: 38px; margin: 0 auto; border-radius: 11px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.28);
}
.row.top1 .rank-num.medal { background: linear-gradient(135deg,#fcd34d,#f59e0b); color: #451a03; }
.row.top2 .rank-num.medal { background: linear-gradient(135deg,#cbd5e1,#94a3b8); color: #1e293b; }
.row.top3 .rank-num.medal { background: #9a3412; color: #fff; }

/* ============================================================
   All time / Today toggle
   ============================================================ */
.period-toggle {
  display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 99px; padding: 3px; gap: 2px; flex-shrink: 0;
}
.period-toggle .pt {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: var(--mut); cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.period-toggle .pt:hover { color: var(--ink); }
.period-toggle .pt.on { background: var(--ink); color: var(--bg); }


/* ============================================================
   Pagination
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 4px; flex-wrap: wrap; }
.pagination .pg {
  min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
  transition: all .15s ease; font-variant-numeric: tabular-nums;
}
.pagination .pg:hover:not(:disabled):not(.on) { border-color: var(--mut-2); }
.pagination .pg.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .pg:disabled { opacity: .4; cursor: default; }
.pagination .pg-gap { color: var(--mut-2); padding: 0 2px; }

/* ============================================================
   Dark-mode fixes
   ============================================================ */
html[data-theme="dark"] .chip.on { background: #f4f4f5; border-color: #f4f4f5; color: #0a0a0b; }
html[data-theme="dark"] .claim-card { background: var(--card); }
html[data-theme="dark"] .chip-more { color: var(--acc); }
html[data-theme="dark"] .mobile-claim { color: var(--acc); }
html[data-theme="dark"] .act-sub b { color: var(--acc); }
html[data-theme="dark"] .row.top1 { background: linear-gradient(0deg, rgba(245,158,11,.13), rgba(245,158,11,.13)), var(--card); border-color: rgba(245,158,11,.55); }
html[data-theme="dark"] .row.top2 { background: linear-gradient(0deg, rgba(148,163,184,.14), rgba(148,163,184,.14)), var(--card); border-color: rgba(148,163,184,.55); }
html[data-theme="dark"] .row.top3 { background: linear-gradient(0deg, rgba(217,119,6,.13), rgba(217,119,6,.13)), var(--card); border-color: rgba(217,119,6,.5); }
html[data-theme="dark"] .period-toggle .pt.on { background: #f4f4f5; color: #0a0a0b; }
html[data-theme="dark"] .pagination .pg.on { background: #f4f4f5; border-color: #f4f4f5; color: #0a0a0b; }
html[data-theme="dark"] .divider { color: var(--mut-2); }

/* ============================================================
   Mobile polish (all devices, 320px and up)
   ============================================================ */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 28px 0 4px; }
  .claim-card { padding: 14px; border-radius: 15px; }
  .claim-hint { font-size: 12px; }

  /* Rows tighten up; medals & podium favicons shrink to fit the narrow columns */
  .row { padding: 10px; gap: 8px; }
  .row.top1, .row.top2, .row.top3 { padding: 11px 10px; }
  .row.top1 .fav, .row.top2 .fav, .row.top3 .fav { width: 52px; height: 52px; border-radius: 12px; }
  .row.top1 .row-price, .row.top2 .row-price, .row.top3 .row-price { font-size: 13.5px; }
  .rank-num.medal { width: 24px; height: 24px; font-size: 10.5px; border-radius: 7px; box-shadow: 0 1px 5px -1px rgba(0,0,0,.3); }
  .row-title { font-size: 13.5px; gap: 6px; }
  .row-desc {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12px; line-height: 1.45; margin-top: 2px;
  }
  .row-meta { font-size: 10px; gap: 5px; margin-top: 3px; flex-wrap: nowrap; overflow: hidden; }
  .row-meta > * { white-space: nowrap; flex-shrink: 0; }
  .row-meta .m-domain { display: none; }
  .row-meta .cat-chip { padding: 1px 7px; font-size: 10px; }
  .row-side { gap: 4px; }
  .mobile-claim { font-size: 10.5px; }
  .row-side { min-width: 0; }

  .activity-list { max-height: 380px; }
  .p-head h1 { font-size: 20px; }
  .p-fav { width: 60px; height: 60px; border-radius: 14px; }
  .p-actions .btn-big { width: 100%; justify-content: center; }

  .categories-page h1 { font-size: 24px; }
  .modal-card { padding: 22px 18px; }
  .modal-amount { font-size: 30px; }
  .utr-row { flex-direction: column; }
  .utr-row .btn-big { width: 100%; justify-content: center; }
  .pagination .pg { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12.5px; }
  .revenue-card { padding: 22px 16px; border-radius: 15px; }
  .testimonials h2 { font-size: 18px; }
  .about-page { padding: 30px 0; }
  .about-page h1 { font-size: 24px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 25px; }
  .brand { font-size: 16px; }
  .live-pill { font-size: 11.5px; }
  .header-links a { font-size: 12.5px; margin-right: 14px; }
  .theme-toggle { width: 32px; height: 32px; }
  .row { grid-template-columns: 24px 52px minmax(0,1fr) auto; padding: 9px; }
  .fav { width: 48px; height: 48px; border-radius: 11px; }
  .fav img { width: 100%; height: 100%; }
  .row.top1 .fav, .row.top2 .fav, .row.top3 .fav { width: 48px; height: 48px; }
}
