/* =========================================================
   Student portal / My Account
   ========================================================= */

.tf-page--account {
	overflow-x: clip;
}

/* Slim chrome: logo + back link only */
.tf-chrome--account .tf-nav__row--account {
	justify-content: space-between;
	width: min(100% - 1.75rem, 100%);
	max-width: none;
	padding-inline: clamp(0.85rem, 2vw, 1.5rem);
	box-sizing: border-box;
}

.tf-chrome--account .tf-wrap.tf-nav__row--account {
	width: 100%;
	max-width: none;
}

.tf-nav__actions--account {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
	flex-wrap: wrap;
	justify-content: flex-end;
}

body.tf-account-chrome--in {
	overflow: hidden;
}

body.tf-account-chrome--in .tf-foot {
	display: none;
}

body.tf-account-chrome--in .tf-chrome {
	z-index: 50;
}

/* Login hero (logged out) */
.tf-account-hero {
	padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2rem);
	background:
		radial-gradient(ellipse 70% 55% at 0% 0%, rgba(143, 21, 40, 0.07), transparent 55%),
		radial-gradient(ellipse 55% 45% at 100% 10%, rgba(36, 84, 48, 0.06), transparent 50%),
		var(--paper);
	border-bottom: 1px solid var(--line);
}

.tf-account-hero .tf-kicker {
	margin-bottom: 0.45rem;
}

.tf-account-hero h1 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.85rem, 3.8vw, 2.45rem);
	letter-spacing: -0.03em;
}

