/*
Theme Name: Legacy Music
Theme URI: https://tochkamusic.ru/
Author: Tochka Music
Description: Тёмная тема для сайта Legacy Music — вайб + статус.
Version: 0.1.0
Text Domain: legacy-music
*/

/* tm-home-build: 2026-01-01/artists-v1 */
/* tm-header-build: 2026-01-01/fix-all-pages */

.tm-site-body,
.tm-home-body {
	--tm-bg: #050607;
	--tm-text: rgba(255, 255, 255, 0.92);
	--tm-muted: rgba(255, 255, 255, 0.62);
	--tm-border: rgba(255, 255, 255, 0.1);
	--tm-surface: rgba(18, 18, 18, 0.74);
	--tm-surface-2: rgba(255, 255, 255, 0.06);
	--tm-accent: #0ABAB5;
	--tm-radius: 22px;

	margin: 0;
	min-height: 100vh;
	color: var(--tm-text);
	background: radial-gradient(900px 540px at 18% 10%, rgba(10, 186, 181, 0.18), transparent 60%),
		radial-gradient(800px 520px at 84% 28%, rgba(255, 255, 255, 0.06), transparent 62%),
		var(--tm-bg);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	overflow-x: hidden;
}

.tm-site-body *,
.tm-home-body * {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: rgba(255, 255, 255, 0.96);
}

.tm-site-body svg,
.tm-home-body svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	display: block;
}

.tm-container {
	max-width: 1160px;
	padding: 0 24px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.tm-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background:
		radial-gradient(520px 180px at 12% 40%, rgba(10, 186, 181, 0.22), transparent 62%),
		linear-gradient(90deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.82));
	backdrop-filter: blur(14px);
	overflow: hidden; /* prevent oversized logos from spilling out */
	width: 100%;
	box-sizing: border-box;
}

.tm-site-body,
.tm-home-body {
	padding-top: 72px;
}

.tm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	height: 72px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.tm-header__left {
	display: flex;
	align-items: center;
	min-width: 220px;
	flex-shrink: 0;
}

.tm-header__center {
	display: flex;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	flex-shrink: 1;
}

.tm-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	min-width: 220px;
	flex-shrink: 0;
}

.tm-brand {
	max-width: 55vw;
}

.tm-brand__text-link {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tm-accent);
}

.custom-logo {
	height: auto;
	width: auto;
	display: block;
	max-height: 56px; /* fits into 72px header */
	max-width: 100%;
	object-fit: contain;
}

.tm-header-logo {
	height: auto;
	width: auto;
	display: block;
	max-height: 56px; /* fits into 72px header */
	max-width: 100%;
	object-fit: contain;
}

/* If logo is SVG markup */
.tm-header .tm-brand svg {
	height: 56px;
	width: auto;
	max-width: 100%;
}

.tm-brand__text {
	font-weight: 800;
	letter-spacing: 0.3px;
	color: var(--tm-accent);
}

.tm-nav {
	display: inline-flex;
	gap: 10px;
}

.tm-menu {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.tm-menu > li {
	margin: 0;
}

.tm-menu a {
	color: rgba(255, 255, 255, 0.86);
	font-size: 16px;
	font-weight: 650;
	letter-spacing: 0.1px;
}

.tm-menu a:hover {
	color: rgba(255, 255, 255, 0.98);
}

.tm-header-social {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.tm-header-social__link {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.86);
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0;
	line-height: 0;
	box-sizing: border-box;
}

.tm-header-social__link:hover {
	border-color: rgba(255, 255, 255, 0.26);
	color: rgba(255, 255, 255, 0.98);
}

.tm-header-social__link svg {
	width: 18px;
	height: 18px;
	display: block;
}

.tm-header__login {
	height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.22);
}

.tm-link {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
}

.tm-link:hover {
	color: var(--tm-text);
}

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	height: 46px;
	padding: 0 18px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

.tm-btn--primary {
	background: var(--tm-accent);
	color: #061111;
	box-shadow: 0 18px 50px rgba(10, 186, 181, 0.26);
}

.tm-btn--primary:hover {
	filter: brightness(1.02);
}

.tm-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.92);
}

.tm-btn--ghost:hover {
	border-color: rgba(10, 186, 181, 0.4);
	box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.12);
}

.tm-btn--xl {
	height: 58px;
	padding: 0 24px;
	font-size: 15px;
}

