/* Site footer — dark exchange layout */
.ftx-footer {
	--ftx-bg: hsl(215, 27.9%, 16.9%);
	--ftx-bg-alpha: hsla(215, 27.9%, 16.9%, 0.1);
	--ftx-fg: hsl(210, 20%, 98%);
	--ftx-primary: hsl(263.4, 70%, 50.4%);
	--ftx-muted: hsl(217.9, 10.6%, 64.9%);
	--ftx-border: hsla(215, 27.9%, 16.9%, 0.5);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--ftx-bg-alpha);
	background-color: var(--ftx-bg);
	padding: 48px 0;
	color: var(--ftx-fg);
}
body.dark .ftx-footer { background: hsla(215, 27.9%, 16.9%, 0.1); }
body:not(.dark) .ftx-footer {
	--ftx-bg: #ffffff;
	--ftx-bg-alpha: #f8fafc;
	--ftx-fg: #0f172a;
	--ftx-muted: #64748b;
	--ftx-border: #e2e8f0;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.ftx-footer *, .ftx-footer *::before, .ftx-footer *::after { box-sizing: border-box; }

.ftx-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

.ftx-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
@media (min-width: 768px) {
	.ftx-grid { grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
}

.ftx-brand-col { grid-column: span 1; }
@media (min-width: 768px) { .ftx-brand-col { grid-column: span 1; } }

.ftx-brand {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 16px;
	text-decoration: none !important;
}
.ftx-brand:hover { text-decoration: none !important; }
.ftx-brand img {
	height: 52px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.ftx-tagline {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--ftx-muted);
	line-height: 1.5;
}

.ftx-members {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ftx-avatars {
	display: flex;
	align-items: center;
}
.ftx-avatars span {
	position: relative;
	display: flex;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	border: 2px solid hsla(215, 27.9%, 16.9%, 0.1);
	margin-left: -8px;
	background: hsl(217, 10%, 20%);
}
.ftx-avatars span:first-child { margin-left: 0; }
.ftx-avatars img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ftx-members-text {
	font-size: 14px;
	color: var(--ftx-muted);
}
.ftx-members-text strong { color: var(--ftx-primary); font-weight: 600; }

/* Desktop link columns */
.ftx-links-grid {
	display: none;
	grid-column: span 1;
	grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
	gap: 24px 20px;
	align-items: start;
}
@media (min-width: 768px) { .ftx-links-grid { display: grid; } }

.ftx-col h3 {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ftx-fg);
	min-height: 1.2em;
}
.ftx-col-coins-cont h3 {
	visibility: hidden;
}
.ftx-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ftx-col li + li { margin-top: 8px; }
.ftx-col a {
	font-size: 14px;
	color: var(--ftx-muted);
	text-decoration: none !important;
	transition: color 0.2s;
}
.ftx-col a:hover { color: var(--ftx-primary); text-decoration: none !important; }

/* Mobile accordion */
.ftx-acc { display: block; grid-column: 1 / -1; }
@media (min-width: 768px) { .ftx-acc { display: none; } }

.ftx-acc-item { border-bottom: 1px solid var(--ftx-border); }
.ftx-acc-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: var(--ftx-fg);
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}
.ftx-acc-btn:hover { text-decoration: underline; }
.ftx-acc-btn:focus,
.ftx-acc-btn:focus-visible,
.ftx-acc-btn:active {
	outline: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.ftx-acc-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.2s;
}
.ftx-acc-item.is-open .ftx-acc-btn svg { transform: rotate(180deg); }
.ftx-acc-panel {
	display: none;
	padding: 0 0 16px;
}
.ftx-acc-item.is-open .ftx-acc-panel { display: block; }
.ftx-acc-panel ul { margin: 0; padding: 0; list-style: none; }
.ftx-acc-panel li + li { margin-top: 8px; }
.ftx-acc-panel a {
	font-size: 14px;
	color: var(--ftx-muted);
	text-decoration: none !important;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.ftx-acc-panel a:hover { color: var(--ftx-primary); }
.ftx-acc-panel a:focus,
.ftx-acc-panel a:focus-visible,
.ftx-acc-panel a:active {
	outline: none !important;
	box-shadow: none !important;
}

/* Bottom bar */
.ftx-bottom {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--ftx-border);
}
.ftx-bottom-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}
@media (min-width: 768px) {
	.ftx-bottom-inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}
.ftx-copy {
	margin: 0;
	font-size: 14px;
	color: var(--ftx-muted);
}
.ftx-copy a {
	color: var(--ftx-muted);
	text-decoration: underline;
	transition: color 0.2s;
}
.ftx-copy a:hover { color: var(--ftx-primary); }

.ftx-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 24px;
}
.ftx-legal a {
	font-size: 14px;
	color: var(--ftx-muted);
	text-decoration: none !important;
	transition: color 0.2s;
}
.ftx-legal a:hover { color: var(--ftx-primary); }

.ftx-social {
	display: flex;
	align-items: center;
	gap: 16px;
}
.ftx-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: hsl(224, 71.4%, 4.1%);
	color: var(--ftx-muted);
	transition: background 0.2s, color 0.2s;
	text-decoration: none !important;
}
.ftx-social a:hover {
	background: hsla(263, 70%, 50.4%, 0.1);
	color: var(--ftx-primary);
}
.ftx-social svg { width: 20px; height: 20px; }
