/* pump.fun GO bounty board — shared styles for /bounties (list) and /bounty/:id (detail). */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--bg: #0a0a0f;
	--surface: #111118;
	--panel: rgba(255, 255, 255, 0.04);
	--panel-hover: rgba(255, 255, 255, 0.07);
	--border: rgba(255, 255, 255, 0.08);
	--text: #f0f0f8;
	--muted: rgba(240, 240, 248, 0.5);
	--muted-2: rgba(240, 240, 248, 0.32);
	--accent: #7c5cff;
	--accent-glow: rgba(124, 92, 255, 0.18);
	--green: #22c55e;
	--green-bg: rgba(34, 197, 94, 0.12);
	--amber: #f59e0b;
	--amber-bg: rgba(245, 158, 11, 0.12);
	--blue: #3b82f6;
	--blue-bg: rgba(59, 130, 246, 0.12);
	--sol: #14f195;
	--radius: 14px;
}
html,
body {
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	background:
		radial-gradient(900px 500px at 70% -5%, rgba(124, 92, 255, 0.12), transparent 60%),
		radial-gradient(700px 400px at 0% 30%, rgba(20, 241, 149, 0.05), transparent 55%), var(--bg);
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
	font: inherit;
}
img {
	display: block;
	max-width: 100%;
}

/* Top bar */
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px clamp(16px, 4vw, 40px);
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 70%, transparent);
	border-bottom: 1px solid var(--border);
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -0.5px;
}
.brand .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 12px var(--accent);
}
.brand .badge-go {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	background: var(--accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 5px;
	text-transform: uppercase;
}
.topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	transition:
		opacity 0.15s,
		transform 0.1s,
		background 0.15s;
}
.btn:active {
	transform: scale(0.97);
}
.btn-primary {
	background: var(--accent);
	color: #fff;
}
.btn-primary:hover {
	opacity: 0.88;
}
.btn-ghost {
	background: var(--panel);
	color: var(--text);
	border: 1px solid var(--border);
}
.btn-ghost:hover {
	background: var(--panel-hover);
}
.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(12px, 3vw, 32px) 100px;
}

/* Header */
.page-head {
	padding: 38px 0 22px;
}
.page-head h1 {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -1px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.page-head .src-tag {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px 12px;
}
.page-head p {
	margin-top: 10px;
	color: var(--muted);
	font-size: 14px;
	max-width: 620px;
	line-height: 1.6;
}

/* Stats strip */
.stats {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.stat {
	flex: 1 1 150px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.stat-n {
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 800;
	letter-spacing: -0.8px;
	color: var(--text);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}
.stat:nth-child(2) .stat-n {
	color: var(--green);
}
.stat-n.skeleton {
	display: inline-block;
	width: 90px;
	height: 28px;
	color: transparent;
}
.stat-l {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Controls */
.controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 6px 0 20px;
	position: sticky;
	top: 57px;
	z-index: 10;
	background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.seg {
	display: inline-flex;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 3px;
	gap: 2px;
}
.seg button {
	padding: 7px 13px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	border-radius: 8px;
	transition:
		color 0.14s,
		background 0.14s;
}
.seg button:hover {
	color: var(--text);
}
.seg button.active {
	color: #fff;
	background: var(--accent);
}
.spacer {
	flex: 1;
}

/* Search */
.search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 240px;
	min-width: 180px;
	height: 38px;
	padding: 0 10px;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	transition:
		border-color 0.15s,
		background 0.15s;
}
.search:focus-within {
	border-color: rgba(124, 92, 255, 0.5);
	background: var(--panel-hover);
}
.search-ico {
	width: 16px;
	height: 16px;
	color: var(--muted);
	flex-shrink: 0;
}
.search input {
	flex: 1;
	min-width: 0;
	background: none;
	border: none;
	outline: none;
	color: var(--text);
	font-size: 13.5px;
}
.search input::placeholder {
	color: var(--muted-2);
}
.search input[type='search']::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.q-clear {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition:
		background 0.14s,
		color 0.14s;
}
.q-clear:hover {
	background: var(--panel-hover);
	color: var(--text);
}

/* Result meta line */
.result-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--muted);
	padding: 0 2px 14px;
}
.result-meta strong {
	color: var(--text);
	font-weight: 700;
}
.result-meta .scan-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent);
	animation: scanpulse 1.1s ease-in-out infinite;
	flex-shrink: 0;
}
@keyframes scanpulse {
	0%,
	100% {
		opacity: 0.25;
	}
	50% {
		opacity: 1;
	}
}

