/* Layout & marketing components — design tokens live in md3.css */

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 5000;
	height: var(--header-h);
	backdrop-filter: blur(24px) saturate(1.4);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	background: var(--header-bg);
	border-bottom: 1px solid var(--glass-border);
	box-shadow: inset 0 1px 0 var(--glass-highlight);
	transition: box-shadow var(--md-motion-medium) var(--ease), background var(--md-motion-medium) var(--ease);
}

.site-header.is-scrolled {
	box-shadow: var(--md-elevation-2), inset 0 1px 0 var(--glass-highlight);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: var(--header-h);
}

.header-inner--app {
	width: 100%;
	padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.app-page-label {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
}

.app-page-heading {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
}

.app-page-desc {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.78rem;
	line-height: 1.35;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(52vw, 420px);
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--text);
	font-weight: 700;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: var(--md-shape-sm);
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent);
	color: var(--md-sys-color-primary);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.15rem;
	letter-spacing: -0.03em;
}

.header-nav {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: var(--header-h);
	z-index: 5001;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	opacity: 1;
	pointer-events: none;
}

.header-nav .nav-list {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: auto;
}

.header-nav a {
	display: block;
	padding: 0.55rem 0.95rem;
	color: var(--text-muted);
	border-radius: var(--md-shape-full);
	font-weight: 500;
	transition: background var(--md-motion-short) var(--ease), color var(--md-motion-short) var(--ease);
}

.header-nav .nav-item--primary > a,
.header-nav li.nav-item--primary a {
	color: var(--md-sys-color-primary);
	font-weight: 700;
	background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}

.header-nav a:hover,
.header-nav .current-menu-item > a {
	color: var(--text);
	background: var(--accent-dim);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.header-balance {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 0.4rem 0.9rem;
	border-radius: var(--md-shape-md);
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 28%, transparent);
	color: var(--text);
	line-height: 1.2;
	transition: transform var(--md-motion-short) var(--ease), box-shadow var(--md-motion-short) var(--ease);
}

.header-balance:hover {
	transform: translateY(-1px);
	box-shadow: var(--md-elevation-1);
	color: var(--text);
}

.balance-label {
	font-size: 0.68rem;
	color: var(--text-muted);
}

.balance-value {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--accent-2);
}

.balance-value small {
	font-size: 0.68rem;
	opacity: 0.8;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: var(--glass-bg);
	border: 1px solid var(--border);
	border-radius: var(--md-shape-full);
	padding: 0;
	cursor: pointer;
	color: var(--text);
}

.nav-toggle .md-icon {
	pointer-events: none;
}

.nav-backdrop {
	display: none;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: calc(100vh - var(--header-h));
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: clamp(3.5rem, 8vh, 5rem) 0 clamp(4rem, 9vh, 6rem);
}

.hero--market {
	isolation: isolate;
}

.hero-plane {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.hero-plane-wash {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 55% at 78% 42%, rgba(38, 161, 123, 0.32), transparent 62%),
		radial-gradient(ellipse 45% 40% at 12% 78%, rgba(242, 169, 0, 0.12), transparent 58%),
		linear-gradient(165deg, rgba(8, 14, 12, 0.2) 0%, rgba(13, 20, 18, 0.88) 68%, var(--bg) 100%);
	animation: heroWash 14s ease-in-out infinite alternate;
}

.hero-plane-grid {
	position: absolute;
	inset: 0;
	opacity: 0.22;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
}

.hero-orb {
	position: absolute;
	border-radius: 50%;
	overflow: hidden;
	filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
	animation: orbFloat 11s ease-in-out infinite;
}

.hero-orb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 50%;
}

.hero-orb--usdt {
	width: clamp(110px, 16vw, 180px);
	height: clamp(110px, 16vw, 180px);
	inset-inline-end: clamp(1.5rem, 10vw, 14%);
	top: 22%;
	animation-delay: 0s;
}

.hero-orb--btc {
	width: clamp(68px, 10vw, 108px);
	height: clamp(68px, 10vw, 108px);
	inset-inline-end: clamp(5rem, 24vw, 30%);
	top: 58%;
	animation-delay: -3.5s;
	animation-duration: 13s;
}