.tf-account-hero .tf-lede {
	margin: 0;
	max-width: 38rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.tf-account-hero__back {
	margin: 1rem 0 0;
}

/* Logged-out: centered login composition */
.tf-page--account-out .tf-account-hero .tf-wrap {
	text-align: center;
}

.tf-page--account-out .tf-account-hero .tf-lede {
	margin-inline: auto;
}

.tf-page--account-out .tf-account-section {
	padding-top: clamp(4.5rem, 9vw, 6.5rem);
	padding-bottom: clamp(5.5rem, 11vw, 8rem);
}

.tf-page--account-out .tf-account-section > .tf-wrap {
	display: flex;
	justify-content: center;
}

.tf-page--account-out .tf-account-section > .tf-wrap > .woocommerce {
	width: 100%;
	display: flex;
	justify-content: center;
}

.tf-account-section {
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tf-account-section > .tf-wrap > .woocommerce {
	max-width: none;
}

/* Full-width app shell (logged in) */
.tf-page--account-in {
	display: flex;
	flex-direction: column;
	height: calc(100dvh - 5.25rem);
	max-height: calc(100dvh - 5.25rem);
}

.tf-account-section--app {
	padding: 0;
	margin: 0;
	flex: 1;
	min-height: 0;
	background:
		radial-gradient(ellipse 50% 40% at 100% 0%, rgba(143, 21, 40, 0.04), transparent 55%),
		var(--paper);
}

.tf-account-section--app > .woocommerce,
.tf-account-section--app > .woocommerce > .tf-account {
	height: 100%;
	min-height: 0;
}

.tf-account {
	display: grid;
	grid-template-columns: var(--sa-account-sidebar, 18rem) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	height: 100%;
	width: 100%;
	transition: grid-template-columns 0.22s ease;
}

.tf-account.is-collapsed {
	--sa-account-sidebar: 0px;
}

/* Kill WooCommerce layout float (nav 30% / content 68%) */
.woocommerce-account .tf-account .woocommerce-MyAccount-navigation,
.woocommerce-account .tf-account .woocommerce-MyAccount-content,
.tf-account__nav,
.tf-account__pane,
.tf-account__content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

.tf-account__nav {
	align-self: stretch;
	width: 100% !important;
	height: 100%;
	overflow: auto;
	padding: 1rem 0 1.25rem;
	background: #fff;
	border-right: 1px solid var(--line);
	box-shadow: none;
	border-radius: 0;
	border-top: 0;
	border-bottom: 0;
	border-left: 0;
	transition: transform 0.22s ease, opacity 0.18s ease;
	z-index: 4;
}

.tf-account.is-collapsed .tf-account__nav {
	pointer-events: none;
	opacity: 0;
	transform: translateX(-0.75rem);
}

.tf-account__nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 0.65rem 0.55rem 1.1rem;
}

.tf-account__nav-label {
	margin: 0;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tf-account__nav-collapse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.tf-account__nav-collapse:hover {
	border-color: #e8b4bc;
	color: var(--brand);
	background: var(--brand-soft);
}

.tf-account__nav-collapse .tf-account__icon--close {
	display: none;
}

.tf-account__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-account__nav-list li {
	margin: 0;
}

.tf-account__nav-list a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.15rem;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tf-account__nav-external {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	opacity: 0.75;
}

.tf-account__nav-list a:hover {
	background: var(--brand-soft);
	color: var(--brand);
}

.tf-account__nav-list .is-active a,
.tf-account__nav-list a[aria-current="page"] {
	background: var(--brand-soft);
	border-left-color: var(--brand);
	color: var(--brand);
	font-weight: 750;
}

.tf-account__pane {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tf-account__toolbar {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 0 0 auto;
	padding: 1rem clamp(1rem, 2.5vw, 1.75rem);
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
	z-index: 36;
}

.tf-account__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.45rem;
	height: 2.45rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
}

.tf-account__toggle:hover {
	border-color: #e8b4bc;
	color: var(--brand);
	background: var(--brand-soft);
}

.tf-account__toolbar-text {
	min-width: 0;
}

.tf-account__kicker {
	margin: 0 0 0.15rem;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tf-account__title {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.tf-account__content {
	min-width: 0;
	flex: 1;
	overflow: auto;
	padding: clamp(1.15rem, 2.5vw, 1.75rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	-webkit-overflow-scrolling: touch;
}

.tf-account__content > *:first-child {
	margin-top: 0;
}

/* Dashboard panels */
.tf-dash-stack {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: none;
	width: 100%;
}

/* Account: details + billing side by side */
.tf-dash-stack--account-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 960px) {
	.tf-dash-stack--account-split {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 1.15rem;
	}
}

.tf-account-dash {
	width: 100%;
	max-width: none;
}

.tf-dash-back {
	margin: 0;
}

.tf-dash-panel {
	padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1.1rem, 2.2vw, 1.45rem);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
}

.tf-dash-panel--hero {
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(143, 21, 40, 0.06), transparent 55%),
		#fff;
}

.tf-dash-panel--form {
	max-width: none;
	width: 100%;
}

.tf-dash-panel__eyebrow {
	margin: 0 0 0.35rem;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tf-dash-panel__head {
	margin-bottom: 1rem;
}

.tf-dash-panel__head--row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.tf-dash-panel__title {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.tf-dash-panel__title--lg {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	margin-bottom: 0.45rem;
}

.tf-dash-panel__lede {
	margin: 0;
	max-width: 36rem;
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.5;
}

.tf-dash-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 1.15rem 0 0;
	padding: 0;
}

.tf-dash-stat {
	padding: 0.85rem 1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.75rem;
}

.tf-dash-stat__value {
	display: block;
	font-size: 1.25rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ink);
	line-height: 1.25;
	word-break: break-word;
}

.tf-dash-stat__value--email {
	font-size: 0.95rem;
	font-weight: 650;
}

.tf-dash-stat__label {
	display: block;
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tf-account-dash__tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tf-account-dash__tile {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 1rem 1.1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	box-shadow: none;
}

.tf-account-dash__tile-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.tf-account-dash__tile-text {
	margin: 0;
	flex: 1;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.tf-account-dash__tile-cta {
	margin: 0.25rem 0 0;
}

/* Order / enrolment lists */
.tf-dash-order-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.tf-dash-order {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.85rem;
}

.tf-dash-order--card {
	align-items: flex-start;
}

.tf-dash-order__main {
	min-width: 0;
	flex: 1;
}

.tf-dash-order__id {
	display: inline-block;
	font-weight: 750;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.tf-dash-order__id:hover {
	color: var(--brand);
}

.tf-dash-order__items {
	margin: 0.25rem 0 0.2rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.35;
}

.tf-dash-order__meta {
	display: block;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.4;
}

.tf-dash-order__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
	flex: 0 0 auto;
}

.tf-dash-order__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: flex-end;
}

.tf-dash-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: var(--brand-soft);
	color: var(--brand);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.tf-dash-badge--completed,
.tf-dash-badge--processing {
	background: #ecfdf3;
	color: #166534;
}

.tf-dash-badge--pending,
.tf-dash-badge--on-hold {
	background: #fff7ed;
	color: #9a3412;
}

.tf-dash-badge--cancelled,
.tf-dash-badge--failed,
.tf-dash-badge--refunded {
	background: #fef2f2;
	color: #991b1b;
}

.tf-dash-empty {
	text-align: center;
	padding: 1.5rem 0.5rem;
	color: var(--muted);
}

.tf-dash-empty--soft {
	padding: 1rem 0;
	text-align: left;
}

/* Course hub – curriculum (JSON topics) */
.tf-curriculum-included-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

.tf-dash-curriculum {
	margin-top: 0.25rem;
}

.tf-curriculum {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: tf-curr;
}

.tf-curriculum .tf-curriculum {
	margin: 0.55rem 0 0.15rem 0.85rem;
	padding-left: 0.85rem;
	border-left: 1px solid var(--line);
}

.tf-curriculum__item {
	margin: 0 0 0.55rem;
	counter-increment: tf-curr;
}

.tf-curriculum__item:last-child {
	margin-bottom: 0;
}

.tf-curriculum__row {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 0.85rem;
}

.tf-curriculum__link,
.tf-curriculum__title,
.tf-curriculum__heading {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 650;
	font-size: 0.98rem;
	line-height: 1.4;
	color: var(--ink);
}

.tf-curriculum__heading {
	display: block;
	font-size: 1.05rem;
}

.tf-curriculum__item--title > .tf-curriculum__row .tf-curriculum__meta {
	opacity: 0.7;
}

.tf-curriculum__item--title.is-locked > .tf-curriculum__row {
	opacity: 0.75;
	pointer-events: auto;
}

.tf-curriculum__link {
	display: inline;
	text-decoration: none;
}

.tf-curriculum__link:hover {
	color: var(--brand);
	text-decoration: underline;
}

.tf-curriculum__link--resource {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tf-curriculum__ext {
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-left: 0.28em;
	vertical-align: -0.12em;
	opacity: 0.7;
}

.tf-curriculum__meta {
	flex: 0 0 auto;
	margin-left: auto;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-align: right;
}

@media (max-width: 640px) {
	.tf-curriculum__row {
		align-items: flex-start;
		gap: 0.45rem 0.65rem;
	}

	.tf-curriculum__link,
	.tf-curriculum__title,
	.tf-curriculum__heading {
		font-size: 0.95rem;
	}

	.tf-curriculum__meta {
		padding-top: 0.15rem;
	}
}

/* Pending (not yet unlocked) – non-clickable, lightly faded */
.tf-curriculum__item.is-locked > .tf-curriculum__row {
	opacity: 0.42;
	pointer-events: none;
	user-select: none;
	cursor: default;
}

.tf-curriculum__item.is-locked .tf-curriculum__title {
	color: var(--muted);
	font-weight: 600;
	cursor: default;
}

.tf-modal--course-included .tf-modal__panel {
	max-width: min(40rem, 100%);
	max-height: min(85vh, 40rem);
	overflow: auto;
}

.tf-modal--course-included .tf-modal__body {
	padding-top: 0.25rem;
}

.tf-topic-chatgpt__intro {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 36rem;
}

.tf-topic-chatgpt__actions {
	margin: 0 0 1.25rem;
}

.tf-topic-chatgpt__actions .button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.tf-topic-chatgpt__prompt {
	margin: 0;
	max-width: 40rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	background: #fafbfc;
}

.tf-topic-chatgpt__prompt summary {
	cursor: pointer;
	font-weight: 650;
	font-size: 0.9rem;
	color: var(--ink);
}

.tf-topic-chatgpt__prompt-body {
	margin: 0.75rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 0.5rem;
	background: #fff;
	border: 1px solid var(--line);
	white-space: pre-wrap;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--ink);
	overflow-x: auto;
}

/* Course hub – syllabus (product description) */
.tf-dash-syllabus {
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.65;
}

.tf-dash-syllabus > *:first-child {
	margin-top: 0;
}

.tf-dash-syllabus > *:last-child {
	margin-bottom: 0;
}

.tf-dash-syllabus h2,
.tf-dash-syllabus h3,
.tf-dash-syllabus h4 {
	margin: 1.35rem 0 0.55rem;
	font-size: 1.08rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--ink);
}

.tf-dash-syllabus p {
	margin: 0 0 0.9rem;
	color: var(--muted);
}

.tf-dash-syllabus strong {
	color: var(--ink);
	font-weight: 650;
}

.tf-dash-syllabus ol,
.tf-dash-syllabus ul {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
	color: var(--muted);
}

.tf-dash-syllabus li {
	margin: 0.3rem 0;
}

.tf-dash-syllabus li ul,
.tf-dash-syllabus li ol {
	margin: 0.3rem 0 0.45rem;
}

.tf-dash-syllabus a {
	color: var(--brand);
	font-weight: 650;
}

/* My courses – subscription field table */
.tf-courses-list-wrap {
	width: 100%;
}

.tf-courses-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
}

.tf-courses-table {
	width: 100%;
	min-width: 64rem;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.tf-courses-table thead th {
	padding: 0.75rem 1rem;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-align: left;
	white-space: nowrap;
}

.tf-courses-table tbody td {
	padding: 0.95rem 1rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	color: var(--ink);
}

.tf-courses-table tbody tr:last-child td {
	border-bottom: 0;
}

.tf-courses-table__name {
	display: block;
	margin-top: 0;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	line-height: 1.35;
}

.tf-courses-table__name:hover {
	color: var(--brand);
}

.tf-courses-slip-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.2rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0.55rem;
	background: #fff;
	color: var(--ink) !important;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tf-courses-slip-btn:hover {
	background: var(--brand-soft);
	border-color: #f3c7ce;
	color: var(--brand) !important;
}

.tf-courses-slip-btn__icon {
	flex: 0 0 auto;
	display: block;
}

.tf-courses-list__footer {
	margin: 1rem 0 0;
}

.tf-dash-badge--txn-parent {
	background: #eff6ff;
	color: #1d4ed8;
}

.tf-dash-badge--txn-renewal {
	background: #f5f3ff;
	color: #6d28d9;
}

.tf-txn-table {
	min-width: 56rem;
}

.tf-txn-row--child {
	background: rgba(17, 24, 39, 0.02);
}

.tf-txn-row--child td:first-child {
	position: relative;
	padding-left: 2.15rem;
}

.tf-txn-nest {
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 0.7rem;
	height: 0.7rem;
	border-left: 1.5px solid #c4cdd5;
	border-bottom: 1.5px solid #c4cdd5;
	transform: translateY(-65%);
	border-radius: 0 0 0 0.15rem;
	pointer-events: none;
}

.tf-txn-row--child .tf-courses-table__name {
	font-weight: 650;
	color: var(--muted);
}

@media (max-width: 860px) {
	.tf-txn-row--child {
		margin-left: 0.65rem;
		padding-left: 0.5rem;
		border-left: 2px solid #d4dbe3;
		background: transparent;
	}

	.tf-txn-row--child td:first-child {
		padding-left: 1rem;
	}

	.tf-txn-nest {
		display: none;
	}

	.tf-courses-table {
		min-width: 0;
	}

	.tf-courses-table thead {
		display: none;
	}

	.tf-courses-table,
	.tf-courses-table tbody,
	.tf-courses-table tr,
	.tf-courses-table td {
		display: block;
		width: 100%;
	}

	.tf-courses-table tbody tr {
		padding: 0.85rem 0;
		border-bottom: 1px solid var(--line);
	}

	.tf-courses-table tbody tr:last-child {
		border-bottom: 0;
	}

	.tf-courses-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.4rem 1rem;
		border-bottom: 0;
		text-align: right;
	}

	.tf-courses-table tbody td::before {
		content: attr(data-title);
		flex: 0 0 42%;
		text-align: left;
		color: var(--muted);
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}

	.tf-courses-table tbody td:first-child {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding-top: 0.25rem;
		padding-bottom: 0.65rem;
	}

	.tf-courses-table tbody td:first-child::before {
		display: none;
	}
}

.tf-dash-badge--delivery-online {
	background: #ecfdf3;
	color: #166534;
}

.tf-dash-badge--delivery-offline {
	background: #eff6ff;
	color: #1d4ed8;
}

.tf-dash-disclosure-panel {
	cursor: default;
}

.tf-dash-disclosure-panel > summary {
	cursor: pointer;
	list-style: none;
}

.tf-dash-disclosure-panel > summary::-webkit-details-marker {
	display: none;
}

.tf-dash-module--placeholder {
	min-height: 3rem;
}

/* Dashboard cards – full-width grid */
.tf-dash-card-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
	gap: 1rem;
	width: 100%;
}