/* Grid + cards */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 14px;
}
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition:
		border-color 0.15s,
		transform 0.12s,
		box-shadow 0.15s;
	cursor: pointer;
}
.card:hover {
	border-color: rgba(124, 92, 255, 0.4);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card-thumb {
	height: 150px;
	background: #0d0d14 center / cover no-repeat;
	border-bottom: 1px solid var(--border);
	position: relative;
	flex-shrink: 0;
}
.card-thumb.empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted-2);
	font-size: 30px;
	background: radial-gradient(120px 80px at 50% 30%, rgba(124, 92, 255, 0.12), transparent);
}
.card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.card-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-reward {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: auto;
}
.reward-usd {
	font-size: 20px;
	font-weight: 800;
	color: var(--green);
	letter-spacing: -0.5px;
}
.reward-token {
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}
.card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--muted);
}
.card-meta .m {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.card-meta svg {
	width: 13px;
	height: 13px;
	opacity: 0.8;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 6px;
}
.badge-open {
	background: var(--green-bg);
	color: var(--green);
}
.badge-pending {
	background: var(--amber-bg);
	color: var(--amber);
}
.badge-closed {
	background: var(--panel);
	color: var(--muted);
}
.badge-float {
	position: absolute;
	top: 10px;
	left: 10px;
	backdrop-filter: blur(6px);
	background: rgba(10, 10, 15, 0.6);
}
.verified {
	color: var(--blue);
}

/* Skeleton + states */
.skeleton {
	background: linear-gradient(90deg, var(--panel) 25%, var(--panel-hover) 50%, var(--panel) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.4s infinite;
	border-radius: 8px;
}
@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}
.skel-card {
	height: 280px;
	border-radius: var(--radius);
}
.empty,
.errbox {
	grid-column: 1 / -1;
	padding: 70px 20px;
	text-align: center;
	color: var(--muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.empty .ico,
.errbox .ico {
	font-size: 40px;
	opacity: 0.5;
}
.empty h3,
.errbox h3 {
	font-size: 17px;
	color: var(--text);
}
.empty p,
.errbox p {
	font-size: 13px;
	max-width: 360px;
	line-height: 1.6;
}
.load-more {
	grid-column: 1 / -1;
	margin: 18px auto 0;
	padding: 11px 22px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	background: var(--panel);
	border: 1px solid var(--border);
	transition: background 0.15s;
}
.load-more:hover {
	background: var(--panel-hover);
}
.load-more[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ── Detail page ── */
.detail {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	align-items: start;
	padding-top: 26px;
}
@media (max-width: 900px) {
	.detail {
		grid-template-columns: 1fr;
	}
}
.detail h1 {
	font-size: clamp(22px, 3.5vw, 32px);
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.2;
	margin: 12px 0 14px;
}
.crumbs {
	font-size: 13px;
	color: var(--muted);
}
.crumbs a:hover {
	color: var(--text);
}
.detail-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}
.detail-section h2 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}
.body-md {
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(240, 240, 248, 0.86);
	white-space: pre-wrap;
	word-break: break-word;
}
.criteria-li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}
.criteria-li:last-child {
	border-bottom: none;
}
.criteria-li .chk {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 1.5px solid var(--border);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	margin-top: 1px;
}
.criteria-li .req {
	font-size: 10px;
	color: var(--amber);
	font-weight: 700;
	text-transform: uppercase;
	margin-left: auto;
	flex-shrink: 0;
}
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}
.gallery a {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border);
	aspect-ratio: 4 / 3;
	background: #0d0d14;
}
.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Reward / chain side panel */
.side-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}
.reward-hero {
	font-size: 34px;
	font-weight: 800;
	color: var(--green);
	letter-spacing: -1px;
}
.reward-sub {
	color: var(--muted);
	font-size: 13px;
	margin-top: 2px;
}
.leg-row,
.kv {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
}
.leg-row:last-child,
.kv:last-child {
	border-bottom: none;
}
.kv .k {
	color: var(--muted);
}
.kv .v {
	font-weight: 600;
	font-family: ui-monospace, 'JetBrains Mono', monospace;
	font-size: 12px;
}
.kv .v a {
	color: var(--accent);
}
.kv .v a:hover {
	text-decoration: underline;
}
.mono {
	font-family: ui-monospace, 'JetBrains Mono', monospace;
}

/* Submissions */
.sub {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: rgba(255, 255, 255, 0.02);
}
.sub-head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}
.sub-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--sol));
	flex-shrink: 0;
}
.sub-body {
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(240, 240, 248, 0.82);
	white-space: pre-wrap;
	word-break: break-word;
}
.sub-likes {
	margin-left: auto;
	color: #ff6b81;
	font-weight: 600;
}
.skel-line {
	height: 14px;
	margin-bottom: 10px;
}

/* Rendered Markdown (briefs + submission bodies) */
.md {
	white-space: normal;
}
.md > :first-child {
	margin-top: 0;
}
.md > :last-child {
	margin-bottom: 0;
}
.md p {
	margin: 0 0 12px;
}
.md h3,
.md h4,
.md h5,
.md h6 {
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.2px;
	margin: 18px 0 8px;
	color: var(--text);
}
.md h3 {
	font-size: 18px;
}
.md h4 {
	font-size: 16px;
}
.md h5,
.md h6 {
	font-size: 14px;
}
.md ul,
.md ol {
	margin: 0 0 12px;
	padding-left: 22px;
}
.md li {
	margin: 4px 0;
}
.md li::marker {
	color: var(--muted);
}
.md a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.md a:hover {
	border-bottom-color: currentColor;
}
.md strong {
	font-weight: 700;
	color: var(--text);
}
.md em {
	font-style: italic;
}
.md del {
	opacity: 0.6;
}
.md code {
	font-family: ui-monospace, 'JetBrains Mono', monospace;
	font-size: 0.88em;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 5px;
	word-break: break-word;
}
.md pre.md-pre {
	background: #0d0d14;
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
	overflow-x: auto;
	margin: 0 0 12px;
}
.md pre.md-pre code {
	background: none;
	border: none;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(240, 240, 248, 0.9);
}
.md blockquote {
	margin: 0 0 12px;
	padding: 4px 0 4px 14px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
}
.md hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 18px 0;
}
