/* Made4Trades — refined dark theme */

html:not(.m4t-light) body {
	background:
		radial-gradient(900px 520px at 8% -10%, rgba(0, 226, 138, 0.075), transparent 62%),
		radial-gradient(900px 540px at 94% 0%, rgba(96, 165, 250, 0.08), transparent 60%),
		#0d1620 !important;
	background-attachment: fixed !important;
}

html:not(.m4t-light) .m4t {
	background: transparent !important;
}

html:not(.m4t-light) .m4t .site-head {
	border-bottom-color: rgba(53, 240, 169, 0.13) !important;
	background: linear-gradient(112deg, rgba(12, 24, 34, 0.97) 0%, rgba(16, 30, 43, 0.96) 50%, rgba(22, 27, 44, 0.95) 100%) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 0, 0, 0.18) !important;
}

html:not(.m4t-light) .m4t .site-head.is-scrolled {
	background: linear-gradient(112deg, #0c1822 0%, #101e2b 52%, #151b2c 100%) !important;
}

html:not(.m4t-light) .m4t .site-head::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(53, 240, 169, 0.5) 22%, rgba(96, 165, 250, 0.45) 58%, rgba(167, 139, 250, 0.35) 82%, transparent 100%);
	pointer-events: none;
}

html:not(.m4t-light) .m4t .nav a {
	color: #a3b2c4 !important;
}

html:not(.m4t-light) .m4t .nav a:hover,
html:not(.m4t-light) .m4t .nav a.is-current {
	color: #ffffff !important;
}

html:not(.m4t-light) .m4t .member-card,
html:not(.m4t-light) .m4t .member-tile {
	border-color: rgba(255, 255, 255, 0.095) !important;
	background: linear-gradient(160deg, rgba(22, 35, 49, 0.94) 0%, rgba(13, 24, 36, 0.92) 100%) !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16) !important;
}

html:not(.m4t-light) .m4t .member-hero {
	border-top: 3px solid rgba(53, 240, 169, 0.8) !important;
	background:
		radial-gradient(460px 220px at 8% 0%, rgba(53, 240, 169, 0.09), transparent 65%),
		linear-gradient(135deg, rgba(24, 42, 55, 0.96) 0%, rgba(14, 28, 41, 0.94) 58%, rgba(17, 27, 43, 0.94) 100%) !important;
}

html:not(.m4t-light) .m4t .my-space-main > .member-card:first-child {
	border-top: 3px solid rgba(96, 165, 250, 0.8) !important;
	background:
		radial-gradient(460px 220px at 90% 0%, rgba(96, 165, 250, 0.08), transparent 65%),
		linear-gradient(160deg, rgba(21, 35, 50, 0.96), rgba(12, 23, 36, 0.94)) !important;
}

html:not(.m4t-light) .m4t .upcoming-card {
	border-top: 3px solid rgba(245, 158, 11, 0.75) !important;
	background:
		radial-gradient(360px 180px at 90% 0%, rgba(245, 158, 11, 0.08), transparent 65%),
		linear-gradient(160deg, rgba(31, 33, 35, 0.96), rgba(15, 24, 34, 0.94)) !important;
}

html:not(.m4t-light) .m4t .my-space-side > .member-card:nth-child(2) {
	border-top: 3px solid rgba(167, 139, 250, 0.75) !important;
	background:
		radial-gradient(360px 180px at 90% 0%, rgba(167, 139, 250, 0.08), transparent 65%),
		linear-gradient(160deg, rgba(27, 31, 47, 0.96), rgba(13, 23, 35, 0.94)) !important;
}

html:not(.m4t-light) .m4t .profile-details {
	border-top: 3px solid rgba(53, 240, 169, 0.7) !important;
	background: linear-gradient(160deg, rgba(20, 35, 47, 0.96), rgba(12, 23, 34, 0.94)) !important;
}

html:not(.m4t-light) .m4t .member-stat {
	border-color: rgba(255, 255, 255, 0.075) !important;
	background: rgba(255, 255, 255, 0.025) !important;
}

html:not(.m4t-light) .m4t .watch-card {
	border-color: rgba(255, 255, 255, 0.08) !important;
	background: linear-gradient(145deg, rgba(23, 37, 51, 0.94), rgba(13, 25, 37, 0.92)) !important;
}