.tf-dash-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
	padding: 1.25rem 1.35rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
	min-height: 11rem;
	box-sizing: border-box;
}

.tf-dash-card__top {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.tf-dash-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tf-page--account-in .tf-section .tf-dash-card h2.tf-dash-card__title,
.tf-page--account-in .tf-section .tf-dash-panel h2.tf-dash-panel__title {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--ink);
}

.tf-page--account-in .tf-section .tf-dash-panel h2.tf-dash-panel__title {
	margin-bottom: 0.3rem;
}

.tf-page--account-in .tf-section .tf-dash-card h2.tf-dash-card__title a {
	color: var(--ink);
	text-decoration: none;
	font-size: inherit;
	font-weight: inherit;
}

.tf-page--account-in .tf-section .tf-dash-card h2.tf-dash-card__title a:hover {
	color: var(--brand);
}

.tf-dash-card__meta,
.tf-dash-card__text {
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.45;
}

.tf-dash-card__meta-line {
	display: block;
}

.tf-dash-card__meta-line + .tf-dash-card__meta-line {
	margin-top: 0.35rem;
}

.tf-dash-card__kicker {
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tf-dash-card__foot {
	margin-top: auto;
	padding-top: 0.15rem;
}

.tf-dash-card--add {
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.85rem;
	background: #fff;
	border: 1px dashed #d4dbe3;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
	min-height: 11rem;
}

.tf-dash-card__add-label {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	font-weight: 600;
}

.tf-dash-card--start {
	justify-content: flex-start;
	gap: 0.65rem;
}

.tf-dash-card--start .button {
	align-self: flex-start;
	margin-top: 0.25rem;
}

.tf-dash-card-grid--empty {
	justify-items: stretch;
}

.tf-dash-progress {
	margin-top: 0.15rem;
}

.tf-dash-progress__track {
	height: 0.45rem;
	border-radius: 999px;
	background: #e8eef2;
	overflow: hidden;
}

.tf-dash-progress__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--brand), var(--brand-deep, #6e1020));
	min-width: 0;
	transition: width 0.35s ease;
}

