/* Opepři – mobile-first stylesheet, no build step. Look follows the Pepper deal sites (pepper.pl). */
:root {
	--bg: #e9eaec;
	--surface: #fff;
	--surface-2: #f3f5f7;
	--surface-3: #eceef0;
	--text: #1d1f20;
	--muted: #6b6d70;
	--border: #dfe1e4;
	--brand: #fb6001;
	--brand-hover: #f45605;
	--brand-pressed: #e44e11;
	--brand-text: #c23f12;
	--brand-muted: #fff3db;
	--price: #d34616;
	--hot: #e00034;
	--hot-muted: #fcf3f2;
	--warm: #e56e00;
	--cold: #034eb1;
	--cold-muted: #f0f6fc;
	--ok: #14803c;
	--ok-muted: #e9f7ee;
	--warn-muted: #faf9ca;
	--header: #1d1f20;
	--header-2: #2a2c2e;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgb(16 18 20 / .06), 0 1px 3px rgb(16 18 20 / .04);
	--shadow-lg: 0 6px 24px rgb(16 18 20 / .12);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bottom-nav-h: 64px;
	color-scheme: light;
	accent-color: var(--brand);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b0c0d;
		--surface: #1d1f20;
		--surface-2: #28292a;
		--surface-3: #363739;
		--text: #f3f5f7;
		--muted: #a7a9ac;
		--border: #363739;
		--brand-text: #ff772c;
		--brand-muted: #451a0d;
		--price: #ff772c;
		--hot: #ff5c6f;
		--hot-muted: #4c0a11;
		--warm: #ff9a3d;
		--cold: #60a1f9;
		--cold-muted: #072a60;
		--ok: #4bd17a;
		--ok-muted: #0f3320;
		--warn-muted: #412202;
		--header: #000;
		--header-2: #1d1f20;
		--shadow: 0 1px 2px rgb(0 0 0 / .4);
		--shadow-lg: 0 6px 24px rgb(0 0 0 / .5);
		color-scheme: dark;
	}
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
	margin: 0; font: 16px/1.5 var(--font); color: var(--text); background: var(--bg);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; margin: .25rem 0 .75rem; }
p { text-wrap: pretty; }
code, .code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty p { margin: .4rem 0; }
.empty strong { color: var(--text); }