.hero-orb--eth {
	width: clamp(52px, 7.5vw, 80px);
	height: clamp(52px, 7.5vw, 80px);
	inset-inline-end: clamp(1.25rem, 5vw, 8%);
	top: 64%;
	animation-delay: -6s;
	animation-duration: 15s;
	opacity: 0.92;
}

@keyframes heroWash {
	from { transform: scale(1); opacity: 0.92; }
	to { transform: scale(1.04); opacity: 1; }
}

@keyframes orbFloat {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -16px, 0); }
}

[data-theme="light"] .hero-plane-wash {
	background:
		radial-gradient(ellipse 70% 55% at 80% 30%, rgba(13, 122, 95, 0.2), transparent 60%),
		radial-gradient(ellipse 45% 40% at 10% 75%, rgba(224, 160, 0, 0.1), transparent 55%),
		linear-gradient(170deg, #fafcfb 0%, #eef3f1 55%, #e6eeea 100%);
	animation: none;
}

[data-theme="light"] .hero-plane-grid {
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(20, 32, 28, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(20, 32, 28, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb {
	filter: drop-shadow(0 14px 24px rgba(20, 32, 28, 0.16));
}

[data-theme="light"] .hero-brand {
	color: #0a6b53;
}

[data-theme="light"] .hero-title {
	color: #14201c;
}

[data-theme="light"] .hero-desc {
	color: #4a5c55;
}

.header-brand--app {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.header-brand--app .app-page-label {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-header--app .header-inner--app {
	min-height: var(--header-h);
	height: auto;
	padding-block: 0.55rem;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
}

.site-header--app .header-actions {
	flex-wrap: nowrap;
	flex-shrink: 0;
}

.site-header--app .header-brand--app {
	flex: 1 1 auto;
	min-width: 0;
}

.header-page-actions {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.header-page-actions {
		display: none !important;
	}
}

@media (max-width: 720px) {
	.app-page-desc {
		display: none;
	}
}

[data-theme="light"] .site-header {
	background: rgba(255, 255, 255, 0.9);
	border-bottom-color: rgba(20, 32, 28, 0.08);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(20, 32, 28, 0.04);
}

[data-theme="light"] .feature-item,
[data-theme="light"] .widget,
[data-theme="light"] .offers-table-wrap {
	background: #ffffff;
	border-color: rgba(20, 32, 28, 0.08);
	box-shadow: var(--md-elevation-1);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

[data-theme="light"] .feature-item:hover {
	border-color: rgba(13, 122, 95, 0.35);
	box-shadow: var(--md-elevation-2);
}

[data-theme="light"] .widget-cta {
	background: linear-gradient(160deg, rgba(13, 122, 95, 0.1), #ffffff);
	border-color: rgba(13, 122, 95, 0.22);
}

[data-theme="light"] .offers-table th,
[data-theme="light"] .data-table th {
	background: #eef3f1;
	color: #4a5c55;
}

[data-theme="light"] .offers-table tbody tr:hover {
	background: rgba(13, 122, 95, 0.04);
}

[data-theme="light"] .cta-band-inner {
	background:
		radial-gradient(ellipse at center, rgba(13, 122, 95, 0.1), transparent 65%),
		#ffffff;
	border-color: rgba(13, 122, 95, 0.2);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

[data-theme="light"] .empty-state {
	background: #ffffff;
	border-color: rgba(20, 32, 28, 0.14);
}

[data-theme="light"] .site-footer {
	background: linear-gradient(180deg, transparent, rgba(20, 32, 28, 0.03));
	border-top-color: rgba(20, 32, 28, 0.08);
}

[data-theme="light"] .status-active,
[data-theme="light"] .status-approved { background: rgba(15, 122, 76, 0.12); color: #0f7a4c; }
[data-theme="light"] .status-pending { background: rgba(161, 98, 7, 0.12); color: #a16207; }
[data-theme="light"] .status-cancelled,
[data-theme="light"] .status-rejected,
[data-theme="light"] .status-disputed { background: rgba(198, 40, 40, 0.1); color: #c62828; }
[data-theme="light"] .status-completed { background: rgba(26, 107, 154, 0.12); color: #1a6b9a; }
[data-theme="light"] .is-plus { color: #0f7a4c; }
[data-theme="light"] .is-minus { color: #c62828; }

.hero-stage {
	position: relative;
	z-index: 1;
	width: 100%;
}

.hero-copy {
	max-width: min(34rem, 100%);
	padding-inline-end: clamp(0.5rem, 2vw, 1.5rem);
	animation: fadeUp 0.75s var(--ease) both;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 5.5vw, 3.6rem);
	font-weight: 800;
	color: var(--accent-2);
	margin: 0 0 0.85rem;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	font-weight: 600;
	margin: 0 0 0.85rem;
	line-height: 1.35;
	color: var(--text);
}

.hero-desc {
	font-size: 1.05rem;
	color: var(--text-muted);
	margin: 0 0 1.85rem;
	max-width: 30em;
	line-height: 1.65;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* Legacy class kept for older markup */
.hero-content {
	position: relative;
	z-index: 1;
	max-width: 720px;
	animation: fadeUp 0.8s var(--ease) both;
}

.hero-bg {
	display: none;
}

/* ---------- Sections ---------- */
.section {
	padding: 4.5rem 0;
}

.section-header {
	margin-bottom: 2.5rem;
}

.section-header h2 {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.section-header p {
	margin: 0;
	color: var(--text-muted);
}

.section-header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.offers-section--primary {
	padding-top: 2.5rem;
}

.section-footer-cta {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

/* ---------- Market board (homepage) ---------- */
.market-board-section {
	padding-top: 3rem;
}

.market-board {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.market-row {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
	align-items: center;
	gap: 1rem 1.25rem;
	padding: 1.05rem 1.2rem;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
	transition: border-color var(--md-motion-short) var(--ease), transform var(--md-motion-short) var(--ease);
	animation: fadeUp 0.55s var(--ease) both;
}

.market-row:nth-child(2) { animation-delay: 0.05s; }
.market-row:nth-child(3) { animation-delay: 0.1s; }
.market-row:nth-child(4) { animation-delay: 0.15s; }
.market-row:nth-child(5) { animation-delay: 0.2s; }
.market-row:nth-child(6) { animation-delay: 0.25s; }

.market-row:hover {
	border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, transparent);
	transform: translateY(-2px);
}

.market-seller {
	display: block;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--text);
}

.market-gateway {
	display: block;
	margin-top: 0.2rem;
	color: var(--text-muted);
	font-size: 0.86rem;
}

.gateway-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	vertical-align: middle;
	color: var(--text);
}

.gateway-chip-media {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.gateway-chip-img {
	width: 22px;
	height: 22px;
	padding: 2px;
	border-radius: 6px;
	flex-shrink: 0;
	object-fit: contain;
	object-position: center;
	background: #fff;
	display: block;
}

.gateway-chip-media .gateway-chip-img {
	width: 100%;
	height: 100%;
	padding: 2px;
	border-radius: 0;
	border: 0;
}

.gateway-chip-fallback {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--md-sys-color-on-primary);
	background: var(--md-sys-color-primary);
}

.gateway-chip-text {
	display: inline-flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35rem;
	min-width: 0;
	text-align: start;
}

.gateway-chip-text strong {
	font-size: 0.9rem;
	line-height: 1.25;
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gateway-chip-currency {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent-2);
	letter-spacing: 0.02em;
}

.market-gateway .gateway-chip {
	margin-top: 0.15rem;
}

.market-row-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1.25rem;
}

.market-metric-label {
	display: block;
	font-size: 0.75rem;
	color: var(--text-dim);
	margin-bottom: 0.15rem;
}

.market-metric strong {
	font-size: 1.02rem;
	font-weight: 700;
}

.market-metric small {
	font-weight: 600;
	color: var(--text-muted);
	font-size: 0.78rem;
}

.market-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	border: 1px dashed var(--border);
	border-radius: 16px;
	background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
}

.market-empty p {
	margin: 0 0 1rem;
	color: var(--text-muted);
}

.section-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.market-board-head {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) 5.5rem;
	gap: 1rem 1.25rem;
	padding: 0 1.2rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-dim);
}

/* Dual journeys (buyer / seller) */
.journeys-section {
	padding-top: 2.5rem;
}

.journeys-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.journey-card {
	padding: 1.5rem 1.4rem 1.6rem;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
	animation: fadeUp 0.55s var(--ease) both;
}

.journey-card--seller {
	animation-delay: 0.08s;
}

.journey-role {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--accent-2);
}

.journey-card h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 800;
}

.journey-steps {
	margin: 0 0 1.35rem;
	padding: 0 1.15rem 0 0;
	color: var(--text-muted);
	line-height: 1.65;
	font-size: 0.94rem;
}

.journey-steps li + li {
	margin-top: 0.45rem;
}

.flow-track--4 {
	grid-template-columns: repeat(4, 1fr);
}

.flow-track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	counter-reset: none;
}

.flow-step {
	position: relative;
	padding: 0.25rem 0 0;
}

.flow-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin-bottom: 0.85rem;
	border-radius: 10px;
	font-weight: 800;
	font-size: 0.95rem;
	color: var(--md-sys-color-on-primary);
	background: var(--md-sys-color-primary);
}

.flow-step h3 {
	margin: 0 0 0.4rem;
	font-size: 1.12rem;
	font-weight: 700;
}

.flow-step p {
	margin: 0;
	color: var(--text-muted);
	line-height: 1.55;
	font-size: 0.95rem;
}

.close-section {
	padding-bottom: 5rem;
}

.close-band {
	text-align: center;
	padding: 3rem 1.5rem;
	border-radius: 20px;
	border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 28%, transparent);
	background:
		radial-gradient(ellipse 70% 80% at 50% 0%, color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent), transparent 65%),
		var(--bg-elevated);
}

.close-brand {
	margin: 0 0 0.5rem;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--accent-2);
	letter-spacing: -0.02em;
}

.close-band h2 {
	margin: 0 0 0.45rem;
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.close-band p {
	margin: 0 0 1.35rem;
	color: var(--text-muted);
}

[data-theme="light"] .journey-card {
	background: #ffffff;
	border-color: rgba(20, 32, 28, 0.08);
}

[data-theme="light"] .market-row {
	background: #ffffff;
	border-color: rgba(20, 32, 28, 0.08);
}

[data-theme="light"] .market-empty,
[data-theme="light"] .close-band {
	background: #ffffff;
}

[data-theme="light"] .close-band {
	background:
		radial-gradient(ellipse 70% 80% at 50% 0%, rgba(13, 122, 95, 0.1), transparent 65%),
		#ffffff;
	border-color: rgba(13, 122, 95, 0.22);
}

[data-theme="light"] .close-brand {
	color: #0a6b53;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.feature-item {
	padding: 1.75rem;
	border-radius: var(--md-shape-lg);
	background: var(--glass-bg);
	backdrop-filter: blur(18px) saturate(1.3);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid var(--glass-border);
	box-shadow: var(--md-elevation-1), inset 0 1px 0 var(--glass-highlight);
	transition: transform var(--md-motion-medium) var(--ease), border-color var(--md-motion-medium), box-shadow var(--md-motion-medium);
	animation: fadeUp 0.7s var(--ease) both;
}

.feature-item:nth-child(2) { animation-delay: 0.1s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }

.feature-item:hover {
	transform: translateY(-6px);
	border-color: rgba(38, 161, 123, 0.4);
	box-shadow: var(--shadow);
}

.feature-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	border-radius: var(--md-shape-md);
	background: var(--accent-dim);
	color: var(--md-sys-color-primary);
	border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 25%, transparent);
}

.feature-num {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent-2);
	margin-bottom: 0.65rem;
	letter-spacing: 0.08em;
}

.feature-item h3 {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
}

.feature-item p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* ---------- Layout with sidebar ---------- */
.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2rem;
	align-items: start;
}

.layout-content {
	min-width: 0;
}

.site-sidebar,
.home-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
}