.tf-dash-progress--empty .tf-dash-progress__fill {
	width: 0 !important;
	background: transparent;
}

.tf-dash-progress--empty .tf-dash-progress__labels {
	color: var(--muted);
	font-style: normal;
}

.tf-dash-progress__labels {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.4rem;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
}

.tf-dash-badge--active,
.tf-dash-badge--trial {
	background: #ecfdf3;
	color: #166534;
}

.tf-dash-badge--paused,
.tf-dash-badge--suspended,
.tf-dash-badge--pending {
	background: #fff7ed;
	color: #9a3412;
}

.tf-dash-badge--overdue {
	background: #fef3c7;
	color: #92400e;
}

.tf-dash-badge--cancelled,
.tf-dash-badge--expired {
	background: #f3f4f6;
	color: #4b5563;
}

.tf-dash-card--cancelled,
.tf-dash-card--expired {
	opacity: 0.92;
}

.tf-dash-empty p {
	margin: 0 0 0.85rem;
}

.tf-dash-pagination {
	display: flex;
	gap: 0.65rem;
	margin-top: 1rem;
}

.tf-dash-notes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tf-dash-note {
	padding: 0.85rem 1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.75rem;
}

.tf-dash-note__meta {
	margin: 0 0 0.35rem;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 650;
}

