/* F2F Auctions PWA — matches the storefront: navy chrome, white content,
   orange accents (navy #181743 / coral #f58224), bottom tab bar like the
   mobile site. */

/* The hidden attribute must ALWAYS win: author display rules (.actions
   { display:flex } etc.) silently override the browser's built-in
   [hidden] { display:none }, which left ended auctions showing live
   bid/buy buttons. */
[hidden] {
	display: none !important;
}

:root {
	--navy: #181743;
	--coral: #f58224;
	--coral-dark: #e37418;
	--ink: #21243d;
	--muted: #6b6d86;
	--line: #e4e5ef;
	--bg: #f6f6f9;
	--win: #1a7f44;
	--win-bg: #e5f5ec;
	--lose: #b32d2e;
	--lose-bg: #fde7e9;
	--tab-h: 62px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
/* Full-width card-slide transitions must never spawn a sideways scroll.
   ONLY on the root, and prefer clip: overflow-x hidden on body forces
   overflow-y to compute to auto, silently turning body into a scroll
   container — which broke touch scrolling (and with it, swipes drifted
   into the OS back gesture). clip clips without creating a scroller. */
html {
	overflow-x: hidden;
	overflow-x: clip;
}

/* ---- header ---- */

.hd {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--navy);
	color: #fff;
	padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}

.hd-brand { display: flex; align-items: center; gap: 8px; }
.hd-logo { display: block; height: 34px; width: auto; max-width: 210px; object-fit: contain; }
.hd-title { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.hd-2 { color: var(--coral); }
.hd-sub { font-weight: 500; opacity: 0.75; font-size: 0.85em; margin-left: 4px; }
.hd-live { font-size: 0.72rem; font-weight: 800; color: #7ee2a8; letter-spacing: 0.06em; }

/* ---- layout ---- */

.view {
	max-width: 640px;
	margin: 0 auto;
	padding: 14px 12px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
	min-height: 70vh;
}

.loading, .empty {
	text-align: center;
	color: var(--muted);
	padding: 3rem 0;
}

/* ---- bottom tab bar (like the mobile storefront) ---- */

.tabbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	background: #fff;
	border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom);
}

.tab {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 9px 0 7px;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}

.tab-ic { font-size: 1.15rem; line-height: 1; }
.tab.active { color: var(--coral); }

/* ---- board ---- */

.board-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.board-count { font-size: 0.82rem; font-weight: 700; color: var(--win); }

.board-sort {
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-size: 0.88rem;
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (min-width: 480px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--ink);
}