.tm-hero {
	position: relative;
	padding: 72px 0 44px;
}

.tm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tm-home-hero-bg, none);
	background-size: cover;
	background-position: center;
	opacity: 0.28;
	filter: saturate(1.05) contrast(1.05);
	pointer-events: none;
}

.tm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(800px 480px at 18% 30%, rgba(10, 186, 181, 0.16), transparent 62%),
		linear-gradient(180deg, rgba(5, 6, 7, 0.35), rgba(5, 6, 7, 0.9));
	pointer-events: none;
}

.tm-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 34px;
	align-items: center;
	min-height: 68vh;
}

.tm-hero__logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--tm-accent);
	margin-bottom: 18px;
}

.tm-hero__logo .custom-logo {
	height: 66px;
}

.tm-hero__headline {
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 14px 0;
	font-weight: 850;
}

.tm-hero__sub {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	max-width: 44ch;
	font-size: 16px;
}

.tm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.tm-hero__card {
	border-radius: var(--tm-radius);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(18, 18, 18, 0.74);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
	padding: 22px;
}

.tm-hero__card-title {
	margin: 0 0 10px 0;
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 18px;
}

.tm-hero__card-text {
	margin: 0;
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
	line-height: 1.55;
}

.tm-section {
	padding: 54px 0;
}

.tm-section__title {
	margin: 0 0 18px 0;
	font-size: 24px;
	font-weight: 850;
	letter-spacing: -0.01em;
}

.tm-section__hint {
	margin: 0 0 26px 0;
	color: rgba(255, 255, 255, 0.64);
	max-width: 70ch;
}

/* Artists (home) */
.tm-artists {
	color: rgba(255, 255, 255, 0.92);
	padding: 80px 0;
	background:
		radial-gradient(900px 540px at 18% 10%, rgba(10, 186, 181, 0.18), transparent 60%),
		radial-gradient(800px 520px at 84% 28%, rgba(255, 255, 255, 0.06), transparent 62%),
		#050607;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-artists__title {
	margin: 0 0 44px;
	font-size: clamp(64px, 7.5vw, 112px);
	line-height: 0.95;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
}

.tm-artists__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}

.tm-artist-card {
	--tm-artist-radius: 28px;
	--tm-artist-green: #0ABAB5;
	position: relative;
	border-radius: var(--tm-artist-radius);
	outline: none;
	perspective: 1200px;
	min-height: 360px;
}

.tm-artist-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.35);
}