.tf-dash-note__body {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.5;
}

.tf-dash-note__body p:last-child {
	margin-bottom: 0;
}

/* Dashboard forms – full content width */
.tf-dash-form {
	max-width: none;
	width: 100%;
}

.tf-dash-form .form-row,
.tf-dash-form .woocommerce-form-row {
	float: none !important;
	width: 100% !important;
	margin: 0 0 0.85rem !important;
	padding: 0 !important;
}

.tf-dash-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 0;
}

.tf-dash-form__grid .form-row {
	margin-bottom: 0.85rem !important;
}

.tf-dash-form label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.84rem;
	font-weight: 650;
	color: var(--ink);
}

.tf-dash-form .required {
	color: var(--coral, #c2410c);
}

.tf-dash-form .input-text,
.tf-dash-form select,
.tf-dash-form textarea,
.tf-page--account-in .woocommerce-address-fields .input-text,
.tf-page--account-in .woocommerce-address-fields select,
.tf-page--account-in .woocommerce-EditAccountForm .input-text {
	width: 100%;
	max-width: 100%;
	min-height: 2.55rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: var(--paper);
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink);
	box-sizing: border-box;
	box-shadow: none !important;
}

.tf-dash-form .input-text:focus,
.tf-dash-form select:focus,
.tf-page--account-in .woocommerce-address-fields .input-text:focus,
.tf-page--account-in .woocommerce-EditAccountForm .input-text:focus {
	outline: none;
	border-color: #e8b4bc;
	background: #fff;
}