.widget {
	padding: 1.35rem;
	border-radius: var(--md-shape-md);
	background: var(--glass-bg);
	backdrop-filter: blur(18px) saturate(1.3);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid var(--glass-border);
	box-shadow: var(--md-elevation-1), inset 0 1px 0 var(--glass-highlight);
}

.widget-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-family: var(--font-display);
}

.widget p {
	margin: 0 0 1rem;
	color: var(--text-muted);
	font-size: 0.92rem;
}

.widget-cta {
	background: linear-gradient(160deg, rgba(38, 161, 123, 0.2), var(--surface));
	border-color: rgba(38, 161, 123, 0.35);
}

/* ---------- Offers table ---------- */
.offers-table-wrap,
.table-scroll {
	overflow-x: auto;
	border-radius: var(--md-shape-md);
	border: 1px solid var(--glass-border);
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--md-elevation-1);
}

.offers-table,
.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.offers-table th,
.offers-table td,
.data-table th,
.data-table td {
	padding: 1rem 1.1rem;
	text-align: right;
	border-bottom: 1px solid var(--border);
}

.offers-table th,
.data-table th {
	font-size: 0.8rem;
	text-transform: none;
	color: var(--text-muted);
	font-weight: 600;
	background: rgba(0, 0, 0, 0.2);
}