html:not(.m4t-light) .m4t .watch-card:nth-child(4n + 1)::before { background: #35f0a9; }
html:not(.m4t-light) .m4t .watch-card:nth-child(4n + 2)::before { background: #60a5fa; }
html:not(.m4t-light) .m4t .watch-card:nth-child(4n + 3)::before { background: #fbbf24; }
html:not(.m4t-light) .m4t .watch-card:nth-child(4n + 4)::before { background: #a78bfa; }

html:not(.m4t-light) .m4t .upcoming-row {
	border-color: rgba(255, 255, 255, 0.075) !important;
	background: rgba(255, 255, 255, 0.028) !important;
}

html:not(.m4t-light) .m4t .member-muted,
html:not(.m4t-light) .m4t .watch-summary,
html:not(.m4t-light) .m4t .member-call-main small {
	color: #a9b9ca !important;
}

html:not(.m4t-light) .m4t .watch-time,
html:not(.m4t-light) .m4t .watch-day-label,
html:not(.m4t-light) .m4t .upcoming-main span {
	color: #93a6ba !important;
}

html:not(.m4t-light) .m4t .member-stat small,
html:not(.m4t-light) .m4t .member-handle {
	color: #9cafc3 !important;
}

html:not(.m4t-light) .m4t .feature,
html:not(.m4t-light) .m4t .step,
html:not(.m4t-light) .m4t .rule,
html:not(.m4t-light) .m4t .call-card {
	border-color: rgba(255, 255, 255, 0.085) !important;
	background: linear-gradient(155deg, rgba(22, 35, 49, 0.9), rgba(13, 24, 36, 0.88)) !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14) !important;
}

html:not(.m4t-light) .m4t .feature:nth-child(4n + 1) { border-top: 3px solid rgba(53, 240, 169, 0.65) !important; }
html:not(.m4t-light) .m4t .feature:nth-child(4n + 2) { border-top: 3px solid rgba(96, 165, 250, 0.65) !important; }
html:not(.m4t-light) .m4t .feature:nth-child(4n + 3) { border-top: 3px solid rgba(251, 191, 36, 0.6) !important; }
html:not(.m4t-light) .m4t .feature:nth-child(4n + 4) { border-top: 3px solid rgba(167, 139, 250, 0.6) !important; }

html:not(.m4t-light) .m4t .step:nth-child(3n + 1) { border-top: 3px solid rgba(53, 240, 169, 0.55) !important; }
html:not(.m4t-light) .m4t .step:nth-child(3n + 2) { border-top: 3px solid rgba(96, 165, 250, 0.55) !important; }
html:not(.m4t-light) .m4t .step:nth-child(3n + 3) { border-top: 3px solid rgba(251, 191, 36, 0.5) !important; }

html:not(.m4t-light) .m4t .cta-panel {
	border-color: rgba(53, 240, 169, 0.18) !important;
	background:
		radial-gradient(440px 240px at 88% 8%, rgba(96, 165, 250, 0.12), transparent 65%),
		linear-gradient(135deg, rgba(18, 38, 38, 0.96), rgba(13, 26, 37, 0.94)) !important;
}

html:not(.m4t-light) .m4t .likes-card {
	border-color: rgba(96, 165, 250, 0.14) !important;
}

html:not(.m4t-light) .m4t .call-givers-card {
	border-color: rgba(167, 139, 250, 0.14) !important;
}

html:not(.m4t-light) .m4t .feature p,
html:not(.m4t-light) .m4t .step p,
html:not(.m4t-light) .m4t .rule p,
html:not(.m4t-light) .m4t .faq-list details p,
html:not(.m4t-light) .m4t .section-head p {
	color: #a2b3c6 !important;
}

html:not(.m4t-light) .m4t .site-foot {
	border-top-color: rgba(255, 255, 255, 0.08) !important;
	background: linear-gradient(160deg, #0f1b27 0%, #0b141e 100%) !important;
}

html:not(.m4t-light) .m4t .foot-col a,
html:not(.m4t-light) .m4t .foot-col p,
html:not(.m4t-light) .m4t .foot-brand p,
html:not(.m4t-light) .m4t .foot-bottom,
html:not(.m4t-light) .m4t .foot-disclaimer p {
	color: #9eb0c3 !important;
}

html:not(.m4t-light) .m4t-board-page .board-top h1 {
	color: #ffffff !important;
}

html:not(.m4t-light) .m4t-board-page .board-toolbar {
	border-color: rgba(255, 255, 255, 0.1) !important;
	background: linear-gradient(120deg, rgba(20, 34, 48, 0.96), rgba(13, 24, 36, 0.94)) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16) !important;
}

html:not(.m4t-light) .m4t-board-page .board-table-card {
	border-color: rgba(255, 255, 255, 0.09) !important;
	background: linear-gradient(180deg, rgba(21, 34, 48, 0.94), rgba(12, 23, 35, 0.92)) !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16) !important;
}

html:not(.m4t-light) .m4t-board-page .board-table tbody tr:first-child td {
	background: rgba(53, 240, 169, 0.045) !important;
}

html:not(.m4t-light) .m4t-board-page .board-table td {
	color: #cfdae7 !important;
}

html:not(.m4t-light) .m4t-board-page .board-table th,
html:not(.m4t-light) .m4t-board-page .board-note,
html:not(.m4t-light) .m4t-board-page .board-toolbar-meta {
	color: #9fb1c4 !important;
}
/* Keep the original bright CTA panel */
html:not(.m4t-light) .m4t .cta-panel {
	border-color: transparent !important;
	background: radial-gradient(120% 160% at 0% 0%, #1bffac 0%, #00e28a 45%, #00b871 100%) !important;
	box-shadow: 0 30px 80px rgba(0, 226, 138, 0.16) !important;
	color: #04120b !important;
}

html:not(.m4t-light) .m4t .cta-panel h2 {
	color: #04120b !important;
}

html:not(.m4t-light) .m4t .cta-panel p {
	color: #06341f !important;
}

html:not(.m4t-light) .m4t .cta-panel .eyebrow {
	color: #05321f !important;
}

html:not(.m4t-light) .m4t .cta-panel .eyebrow .dot {
	background: #05321f !important;
	box-shadow: 0 0 0 4px rgba(4, 18, 11, 0.12) !important;
}
/* Coloured dark market strips */
html:not(.m4t-light) .m4t .ticker {
	border-top: 1px solid rgba(53, 240, 169, 0.16) !important;
	border-bottom: 1px solid rgba(96, 165, 250, 0.16) !important;
	background: linear-gradient(90deg, rgba(10, 29, 31, 0.97) 0%, rgba(12, 24, 38, 0.97) 52%, rgba(23, 21, 42, 0.96) 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.18) !important;
}

html:not(.m4t-light) .m4t .tick {
	border-right-color: rgba(255, 255, 255, 0.075) !important;
	background: transparent !important;
}

html:not(.m4t-light) .m4t .tick:hover {
	background: rgba(53, 240, 169, 0.045) !important;
}

html:not(.m4t-light) .m4t .tick-name {
	border-right-color: rgba(53, 240, 169, 0.12) !important;
	background: rgba(53, 240, 169, 0.055) !important;
}

html:not(.m4t-light) .m4t .breaking-news {
	border-top: 1px solid rgba(96, 165, 250, 0.15) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
	background: linear-gradient(90deg, rgba(28, 24, 30, 0.98) 0%, rgba(12, 25, 40, 0.97) 55%, rgba(23, 20, 40, 0.97) 100%) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

html:not(.m4t-light) .m4t .breaking-item {
	border-right-color: rgba(255, 255, 255, 0.075) !important;
}

html:not(.m4t-light) .m4t .breaking-item:hover {
	background: rgba(96, 165, 250, 0.05) !important;
}
/* Match My Space coloured outlines in dark mode */
html:not(.m4t-light) .m4t-board-page .board-toolbar {
	border-color: rgba(255, 255, 255, 0.1) !important;
	border-top-color: #a78bfa !important;
	border-radius: 11px !important;
}

html:not(.m4t-light) .m4t-board-page .board-table-card {
	border-color: rgba(255, 255, 255, 0.09) !important;
	border-top-color: #60a5fa !important;
	border-radius: 14px !important;
}
/* Match the chat/call-box page background */
html:not(.m4t-light) .m4t-board-page {
	background: transparent !important;
}
/* Preserve coloured top outlines in dark mode */
html:not(.m4t-light) .m4t .yp-card,
html:not(.m4t-light) .m4t .space-panel[data-space-panel="timeline"] .timeline-section,
html:not(.m4t-light) .m4t .member-search {
	border-top-color: #60a5fa !important;
}

html:not(.m4t-light) .m4t .member-tile:nth-child(4n + 1) { border-top-color: #35f0a9 !important; }
html:not(.m4t-light) .m4t .member-tile:nth-child(4n + 2) { border-top-color: #60a5fa !important; }
html:not(.m4t-light) .m4t .member-tile:nth-child(4n + 3) { border-top-color: #fbbf24 !important; }
html:not(.m4t-light) .m4t .member-tile:nth-child(4n + 4) { border-top-color: #a78bfa !important; }
html:not(.m4t-light) .m4t .member-card-profile {
	border-top-color: #35f0a9 !important;
}

html:not(.m4t-light) .m4t .member-card-calls {
	border-top-color: #a78bfa !important;
}

html:not(.m4t-light) .m4t .member-card.timeline-section {
	border-top-color: #60a5fa !important;
}