.tm-artist-card__inner {
	position: absolute;
	inset: 0;
	border-radius: var(--tm-artist-radius);
	transform-style: preserve-3d;
	transition: transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tm-artist-card:hover .tm-artist-card__inner,
.tm-artist-card:focus .tm-artist-card__inner,
.tm-artist-card:focus-within .tm-artist-card__inner {
	transform: rotateY(180deg);
}

.tm-artist-card__face {
	position: absolute;
	inset: 0;
	border-radius: var(--tm-artist-radius);
	backface-visibility: hidden;
	display: flex;
	flex-direction: column;
	padding: 26px 26px;
	overflow: hidden;
}

.tm-artist-card__front {
	background: var(--tm-artist-green);
	color: #08110c;
}

.tm-artist-card__back {
	background:
		radial-gradient(900px 420px at 18% 10%, rgba(10, 186, 181, 0.22), transparent 60%),
		linear-gradient(180deg, rgba(6, 7, 8, 0.96), rgba(5, 6, 7, 0.96));
	color: rgba(255, 255, 255, 0.92);
	transform: rotateY(180deg);
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.tm-artist-card__name {
	font-size: 30px;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.tm-artist-card__avatar {
	margin: 24px auto 0;
	width: min(220px, 72%);
	aspect-ratio: 1 / 1;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 4px solid rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tm-artist-card__initial {
	font-size: 56px;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: rgba(0, 0, 0, 0.75);
}

.tm-artist-card__desc {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.84);
	max-width: 42ch;
}

.tm-artist-card__listen {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 900;
	letter-spacing: 0.06em;
	color: var(--tm-artist-green);
	text-transform: uppercase;
	text-decoration: none;
}

.tm-artist-card__listen[aria-disabled="true"] {
	opacity: 0.6;
}

.tm-artist-card__corner {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: rgba(0, 0, 0, 0.8);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
}

.tm-artist-card__back .tm-artist-card__corner {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
	.tm-artists__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Burger + drawer (mobile) */
.tm-header-burger {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}

.tm-header-burger span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
}

.tm-header-toggle {
	position: fixed;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.tm-header-overlay {
	display: none;
}

.tm-header-drawer {
	display: none;
}

@media (max-width: 860px) {
	.tm-header__inner {
		gap: 12px;
	}

	.tm-header__left {
		min-width: 0;
		flex: 1 1 auto;
	}

	.tm-brand {
		max-width: 72vw;
	}

	.tm-header__right {
		min-width: 0;
		flex: 0 0 auto;
	}

	.tm-header__center {
		display: none;
	}

	.tm-header-social {
		display: none;
	}

	.tm-header__login {
		display: none;
	}

	.tm-header-burger {
		display: inline-flex;
	}

	.tm-header-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.6);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
		z-index: 90;
	}

	.tm-header-drawer {
		display: block;
		position: fixed;
		inset: 0;
		pointer-events: none;
		z-index: 100;
		overflow: hidden;
	}

	.tm-header-drawer__panel {
		position: absolute;
		top: 0;
		right: 0;
		height: 100%;
		width: min(360px, 92vw);
		padding: 18px;
		border-left: 1px solid rgba(255, 255, 255, 0.1);
		background: rgba(18, 18, 18, 0.86);
		backdrop-filter: blur(18px);
		box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
		transform: translate3d(100%, 0, 0);
		transition: transform 0.25s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		will-change: transform;
	}

	.tm-header-drawer__header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding-bottom: 14px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.tm-header-drawer__close {
		width: 44px;
		height: 44px;
		border-radius: 999px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		background: rgba(255, 255, 255, 0.06);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		color: rgba(255, 255, 255, 0.92);
		font-size: 22px;
		line-height: 1;
	}

	.tm-header-drawer__nav {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 14px 0;
	}

	.tm-header-drawer__menu {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.tm-header-drawer__menu a,
	.tm-header-drawer__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 46px;
		padding: 0 14px;
		border-radius: 14px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		background: rgba(255, 255, 255, 0.05);
		color: rgba(255, 255, 255, 0.92);
	}

	.tm-header-drawer__footer {
		display: grid;
		gap: 14px;
		padding-top: 10px;
		border-top: 1px solid rgba(255, 255, 255, 0.08);
	}

	.tm-header-toggle:checked ~ .tm-header-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	.tm-header-toggle:checked ~ .tm-header-drawer {
		pointer-events: auto;
	}

	.tm-header-toggle:checked ~ .tm-header-drawer .tm-header-drawer__panel {
		transform: translate3d(0, 0, 0);
	}

	html:has(.tm-header-toggle:checked),
	body:has(.tm-header-toggle:checked) {
		overflow: hidden;
	}
}

@media (max-width: 520px) {
	.tm-artists {
		padding: 64px 0;
	}
	.tm-artists__grid {
		grid-template-columns: 1fr;
	}
	.tm-artist-card {
		min-height: 320px;
	}
}

.tm-features {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.tm-feature {
	border-radius: 18px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	min-height: 112px;
}

.tm-feature__icon {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(10, 186, 181, 0.12);
	border: 1px solid rgba(10, 186, 181, 0.28);
	color: var(--tm-accent);
	margin-bottom: 12px;
}

.tm-feature__icon svg {
	width: 18px;
	height: 18px;
}

.tm-feature__title {
	margin: 0;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.1px;
}

.tm-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.tm-service {
	border-radius: 18px;
	padding: 18px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
}

.tm-service--wide {
	grid-column: span 3;
}

.tm-service__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tm-service__title {
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.01em;
	font-size: 16px;
}

.tm-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 850;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(10, 186, 181, 0.28);
	background: rgba(10, 186, 181, 0.12);
	white-space: nowrap;
}

.tm-price--muted {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.74);
}

.tm-service__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 14px;
	line-height: 1.55;
}

.tm-service__list {
	margin: 0;
	padding-left: 16px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	line-height: 1.55;
}

.tm-plans {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.tm-plan {
	border-radius: 18px;
	padding: 18px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(18, 18, 18, 0.6);
}

.tm-plan--accent {
	border-color: rgba(10, 186, 181, 0.32);
	box-shadow: 0 18px 60px rgba(10, 186, 181, 0.14);
}

.tm-plan__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tm-plan__title {
	margin: 0;
	font-weight: 900;
	letter-spacing: -0.01em;
	font-size: 16px;
}

.tm-plan__list {
	margin: 0;
	padding-left: 16px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	line-height: 1.55;
}

.tm-manifest {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.02);
}

