/* ============================================================
   TREMENCE MEMBER DASHBOARD V1
   ============================================================ */

.tm-dashboard {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	font-family: Inter, sans-serif;
	color: #fff;
}


/* ============================================================
   WELCOME HEADER
   ============================================================ */

.tm-dashboard__welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 24px;
	padding: 22px 24px;

	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;

	background:
		linear-gradient(
			135deg,
			rgba(18, 18, 18, 0.82),
			rgba(10, 10, 10, 0.68)
		);

	box-shadow:
		0 14px 40px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tm-dashboard__welcome-copy {
	min-width: 0;
}

.tm-dashboard__eyebrow,
.tm-dashboard__card-label {
	display: block;

	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: 0.16em;
	text-transform: uppercase;

	color: rgba(255, 255, 255, 0.58);
}

.tm-dashboard__eyebrow {
	margin-bottom: 7px;
}

.tm-dashboard__welcome h1 {
	margin: 0;

	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;

	color: #fff;
}

.tm-dashboard__welcome-copy > p {
	margin: 7px 0 0;

	font-size: 14px;
	line-height: 1.5;

	color: rgba(255, 255, 255, 0.68);
}


/* ============================================================
   MEMBER SUMMARY
   ============================================================ */

.tm-dashboard__member {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;

	padding: 8px 12px 8px 8px;

	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 999px;

	background: rgba(255, 255, 255, 0.045);
}

.tm-dashboard__member img {
	display: block;

	width: 44px;
	height: 44px;

	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;

	object-fit: cover;
}

.tm-dashboard__member > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-right: 4px;
}

.tm-dashboard__member strong {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
}

.tm-dashboard__member span {
	font-size: 11px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.56);
}


/* ============================================================
   DASHBOARD GRID
   ============================================================ */

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


/* ============================================================
   BASE CARD
   ============================================================ */

.tm-dashboard__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 220px;

	padding: 20px;

	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;

	background:
		linear-gradient(
			135deg,
			rgba(20, 20, 20, 0.80),
			rgba(10, 10, 10, 0.70)
		);

	box-shadow:
		0 12px 34px rgba(0, 0, 0, 0.20),
		inset 0 1px 0 rgba(255, 255, 255, 0.035);

	overflow: hidden;
}

.tm-dashboard__card-label {
	margin-bottom: 14px;
}

.tm-dashboard__card h2 {
	margin: 0;

	font-family: "Space Grotesk", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;

	color: #fff;
}

.tm-dashboard__card > p {
	margin: 8px 0 0;

	font-size: 13px;
	line-height: 1.55;

	color: rgba(255, 255, 255, 0.62);
}

.tm-dashboard__muted {
	display: block;

	margin-top: 10px;

	font-size: 11px;
	line-height: 1.4;

	color: rgba(255, 255, 255, 0.44);
}


/* ============================================================
   CARD SIZES
   ============================================================ */

.tm-dashboard__card--booking {
	grid-column: span 3;
}

.tm-dashboard__card--member-card {
	grid-column: span 4;
}

.tm-dashboard__card--usage {
	grid-column: span 2;
}

.tm-dashboard__card--membership {
	grid-column: span 3;
}

.tm-dashboard__card--activity {
	grid-column: span 4;
}

.tm-dashboard__card--garage {
	grid-column: span 5;
}

.tm-dashboard__card--events {
	grid-column: span 3;
}

.tm-dashboard__card--community {
	grid-column: span 4;
}


/* ============================================================
   SUBTLE CARD PERSONALITY
   ============================================================ */

.tm-dashboard__card--booking {
	background:
		linear-gradient(
			135deg,
			rgba(22, 22, 22, 0.86),
			rgba(8, 8, 8, 0.72)
		);
}

.tm-dashboard__card--usage {
	background:
		linear-gradient(
			145deg,
			rgba(54, 68, 20, 0.22),
			rgba(10, 10, 10, 0.76) 60%
		);
}

.tm-dashboard__card--membership {
	background:
		linear-gradient(
			145deg,
			rgba(70, 28, 72, 0.18),
			rgba(10, 10, 10, 0.76) 62%
		);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.tm-dashboard__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: fit-content;
	min-height: 40px;

	margin-top: auto;
	padding: 9px 15px;

	border: 1px solid rgba(255, 215, 80, 0.40);
	border-radius: 11px;

	background: #ffd64d;

	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: 0.04em;
	text-transform: uppercase;

	color: #171717;
	text-decoration: none;

	cursor: pointer;

	transition:
		transform 160ms ease,
		background 160ms ease,
		border-color 160ms ease;
}

.tm-dashboard__button:hover {
	background: #ffe073;
	border-color: rgba(255, 224, 115, 0.75);
	color: #171717;
}

.tm-dashboard__button:active {
	transform: translateY(1px);
}

.tm-dashboard__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tm-dashboard__button--secondary {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.075);
	color: #fff;
}

.tm-dashboard__button--secondary:hover {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.13);
	color: #fff;
}


/* ============================================================
   DIGITAL MEMBER CARD
   ============================================================ */

.tm-dashboard__digital-card {
	position: relative;

	display: flex;
	flex-direction: column;
	justify-content: space-between;

	min-height: 126px;
	margin-bottom: 14px;
	padding: 16px;

	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 13px;

	background:
		radial-gradient(
			circle at 85% 15%,
			rgba(255, 214, 77, 0.16),
			transparent 34%
		),
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.085),
			rgba(255, 255, 255, 0.025)
		);

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.055);

	overflow: hidden;
}