/* Header */
.site-header { background: var(--header); color: #fff; }
.header-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "search search"; align-items: center; gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; }
.logo { grid-area: logo; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.logo img { border-radius: 8px; }
.header-search { grid-area: search; position: relative; display: flex; align-items: center; }
.header-search .icon { position: absolute; left: 14px; color: #a7a9ac; pointer-events: none; }
.header-search input[type=search] {
	width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid transparent;
	background: var(--header-2); color: #fff; font: inherit; font-size: .95rem;
}
.header-search input::placeholder { color: #a7a9ac; }
.header-search input[type=search]:focus { outline: none; border-color: var(--brand); background: #000; }
.header-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header-actions .header-add, .header-actions .header-logout { display: none; }
.icon-button {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px;
	border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; font: inherit;
}
.site-header .icon-button { color: #e9eaec; }
.site-header .icon-button:hover { background: var(--header-2); color: #fff; }
.icon-button .icon { width: 20px; height: 20px; }
.icon-button-soft { background: var(--surface-2); color: var(--text); }
.icon-button-soft:hover { background: var(--surface-3); color: var(--text); }
.icon-button-accent { background: var(--brand); color: #fff; }
.icon-button-accent:hover { background: var(--brand-hover); color: #fff; }
.avatar {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 999px;
	background: linear-gradient(135deg, #fb6001, #e00034); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1;
}
.avatar-sm { width: 24px; height: 24px; font-size: .75rem; }
.avatar-xl { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar-robot { background: var(--brand-muted); font-size: .8rem; }
.avatar-link { display: inline-flex; padding: 3px; border-radius: 999px; }
.avatar-link:hover .avatar { box-shadow: 0 0 0 2px var(--brand); }

/* Section tabs (sticky) */
.section-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.section-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav-row::-webkit-scrollbar { display: none; }
.section-nav a {
	flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 10px; color: var(--muted); text-decoration: none;
	font-weight: 700; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.section-nav a:hover { color: var(--text); }
.section-nav a.active { color: var(--text); border-bottom-color: var(--brand); }
.section-nav a.active .icon { color: var(--brand); }

.site-main { padding-top: 12px; padding-bottom: 32px; min-height: 60vh; }

/* Bottom navigation (mobile) */
.bottom-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
	border-top: 1px solid var(--border);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 700; }
.bottom-nav a .icon { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--brand-text); }
.bottom-nav-plus { display: flex; align-items: center; justify-content: center; width: 44px; height: 32px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgb(251 96 1 / .35); }
.bottom-nav-plus .icon { stroke-width: 2.6; }
.bottom-nav-add:hover .bottom-nav-plus { background: var(--brand-hover); }

/* Buttons & forms */
.btn, input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: var(--radius-sm);
	background: var(--text); color: var(--surface); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
	transition: background-color .15s, transform .1s;
}
.btn:hover { background: #000; color: #fff; }
.btn:active { transform: scale(.98); }
.btn-accent, input[type=submit].btn-accent { background: var(--brand); color: #fff; }
.btn-accent:hover { background: var(--brand-hover); color: #fff; }
.btn-accent:active { background: var(--brand-pressed); }
.btn-soft, input[type=submit].btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-on-dark { background: var(--header-2); color: #fff; }
.btn-on-dark:hover { background: #3a3c3f; }
.btn-pill { border-radius: 999px; }
.btn-small, .btn-sm { padding: 7px 12px; font-size: .875rem; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-big, .btn-block { display: flex; width: 100%; }
.btn-big { padding: 14px 20px; font-size: 1.1rem; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: #b3122a; color: #fff; }
.btn-danger:hover { background: #8b1725; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; }

form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field-check input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font: inherit; font-size: 16px; background: var(--surface); color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.form-row { display: grid; gap: 0 12px; }
.error, .form-errors { color: var(--hot); font-size: .9rem; }
ul.form-errors { padding-left: 1.2rem; }
input.code-input { max-width: 12ch; font-size: 1.5rem; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
.help { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }

/* Flash */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--ok-muted); color: var(--ok); font-weight: 600; }
.flash-error { background: var(--hot-muted); color: var(--hot); }
.flash-info { background: var(--cold-muted); color: var(--cold); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .78rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
a.chip:hover { background: var(--surface-3); color: var(--text); }
.chip .icon { width: 14px; height: 14px; }
.chip-expired { background: var(--surface-3); color: var(--muted); }
.chip-coupon { background: var(--brand-muted); color: var(--brand-text); }
.chip-live { background: var(--ok-muted); color: var(--ok); }
.chip-soon { background: var(--brand-muted); color: var(--brand-text); }
.chip-found { background: var(--ok-muted); color: var(--ok); }
.chip-soft { background: var(--cold-muted); color: var(--cold); }
.chips-scroller { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scroll-padding: 12px; }
.chips-scroller::-webkit-scrollbar { display: none; }
.chip-link { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow); }
.chip-link:hover { color: var(--brand-text); }
.chip-link.active { background: var(--text); color: var(--surface); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; background: var(--surface-2); }
.badge-expired { background: var(--surface-3); color: var(--muted); }
.badge-warn { background: var(--warn-muted); color: #8a5a00; }
.badge-ok { background: var(--ok-muted); color: var(--ok); }

/* Tabs / segmented control */
.tabs, .segmented { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; background: var(--surface-3); border-radius: 999px; }
.tabs a, .segmented a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
.tabs a.active, .segmented a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* Layout */
.layout-with-sidebar { display: flex; flex-direction: column; gap: 12px; }
.narrow-list { max-width: 860px; margin: 0 auto; }
.page-head { margin: 4px 0 14px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.page-head-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); max-width: 860px; margin-left: auto; margin-right: auto; }
.page-hero { display: grid; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow); max-width: 860px; margin-left: auto; margin-right: auto; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); pointer-events: none; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--brand-text); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.shop-logo { display: flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--border); font-size: 1.8rem; font-weight: 800; color: var(--brand); overflow: hidden; }
.shop-logo img { width: 100%; height: 100%; object-fit: contain; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 10px; font-size: 1.15rem; }
.section-title .icon { color: var(--brand); }

/* Deal card (Pepper "threadListCard") */
.deal-list { display: grid; gap: 10px; }
.deal-card {
	display: grid; grid-template-columns: 108px 1fr; grid-template-areas: "head head" "image body" "foot foot";
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); container-type: inline-size; overflow: hidden;
	transition: box-shadow .2s;
}
.deal-card:hover { box-shadow: var(--shadow-lg); }
.deal-card.is-expired .deal-card-image img, .deal-card.is-expired .image-placeholder { filter: grayscale(1); opacity: .6; }
.deal-card.is-expired .price { color: var(--muted); }
.deal-card-head { grid-area: head; display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.deal-card-head .deal-age { margin-left: auto; }
.deal-card-image {
	grid-area: image; position: relative; display: flex; align-items: center; justify-content: center; align-self: start;
	width: 96px; height: 96px; margin: 10px 0 0 12px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--border);
}
.deal-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: color-mix(in srgb, var(--brand) 55%, var(--surface-2)); background: var(--surface-2); }
.discount-badge { position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 6px; background: var(--hot); color: #fff; font-size: .72rem; font-weight: 800; }
.deal-card-body { grid-area: body; min-width: 0; padding: 8px 12px 0; }
.deal-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deal-card-title a { color: var(--text); text-decoration: none; }
.deal-card-title a:hover { color: var(--brand-text); }
.deal-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.deal-card { position: relative; }
.deal-card-head, .deal-card-foot, .deal-card-meta a, .deal-card-image { position: relative; z-index: 1; }
.deal-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.deal-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: .85rem; }
.deal-card-desc { display: none; margin: 6px 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.deal-card-foot { grid-area: foot; display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.deal-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-right: auto; color: var(--muted); font-size: .85rem; }
.deal-author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-go .icon { width: 16px; height: 16px; }
.shop-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; color: var(--text); }
.shop-link .icon { width: 15px; height: 15px; color: var(--muted); }
.shop-link:hover { color: var(--brand-text); }
.deal-age { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.deal-age .icon { width: 14px; height: 14px; }
.price, .price-original, .discount { white-space: nowrap; }
.price { font-weight: 800; color: var(--price); font-size: 1.2rem; letter-spacing: -.01em; }
.price-free { color: var(--ok); }
.price-original { color: var(--muted); font-size: .95rem; }
.discount { color: var(--text); font-weight: 700; font-size: .95rem; }

@container (max-width: 360px) {
	.deal-go span { display: none; }
	.deal-author-name { display: none; }
}

/* Temperature / vote pill */
.vote-box { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; padding: 2px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.vote-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 0;
	background: transparent; cursor: pointer; color: var(--muted); transition: background-color .15s, color .15s;
}
.vote-btn .icon { width: 20px; height: 20px; stroke-width: 2.6; }
.vote-down { color: var(--cold); }
.vote-up { color: var(--hot); }
.vote-down:hover, .vote-down.active { background: var(--cold); color: #fff; }
.vote-up:hover, .vote-up.active { background: var(--hot); color: #fff; }
.temperature { min-width: 46px; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vote-box.hot .temperature { color: var(--warm); }
.vote-box.burn .temperature { color: var(--hot); }
.vote-box.burn { background: var(--hot-muted); }
.vote-box.cold .temperature { color: var(--cold); }
.vote-box.cold { background: var(--cold-muted); }
.vote-box.is-inert { padding: 6px 10px; }

/* Paginator */
.paginator { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 8px; }

/* Sidebar widgets */
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.widget h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0; }
.widget h2 .icon { color: var(--brand); }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.widget-more { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; text-decoration: none; }
.widget-more .icon { width: 14px; height: 14px; }
.widget-wanted, .widget-cta { display: none; }
.widget-cta { background: linear-gradient(140deg, var(--brand), #e00034); color: #fff; }
.widget-cta h2 { font-size: 1.15rem; }
.widget-cta .btn-accent { background: #fff; color: var(--brand-pressed); }
.widget-cta .btn-accent:hover { background: var(--brand-muted); }
.widget-events { padding: 12px 0 12px 12px; }
.widget-events .widget-head { padding-right: 12px; }
.widget-events-list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 12px; }
.widget-events-list::-webkit-scrollbar { display: none; }
.mini-event { flex: 0 0 240px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; }
.mini-event:hover { background: var(--surface-3); color: var(--text); }
.mini-event-text { display: grid; min-width: 0; gap: 2px; }
.mini-event-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.mini-event-text .small { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .78rem; }
.mini-wanted { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.mini-wanted li { display: grid; gap: 1px; }
.mini-wanted a { color: var(--text); font-weight: 700; text-decoration: none; }
.mini-wanted a:hover { color: var(--brand-text); }

/* Calendar */
.date-tile {
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 52px; height: 56px;
	border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); line-height: 1;
}
.date-tile-day { font-size: 1.35rem; font-weight: 800; }
.date-tile-month { margin-top: 3px; font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--brand-text); letter-spacing: .05em; }
.date-tile.is-running { background: var(--ok); box-shadow: none; color: #fff; }
.date-tile.is-running .date-tile-month { color: #fff; }
.event-list { display: grid; gap: 10px; }
.event-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-card.is-running { box-shadow: var(--shadow), inset 4px 0 0 var(--ok); }
.event-card-title { margin: 0 0 4px; font-size: 1.05rem; }
.event-card-title a { color: var(--text); text-decoration: none; }
.event-card-title a:hover { color: var(--brand-text); }
.event-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.event-card-desc { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.event-card-actions { grid-column: 2; display: flex; gap: 8px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.calendar-note { margin-top: 24px; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; max-width: 860px; margin: 0 auto 12px; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.breadcrumbs-sep { margin-left: 6px; }
.home-head { margin: 4px 0 12px; }
.home-head h1 { margin: 0 0 4px; font-size: 1.35rem; }
.home-head p { margin: 0; }
.page-intro { margin: 0 0 16px; color: var(--muted); }
.page-intro p { margin: 0 0 10px; }
.faq { margin-top: 24px; }
.faq .section-title { margin-top: 0; }
.faq-item { border-top: 1px solid var(--border); padding: 10px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin: 8px 0 0; color: var(--muted); }
.deal-savings { margin: 4px 0 0; color: var(--ok); font-weight: 700; font-size: .95rem; }
.deal-history { margin-top: 16px; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 720px; margin: 0 auto; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 28px rgb(16 18 20 / .18); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 260px; margin: 0; }
.cookie-bar p .icon { color: var(--brand); vertical-align: -3px; }
.cookie-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.coupon-list { display: grid; gap: 10px; }
.coupon-card { display: grid; gap: 4px; padding: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.coupon-card-title { margin: 0 0 4px; font-size: 1.05rem; }
.coupon-card-title a { color: var(--text); text-decoration: none; }
.coupon-card-title a:hover { color: var(--brand-text); }
.coupon-card-code { grid-template-columns: 1fr auto auto; margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } @view-transition { navigation: none; } }

/* Wanted */
.wanted-list { display: grid; gap: 10px; }
.wanted-card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.wanted-card.is-found, .wanted-card.is-closed { opacity: .8; }
.wanted-card-head { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.wanted-card-head .deal-age { margin-left: auto; }
.wanted-card-title { margin: 8px 0 8px; font-size: 1.1rem; overflow-wrap: anywhere; }
.wanted-card-title a { color: var(--text); text-decoration: none; }
.wanted-card-title a::after { content: ""; position: absolute; inset: 0; }
.wanted-card-title a:hover { color: var(--brand-text); }
.wanted-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wanted-card-meta a, .wanted-card-meta .btn { position: relative; z-index: 1; }
.wanted-replies { margin-left: auto; }
.budget { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand-muted); color: var(--brand-text); font-weight: 800; font-size: .9rem; }
.budget-lg { font-size: 1.1rem; padding: 6px 14px; }
.budget-any { background: var(--surface-2); color: var(--muted); }
.wanted-detail h1 { margin: 12px 0; overflow-wrap: anywhere; }
.wanted-description { margin-top: 14px; overflow-wrap: anywhere; }
.reply-deal { margin-top: 10px; }
.reply-deal .deal-card { box-shadow: inset 0 0 0 1px var(--border); }
.matches .deal-list { margin-bottom: 8px; }

/* Search */
.search-page-form { display: flex; gap: 8px; margin-bottom: 14px; }
.search-page-form input { flex: 1; border-radius: 999px; padding-left: 18px; }
.search-page-form .btn { border-radius: 999px; }

/* Deal detail */
.deal-detail { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 16px; }
.deal-detail-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius-sm); text-align: center; box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.deal-detail-image img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.deal-detail-image .image-placeholder { font-size: 5rem; }
.deal-detail.is-expired .deal-detail-image img { filter: grayscale(1); opacity: .6; }
.discount-badge-lg { left: 10px; top: 10px; font-size: .95rem; padding: 3px 10px; }
.deal-detail-main { min-width: 0; }
.deal-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.deal-detail h1 { margin: 12px 0 8px; font-size: 1.4rem; overflow-wrap: anywhere; }
.deal-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.deal-detail .price { font-size: 1.8rem; }
.deal-detail-shop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.deal-cta { margin: 14px 0 12px; box-shadow: 0 6px 18px rgb(251 96 1 / .3); }
.deal-cta .icon { width: 18px; height: 18px; }
.deal-detail .deal-author { margin: 0; }
.coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin: 12px 0; padding: 10px; border-radius: var(--radius-sm); background: var(--brand-muted); }
.coupon-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--brand-text); text-transform: uppercase; letter-spacing: .05em; }
.coupon code { padding: 10px 12px; border: 2px dashed var(--brand); border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 800; text-align: center; background: var(--surface); overflow-wrap: anywhere; }
.deal-about { margin-top: 12px; }
.deal-about .section-title { margin-top: 0; }
.deal-description { white-space: pre-line; overflow-wrap: anywhere; }
.expired-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--surface-3); font-weight: 700; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

/* Comments */
.comments { margin-top: 12px; }
.comment { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.comment-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .875rem; margin-bottom: 6px; }
.comment-head a { color: var(--text); text-decoration: none; }
.comment-body { overflow-wrap: anywhere; }
.comment.is-deleted { opacity: .6; font-style: italic; }

/* Generic page */
.page { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.page-header img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }

/* Footer */
.site-footer { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0; font-size: .9rem; }
.footer-grid { display: grid; gap: 16px; }
.logo-footer { color: var(--text); font-size: 1.1rem; }
.logo-footer:hover { color: var(--text); }
.footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand-text); }
.affiliate-note { margin: 0; }

/* Tables (admin) */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }

/* ≥ 600px: tablet */
@media (min-width: 600px) {
	.wrap { padding: 0 20px; }
	.chips-scroller { margin: 0; padding-left: 0; padding-right: 0; }
	.deal-card { grid-template-columns: 168px 1fr; grid-template-areas: "image head" "image body" "image foot"; }
	.deal-card-image { width: 144px; height: 144px; margin: 12px; align-self: center; }
	.deal-card-head { padding: 12px 14px 0 0; }
	.deal-card-body { padding: 6px 14px 0 0; }
	.deal-card-foot { padding: 10px 14px 12px 0; }
	.deal-card-title { font-size: 1.1rem; }
	.deal-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.form-row { grid-template-columns: 1fr 1fr; }
	.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
	.event-card { grid-template-columns: auto 1fr auto; align-items: center; }
	.event-card-actions { grid-column: auto; }
	.coupon-card { grid-template-columns: 1fr minmax(240px, auto); gap: 16px; align-items: center; }
	.coupon-card-code { margin: 0; }
	.page { padding: 24px; }
	.page-hero { grid-template-columns: 1fr auto; align-items: end; padding: 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.affiliate-note { grid-column: 1 / -1; }
}

/* ≥ 900px: desktop header, no bottom bar */
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.bottom-nav { display: none; }
	.cookie-bar { bottom: 20px; }
	h1 { font-size: 1.9rem; }
	.header-row { grid-template-columns: auto minmax(0, 560px) 1fr; grid-template-areas: "logo search actions"; gap: 24px; min-height: 64px; padding-top: 0; padding-bottom: 0; }
	.header-actions .header-add, .header-actions .header-logout { display: inline-flex; }
	.header-actions { gap: 8px; }
	.section-nav a { padding: 14px 14px; }
	.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side"; align-items: start; gap: 16px; }
	.main-column { grid-area: main; }
	.sidebar { grid-area: side; display: grid; gap: 12px; position: sticky; top: 64px; }
	.widget-wanted, .widget-cta { display: block; }
	.widget-events { padding: 14px; }
	.widget-events .widget-head { padding-right: 0; }
	.widget-events-list { display: grid; overflow: visible; padding-right: 0; }
	.mini-event { flex: none; }
	.deal-card { grid-template-columns: 220px 1fr; }
	.deal-card-image { width: 196px; height: 196px; }
	.deal-detail { grid-template-columns: minmax(0, 420px) 1fr; padding: 24px; gap: 28px; }
	.deal-detail h1 { font-size: 1.75rem; }
	.deal-detail-image { aspect-ratio: 1; align-self: start; }
	.footer-grid { grid-template-columns: 1.2fr 2fr; align-items: start; }
}