.card-media { aspect-ratio: 1/1; background: #eef0f6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2rem; opacity: 0.35; }

.card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.card-title {
	font-size: 0.82rem; font-weight: 600; line-height: 1.25; min-height: 2.1em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { font-size: 1.05rem; font-weight: 800; color: var(--coral); }
.card-time { font-size: 0.74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-time.soon { color: var(--coral); }
.card-meta { font-size: 0.72rem; color: var(--muted); }

.badge-test {
	position: absolute; top: 6px; left: 6px;
	background: #fff6e5; color: #8a5a00; border: 1px dashed #e8b64a;
	font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em;
	padding: 2px 6px; border-radius: 5px;
}

.badge-win {
	position: absolute; top: 6px; right: 6px;
	background: var(--win-bg); color: var(--win);
	font-size: 0.62rem; font-weight: 800; padding: 2px 6px; border-radius: 5px;
}

/* ---- auction detail ---- */

.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }

.detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.detail-media { background: #eef0f6; position: relative; }
.detail-media img { width: 100%; display: block; max-height: 52vh; object-fit: contain; background: #0b0a24; }
.status-badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.status-badge.win { background: var(--win); }
.status-badge.lose { background: var(--lose); }
.status-badge.checking { background: rgba(24,23,67,0.82); font-weight: 700; }
.fig-price.winning { color: var(--win); }
.detail-body { padding: 14px 16px 18px; }
.detail-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; color: var(--navy); }

.banner { margin: 0 0 10px; padding: 9px 12px; border-radius: 9px; font-weight: 700; font-size: 0.9rem; background: #eef1f7; color: var(--navy); }
.banner.win { background: var(--win-bg); color: var(--win); }
.banner.lose { background: var(--lose-bg); color: var(--lose); }
.banner.test { background: #fff6e5; color: #8a5a00; border: 1px dashed #e8b64a; }
.banner.ended { color: var(--muted); }

.figures { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.fig-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.fig-price { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.05; }
.fig-time { font-size: 1.1rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fig-time.soon { color: var(--coral); }

.meta-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }

.watch-pill {
	margin-left: auto; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--navy); font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.watch-pill.on { border-color: var(--coral); color: var(--coral); background: rgba(245, 130, 36, 0.08); }

.actions { display: flex; flex-direction: column; gap: 8px; }

.btn {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: 100%; padding: 13px 14px; border: 1px solid var(--navy); border-radius: 10px;
	background: #fff; color: var(--navy); font-size: 1rem; font-weight: 700; cursor: pointer;
	text-decoration: none; -webkit-appearance: none; appearance: none;
}
.btn:disabled { opacity: 0.55; }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; font-size: 1.05rem; }
.btn.primary:active { background: var(--coral-dark); }
.btn.buynow { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.small { width: auto; padding: 8px 14px; font-size: 0.85rem; }

.maxbox { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.maxbox summary { font-size: 0.88rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.max-row { display: flex; gap: 8px; margin-top: 8px; }
.input {
	flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
	font-size: 1rem; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(245, 130, 36, 0.18); }
.hint { font-size: 0.78rem; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }

.msg { margin-top: 10px; min-height: 1.2em; font-size: 0.9rem; font-weight: 600; }
.msg.good { color: var(--win); }
.msg.warn { color: var(--lose); }
.msg.info { color: var(--muted); font-weight: 500; }

.desc { margin-top: 14px; font-size: 0.9rem; line-height: 1.55; color: var(--ink); white-space: pre-line; }

/* Rendered store HTML (product descriptions) — normal flow, tame media. */
.desc.html { white-space: normal; }
.desc.html img { max-width: 100%; height: auto; border-radius: 8px; }
.desc.html p { margin: 0 0 10px; }
.desc.html ul, .desc.html ol { margin: 0 0 10px; padding-left: 20px; }

/* Product page: image thumbnails under the main photo. */
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #eef0f6; }
.thumb {
	flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border: 2px solid transparent;
	border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border-color: var(--coral); }

/* Variable-product option selects. */
.varbox { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.var-row { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
/* The only in-stock option: stated, not picked. */
.var-single { color: var(--navy); font-size: 0.95rem; font-weight: 700; padding: 2px 0; }

/* Cart quantity stepper. */
.qty { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.qty-btn {
	width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 7px;
	background: #fff; color: var(--navy); font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.qty-btn:disabled { opacity: 0.4; }
.qty-n { min-width: 22px; text-align: center; font-weight: 700; color: var(--navy); }

.flash { animation: flash 0.8s ease; }
@keyframes flash { 0% { color: var(--coral); transform: scale(1.05); } 100% { transform: scale(1); } }

/* ---- my auctions ---- */

.seg { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.seg button {
	flex: 1; padding: 10px 0; border: none; background: none; font-size: 0.85rem; font-weight: 700;
	color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--navy); color: #fff; }

.rowcard {
	display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line);
	border-radius: 12px; padding: 9px; margin-bottom: 8px; text-decoration: none; color: var(--ink);
}
.rowcard img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: #eef0f6; flex: 0 0 auto; }
.rowcard-main { flex: 1; min-width: 0; }
.rowcard-title {
	font-size: 0.88rem; font-weight: 600; line-height: 1.25;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rowcard-sub { font-size: 0.76rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowcard .pill { flex: 0 0 auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; background: #eef1f7; color: #5c5e82; white-space: nowrap; }
.pill.win { background: var(--win-bg); color: var(--win); }
.pill.lose { background: var(--lose-bg); color: var(--lose); }

/* ---- order detail ---- */

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.order-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #eef0f6; flex: 0 0 auto; }
.order-line-name { flex: 1; min-width: 0; font-size: 0.86rem; font-weight: 600; }
.order-line-amt { font-weight: 700; font-size: 0.86rem; flex: 0 0 auto; }
.order-totals { margin-top: 10px; font-size: 0.85rem; }
.order-totals > div { display: flex; justify-content: space-between; padding: 2px 0; color: var(--muted); }
.order-totals .order-total { font-weight: 800; color: var(--ink); font-size: 0.95rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }

/* ---- account ---- */

.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.panel p { margin: 6px 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---- header cart ---- */

.hd-right { display: flex; align-items: center; gap: 12px; }
.hd-cart { position: relative; font-size: 1.2rem; text-decoration: none; }
.hd-cart-n {
	position: absolute; top: -6px; right: -9px;
	background: var(--coral); color: #fff; font-size: 0.62rem; font-weight: 800;
	min-width: 16px; height: 16px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---- shop ---- */

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.chiprow { display: flex; gap: 6px; margin-bottom: 10px; }
.chip {
	flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.search-row { display: flex; gap: 8px; margin-bottom: 10px; }

.card-add {
	margin-top: 6px; padding: 8px 0; border: none; border-radius: 8px;
	background: var(--coral); color: #fff; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.card-add:disabled { opacity: 0.55; }
.card-add.alt { background: var(--navy); }

.loadmore { display: block; width: 100%; margin-top: 12px; }

/* ---- cart ---- */

.cart-line { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px; margin-bottom: 8px; }
.cart-line img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #eef0f6; }
.cart-main { flex: 1; min-width: 0; }
.cart-title { font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.cart-sub { font-size: 0.76rem; color: var(--muted); }
.cart-remove { border: none; background: none; color: var(--lose); font-size: 0.78rem; font-weight: 700; cursor: pointer; padding: 4px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1rem; padding: 10px 4px; }

/* ---- SVG icons / announce bar / category landing ---- */

.tab-ic { width: 22px; height: 22px; }
.hd-cart { color: #fff; display: flex; align-items: center; }
.card-noimg { color: var(--muted); }
.ic-inline svg { vertical-align: -2px; }

.announce {
	background: var(--coral);
	color: #fff;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 7px 14px;
}

.landing { margin-bottom: 12px; }
.landing img { max-width: 100%; height: auto; border-radius: 12px; }

.shop-h { margin: 4px 0 12px; color: var(--navy); font-size: 1.15rem; }

.catgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (min-width: 480px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
/* Child-category cards inside a category: compact, three-up. */
.catgrid.sub { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.catgrid.sub .catcard-media { aspect-ratio: 4/3; }
.catgrid.sub .catcard-name { font-size: 0.78rem; padding: 0 4px; }
.catgrid.sub .catcard-count { font-size: 0.68rem; }
.shop-sub { font-size: 0.95rem; color: var(--navy); margin: 10px 0 8px; }

.catcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 0 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	font-family: inherit;
}

.catcard-media { width: 100%; aspect-ratio: 16/9; background: #eef0f6; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.catcard-media img { width: 100%; height: 100%; object-fit: cover; }
.catcard-name { font-size: 0.9rem; font-weight: 700; color: var(--navy); padding: 0 8px; }
.catcard-count { font-size: 0.74rem; color: var(--muted); }

/* ---- contact modal ---- */

.modal-wrap {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(11, 10, 36, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 14px;
	padding: 18px;
}

.modal h3 { margin: 0 0 6px; color: var(--navy); }
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.modal-btns .btn { width: auto; }

/* Optimistic bid: price shown instantly, slightly dimmed until confirmed. */
.fig-price.confirming { opacity: 0.6; }

/* ---- app-feel: transitions, skeletons, chips, lot navigation ---- */

/* Route entry animations: plain fade for tab changes; full-width card
   slides when swiping between lots. The incoming lot slides in while a
   frozen .view-ghost copy of the outgoing one (positioned by JS) slides
   away in the same direction and duration — a card deck, not a repaint. */
@keyframes lb-enter { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lb-slide-l { from { transform: translateX(100%); } to { transform: none; } }
@keyframes lb-slide-r { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes lb-exit-l { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes lb-exit-r { from { transform: none; } to { transform: translateX(100%); } }
.view-enter { animation: lb-enter 0.16s ease-out; }
.view-slide-left { animation: lb-slide-l 0.28s cubic-bezier(0.25, 0.7, 0.3, 1); }
.view-slide-right { animation: lb-slide-r 0.28s cubic-bezier(0.25, 0.7, 0.3, 1); }
.view-ghost {
	position: fixed;
	z-index: 4;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
}
.view-exit-left { animation: lb-exit-l 0.28s cubic-bezier(0.25, 0.7, 0.3, 1) forwards; }
.view-exit-right { animation: lb-exit-r 0.28s cubic-bezier(0.25, 0.7, 0.3, 1) forwards; }
@media (prefers-reduced-motion: reduce) {
	.view-enter, .view-slide-left, .view-slide-right { animation: none; }
	.view-ghost { display: none; }
}

/* Skeleton loading cards (shimmer). */
@keyframes lb-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-card {
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	overflow: hidden; padding-bottom: 12px;
}
.sk-media { height: 120px; }
.sk-media.tall { height: 42vh; }
.sk-line { height: 12px; border-radius: 6px; margin: 10px 12px 0; }
.sk-line.short { width: 55%; }
.sk-media, .sk-line {
	background: linear-gradient(100deg, #eef0f6 40%, #f7f8fc 50%, #eef0f6 60%);
	background-size: 200% 100%;
	animation: lb-shimmer 1.3s linear infinite;
}

/* Subcategory chips on a category's product list. */
.chips {
	display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
	-webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--navy); font-size: 0.82rem; font-weight: 700; cursor: pointer;
	white-space: nowrap;
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-n { opacity: 0.55; font-weight: 400; margin-left: 2px; }

/* Prev/next lot navigation on the auction detail. */
.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-nav .back { margin-bottom: 10px; }
.detail-nav-btns { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nav-btn {
	padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--navy); font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.nav-btn:disabled { opacity: 0.35; }
.nav-pos { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* ---- Home tab ---- */

.home-hero {
	display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
	background: linear-gradient(135deg, #181743 0%, #2a1e5c 60%, #4a2472 100%);
	color: #fff; border-radius: 16px; padding: 22px 20px; margin-bottom: 16px;
	text-decoration: none;
}
.home-hero-kicker {
	font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
	color: #f8b26e;
}
.home-hero-big { font-size: 1.55rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.home-hero-sub { font-size: 0.85rem; opacity: 0.85; }
.home-hero-btn { margin-top: 12px; width: auto; padding: 10px 22px; }
.home-hero-btn--ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }

@keyframes lb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.home-live-dot {
	position: absolute; width: 10px; height: 10px; border-radius: 50%;
	background: #7ee2a8; animation: lb-pulse 1.4s ease-in-out infinite;
}
.home-hero.is-live { position: relative; }
.home-hero.is-live .home-live-dot { top: 24px; right: 20px; }

.home-intro {
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	padding: 16px 18px; margin-bottom: 16px; font-size: 0.9rem; line-height: 1.55;
}
.home-intro h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.02rem; }
.home-intro img { max-width: 100%; height: auto; border-radius: 8px; }
.home-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.home-steps li::marker { color: var(--coral); font-weight: 800; }

.home-h { margin: 0 0 10px; color: var(--navy); font-size: 1.02rem; }
.hl-rail {
	display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 6px;
	-webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hl-rail::-webkit-scrollbar { display: none; }
.hl-card {
	flex: 0 0 150px; display: flex; flex-direction: column; position: relative;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
	text-decoration: none; color: var(--ink);
}
.hl-media { aspect-ratio: 1/1; background: #eef0f6; display: block; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-price {
	position: absolute; top: 8px; left: 8px; background: var(--coral); color: #fff;
	font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.hl-title {
	font-size: 0.78rem; font-weight: 600; line-height: 1.25; padding: 8px 10px 2px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-bids { font-size: 0.7rem; color: var(--muted); padding: 0 10px 10px; }

.home-shopcard {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	padding: 14px 16px; text-decoration: none; color: var(--ink); font-size: 0.9rem;
}

/* ---- auction night: ticker, badges, quick bid, toast, PTR ---- */

/* Native pull-to-refresh off — ours handles it (and lot-swipe stays clean). */
body { overscroll-behavior-y: contain; }

.ticker {
	position: sticky;
	top: 0; /* Sits below the sticky header visually via z-index order. */
	z-index: 19;
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(90deg, #241d54, #181743);
	color: #fff;
	padding: 8px 12px;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker img {
	width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: 0 0 38px;
}
.ticker-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ticker-label {
	font-size: 0.62rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
	color: #f8b26e;
}
.ticker-title {
	font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ticker-right { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.ticker-price { font-size: 0.92rem; font-weight: 800; color: var(--coral); }
.ticker-time { font-size: 0.74rem; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0.85; }
.ticker-time.soon { color: #ff9d5c; opacity: 1; }

/* Winning / Outbid overlay on card thumbnails. */
.badge-mine {
	position: absolute; top: 6px; right: 6px; z-index: 1;
	font-size: 0.62rem; font-weight: 800; letter-spacing: 0.03em;
	padding: 3px 8px; border-radius: 999px; color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.badge-mine.win { background: var(--win); }
.badge-mine.lose { background: var(--lose); }

/* Quick-bid button on board cards (shares .card-add sizing with shop). */
.card-add {
	margin-top: 6px; padding: 9px 8px; border: none; border-radius: 8px;
	background: var(--coral); color: #fff; font-size: 0.82rem; font-weight: 800; cursor: pointer;
}
.card-add:disabled { opacity: 0.6; }
.card-add.alt { background: #eef0f6; color: var(--navy); }

/* Share button variant in the detail nav. */
.nav-btn--share { display: inline-flex; align-items: center; gap: 5px; }
.mymax { color: var(--navy); font-weight: 700; }

/* Bottom toast (prompts, confirmations) above the tab bar. */
.toast {
	position: fixed;
	left: 12px; right: 12px;
	bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));
	z-index: 40;
	display: flex; align-items: center; gap: 12px;
	background: var(--navy); color: #fff;
	border-radius: 14px; padding: 13px 14px;
	box-shadow: 0 6px 24px rgba(11, 10, 36, 0.35);
	animation: lb-enter 0.2s ease-out;
	max-width: 616px; margin: 0 auto;
}
.toast-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toast-main strong { font-size: 0.92rem; }
.toast-main span { font-size: 0.8rem; opacity: 0.85; line-height: 1.35; }
.toast-btn {
	flex: 0 0 auto; padding: 9px 16px; border: none; border-radius: 9px;
	background: var(--coral); color: #fff; font-size: 0.85rem; font-weight: 800; cursor: pointer;
}
.toast-x {
	flex: 0 0 auto; width: 28px; height: 28px; border: none; border-radius: 50%;
	background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}

/* Pull-to-refresh indicator. */
.ptr {
	position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 50%;
	transform: translateX(-50%) scale(0.4); opacity: 0;
	z-index: 30; pointer-events: none;
	width: 34px; height: 34px; border-radius: 50%;
	background: #fff; box-shadow: 0 2px 10px rgba(11, 10, 36, 0.25);
	display: flex; align-items: center; justify-content: center;
	transition: opacity 0.12s ease, transform 0.12s ease;
}
.ptr.show { opacity: 1; transform: translateX(-50%) scale(calc(0.6 + 0.4 * var(--pull, 0))); }
.ptr-dot {
	width: 16px; height: 16px; border-radius: 50%;
	border: 3px solid #eef0f6; border-top-color: var(--coral);
	transform: rotate(calc(var(--pull, 0) * 360deg));
}

/* ---- notification inbox + win share cards ---- */

.hd-bell { position: relative; color: #fff; display: flex; align-items: center; text-decoration: none; }
.hd-bell-n {
	position: absolute; top: -6px; right: -8px;
	background: var(--coral); color: #fff; font-size: 0.62rem; font-weight: 800;
	min-width: 16px; height: 16px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.view-title { font-size: 1.15rem; font-weight: 800; margin: 2px 0 10px; }

.rowcard > svg { flex: 0 0 auto; color: var(--muted); }
.rowcard.inbox-new { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset; }

.wins-link { margin-top: 14px; }
.wins-link-ic {
	flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
	background: var(--coral); color: #fff;
	display: flex; align-items: center; justify-content: center;
}

/* ---- account: identity hero + card links ---- */

.acct-hero {
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(135deg, var(--navy), #2a2a6a);
	color: #fff; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px;
}
.acct-avatar {
	flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
	background: var(--coral); color: #fff; font-size: 1.4rem; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.acct-hero-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-hero-main strong { font-size: 1.05rem; }
.acct-hero-main a { color: #ffd9b8; font-size: 0.78rem; text-decoration: none; }
.acct-out .wins-link-ic { background: #eef1f7; color: var(--lose); }
.acct-out .rowcard-title { color: var(--lose); }

/* Text-alert number list. */
.sms-row {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
	padding: 8px 6px 8px 12px; margin-bottom: 6px; font-weight: 600;
}
.sms-x {
	width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent;
	color: var(--lose); font-size: 1.2rem; line-height: 1; cursor: pointer; flex: 0 0 auto;
}

/* About card. */
.about-card {
	background: linear-gradient(160deg, var(--navy), #23225c);
	color: #fff; border-radius: 14px; padding: 20px 18px; margin-bottom: 12px;
	display: flex; flex-direction: column; gap: 12px;
}
.about-blurb strong { font-size: 1.1rem; }
.about-blurb p { margin: 6px 0 0; font-size: 0.85rem; line-height: 1.55; color: #cdd1e8; }
.about-refresh {
	background: none; border: 0; color: #8f95b8; font-size: 0.78rem;
	text-decoration: underline; cursor: pointer; align-self: center; padding: 2px;
}

.wincard-box { margin: 4px 0 2px; min-height: 60px; }
.wincard-img {
	width: 100%; border-radius: 10px; display: block;
	box-shadow: 0 4px 16px rgba(11, 10, 36, 0.25);
}

/* Masked bid history on the auction screen. */
.bidhist { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.bidhist summary { font-size: 0.88rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.bidhist-list { margin-top: 8px; max-height: 260px; overflow-y: auto; }
.bh-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.bh-row:last-child { border-bottom: none; }
.bh-row.me { background: #fff8f1; }
.bh-name { flex: 1; color: var(--ink); font-weight: 600; display: flex; align-items: baseline; gap: 6px; }
.bh-you { font-style: normal; font-size: 0.68rem; font-weight: 800; color: var(--accent, #f58224); text-transform: uppercase; letter-spacing: 0.04em; }
.bh-auto { font-size: 0.68rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.bh-amt { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.bh-time { color: var(--muted); font-size: 0.78rem; white-space: nowrap; min-width: 64px; text-align: right; }

/* Auction Control (in-app admin dashboard). */
.adm-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy); color: #fff; margin-bottom: 10px; font-size: 0.9rem; }
.adm-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #6b6d86; }
.adm-live-dot.on { background: #e0342c; animation: admpulse 1.4s ease-in-out infinite; }
@keyframes admpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.adm-paused { padding: 2px 8px; border-radius: 6px; background: #e0342c; color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; }
.adm-test { padding: 2px 8px; border-radius: 6px; background: #fff6e5; color: #8a5a00; border: 1px dashed #e8b64a; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.adm-tile strong { font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.adm-tile span { font-size: 0.72rem; color: var(--muted); }
.adm-row { display: flex; gap: 6px; align-items: center; }
.adm-lot { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.adm-lot.pending { opacity: 0.75; }
.adm-lot img, .adm-lot-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f2f3f8; flex: 0 0 52px; }
.adm-lot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-lot-title { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 0.9rem; line-height: 1.25; }
.adm-lot-sub { font-size: 0.78rem; color: var(--muted); }
.adm-lot-ends { font-size: 0.78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-lot-ends.soon { color: #c2271f; }
.adm-lot-btns { display: flex; flex-direction: column; gap: 4px; }
.adm-lot-btns .btn.small { padding: 4px 8px; font-size: 0.72rem; }
.adm-danger { color: #b32d2e; border-color: #e3b4b4; }
.adm-bid { display: flex; align-items: baseline; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 0.85rem; text-decoration: none; color: var(--ink); }
.adm-bid:last-child { border-bottom: none; }
.adm-bid-who { font-weight: 700; white-space: nowrap; }
.adm-auto { font-size: 0.66rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.adm-bid-lot { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.adm-bid-amt { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.adm-bid-time { color: var(--muted); font-size: 0.75rem; min-width: 28px; text-align: right; }