.tm-dashboard__digital-card::after {
	content: "";

	position: absolute;
	right: -30px;
	bottom: -45px;

	width: 130px;
	height: 130px;

	border: 1px solid rgba(255, 255, 255, 0.055);
	border-radius: 50%;

	pointer-events: none;
}

.tm-dashboard__digital-card-top {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;

	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;

	letter-spacing: 0.14em;
	text-transform: uppercase;

	color: rgba(255, 255, 255, 0.70);
}

.tm-dashboard__digital-card-member {
	position: relative;
	z-index: 1;

	display: flex;
	align-items: center;
	gap: 10px;

	margin-top: 24px;
}

.tm-dashboard__digital-card-member img {
	display: block;

	width: 38px;
	height: 38px;

	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;

	object-fit: cover;
}

.tm-dashboard__digital-card-member > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tm-dashboard__digital-card-member strong {
	overflow: hidden;

	font-family: "Space Grotesk", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;

	color: #fff;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.tm-dashboard__digital-card-member span {
	font-size: 10px;
	font-weight: 500;
	line-height: 1.3;

	letter-spacing: 0.06em;

	color: rgba(255, 255, 255, 0.56);
}


/* ============================================================
   WORKSHOP USAGE
   ============================================================ */

.tm-dashboard__progress {
	width: 100%;
	height: 6px;

	margin-top: auto;

	border-radius: 999px;

	background: rgba(255, 255, 255, 0.09);

	overflow: hidden;
}

.tm-dashboard__progress span {
	display: block;

	width: 0;
	height: 100%;

	border-radius: inherit;

	background: #ffd64d;
}


/* ============================================================
   MEMBERSHIP META
   ============================================================ */

.tm-dashboard__membership-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;

	margin-top: 16px;
	margin-bottom: 16px;
}

.tm-dashboard__membership-meta > div {
	min-width: 0;

	padding: 10px 11px;

	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 10px;

	background: rgba(255, 255, 255, 0.035);
}

.tm-dashboard__membership-meta span {
	display: block;

	margin-bottom: 4px;

	font-size: 9px;
	font-weight: 500;
	line-height: 1.3;

	color: rgba(255, 255, 255, 0.50);
}

.tm-dashboard__membership-meta strong {
	display: block;

	overflow-wrap: anywhere;

	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;

	color: rgba(255, 255, 255, 0.94);
}


/* ============================================================
   GARAGE EMPTY STATE
   ============================================================ */

.tm-dashboard__empty {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tm-dashboard__empty > div {
	max-width: 540px;
}

.tm-dashboard__empty h2 {
	margin: 0;
}

.tm-dashboard__empty p {
	margin: 8px 0 0;

	font-size: 13px;
	line-height: 1.55;

	color: rgba(255, 255, 255, 0.62);
}

.tm-dashboard__empty .tm-dashboard__button {
	flex: 0 0 auto;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

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

	.tm-dashboard__card--booking,
	.tm-dashboard__card--usage,
	.tm-dashboard__card--events {
		grid-column: span 2;
	}

	.tm-dashboard__card--member-card,
	.tm-dashboard__card--membership,
	.tm-dashboard__card--activity,
	.tm-dashboard__card--community {
		grid-column: span 3;
	}

	.tm-dashboard__card--garage {
		grid-column: span 6;
	}

}


/* ============================================================
   SMALL TABLET
   ============================================================ */

@media (max-width: 780px) {

	.tm-dashboard__welcome {
		align-items: flex-start;
		flex-direction: column;
	}

	.tm-dashboard__member {
		width: fit-content;
	}

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

	.tm-dashboard__card--booking,
	.tm-dashboard__card--member-card,
	.tm-dashboard__card--usage,
	.tm-dashboard__card--membership,
	.tm-dashboard__card--activity,
	.tm-dashboard__card--events,
	.tm-dashboard__card--community {
		grid-column: span 1;
	}

	.tm-dashboard__card--garage {
		grid-column: span 2;
	}

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 560px) {

	.tm-dashboard__welcome {
		margin-bottom: 12px;
		padding: 18px;

		border-radius: 14px;
	}

	.tm-dashboard__welcome h1 {
		font-size: 27px;
	}

	.tm-dashboard__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tm-dashboard__card--booking,
	.tm-dashboard__card--member-card,
	.tm-dashboard__card--usage,
	.tm-dashboard__card--membership,
	.tm-dashboard__card--activity,
	.tm-dashboard__card--garage,
	.tm-dashboard__card--events,
	.tm-dashboard__card--community {
		grid-column: 1;
	}

	.tm-dashboard__card {
		min-height: 200px;
		padding: 17px;

		border-radius: 14px;
	}

	.tm-dashboard__empty {
		align-items: flex-start;
		flex-direction: column;
	}

	.tm-dashboard__empty .tm-dashboard__button {
		width: 100%;
	}

	.tm-dashboard__button {
		width: 100%;
		min-height: 44px;
	}

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

}
.tm-dashboard .tm-dashboard__vehicle-photo{display:block;width:100%;height:180px;object-fit:cover;object-position:center;background:#111318;border-radius:10px;margin:12px 0}

/* Let the Garage photo span the card instead of sharing a row with its link. */
.tm-dashboard__card--garage .tm-dashboard__empty{flex-direction:column;align-items:stretch}.tm-dashboard__card--garage .tm-dashboard__empty>div{width:100%;max-width:none;min-width:0}.tm-dashboard__card--garage .tm-dashboard__empty .tm-dashboard__button{align-self:flex-end}@media(max-width:560px){.tm-dashboard__card--garage .tm-dashboard__empty .tm-dashboard__button{align-self:stretch}}