.tm-manifest__text {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 850;
}

.tm-manifest__text span {
	display: block;
}

.tm-cta {
	padding: 64px 0 74px;
}

.tm-cta__card {
	border-radius: calc(var(--tm-radius) + 4px);
	border: 1px solid rgba(10, 186, 181, 0.32);
	background: radial-gradient(600px 320px at 24% 20%, rgba(10, 186, 181, 0.14), transparent 65%),
		rgba(18, 18, 18, 0.82);
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7);
	padding: 34px 28px;
	text-align: center;
}

.tm-cta__title {
	margin: 0 0 16px 0;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

	.tm-cta__note {
		margin: 12px 0 0;
		color: rgba(255, 255, 255, 0.62);
		font-size: 14px;
	}

	.tm-service__link {
		display: block;
		color: inherit;
		text-decoration: none;
	}

	.tm-service__link:hover {
		color: inherit;
	}

	.tm-service-form {
		max-width: 400px;
		margin: 0 auto;
		text-align: left;
	}

	.tm-form__field {
		margin-bottom: 18px;
	}

	.tm-form__label {
		display: block;
		margin-bottom: 8px;
		font-size: 14px;
		font-weight: 600;
		color: rgba(255, 255, 255, 0.85);
	}

	.tm-form__input {
		width: 100%;
		padding: 12px 16px;
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.05);
		color: var(--tm-text);
		font-size: 16px;
		font-family: inherit;
		transition: border-color 0.2s, background 0.2s;
	}

	.tm-form__input:focus {
		outline: none;
		border-color: var(--tm-accent);
		background: rgba(255, 255, 255, 0.08);
	}

	.tm-form__input::placeholder {
		color: rgba(255, 255, 255, 0.4);
	}

	.tm-form__message {
		margin-top: 16px;
		padding: 12px 16px;
		border-radius: 12px;
		font-size: 14px;
		text-align: center;
	}

	.tm-form__message--success {
		background: rgba(10, 186, 181, 0.15);
		border: 1px solid rgba(10, 186, 181, 0.3);
		color: var(--tm-accent);
	}

	.tm-form__message--error {
		background: rgba(255, 59, 48, 0.15);
		border: 1px solid rgba(255, 59, 48, 0.3);
		color: #ff3b30;
	}

.tm-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.22);
}

.tm-footer__inner {
	padding: 46px 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tm-footer__title {
	font-weight: 900;
	letter-spacing: -0.01em;
	margin: 0 0 12px 0;
	font-size: 14px;
}

.tm-footer__text {
	color: rgba(255, 255, 255, 0.66);
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}

.tm-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tm-footer__links a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
}

.tm-footer__links a:hover {
	color: var(--tm-text);
}

.tm-footer__legal {
	padding: 16px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
}

.tm-admin-hint {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	padding: 14px;
}

.tm-page {
	padding: 44px 0 70px;
}

.tm-page__title {
	margin: 0 0 16px 0;
	font-size: 32px;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.tm-content {
	max-width: 780px;
	color: rgba(255, 255, 255, 0.76);
}

.tm-content h2,
.tm-content h3,
.tm-content h4 {
	color: rgba(255, 255, 255, 0.92);
}

.tm-content a {
	color: var(--tm-accent);
}

@media (max-width: 980px) {
	.tm-hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.tm-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-services,
	.tm-plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-service--wide {
		grid-column: span 2;
	}

	.tm-footer__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.tm-container {
		padding: 0 18px;
	}

	.tm-header__inner {
		height: 66px;
	}

	.tm-header__center {
		display: none;
	}

	.custom-logo,
	.tm-header-logo,
	.tm-header .tm-brand svg {
		max-height: 36px;
		height: auto;
		max-width: 70vw;
	}

	.tm-link {
		display: none;
	}

	.tm-hero {
		padding-top: 48px;
	}

	.tm-cta__card {
		padding: 28px 18px;
	}

	.tm-services,
	.tm-plans {
		grid-template-columns: 1fr;
	}

	.tm-service--wide {
		grid-column: auto;
	}
}

/* Profile Page Styles */
.tm-profile-body {
    background: #050607;
    color: #fff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.tm-app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.tm-sidebar {
    width: 280px;
    background: #000;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px;
    flex-shrink: 0;
}

.tm-sidebar__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tm-sidebar__logo svg {
    height: 32px;
    width: auto;
}

.tm-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08); /* Darker gray background */
    padding: 12px 16px;
    border-radius: 99px; /* Pill shape */
    margin-bottom: 24px;
}