.offers-table tr:last-child td,
.data-table tr:last-child td {
	border-bottom: 0;
}

.offers-table tbody tr {
	transition: background 0.2s;
}

.offers-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

.seller-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--bg-soft);
	font-size: 0.85rem;
	font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
	padding-bottom: 5rem;
}

.cta-band-inner {
	text-align: center;
	padding: 3.5rem 2rem;
	border-radius: var(--md-shape-xl);
	background:
		radial-gradient(ellipse at center, color-mix(in srgb, var(--md-sys-color-primary) 18%, transparent), transparent 65%),
		var(--glass-bg-strong);
	backdrop-filter: blur(24px) saturate(1.35);
	-webkit-backdrop-filter: blur(24px) saturate(1.35);
	border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 30%, transparent);
	box-shadow: var(--md-elevation-2), inset 0 1px 0 var(--glass-highlight);
	animation: fadeUp 0.8s var(--ease) both;
}

.cta-band-inner h2 {
	font-family: var(--font-display);
	margin: 0 0 0.6rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta-band-inner p {
	margin: 0 0 1.75rem;
	color: var(--text-muted);
}

.cta-band-inner .hero-cta {
	justify-content: center;
}

/* ---------- Empty / content ---------- */
.empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
	border-radius: var(--radius);
	border: 1px dashed var(--border-strong);
	background: rgba(255, 255, 255, 0.02);
}