.tf-dash-form__hint {
	display: block;
	margin-top: 0.35rem;
	color: var(--muted);
	font-size: 0.82rem;
	line-height: 1.4;
}

.tf-dash-form__actions {
	margin: 0.35rem 0 0 !important;
}

.tf-dash-form__fields .form-row-first,
.tf-dash-form__fields .form-row-last {
	float: none !important;
	width: 100% !important;
}

.tf-dash-disclosure {
	margin: 0.35rem 0 1rem;
	padding: 0.75rem 0.9rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0.75rem;
}

.tf-dash-disclosure summary {
	cursor: pointer;
	font-weight: 650;
	font-size: 0.9rem;
	color: var(--ink);
}

.tf-dash-disclosure__body {
	margin-top: 0.85rem;
}

.tf-dash-disclosure__body .form-row:last-child {
	margin-bottom: 0 !important;
}

/* Order details inside portal */
.tf-dash-order-details .woocommerce-order-details,
.tf-dash-order-details .woocommerce-customer-details {
	margin: 0 0 1rem;
	padding: clamp(1.05rem, 2vw, 1.35rem);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
	max-width: none;
	width: 100%;
}

.tf-dash-order-details .woocommerce-order-details__title,
.tf-dash-order-details .woocommerce-column__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 750;
}

/* Portal notices (dashboard) */
.tf-account-notices {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 1.25rem;
	width: 100%;
	max-width: none;
}

.tf-account-notices .woocommerce-notices-wrapper {
	display: contents;
}

.tf-account-notices .woocommerce-message,
.tf-account-notices .woocommerce-info,
.tf-account-notices .woocommerce-error {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin: 0;
	padding: 0.95rem 1.1rem 0.95rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	border-left-width: 3px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
	list-style: none !important;
	font-size: 0.94rem;
	font-weight: 550;
	line-height: 1.5;
	color: var(--ink);
	animation: tf-notice-in 0.35s var(--ease, ease) both;
}

.tf-account-notices .woocommerce-error {
	flex-direction: column;
	align-items: stretch;
	gap: 0.35rem;
	padding-left: 1.15rem;
}

.tf-account-notices .woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tf-account-notices .woocommerce-message::before,
.tf-account-notices .woocommerce-info::before,
.tf-account-notices .woocommerce-error::before {
	display: none !important;
	content: none !important;
}

.tf-account-notices .woocommerce-message {
	border-color: #bbf7d0;
	border-left-color: #16a34a;
	background:
		radial-gradient(ellipse 80% 120% at 0% 50%, rgba(22, 163, 74, 0.07), transparent 55%),
		#f0fdf4;
	color: #166534;
}

.tf-account-notices .woocommerce-info {
	border-color: #f3c7ce;
	border-left-color: var(--brand);
	background:
		radial-gradient(ellipse 80% 120% at 0% 50%, rgba(196, 30, 58, 0.06), transparent 55%),
		var(--brand-soft);
	color: var(--ink);
}

.tf-account-notices .woocommerce-error {
	border-color: #fecaca;
	border-left-color: #dc2626;
	background:
		radial-gradient(ellipse 80% 120% at 0% 50%, rgba(220, 38, 38, 0.06), transparent 55%),
		#fef2f2;
	color: #991b1b;
}