.tm-user-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: grid;
    place-items: center;
}

.tm-user-card__info {
    flex: 1;
    overflow: hidden;
}

.tm-user-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.tm-user-card__email {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-sidenav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-sidenav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.tm-sidenav__link:hover,
.tm-sidenav__link--active {
    color: #fff;
}

.tm-sidenav__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.tm-sidenav__link:hover .tm-sidenav__icon,
.tm-sidenav__link--active .tm-sidenav__icon {
    opacity: 1;
}

.tm-sidebar__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-sidebar__legal {
    display: flex;
    gap: 12px;
}

.tm-sidebar__legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    background: rgba(255,255,255,0.05); /* Button-like background */
    padding: 6px 12px;
    border-radius: 6px;
}

.tm-sidebar__copy {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* Main Content */
.tm-main-content {
    flex: 1;
    padding: 40px 60px;
    background: #0D0E10; /* Slightly lighter than sidebar */
}

.tm-content-header {
    margin-bottom: 32px;
}

.tm-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.tm-page-title__icon {
    opacity: 0.8;
}

/* Tabs */
.tm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.05);
    display: inline-flex;
    padding: 4px;
    border-radius: 99px;
}

.tm-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tm-tab-btn:hover {
    color: #fff;
}

.tm-tab-btn.active {
    background: #fff;
    color: #000;
}

/* Tab Panes */
.tm-tab-pane {
    display: none;
}

.tm-tab-pane.active {
    display: block;
}

/* Search Bar */
.tm-search-bar {
    position: relative;
    margin-bottom: 24px;
    max-width: 800px;
}

.tm-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #0ABAB5; /* Green Accent */
}

.tm-search-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 14px 14px 14px 48px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.tm-search-input:focus {
    border-color: rgba(255,255,255,0.2);
}

/* List Layout */
.tm-list-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.tm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    padding: 16px 20px;
    border-radius: 12px;
    transition: background 0.2s;
}

.tm-list-item:hover {
    background: rgba(255,255,255,0.06);
}

.tm-list-item__icon {
    width: 30px; /* Small icon */
    height: 30px;
    color: #0ABAB5; /* Green Accent */
}

.tm-list-item__icon--user {
    color: #0ABAB5;
}

.tm-list-item__icon--file {
    color: #0ABAB5;
}


.tm-list-item__name {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.tm-list-item__actions {
    display: flex;
    gap: 8px;
    opacity: 0.5;
}

.tm-action-icon {
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}
/* Using CSS mask for simple icons if SVG not inline, but here assume SVGs or similar. 
   Since we don't have font-awesome, let's use simple squares or adjust HTML to use SVGs.
   The PHP loop uses classes like tm-action-icon--spotify. 
   For simplicity, I'll just style them as small blocks or assume font/svg usage in future.
*/
.tm-action-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}


/* Contracts */
.tm-list-group {
    margin-bottom: 24px;
}

.tm-list-group__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.tm-list-item--contract {
    margin-bottom: 8px;
}

.tm-list-item__content {
    flex: 1;
}
.tm-list-item__title {
    font-weight: 500;
    margin-bottom: 2px;
}
.tm-list-item__subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Side Info */
.tm-side-info {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.tm-help-text a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
}

.tm-btn--full {
    width: 100%;
    margin-top: 16px;
    border-radius: 99px;
    padding: 14px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tm-list-layout {
        grid-template-columns: 1fr;
    }
    .tm-side-info {
        order: -1;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .tm-app {
        flex-direction: column;
    }
    .tm-sidebar {
        width: 100%;
        display: none; /* Hide sidebar on mobile for now or implement toggle */
    }
    .tm-main-content {
        padding: 24px;
    }
}

/* Sidebar refinements for bottom aligned links */
.tm-sidenav--bottom {
    margin-bottom: 24px;
}
.tm-user-card--active {
    background: rgba(255,255,255,0.08);
}

/* Sidebar refinements for bottom aligned links */
.tm-sidenav--bottom {
    margin-bottom: 24px;
}
.tm-user-card--active {    background: rgba(255,255,255,0.08);
}