.empty-state p {
	color: var(--text-muted);
	margin: 0 0 1.25rem;
}

.content-card {
	padding: 1.75rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	margin-bottom: 1.25rem;
}

.entry-title {
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
}

.entry-title a {
	color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 2rem;
	border-top: 1px solid var(--border);
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
}

.footer-main {
	padding: 3.5rem 0 2.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 2rem;
}

.footer-tagline {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin: 1rem 0 0;
	max-width: 28em;
}

.footer-widget-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-family: var(--font-display);
}

.footer-links,
.footer-networks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: var(--text-muted);
}

.footer-links a:hover {
	color: var(--accent-2);
}

.footer-networks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.net-badge {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	font-size: 0.8rem;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text-muted);
}

.footer-bottom {
	border-top: 1px solid var(--border);
	padding: 1.15rem 0;
}

.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: var(--text-dim);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom-nav {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-bottom-nav a {
	color: var(--text-dim);
}

/* ---------- Status pills ---------- */
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.7rem;
	border-radius: var(--md-shape-full);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.status-active,
.status-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-cancelled,
.status-rejected,
.status-disputed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-completed { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.is-plus { color: #4ade80; font-weight: 600; }
.is-minus { color: #f87171; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout-with-sidebar {
		grid-template-columns: 1fr;
	}

	.flow-track--4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-sidebar,
	.home-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav-toggle {
		display: flex;
	}

	.header-inner {
		gap: 0.65rem;
	}

	.header-brand {
		min-width: 0;
		flex: 1 1 auto;
	}

	.brand-link {
		min-width: 0;
		max-width: 100%;
	}

	.brand-name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 1rem;
	}

	.brand-mark {
		width: 36px;
		height: 36px;
		flex-shrink: 0;
	}

	.header-actions {
		gap: 0.35rem;
		flex-shrink: 0;
		flex-wrap: nowrap;
	}

	.header-login-link {
		display: none !important;
	}

	.header-market-link,
	.header-about-link {
		display: none !important;
	}

	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 5001;
		border: 0;
		padding: 0;
		margin: 0;
		background: rgba(8, 14, 12, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.nav-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	[data-theme="light"] .nav-backdrop {
		background: rgba(15, 25, 22, 0.28);
	}

	.header-nav {
		position: fixed !important;
		top: calc(var(--header-h) + 0.55rem) !important;
		left: 0.85rem !important;
		right: 0.85rem !important;
		bottom: auto !important;
		width: auto !important;
		height: auto !important;
		max-height: min(70vh, 28rem);
		overflow-y: auto;
		background: var(--bg-elevated);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border: 1px solid var(--border);
		border-radius: 16px;
		padding: 0.55rem;
		transform: translateY(-0.75rem);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
		z-index: 5002 !important;
		box-shadow: var(--md-elevation-3);
	}

	[data-theme="light"] .header-nav {
		background: #fff;
		border-color: rgba(20, 32, 28, 0.1);
		box-shadow: 0 12px 32px rgba(15, 25, 22, 0.14);
	}

	.header-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header-nav .nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
		width: 100%;
		pointer-events: auto;
	}

	.header-nav a {
		padding: 0.85rem 0.95rem;
		border-radius: 12px;
		font-size: 0.95rem;
		font-weight: 700;
		color: var(--text);
		line-height: 1.3;
	}

	.header-nav a:hover,
	.header-nav a:focus {
		background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
		color: var(--md-sys-color-primary);
	}

	.header-nav .current-menu-item > a,
	.header-nav .nav-item--primary > a {
		background: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent);
		color: var(--md-sys-color-primary);
	}

	.header-balance {
		display: flex;
		padding: 0.3rem 0.65rem;
	}

	.header-balance .balance-label {
		font-size: 0.62rem;
	}

	.header-balance .balance-value {
		font-size: 0.85rem;
	}

	body.nav-open {
		overflow: hidden;
	}

	.hero {
		min-height: auto;
		padding: 3rem 0 3.5rem;
	}

	.hero-orb--usdt {
		inset-inline-end: clamp(1rem, 6vw, 2rem);
		top: 6%;
		opacity: 0.75;
		width: 88px;
		height: 88px;
	}

	.hero-orb--btc {
		inset-inline-end: clamp(5rem, 28vw, 8rem);
		width: 56px;
		height: 56px;
		opacity: 0.65;
	}

	.hero-orb--eth {
		inset-inline-end: clamp(1rem, 4vw, 1.5rem);
		width: 44px;
		height: 44px;
		opacity: 0.6;
	}

	.hero-copy {
		max-width: 100%;
		padding-inline-end: 0;
		position: relative;
		z-index: 2;
	}

	.market-row {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.market-board-head {
		display: none;
	}

	.market-row-action {
		justify-self: start;
	}

	.journeys-grid {
		grid-template-columns: 1fr;
	}

	.flow-track,
	.flow-track--4 {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.site-sidebar,
	.home-sidebar,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.offers-table thead {
		display: none;
	}

	.offers-table tr {
		display: block;
		padding: 1rem;
		border-bottom: 1px solid var(--border);
	}

	.offers-table td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.4rem 0;
		border: 0;
	}

	.offers-table td::before {
		content: attr(data-label);
		color: var(--text-muted);
		font-size: 0.8rem;
	}
}

/* ---------- Content stacking ---------- */
.site-header,
.app-shell,
.site-main,
.auth-shell,
.site-footer {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.hero-orb,
	.hero-plane-wash {
		animation: none;
	}
}

/* Forced profile completion after Google signup */
.usdt-modal--forced {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.usdt-modal--forced[hidden] {
	display: none !important;
}

.usdt-modal--forced .usdt-modal-backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, #000 62%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.usdt-modal-dialog--complete {
	position: relative;
	z-index: 1;
	width: min(100%, 440px);
	max-height: min(92vh, 720px);
	overflow: auto;
	padding: 1.25rem 1.2rem 1.15rem;
	border-radius: var(--md-shape-xl, 20px);
	background: var(--glass-bg-strong, var(--bg-elevated));
	border: 1px solid var(--glass-border, var(--border));
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.usdt-modal-dialog--complete .usdt-modal-header {
	margin-bottom: 1rem;
	text-align: center;
}

.usdt-modal-dialog--complete .usdt-modal-header h2 {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.usdt-modal-lead {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

body.profile-complete-locked {
	overflow: hidden !important;
}

body.profile-complete-locked .app-shell,
body.profile-complete-locked .site-header,
body.profile-complete-locked .dash-sidebar {
	pointer-events: none;
	user-select: none;
}

body.profile-complete-locked #profile-complete-modal,
body.profile-complete-locked #profile-complete-modal * {
	pointer-events: auto;
	user-select: auto;
}