.tf-account-notices .woocommerce-message a:not(.button),
.tf-account-notices .woocommerce-info a:not(.button),
.tf-account-notices .woocommerce-error a:not(.button) {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tf-account-notices .woocommerce-message .button,
.tf-account-notices .woocommerce-info .button,
.tf-account-notices .woocommerce-error .button,
.tf-account-notices .woocommerce-message a.button,
.tf-account-notices .woocommerce-info a.button,
.tf-account-notices .woocommerce-error a.button {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0 0 0 auto;
	float: none !important;
	min-height: 2.45rem;
	padding: 0.45rem 1.05rem !important;
	border: 1px solid transparent !important;
	border-radius: 0.6rem !important;
	background: var(--brand) !important;
	box-shadow: 0 8px 18px rgba(196, 30, 58, 0.22) !important;
	color: #fff !important;
	font: inherit;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.2s var(--ease, ease), background 0.15s ease;
}

.tf-account-notices .woocommerce-message .button:hover,
.tf-account-notices .woocommerce-info .button:hover,
.tf-account-notices .woocommerce-error .button:hover,
.tf-account-notices .woocommerce-message a.button:hover,
.tf-account-notices .woocommerce-info a.button:hover,
.tf-account-notices .woocommerce-error a.button:hover {
	background: var(--brand-deep, #9f1830) !important;
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: none !important;
}

.tf-account-notices .woocommerce-message .button:focus-visible,
.tf-account-notices .woocommerce-info .button:focus-visible,
.tf-account-notices .woocommerce-error .button:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

@keyframes tf-notice-in {
	from {
		opacity: 0;
		transform: translateY(-0.4rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.tf-account-notices .woocommerce-message,
	.tf-account-notices .woocommerce-info {
		flex-direction: column;
		align-items: stretch;
	}

	.tf-account-notices .woocommerce-message .button,
	.tf-account-notices .woocommerce-info .button,
	.tf-account-notices .woocommerce-error .button,
	.tf-account-notices .woocommerce-message a.button,
	.tf-account-notices .woocommerce-info a.button,
	.tf-account-notices .woocommerce-error a.button {
		order: 3;
		width: 100%;
		margin-left: 0;
	}
}


/* OTP login (logged out) */
.tf-page--account-out .srl-login {
	width: 100%;
	max-width: 28rem;
	margin: 0 auto;
	padding: clamp(1.25rem, 2.5vw, 1.65rem);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.055);
	box-sizing: border-box;
}

.tf-page--account-out .srl-login h2 {
	display: none;
}

.tf-page--account-out .srl-login__messages {
	margin-bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 0.65rem;
	border: 1px solid var(--line);
	border-left-width: 3px;
	background: var(--paper);
}

.tf-page--account-out .srl-login__messages.is-error {
	border-color: #fecaca;
	border-left-color: #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.tf-page--account-out .srl-login__messages.is-success {
	border-color: #bbf7d0;
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #166534;
}

.tf-page--account-out .srl-login label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--ink);
}

.tf-page--account-out .srl-login .required {
	color: var(--coral);
}

.tf-page--account-out .srl-login .input-text {
	width: 100%;
	min-height: 2.65rem;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: var(--paper);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	outline: none;
	box-shadow: none !important;
}

.tf-page--account-out .srl-login .input-text:focus {
	border-color: #e8b4bc;
	background: #fff;
}

.tf-page--account-out .srl-login__otp-input {
	max-width: 12rem;
	letter-spacing: 0.35em;
	font-size: 1.2rem;
	font-weight: 700;
}

.tf-page--account-out .srl-login__hint,
.tf-page--account-out .srl-login__sent {
	margin: 0.85rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.tf-page--account-out .srl-login__submit,
.tf-page--account-out .srl-login .button {
	min-height: 2.75rem;
	margin: 0.35rem 0 0;
	padding: 0.6rem 1.35rem;
	border: 0 !important;
	border-radius: 0.65rem;
	background: var(--brand) !important;
	color: #fff !important;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
	box-shadow: none !important;
}

.tf-page--account-out .srl-login__submit:hover,
.tf-page--account-out .srl-login .button:hover {
	background: var(--brand-deep) !important;
}

.tf-page--account-out .srl-login__back-link {
	color: var(--brand);
	font-weight: 600;
	text-decoration: none;
}

.tf-page--account-out .srl-login__back-link:hover {
	color: var(--brand-deep);
	text-decoration: underline;
}

.tf-page--account-out .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: var(--ink);
}

/* Shared tables / buttons inside portal */
.tf-page--account-in .woocommerce-orders-table,
.tf-page--account-in .woocommerce-MyAccount-content table.shop_table,
.tf-dash-order-details table.shop_table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	overflow: hidden;
}

.tf-page--account-in .woocommerce-orders-table th,
.tf-page--account-in .woocommerce-orders-table td,
.tf-page--account-in .woocommerce-MyAccount-content table.shop_table th,
.tf-page--account-in .woocommerce-MyAccount-content table.shop_table td,
.tf-dash-order-details table.shop_table th,
.tf-dash-order-details table.shop_table td {
	padding: 0.75rem 1rem;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
	font-size: 0.92rem;
}

.tf-page--account-in .woocommerce-orders-table thead th,
.tf-page--account-in .woocommerce-MyAccount-content table.shop_table thead th,
.tf-dash-order-details table.shop_table thead th {
	border-top: 0;
	background: var(--paper);
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tf-page--account .woocommerce-Button,
.tf-page--account .woocommerce-MyAccount-content .button,
.tf-dash-form .button,
.tf-dash-empty .button,
.tf-dash-pagination .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.45rem;
	padding: 0.5rem 1.15rem;
	border: 0 !important;
	border-radius: 0.65rem;
	background: var(--brand) !important;
	color: #fff !important;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
}

.tf-page--account .woocommerce-Button:hover,
.tf-page--account .woocommerce-MyAccount-content .button:hover,
.tf-dash-form .button:hover {
	background: var(--brand-deep) !important;
}

/* Kill WC float clears on account forms */
.tf-page--account-in .woocommerce-EditAccountForm::after,
.tf-page--account-in .woocommerce-address-fields::after,
.tf-dash-form::after,
.tf-dash-form .clear {
	display: none !important;
}

@media (max-width: 860px) {
	.tf-account {
		--sa-account-sidebar: 0px;
		grid-template-columns: minmax(0, 1fr);
		position: relative;
	}

	.tf-account__nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(18rem, 86vw) !important;
		height: 100dvh;
		max-height: none;
		transform: translateX(-105%);
		opacity: 1;
		pointer-events: auto;
		box-shadow: 12px 0 40px rgba(17, 24, 39, 0.12);
		z-index: 40;
	}

	.tf-account:not(.is-collapsed) .tf-account__nav {
		transform: translateX(0);
	}

	.tf-account.is-collapsed .tf-account__nav {
		transform: translateX(-105%);
		opacity: 1;
	}

	.tf-account:not(.is-collapsed)::before {
		content: "";
		position: fixed;
		inset: 0;
		background: rgba(17, 24, 39, 0.35);
		z-index: 35;
	}

	/* Keep toolbar toggle above the drawer overlay */
	.tf-account:not(.is-collapsed) .tf-account__toolbar {
		z-index: 45;
	}

	.tf-account__nav-head {
		position: sticky;
		top: 0;
		z-index: 1;
		padding-top: max(0.85rem, env(safe-area-inset-top));
		background: #fff;
		border-bottom: 1px solid var(--line);
	}

	.tf-account__nav-collapse {
		display: inline-flex;
		width: 2.45rem;
		height: 2.45rem;
	}

	.tf-account__nav-collapse .tf-account__icon--chevron {
		display: none;
	}

	.tf-account__nav-collapse .tf-account__icon--close {
		display: block;
	}

	.tf-page--account-in {
		height: calc(100dvh - 4.75rem);
		max-height: calc(100dvh - 4.75rem);
	}

	.tf-dash-form__grid {
		grid-template-columns: 1fr;
	}

	.tf-dash-order,
	.tf-dash-order--card {
		flex-direction: column;
		align-items: stretch;
	}

	.tf-dash-order__aside {
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.tf-dash-panel__head--row {
		flex-direction: column;
	}

	.tf-dash-panel--form,
	.tf-dash-form,
	.tf-dash-stack {
		max-width: none;
	}
}
